Show Me How It's Done: The Role of Explanations in Fine-Tuning Language Models

Mohamad Ballout, Ulf Krumnack, Gunther Heidemann, Kai-Uwe Kuehnberger
2/12/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: BalloutAI/Fine-tuning-with-Explanation (0 stars, last commit 2025-05-02).

Abstract

Our research demonstrates the significant benefits of using fine-tuning with explanations to enhance the performance of language models. Unlike prompting, which maintains the model's parameters, fine-tuning allows the model to learn and update its parameters during a training phase. In this study, we applied fine-tuning to various sized language models using data that contained explanations of the output rather than merely presenting the answers. We found that even smaller language models with as few as 60 million parameters benefited substantially from this approach. Interestingly, our results indicated that the detailed explanations were more beneficial to smaller models than larger ones, with the latter gaining nearly the same advantage from any form of explanation, irrespective of its length. Additionally, we demonstrate that the inclusion of explanations enables the models to solve tasks that they were not able to solve without explanations. Lastly, we argue that despite the challenging nature of adding explanations, samples that contain explanations not only reduce the volume of data required for training but also promote a more effective generalization by the model. In essence, our findings suggest that fine-tuning with explanations significantly bolsters the performance of large language models.

View on arXivView PDF

Code Implementations(1)

This code is for the accepted work in the ACML conference titled: Show Me How It's Done: The Role of Explanations in Fine-Tuning Language Models

00PythonSep 27, 20231 years ago

Similar Papers

Cite this paper

@article{ballout2024show,
  title  = {Show Me How It's Done: The Role of Explanations in Fine-Tuning Language Models},
  author = {Mohamad Ballout and Ulf Krumnack and Gunther Heidemann and Kai-Uwe Kuehnberger},
  year   = {2024},
  eprint = {2402.07543},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.07543v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.07543.svg)](https://codeofpaper.com/paper/2402.07543)

Discussion