Improving Language Model Reasoning with Self-motivated Learning

Yunlong Feng, Yang Xu, Libo Qin, Yasheng Wang, Wanxiang Che

Abstract

Large-scale high-quality training data is critical for enhancing the reasoning capabilities of Large Language Models (LLMs). While models gain reasoning proficiency when trained on datasets containing step-by-step rationales, such high-quality data is scarce and expensive to annotate. To address this, we propose the Self-motivated Learning framework. This approach enables a model to automatically generate rationales from existing datasets and rank them based on the correctness of the resulting answers. By training a reward model on these internal rankings and applying reinforcement learning, the model significantly improves its own reasoning ability. Experiments with Llama 2 7B demonstrate that this method leads to substantial performance gains across multiple reasoning benchmarks, even outperforming larger models like InstructGPT in specific tasks.

Introduction

While LLMs have shown remarkable progress, their complex reasoning often depends on Chain of Thought (CoT)—the ability to decompose a problem into intermediate logical steps. High-quality CoT datasets are difficult to acquire because manual annotation is labor-intensive. Currently, researchers often use "distillation," where a smaller model (e.g., Llama 2) is trained to mimic rationales from a massive teacher model like GPT-4. However, this approach is costly and tethers smaller models to the teacher's inherent biases.

The Self-motivated Learning framework asks: Can a model leverage its own internal logic to bridge the data gap? By generating multiple reasoning paths and using the final answer's correctness as a ground-truth signal, models can autonomously refine their logic through a self-supervised feedback loop.

Methodology: The Self-motivated Learning Framework

The proposed framework consists of a three-stage pipeline designed to bootstrap reasoning performance from standard question-answer datasets.

The three-stage Self-motivated Learning pipeline: Rationale Generation, Rationale Collection, and Model Training.

1. Rationale Generation

In the first stage, the model uses few-shot prompting to generate rationales for questions in existing datasets. Crucially, it is prompted to generate reasoning paths for both correct and incorrect answers. This process involves a loop where the model explains the reasoning and then generates a final answer based on that rationale to verify consistency.

Detailed mechanism of the rationale generation and final answer verification loop.

2. Rationale Collection and Ranking

The framework utilizes an "intrinsic preference" mechanism: a rationale leading to the correct answer is inherently superior to one leading to an incorrect one. Rationales are filtered into "high-quality" and "low-quality" pairs based on answer consistency. This creates a ranked dataset for training without requiring human intervention.

3. Model Training

The training phase involves three distinct steps:

  • Supervised Fine-Tuning (SFT): The base model is tuned on the generated high-quality rationales.
  • Reward Model (RM) Training: A separate reward model is trained to distinguish between the "good" and "bad" rationale pairs identified in the collection stage.
  • Reinforcement Learning (PPO): The model is optimized using Proximal Policy Optimization. To prevent "reward hacking"—where the model generates nonsensical text that satisfies the reward model—the authors implement Correction RL. This strategy combines the reward model's score with a hard check on the final answer's correctness, ensuring the model's logic remains grounded.

Experimental Results

The framework was evaluated using Llama 2 7B across eight diverse reasoning benchmarks, including arithmetic (e.g., GSM8K, SVAMP) and logical/commonsense tasks (e.g., StrategyQA, Date Understanding).

Key Findings

  • Significant Performance Gains: The method achieved an average accuracy increase of 10.68% across all tested datasets for the Llama 2 7B model.
  • Outperforming Larger Models: In several benchmarks, such as MultiArith and StrategyQA, the self-motivated Llama 2 7B outperformed significantly larger proprietary models like text-davinci-002 (InstructGPT).
  • Effectiveness of Correction RL: The hybrid reward approach consistently outperformed simpler RL strategies, proving that grounding rewards in final answer correctness is essential for stabilizing complex reasoning training.
  • Generalizability: Reward models trained on Llama 2 data proved effective even when applied to models fine-tuned on different datasets, suggesting that the framework captures universal traits of logical reasoning.

Discussion and Limitations

Despite its success, the framework faces challenges in commonsense reasoning. In tasks like CommonSenseQA, CoT-style fine-tuning occasionally led to a performance decrease (7% to 15%) compared to direct fine-tuning. This suggests that for intuitive tasks, forcing step-by-step rationales may be counterproductive or that current models' rationales for such tasks are insufficiently robust. Additionally, while the method eliminates annotation costs, the RL stage remains computationally intensive.

Future research will explore scaling this framework to larger models and its potential application in non-reasoning domains such as creative writing and code generation.

Summary updated

BibTeX
@inproceedings{feng2024improving,
  author = {Yunlong Feng and Yang Xu and Libo Qin and Yasheng Wang and Wanxiang Che},
  title = {{Improving Language Model Reasoning with Self-motivated Learning}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2024},
  url = {https://openreview.net/forum?id=zruoUpsg0o},
}
Figure