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, Asli Celikyilmaz, Mona T. Diab

Abstract

In this paper, we conduct a thorough investigation into the reasoning capabilities of Large Language Models (LLMs), focusing specifically on the Open Pretrained Transformers (OPT) 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 evaluate these models on 57 out-of-domain tasks from the SUPER-NATURALINSTRUCTIONS benchmark, covering 26 distinct reasoning skills. 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. Our findings reveal that while explanations in few-shot exemplars have a significant impact on non-finetuned models, they become largely redundant for models already finetuned on reasoning data. We observe a slight but consistent increase in accuracy when incorporating explanations during finetuning, particularly for Numerical (+20.4%) and Analogical (+13.9%) reasoning.

Introduction

While "Chain-of-Thought" (CoT) prompting—asking a model to "think step-by-step"—has become a standard technique to improve LLM performance, the underlying mechanics of why and when these explanations help remain under-explored. This research addresses a critical gap: Is it more effective to include explanations in the training data (finetuning), in the few-shot examples (prompting), or both? Furthermore, how do these benefits scale with model size, and do they apply universally across different types of reasoning?

Methodology: The Three-Dimensional Grid

To answer these questions, the study employed a massive evaluation framework involving 6,156 evaluations across a "Three-Dimensional Grid" of variables:

  1. Scale: Three model sizes of the Open Pretrained Transformer (OPT): 1.3B, 6.7B, and 13B parameters.
  2. Finetuning: Three variants, including the base Vanilla OPT, OPT-R (finetuned on reasoning datasets without explanations), and OPT-RE (finetuned with explanations).
  3. Prompting: Three levels of interaction: Zero-shot, Few-shot (no explanations), and Few-shot-E (with explanations).
The experimental design explores three dimensions: model scale, finetuning strategy, and prompting technique.

The training corpus consisted of eight reasoning datasets, including AQuA-RAT, GSM8K, and StrategyQA. For evaluation, the models were tested on 57 out-of-domain tasks to ensure they were generalizing reasoning skills rather than simply memorizing task-specific patterns.

Key Results and Insights

The Redundancy of Explanations

A primary finding of the study is that for models already finetuned on reasoning (OPT-R and OPT-RE), adding explanations to the few-shot prompt had almost no impact on performance. In contrast, for the vanilla OPT model, adding explanations to the prompt provided a significant boost. This suggests that finetuning effectively "bakes in" the ability to follow reasoning patterns, rendering prompt-based explanations redundant.

The "Explanation Boost" and Scale

Comparing OPT-RE to OPT-R revealed a slight but consistent increase in classification accuracy across most tasks. This indicates that exposure to the "why" during the training phase helps the model generalize better to unseen reasoning challenges. While performance generally increased with model size for few-shot prompting, this trend was less consistent in zero-shot settings for out-of-domain tasks.

Comparison of accuracy across different model sizes, finetuning variants (OPT, OPT-R, OPT-RE), and prompting methods (Fewshot-E, Fewshot, Zeroshot).

Reasoning is Not Monolithic

The impact of finetuning varied significantly by skill. While it dramatically improved Numerical Reasoning (+20.4%) and Analogical Reasoning (+13.9%), it occasionally hindered performance in areas like Argument Reasoning and Commonsense Reasoning. For specific math-heavy tasks like "Counting," OPT-RE (31.3%) significantly outperformed both vanilla OPT (19.8%) and OPT-R (13.1%), highlighting the critical role of training on explanations for quantitative tasks.

Conclusion and Future Work

This investigation demonstrates that while explanations provide a consistent performance boost, their utility is highly dependent on the model's prior training and the specific reasoning skill required. Future work should expand this study to other model architectures (e.g., Llama, Falcon) and larger parameter scales (70B+), where emergent reasoning properties might further alter the role of explanations. Additionally, understanding why finetuning on reasoning can degrade performance in certain areas like Commonsense reasoning remains a vital next step for refining instruction-tuning techniques.

Summary updated

Abstract

In this paper, 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 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 Asli Celikyilmaz and Mona T. 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