Aligning Large and Small Language Models via Chain-of-Thought Reasoning

Leonardo Ranaldi, André FreitasEACL 2024

Introduction

Chain-of-Thought (CoT) prompting—the ability of a model to "think step-by-step"—is widely considered an "emergent property" typically found in models with over 60 billion parameters. For users constrained by hardware or cost, this creates a "reasoning gap": Small Language Models (SLMs) often produce illogical steps or hallucinations when asked to explain their work. This paper introduces a method to bridge this gap by transferring complex reasoning capabilities from Large Language Models (LLMs) to SLMs using "Instruction-tuning-CoT."

Methodology: Instruction-tuning-CoT

The researchers propose a two-phase approach to distill reasoning capabilities from larger "teacher" models to smaller "student" models.

  1. The Annotation Phase (Teacher): Robust LLMs are prompted in a zero-shot CoT setting (using the "Let’s think step by step" suffix) to generate a dataset of questions, multi-step rationales, and final answers.
  2. The Instruction-Tuning Phase (Student): The SLMs undergo Supervised Fine-Tuning (SFT) using these teacher-generated rationales.
Overview of the Instruction-tuning-CoT framework where large teacher models guide smaller student models through step-by-step reasoning.

A key novelty is the investigation of In-Family Alignment, comparing the effectiveness of a teacher from the same model family (e.g., Llama-2-70b teaching Llama-2-7b) versus a different family (e.g., GPT-3.5 teaching Llama-2-7b).

Key Insights and Results

The study evaluated models across six benchmarks covering commonsense, physical, social, and mathematical reasoning.

The "In-Family" Advantage

One of the most striking findings is that SLMs often learn better from their own "big brothers." Llama-2-7b performed better when instructed by Llama-2-70b than when instructed by the technically more powerful GPT-3.5. This suggests that shared architectural biases make knowledge transfer more efficient within the same model family.

Performance Gains

Instruction-tuned SLMs consistently outperformed their non-tuned baselines. For example, on the OpenBookQA (OBQA) benchmark, Llama-2-7b improved from a baseline of 53.6% to 75.5% after being taught by its 70B sibling. Similarly, on MultiArith, Llama-2-7b jumped from 69.5% to 79.2%.

Performance comparison across six benchmarks (OBQA, PIQA, GSM8K, CSQA, SIQA, MultiArith) showing significant improvements for instruction-tuned models.

Quality and Generalization

Tuning on "Truthful CoT" (correct rationales) significantly outperformed tuning on a general mix of teacher outputs, highlighting the importance of high-quality distillation. Furthermore, models tuned on specific reasoning tasks showed improved performance on unrelated benchmarks like MMLU, suggesting they learned a general "reasoning protocol."

Conclusion and Future Work

While this method successfully enables models as small as 7B parameters to exhibit CoT capabilities, limitations remain. The study was restricted to English-language benchmarks, and the use of closed-source "black box" teachers like GPT-3.5 complicates the analysis of transfer success. Future work will focus on cross-lingual alignment and ensuring that the models' reasoning is truly faithful rather than just mimicking the appearance of logic.

Summary updated

BibTeX
@inproceedings{ranaldi2024aligning,
  author = {Leonardo Ranaldi and André Freitas},
  title = {{Aligning Large and Small Language Models via Chain-of-Thought Reasoning}},
  booktitle = {EACL},
  year = {2024},
}
Figure