Source-linked AI summary

HYBRIDMIND: Meta Selection of Natural Language and Symbolic Language for Enhanced LLM Reasoning

Simeng Han, Tianyu Liu, Chuhan Li, Xuyuan Xiong, Arman Cohan

arXiv:2409.19381v5cs.CL

TL;DR

Natural-language and symbolic reasoning offer complementary strengths, but each can miss aspects handled by the other. HYBRIDMIND selects an approach per problem; STaR fine-tuned LLaMA-3.1-8B gains 4.4% accuracy on FOLIO, while prompted GPT-3.5-Turbo improves 10% over GPT-4o on FOLIO’s challenging subset.

  • Problem

    Natural-language reasoning is flexible but can be ambiguous, while symbolic reasoning is precise and executable but risks missing real-world language nuance.

    Source: §1 · p. 1
  • Method

    HYBRIDMIND dynamically selects natural-language, symbolic, or mixed reasoning for each problem.

    Source: §1 · pp. 1–2
  • Results

    4.4% accuracy gain on FOLIO comes from STaR fine-tuning LLaMA-3.1-8B as a meta-selector; prompted GPT-3.5-Turbo improves 10% over GPT-4o on FOLIO’s challenging subset.

    Source: §1 · p. 2
  • Takeaways & Limitations

    HYBRIDMIND executes one selected method, whereas majority voting requires running all four methods.

    Source: §5.1 · p. 6

    No single approach currently excels across both MATH and FOLIO, and more complex datasets such as AIME remain untested.

    Source: §7 · p. 9

Abstract

from arXiv · show

LLMs approach logical and mathematical reasoning through natural or symbolic languages. While natural language offers human-accessible flexibility but suffers from ambiguity, symbolic reasoning provides precise, machine-executable inferences at the cost of strict domain constraints. We introduce HYBRIDMIND, an adaptive strategy that selects the optimal reasoning approach for each reasoning problem. Through extensive experiments, we evaluate both prompting-based approaches with state-of-the-art LLMs and fine-tuned open-source models. We find that fine-tuning LLaMA-3.1-8B-Instruct as a meta-selector outperforms GPT-4o's natural language reasoning by 4.4\% on FOLIO and 1.3\% on MATH. More notably, using GPT-3.5-turbo as a prompted meta-selector yields a 10\% improvement on FOLIO's challenging subset compared to GPT-4o. We will release our code and data to support future research.

1 Introduction

The paper frames natural-language and symbolic reasoning as complementary but individually imperfect, then proposes HYBRIDMIND to choose an approach for each problem. It reports gains from fine-tuned and prompted selectors, including on FOLIO’s challenging subset.

1 Introduction

  • Natural-language reasoning is flexible and broadly accessible but can be ambiguous, whereas symbolic reasoning enables precise, machine-executable inferences.The introduction cites natural-language and symbolic-reasoning research in describing these contrasting properties.Source: §1 · p. 1
  • Using only one reasoning style can be suboptimal: NL may miss logical subtleties, while symbolic methods may miss real-world language complexity.The paper presents these as complementary weaknesses motivating selection by problem type.Source: §1 · p. 1
  • HYBRIDMIND dynamically selects natural-language, symbolic, or mixed reasoning based on each problem’s characteristics.The paper argues that conceptual or explanatory tasks suit step-by-step natural-language reasoning, while exact, computation-heavy problems suit symbolic reasoning.Source: §1 · p. 1
  • The paper combines prompting and fine-tuning approaches, including LoRA for supervised fine-tuning and STaR, and develops labeled data for the selector.GPT-4o solves problems using four reasoning approaches; a successful approach supplies the label, with a random choice when multiple approaches work.Source: §1 · pp. 1–2
  • 4.4% accuracy gain on FOLIO comes from STaR fine-tuning LLaMA-3.1-8B as a meta-selector; prompted GPT-3.5-Turbo improves 10% over GPT-4o on FOLIO’s challenging subset.The paper also describes examining performance statistics, prompt ablations, and differences between FOLIO and MATH.Source: §1 · p. 2

2 Related Work

Prior work develops natural-language and executable symbolic reasoning, while described meta-selection methods organize natural-language reasoning alone. HYBRIDMIND combines natural-language and symbolic reasoning in its selection framework.

2.1 Reasoning with natural language and symbolic language

  • Natural-language reasoning methods produce explicit intermediate steps, but can yield incoherent or unreliable solutions on complex problems.The passage cites prior work on step-by-step reasoning and its limitations (Olausson et al., 2023).Source: §2.1 · p. 2
  • Symbolic approaches translate tasks into Python or first-order logic and use external executors or engines to check intermediate or final outputs.SymbCoT instead converts premises to a symbolic format and uses an LLM solver and verifier to validate steps (Xu et al., 2024).Source: §2.1 · p. 2

2.2 Meta selection with LLMs

  • Zhou et al. (2024b) and Gao et al. (2024) use meta-prompts to organize reasoning modules, but their methods adopt natural-language reasoning rather than combining it with symbolic reasoning.HYBRIDMIND is presented as exploiting both reasoning forms while considering logical and mathematical problem characteristics.Source: §2.2 · p. 2

3 Method

HYBRIDMIND selects among four natural-language, symbolic, and mixed reasoning paths according to problem characteristics. It pairs Python with mathematical reasoning and first-order logic with logical reasoning, and generates selector labels from correctness across the four approaches.

3.1 Approaches to reasoning

  • SymbolNL first forms a symbolic solution and then analyzes it step by step in natural language; NLSymbol first produces an NL solution or hints, then generates symbolic language.The paper describes the former as allowing execution analysis and correction, and the latter as clarifying the problem before code generation.Source: §3.1 · pp. 2–3
  • HYBRIDMIND offers NL, SL, SymbolNL, and NLSymbol paths, then selects a strategy according to problem characteristics.Figure 1 illustrates selection of SL for a math problem, producing the answer 105.Source: §3.1 · p. 3, Figure 1 · p. 3

3.2 Choice of symbolic language

  • Python is selected for mathematical reasoning, while first-order logic is selected for logical reasoning because their execution and inferential purposes differ.Python supports computation; first-order logic provides a declarative framework for formal knowledge and rule-based inference.Source: §3.2 · pp. 3–4

3.3 Training data generation

  • GPT-4o solves each problem through NL, SL, SymbolNL, and NLSymbol, and exact-match correctness determines the training label.If multiple approaches yield correct answers, one is selected at random; the correctness-labeled examples train the meta-selector.Source: §3.3 · p. 4
  • The automatic labeling process uses original dataset answer labels, and varied prompting strategies give the selector alternatives to learn to choose between.The paper presents these as two advantages of its data-generation method.Source: §3.3 · p. 4

4 Experiments

The experiments test whether selecting among natural-language, symbolic, and mixed reasoning improves mathematical and logical problem solving. Across FOLIO and MATH, results vary by task and selection approach, with fine-tuned and prompted selectors both evaluated.

4 Experiments

  • The experiments ask whether choosing a reasoning style for each problem, rather than relying on one style, improves accuracy in math and logical reasoning.The study evaluates MATH and FOLIO, which span multiple categories and difficulty levels.Source: §4 · p. 4, §4.1 · p. 4

4.1 Datasets

  • MATH contains 7,498 training and 5,000 test samples across seven categories and five difficulty levels; FOLIO contains 1,001 training and 226 test samples across two categories.Models are evaluated on the full test sets, with category-level reporting yielding nine experimental datasets.Source: §4.1 · p. 4

4.2 Model choice

  • Qwen2.5-14B-Instruct, Qwen-32B-Coder-Instruct, and CodeLlama selected NL for every tested example, while the study also evaluates LLaMA-3.1-8B-Instruct and GPT models as selectors.The experiments use prompting and, for open-source models, SFT and STaR fine-tuning; prompting conditions vary by reasoning format.Source: §4.2 · p. 4

4.3 NL, SL, NLSymbol and SymbolNL

  • For MATH, meta-selection considers NL, SL, NLSymbol, and SymbolNL; FOLIO uses only NL and SL because the mixed methods performed poorly there.On MATH, the oracle accuracy of at least one method being correct is at least 10.3% higher than that of any single method.Source: §4.3 · p. 5

4.4 Experiments on FOLIO

  • On FOLIO, best-of-two NL/SL accuracy is around 17% higher than either approach alone, and STaR is the best-performing fine-tuning method.Direct SFT fails to improve base-model accuracy and predominantly selects NL; the authors suggest STaR’s filtering and rationale generation may matter.Source: §4.4 · p. 5

4.5 Experiments on MATH

  • The paper reports that the best MATH performer is LLaMA-3.1-8B with LoRA-based SFT, while MATH prompting results remain constrained by selector capability.The authors identify fine-tuning as important for mathematical reasoning, noting that majority voting struggles on harder problems such as precalculus.Source: §4.5 · p. 6
  • On MATH, NL is the strongest single approach and SL the weakest; prompting selectors does not surpass GPT-4o NL reasoning, while fine-tuned selection improves performance.The study reports HYBRIDMIND works particularly well in geometry, number theory, precalculus, and prealgebra; majority voting and random choice do not surpass it, especially on challenging precalculus problems.Source: §4.5 · p. 6

5 Analysis

The analysis examines HYBRIDMIND’s performance and routing on FOLIO and MATH, including how results vary across tasks. It also considers selection costs and the reasoning approaches chosen for different problems.

5.1 Analysis on FOLIO

  • 13.04%: HYBRIDMIND improves performance on FOLIO’s more complex HybLogic subset.HybLogic includes problems requiring 5–8 reasoning steps, compared with 1–5 for WikiLogic.Source: §5.1 · p. 6
  • HYBRIDMIND uses one selected method, whereas majority voting requires running all four methods.The comparison highlights a difference in execution cost, not just selection strategy.Source: §5.1 · p. 6
  • 23 of 26 HybLogic problems solvable by symbolic reasoning but not natural-language reasoning are correctly routed to symbolic reasoning.With weakness information, HYBRIDMIND more often selects symbolic reasoning for challenging HybLogic problems and natural-language reasoning for WikiLogic problems with complex language patterns.Source: §5.1 · p. 7, Table 3 · p. 7

5.2 Analysis on MATH

  • Downsampling natural-language examples and increasing symbolic-language examples reduced final performance by 5.3%, while fine-tuned models selected natural language less often than the 100% base-model rate.The reported natural-language selection rates were 94.10% for MATH and 58.84% for FOLIO.Source: §5.2 · p. 8
  • For a MATH number-theory example, HYBRIDMIND selects a reasoning path that natural-language reasoning cannot address.The paper reports its largest percentage improvement in this category and says the selector uses problem statistics and effective-solution shots when deciding.Source: §5.2 · p. 8, Table 6 · p. 8

5.3 Comparing FOLIO with MATH

  • HYBRIDMIND improves FOLIO more than MATH, particularly with prompting; the authors relate the difference to the similarity of Python-based and natural-language reasoning on MATH and to strong baseline performance.They suggest these factors make selecting between approaches harder on MATH.Source: §5.3 · p. 8

6 Conclusion and Future Work

The conclusion presents HYBRIDMIND as an adaptive selector of natural-language, symbolic, or mixed reasoning approaches. Experiments on MATH and FOLIO show improved performance, especially on harder FOLIO problems.

6 Conclusion and Future Work

  • HYBRIDMIND dynamically selects natural-language, symbolic-language, or mixed reasoning, and experiments on MATH and FOLIO show improved performance, especially on harder FOLIO problems.The conclusion also notes that the paper analyzes sources of the performance improvement.Source: §6 · pp. 8–9

7 Limitations

The paper identifies limits in task coverage, cross-task performance, and selector training.

7 Limitations

  • No single approach excels across MATH and FOLIO; AIME has not yet been evaluated, and the selector has no advanced loss function for further refinement.Fine-tuning-based selection performs best on MATH, while prompting-based selection is most effective for FOLIO.Source: §7 · p. 9

A.1 Implementation details

The implementation covers prompted and fine-tuned meta-selectors, with experiments spanning multiple model and selection setups.

A.1 Implementation details

  • Prompting experiments tested two zero-shot instruction designs and few-shot prompts with at most two examples containing a question, answer, and GPT-o3-mini rationale.The few-shot examples were generated with GPT-o3-mini.Source: §A.1 · pp. 10–11
  • Fine-tuning experiments trained Llama 3.1-8B with sampled choices paired to questions; STaR generates rationales and retains correct samples for training.SFT used Llama-factory, while the STaR implementation was modified from its original code base.Source: §A.1 · p. 11
  • Baselines included prompted closed- and open-source models, direct reasoning strategies, majority voting, and fine-tuned binary- or four-class meta-selectors.The listed prompted models include GPT-4o, GPT-3.5-turbo, o3-mini, and Llama 3.1-8B.Source: §A.1 · p. 11

A.3 Prompts and shots

This appendix presents prompt formats and example shots for NL, SL, SymbolNL, and NLSymbol, including code solutions, code-conditioned explanations, natural-language-to-code conversion, and worked math examples.

A.3.1 NL

  • NL prompts request a helpful math assistant and specify boxed LaTeX answers, no units, the pi symbol, and simplified exact fractions and roots.Source: §A.3.1 · p. 11
  • An NL example reasons through successive hops as a finite geometric series and gives 211/243 as the distance after five hops.Source: §A.3.1 · p. 11
  • Other NL examples demonstrate completing the square to find a circle’s area and using symmetry and inequalities to bound |x|+|y|.Source: §A.3.1 · pp. 11–12
  • An NL rational-function example uses the symmetry of a function and its asymptotes to derive a+d=0 for a function that is its own inverse.Source: §A.3.1 · p. 12

A.3.2 SL

  • SL prompts require code-only responses with a function named solution, using SymPy’s Rational for fractions and pi and preserving exact simplified forms.Source: §A.3.2 · p. 13
  • An SL example uses SymPy to simplify a polynomial expression and extract its x^3 coefficient through a solution function.Source: §A.3.2 · p. 13
  • Another SL example encodes the total surface area of a radius-6 hemisphere, including its circular base, as a calculation in terms of pi.Source: §A.3.2 · p. 13
  • The SL examples also include a fair-die expected-winnings problem, with a code solution beginning in the supplied excerpt.Source: §A.3.2 · p. 14
  • SL examples pair math questions with symbolic-code snippets for vector operations, geometry, polynomial division, and orthogonality.The questions include finding a vector expression, a circle’s center, a polynomial remainder, and a value making two vectors orthogonal.Source: §A.3.2 · p. 14

A.3.3 Second stage of SymbolNL

  • SymbolNL’s second-stage prompt asks for step-by-step reasoning based on supplied code and executed output, noting that the code may be wrong.Source: §A.3.3 · p. 15
  • SymbolNL shots demonstrate this format with factor-counting and parallelogram-angle problems, including code outputs and natural-language explanations.The factor-counting example shows output 6, and the angle example shows output 70.Source: §A.3.3 · p. 15
  • The examples include a triangle-area problem with output 6 and a question asking for the greatest two-digit multiple of 13, with output 91.Source: §A.3.3 · pp. 15–16

A.3.4 Second stage of NLSymbol

  • NLSymbol’s second stage translates a natural-language reasoning path into Python code whose output should be the final answer.Source: §A.3.4 · p. 16
  • The NLSymbol shot begins with a tile-counting problem and a natural-language reasoning path about a 225-square-foot floor.The example asks how many 6-inch by 6-inch tiles fit in each row.Source: §A.3.4 · p. 16
  • For a 225-square-foot square room with 6-inch tiles, the worked solution finds 30 tiles along each side.It takes the square root of the area to obtain a 15-foot side, then divides by the 0.5-foot tile width.Source: §A.3.4 · p. 16
  • The examples present a natural-language reasoning path followed by code, applying this two-stage format to several math problems.The prompts explicitly introduce a step-by-step reasoning path, and the examples include code after the worked answers.Source: §A.3.4 · pp. 16–17
  • After the five consecutive nonprime integers 24 through 28, the smallest following prime is 29.The accompanying code checks sequences of five nonprimes and then tests whether the next number is prime.Source: §A.3.4 · p. 17
  • For a circle centered at (3,2), the tangent at (5,5) has slope -2/3.The worked solution takes the negative reciprocal of the radius slope.Source: §A.3.4 · p. 17
  • To have greatest common factor 3 with 18, a candidate must be divisible by 3 but not by 2 or 9.The example applies these criteria to the greatest-integer-below-100 problem.Source: §A.3.4 · pp. 17–18
  • The greatest integer below 100 with greatest common factor 3 with 18 is 93.The solution rejects 99 for divisibility by 9 and 96 for divisibility by 2, then selects 93; the code searches downward using gcd.Source: §A.3.4 · p. 18

A.4 Significance test

The section presents significance tests comparing HYBRIDMIND with NL on MATH and FOLIO.

  • Table 10 tests significance levels between HYBRIDMIND and NL on MATH.Source: Table 10 · p. 18
  • Table 11 tests significance levels between HYBRIDMIND and NL on FOLIO.Source: Table 11 · p. 18

A.5 Analysis between SL and NL

The examples illustrate problem-dependent selection between symbolic-language (SL) and natural-language (NL) reasoning. SL is presented as suited to precise computational searches and bounded numerical optimization, while NL can preserve transparent algebraic or geometric insight.

A.6 Meta-Selection prompt

  • Tables 12–13 illustrate SL outperforming NL when coding systematically handles cases that NL overlooks, avoiding logical errors and producing correct results.The captions describe examples where NL misses scenarios or edge cases, while Python code provides a more accurate, structured approach.Source: Table 12 · p. 19, Table 13 · p. 19
  • Tables 14–15 illustrate NL outperforming SL when code fails to account for a special condition, such as a shared numerator and denominator zero.The quadratic example gives a correct NL result of 24; the asymptote example identifies x = 3 as a hole rather than an asymptote.Source: Table 14 · p. 20, §A.6 · p. 20, Table 15 · p. 20
  • For a geometry problem involving distance and perpendicular intersections, the prompt selects NL because it explains the underlying geometric reasoning.The prompt notes that code can compute accurately once correctly specified, but setting up the algorithm can be nontrivial and may obscure the reasoning.Source: §A.6 · p. 21
  • For minimizing a rational function over a small, compact domain, the prompt selects SL as more reliable for handling boundary and interior cases.It favors program-aided search to reduce the effort of manually tracking subtle cases.Source: §A.6 · p. 22
  • For precise numerical questions with feasible direct verification, SL supports systematic candidate searches without lengthy manual derivations.The example notes that handling very large numbers may require logarithms or approximations to avoid inefficiency or overflow.Source: §A.6 · p. 22
  • For the roots-of-unity product, NL uses cyclotomic structure for an exact solution but requires algebraic familiarity; numerical SL risks rounding errors and can hide that insight.The passage warns that solvers unfamiliar with roots of unity and cyclotomic polynomials may overlook steps or make derivation errors.Source: §A.6 · pp. 22–23
  • For the trapezoid ratio, NL supports stepwise geometric reasoning, while coding may require extra setup and risk obscuring a problem suited to traditional reasoning.The example specifically invokes triangle similarity and clear algebraic manipulation as reasons to prefer chain-of-thought reasoning.Source: §A.6 · p. 23
  • For framing arithmetic, NL is favored to expose enlargement, border, perimeter, and unit-conversion steps, although code handles rounding if the geometry is encoded correctly.The example notes that coding can introduce errors through misinterpretation and may obscure geometric understanding.Source: §A.6 · pp. 23–24
Loading 2409.19381v5…