Abstract
SYRELM (Symbolic Reasoning Enhanced Language Model) enables small language models (6B–13B parameters) to outperform much larger models on arithmetic word problems. By training the LM to act as a translator mapping natural language to a formal symbolic language executed by an external solver, significant accuracy gains are achieved. This approach uses parameter-efficient fine-tuning and reinforcement learning with reasoning-specific rewards.
Introduction
Large Language Models (LLMs) like GPT-4 have demonstrated remarkable "Chain-of-Thought" (CoT) reasoning capabilities. However, this ability is often viewed as an emergent property of scale, typically requiring models with over 50 billion parameters. Smaller, "frugal" models frequently struggle with multi-step arithmetic, often attempting to predict the next token based on statistical patterns rather than logical reasoning. This paper introduces SYRELM, a framework designed to bridge this gap by treating the LM as a linguistic-to-symbolic translator rather than a direct calculator.
Methodology
The SYRELM framework implements a formalize-then-solve pipeline, separating the linguistic understanding of a problem from the mathematical execution.
Architecture and Formal Languages
SYRELM utilizes frozen base models, such as GPT-J 6B or Vicuna 13B, augmented with Low-Rank Adapters (LoRA) for parameter-efficient fine-tuning. The model translates natural language questions into a formal language (FL)—either Python code or a simplified Parsable Pseudocode—depending on the base model's capabilities.
Two-Stage Training
The training process consists of two primary stages:
- Supervised Fine-Tuning (SFT): The model is trained to map natural language questions to their corresponding FL representations using a curated dataset.
- Reinforcement Learning (RL): Proximal Policy Optimization (PPO) is employed to refine the model's performance. A composite reward function evaluates code compilation, variable usage, operator accuracy, and final answer correctness.
Results
The application of SYRELM led to substantial performance improvements across several benchmarks.
Performance Gains
On the SVAMP dataset, GPT-J 6B with SYRELM achieved a 40.1% accuracy, representing a 30.65-point absolute improvement over the base model. Vicuna 13B reached 59% accuracy on MultiArith, outperforming other tool-augmented methods like Toolformer and ART. Notably, SYRELM allowed these smaller models to perform comparably to GPT-3.5 on SVAMP and GSM8K.
Reasoning Complexity Analysis
Analysis of the model's performance relative to the number of reasoning steps required reveals critical insights into its capabilities and limitations.
As shown in the figure above, the error rate tends to increase as the number of reasoning steps grows, particularly beyond 4 steps. This correlates with a decrease in the number of available training samples for high-complexity problems, highlighting a data-driven bottleneck for complex reasoning tasks like those found in GSM8K.
Conclusion
SYRELM demonstrates that small, frugal language models can achieve high-level arithmetic reasoning by offloading symbolic computation to external solvers. By focusing the LM's role on translation rather than calculation, researchers can achieve significant accuracy gains with minimal parameter updates. Future work will explore extending this framework to more complex symbolic domains such as calculus and formal logic.
Summary updated