OPT-R: Exploring the Role of Explanations in Finetuning and Prompting for Reasoning Skills of Large Language Models

Badr AlKhamissi, Siddharth Verma, Ping Yu, Zhijing Jin, Aslı Çelikyılmaz, Mona Diab

Abstract

We conduct a thorough investigation into the reasoning capabilities of Large Language Models (LLMs), focusing specifically on the Open Pretrained Transformers (OPT) models as a representative of such models. Our study entails finetuning three different sizes of OPT on a carefully curated reasoning corpus, resulting in two sets of finetuned models: OPT-R, finetuned without explanations, and OPT-RE, finetuned with explanations. We then evaluate all models on 57 out-of-domain tasks drawn from the Super-NaturalInstructions benchmark, covering 26 distinct reasoning skills, utilizing three prompting techniques. Through a comprehensive grid of 27 configurations and 6,156 test evaluations, we investigate the dimensions of finetuning, prompting, and scale to understand the role of explanations on different reasoning skills. Our findings reveal that having explanations in the fewshot exemplar has no significant impact on the model’s performance when the model is finetuned, while positively affecting the non-finetuned counterpart. Moreover, we observe a slight yet consistent increase in classification accuracy as we incorporate explanations during prompting and finetuning, respectively. Finally, we offer insights on which reasoning skills benefit the most from incorporating explanations during finetuning and prompting, such as Numerical (+20.4%) and Analogical (+13.9%) reasoning, as well as skills that exhibit negligible or negative effects.

Introduction

While Large Language Models (LLMs) have demonstrated remarkable emergent reasoning abilities, they frequently struggle with tasks requiring multi-step logic, such as arithmetic or commonsense deduction. Current research primarily explores two avenues to address these shortcomings: Prompting (e.g., Chain-of-Thought, providing in-context examples of reasoning) and Finetuning (training models on datasets that include explicit rationales).

However, the interaction between these two approaches remains under-explored. Does a model finetuned on explanations still benefit from them in a prompt? How do these benefits scale with model size? This study systematically maps the interaction between scale, prompting, and finetuning to determine where explanations provide the most significant performance gains.

Experimental Design

The researchers utilized the Open Pretrained Transformer (OPT) family to construct a comprehensive $3 \times 3 \times 3$ experimental grid across three critical dimensions:

  1. Scale: Three model sizes—1.3B, 6.7B, and 13B parameters.
  2. Finetuning: Three training states—Vanilla (base OPT), OPT-R (finetuned on reasoning tasks without explanations), and OPT-RE (finetuned with explanations).
  3. Prompting: Three styles—Zero-shot, Few-shot (examples only), and Few-shot-E (examples with explanations).
The three-dimensional experimental space: Scale, Finetuning, and Prompting.

The models were finetuned on a curated corpus of eight reasoning datasets (including AQUA-RAT, GSM8K, and StrategyQA) and evaluated on 57 out-of-domain tasks from the Super-NaturalInstructions benchmark. These tasks span 26 distinct reasoning skills, such as abductive, causal, and scientific reasoning, to test generalization. To ensure robust evaluation, a rank-based classification method was employed, where models ranked potential answers using multiple scoring functions to mitigate inherent scoring biases.

Key Results and Analysis

The study's findings highlight a complex relationship between training and prompting strategies.

The "Explanations Gap" and Finetuning

For the vanilla OPT model, adding explanations to few-shot prompts (Few-shot-E) significantly boosts performance. However, for finetuned models (OPT-R and OPT-RE), the benefit of providing explanations in the prompt becomes negligible. This suggests that the finetuning process allows the model to "internalize" reasoning patterns, making explicit prompt-based hints redundant.

Accuracy across different prompting styles, model sizes, and finetuning strategies.

Skill-Specific Impacts

Reasoning performance is not uniform across domains. Numerical reasoning saw the most dramatic improvement (+20.4% accuracy) with explanation-based finetuning, followed by Analogical reasoning (+13.9%). Conversely, for "Argument" or "Commonsense" reasoning, vanilla models sometimes outperformed finetuned ones, indicating a potential "forgetting" effect or distribution shift during finetuning that negatively impacts these specific skills.

Overall Performance and Scaling

In head-to-head comparisons, OPT-RE (finetuned with explanations) consistently matched or slightly outperformed OPT-R (finetuned without them), achieving an average accuracy of 44.86% vs. 43.68% in few-shot settings. Both significantly outperformed the vanilla OPT (41.82%). While performance generally scaled with model size in few-shot scenarios, this trend was less consistent in zero-shot evaluations on out-of-domain tasks.

Discussion and Limitations

The results suggest that finetuning with explanations (OPT-RE) is a "safe bet" for improving reasoning, providing consistent, if sometimes modest, gains. However, several limitations remain:

  • Model Scope: The study focused exclusively on the OPT architecture; results may vary for models like LLaMA or PaLM.
  • Scale Ceiling: The 13B parameter limit may precede the emergence of more complex reasoning properties typically seen in 100B+ parameter models.
  • Evaluation Method: The classification-based approach measures answer accuracy but does not evaluate the quality or logical correctness of the explanations generated by the model.

Future research should investigate why certain reasoning skills are negatively impacted by finetuning and explore more diverse training data to improve generalization across all reasoning domains.

Summary updated

Abstract

We conduct a thorough investigation into the reasoning capabilities of Large Language Models (LLMs), focusing specifically on the Open Pretrained Transformers (OPT) models as a representative of such models. Our study entails finetuning three different sizes of OPT on a carefully curated reasoning corpus, resulting in two sets of finetuned models: OPT-R, finetuned without explanations, and OPT-RE, finetuned with explanations. We then evaluate all models on 57 out-of-domain tasks drawn from the Super-NaturalInstructions benchmark, covering 26 distinct reasoning skills, utilizing three prompting techniques. Through a comprehensive grid of 27 configurations and 6,156 test evaluations, we investigate the dimensions of finetuning, prompting, and scale to understand the role of explanations on different reasoning skills. Our findings reveal that having explanations in the fewshot exemplar has no significant impact on the model’s performance when the model is finetuned, while positively affecting the non-finetuned counterpart. Moreover, we observe a slight yet consistent increase in classification accuracy as we incorporate explanations during prompting and finetuning, respectively. Finally, we offer insights on which reasoning skills benefit the most from incorporating explanations during finetuning and prompting, such as Numerical (+20.4%) and Analogical (+13.9%) reasoning, as well as skills that exhibit negligible or negative effects.
BibTeX
@misc{alkhamissi2023opt,
  author = {Badr AlKhamissi and Siddharth Verma and Ping Yu and Zhijing Jin and Aslı Çelikyılmaz and Mona Diab},
  title = {{OPT-R: Exploring the Role of Explanations in Finetuning and Prompting for Reasoning Skills of Large Language Models}},
  year = {2023},
  eprint = {2305.12001},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.12001},
}
Figure