Self-Training with Direct Preference Optimization Improves Chain-of-Thought Reasoning

Tianduo Wang, Shichen Li, Wei LuACL 2024

Presented at ACL 2024, this research offers a compelling alternative to the "bigger is better" trend in artificial intelligence. While the prevailing strategy for boosting small model performance involves "distilling" knowledge from massive models like GPT-4, this paper demonstrates that small models can significantly improve their reasoning capabilities through a clever combination of self-training and preference optimization.

The Challenge of Reasoning in Small Models

Small language models (LMs) typically struggle with "Chain-of-Thought" (CoT) reasoning—the ability to decompose complex problems into intermediate logical steps. To address this, researchers often employ Knowledge Distillation (KD), where a massive "teacher" model (e.g., PaLM or Codex) generates reasoning chains for a small "student" to mimic.

However, KD has significant drawbacks: it is expensive to query proprietary models, creates a dependency on closed-source systems, and requires massive computational resources (FLOPs) to generate distillation data. This paper explores whether a small model can improve its own reasoning using only its own outputs and a limited set of human-labeled data.

The DPO-ST Methodology

The authors introduce DPO-augmented Self-Training (DPO-ST), a pipeline designed to enhance reasoning in models with fewer than 1 billion parameters. The process consists of three main phases:

  1. Warm-up: The base model (e.g., Flan-T5) is fine-tuned on a small set of human-labeled math problems (SFT).
  2. The DPO Step: The model generates multiple reasoning paths for a question. Paths leading to the correct answer are labeled "winners," while incorrect paths are "losers." The model is then trained using Direct Preference Optimization (DPO) to prefer winning paths, helping it internalize the logic that leads to success.
  3. The SFT Step: The DPO-tuned model generates a new, high-quality "pseudo-labeled" dataset. The original base model is then retrained on this new data, and the process repeats iteratively.
The DPO-ST iterative pipeline showing the flow from SFT to DPO training and pseudo-label generation.

Additionally, the authors implemented a Batch Decoding with Calculator feature. By integrating a Python-based calculator via a LogitsProcessor, they allow for high-speed batch inference, overcoming the common failure of small models in simple arithmetic.

Key Results and Efficiency

The DPO-ST method achieves state-of-the-art math reasoning performance for small-scale models with significantly lower computational costs than traditional knowledge distillation.

  • Performance vs. Compute: As shown in the performance analysis, the Flan-T5-Large (780M) model achieves approximately 40% accuracy on the GSM8K benchmark. This matches or exceeds the performance of models distilled from 540B parameter giants like PaLM, while requiring a fraction of the compute cost.
  • Scaling to Llama-3: When applied to Llama-3-8b, the method reached an impressive 68.8% accuracy on GSM8K, matching much larger models.
  • Inference Speed: The batch-compatible calculator provided a 19.9x speedup over existing tool-augmented methods like Calcformer at a batch size of 32.
GSM8K Performance v.s. Compute cost, highlighting the superior efficiency of the proposed method compared to distillation and Calcformer.

Insights and Limitations

A key insight of this work is that DPO can serve as a "rationale refiner." While typically used for human alignment, here it acts as a logical filter that forces the model to recognize patterns leading to correct answers. This proves that models under 1B parameters are indeed capable of effective self-training when provided with the right optimization objective.

Despite these gains, the authors note that the method's power could be further amplified by using larger, more diverse sets of unlabeled questions. Furthermore, while highly effective for math, future work is needed to determine if DPO-ST generalizes to tasks without objective ground truths, such as creative writing, where identifying "winning" reasoning paths is more subjective.

Summary updated

BibTeX
@inproceedings{wang2024self,
  author = {Tianduo Wang and Shichen Li and Wei Lu},
  title = {{Self-Training with Direct Preference Optimization Improves Chain-of-Thought Reasoning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.643},
}
Figure