Explanations from Large Language Models Make Small Reasoners Better

Shiyang Li, Jianshu Chen, Yelong Shen, Zhiyu Chen, Xinlu Zhang, Zekun Li, Hong Wang, Jing Qian, Baolin Peng, Yi Mao, Wenhu Chen, Xifeng Yan

TL;DR

This paper demonstrates that we can significantly boost the reasoning capabilities of small, efficient language models by training them on explanations automatically generated by massive models like GPT-3. By using a multi-task learning framework, a 3-billion parameter T5 model can actually outperform the 175-billion parameter GPT-3 on complex commonsense reasoning tasks.

What Problem Does This Paper Address?

Large Language Models (LLMs) like GPT-3 have shown an incredible ability to "reason" through problems using techniques like Chain-of-Thought (CoT) prompting—essentially thinking out loud before giving an answer. However, these models are gargantuan, making them expensive and slow to deploy in real-world applications.

Smaller Language Models (SLMs) are much more practical for production but typically lack this deep reasoning power. Interestingly, previous research found that training SLMs on human-written explanations didn't help much, likely because crowdsourced explanations are often inconsistent or logically flawed. The authors ask: Can we use LLMs to generate high-quality, consistent explanations to teach smaller models how to reason?

Methods

The researchers developed a pipeline to "distill" reasoning from a large teacher (GPT-3) to a smaller student (T5).

1. Generating Explanations

They explored three ways to get explanations from the LLM:

  • COTE (Chain of Thought with Ejection): The LLM generates an explanation then an answer. The explanation is only kept if the answer is correct.
  • RP (Rationalization Prompting): The LLM is given the correct answer and asked to explain why it is correct.
  • CROP (Hybrid): A hybrid approach that uses COTE when the model is right and falls back to RP when it's wrong, ensuring a full dataset of explanations.

2. Multi-Task Learning (MTL)

Instead of just training the small model to give the right answer, they trained it to perform two tasks simultaneously:

  1. Task 1 (Answer Prediction): Directly predict the answer from the question.
  2. Task 2 (Explanation Generation): Generate the reasoning steps.

They proposed a new variant called MT-CoT, where the model is trained to generate the explanation followed by the answer, mimicking the "thinking process" of the larger model.

Figure 2: The comparison among (a) MT-Re (Hase et al., 2020), (b) MT-Ra (Camburu et al., 2018) and (c) our proposed MT-CoT for multi-task learning with explanations under text-to-text format using T5. Left parts are inputs of T5 and right parts are targets for different multi-task learning setups. Task qta (question to answer) is trained to directly generate answers for all three modes while qtr (question to reason) task is trained to generate reasoning, rationalization and chain of thought for (a) MT-Re, (b) MT-Ra and (c) MT-CoT, respectively.

Datasets

The authors evaluated their approach on three challenging reasoning benchmarks:

  • CommonsenseQA (CSQA): 5-way multiple-choice questions requiring everyday knowledge.
  • StrategyQA: Binary yes/no questions that require multi-hop reasoning strategies.
  • OpenbookQA (OBQA): Multiple-choice questions requiring a mix of provided facts and broad external knowledge.

Key Insights and Ideas

  • LLMs are better teachers than humans (sometimes): Unlike noisy crowdsourced human data, LLM-generated explanations are logically structured in a way that is highly effective for training smaller neural networks.
  • The "Thinking" Sequence Matters: The proposed MT-CoT method (Explanation $\rightarrow$ Answer) proved highly effective. By forcing the model to derive the answer from its own generated explanation, it learns the causal link between reasoning and the final result.
  • Scaling Down, Not Up: The most surprising insight is that a model 60x smaller than GPT-3 can achieve superior accuracy when trained this way. This suggests that "reasoning" isn't just a byproduct of model size, but a skill that can be taught via high-quality data.
  • Few-Shot Efficiency: The benefits of this method are even more dramatic when training data is scarce. In low-data settings (e.g., only 50 training examples), the multi-task approach improved accuracy by up to 8% over standard fine-tuning.

Key Results

The results across all three datasets showed that adding LLM explanations consistently outperformed standard fine-tuning.

  • Beating the Giant: On CommonsenseQA, the T5-3B model using this method achieved 82.47% accuracy, outperforming a fine-tuned GPT-3 (175B) which scored 73.0%, and even beating GPT-3's best prompting results (80.84%).
  • Consistency Across Sizes: The improvements held true for models as small as 60 million parameters (T5-small) up to 3 billion parameters.
  • Human-Approved Reasoning: In head-to-head human evaluations, 58% of the explanations generated by the small T5 model were rated as better than or equal to those generated by the massive GPT-3.

Limitations and Future Work

  • Hyperparameter Sensitivity: The method requires tuning a weight ($\alpha$) to balance the two tasks, which adds computational overhead during training.
  • Text-Only Focus: This study focused on textual commonsense reasoning. The authors note that exploring symbolic reasoning (logic) and arithmetic reasoning is a necessary next step.
  • Bias Inheritance: Since the small models are trained on LLM output, they may inherit the social biases (gender, race, religion) present in the larger models. However, the authors note that their multi-task framework allows developers to disable the "explanation" output in production to mitigate the risk of exposing these biases to users while still benefiting from the improved internal reasoning.

Summary updated

BibTeX
@misc{li2022explanations,
  author = {Shiyang Li and Jianshu Chen and Yelong Shen and Zhiyu Chen and Xinlu Zhang and Zekun Li and Hong Wang and Jing Qian and Baolin Peng and Yi Mao and Wenhu Chen and Xifeng Yan},
  title = {{Explanations from Large Language Models Make Small Reasoners Better}},
  year = {2022},
  eprint = {2210.06726},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.06726},
}
Figure