Solving Math Word Problem via Cooperative Reasoning induced Language Models

Lin Zhang · DOI

Introduction: The System 1 vs. System 2 Dilemma

Large Language Models (LLMs) have demonstrated remarkable fluency, yet they frequently falter when faced with multi-step math word problems (MWPs). While techniques like "Chain-of-Thought" (CoT) prompting provide a boost, they often require models with hundreds of billions of parameters to be effective.

The fundamental limitation lies in how standard LLMs process information. They primarily operate using what psychologists call "System 1" thinking—fast, intuitive, and heuristic-driven. This approach is prone to logical "hallucinations" because it lacks a "System 2"—the slow, analytical, and deliberate process that verifies individual steps and corrects errors in real-time. In mathematics, a single early error can derail an entire solution; without a feedback loop during generation, LLMs cannot recover.

Methodology: The CoRe Framework

To bridge this gap, researchers proposed CoRe (Cooperative Reasoning). This framework structures the reasoning process into a collaborative loop between a "Generator" (System 1) and a "Verifier" (System 2). The process consists of three main stages:

  1. Cooperative Training: A generator (e.g., GPT-J 12B) is fine-tuned on math problems. Simultaneously, two verifiers are trained: a token-level step verifier and a sentence-level path verifier. These models learn to distinguish between valid and invalid reasoning steps.
  2. Cooperative Inference (MCTS): Rather than relying on simple greedy decoding, CoRe employs Monte Carlo Tree Search (MCTS). The generator proposes potential reasoning steps, while the verifiers score them. This allows the model to explore multiple logical branches and backtrack when a path is deemed incorrect.
  3. Self-Thinking: This iterative loop allows the model to improve autonomously. It generates its own reasoning paths, uses the verifiers to filter out low-quality or noisy data, and then re-trains itself on this refined synthetic dataset.
The three-step CoRe framework: Cooperative Training, Cooperative Inference, and Self-Thinking.

Experimental Setup and Datasets

The framework was evaluated across several mathematical reasoning benchmarks to test both fine-tuning performance and zero-shot generalization:

  • GSM8K: The primary dataset for fine-tuning and the self-thinking loop, containing 8.8K grade school math problems.
  • Zero-shot Benchmarks: To evaluate generalization, the model was tested on ASDiv-A, SingleOp, SingleEq, and MultiArith, ranging from simple operations to complex multi-step arithmetic.

Key Results and Scaling

CoRe achieved state-of-the-art (SoTA) results in zero-shot settings, frequently outperforming models many times its size:

  • MultiArith: CoRe reached 97.5% accuracy, surpassing PaLM 540B with self-consistency (89.0%) and Instruct GPT-3 (79.3%).
  • SingleEq: It achieved 79.5%, edging out the much larger Instruct GPT-3 (78.7%).
  • GSM8K: In a fine-tuning context, CoRe (12B) reached 63.2%, beating a fine-tuned GPT-3 350B (57.0%).

A critical finding is the scaling behavior of the model. Unlike standard "Self-Consistency" methods that tend to plateau, CoRe's accuracy continues to improve as the number of reasoning paths (search iterations) increases, demonstrating the effectiveness of the MCTS-verifier combination.

Accuracy vs. number of reasoning paths on MultiArith, comparing CoRe to Self-Consistency.

Discussion and Future Directions

The success of CoRe highlights that massive parameter counts are not the only path to intelligence. By integrating a structured search and verification layer, a 12B model can behave more intelligently than models 40 times its size. The "Self-Thinking" process further demonstrates that models can bootstrap their own reasoning capabilities through high-quality synthetic data.

However, challenges remain. The MCTS process introduces a "time tax" during inference, making it more computationally expensive than standard decoding. Additionally, the framework currently depends on high-quality seed data (like GSM8K) that includes intermediate reasoning steps. Future research will explore whether this cooperative approach can be extended to other domains, such as symbolic logic or commonsense reasoning.

Summary updated

BibTeX
@inproceedings{zhang2023solving,
  author = {Lin Zhang},
  title = {{Solving Math Word Problem via Cooperative Reasoning induced Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.245},
}
Figure