SPARSEFIT: Few-shot Prompting with Sparse Fine-tuning for Jointly Generating Predictions and Natural Language Explanations

Jesus Solano, Mardhiyah Sanni, Oana-Maria Camburu, Pasquale Minervini
5/22/2023
cs.CLcs.AI

No official code found. Best implementation: SanniM3/predicitons_with_explanations (4 stars, Apache-2.0, last commit 2024-08-15).

Abstract

Models that generate natural language explanations (NLEs) for their predictions have recently gained increasing interest. However, this approach usually demands large datasets of human-written NLEs for the ground-truth answers at training time, which can be expensive and potentially infeasible for some applications. When only a few NLEs are available (a few-shot setup), fine-tuning pre-trained language models (PLMs) in conjunction with prompt-based learning has recently shown promising results. However, PLMs typically have billions of parameters, making full fine-tuning expensive. We propose SparseFit, a sparse few-shot fine-tuning strategy that leverages discrete prompts to jointly generate predictions and NLEs. We experiment with SparseFit on three sizes of the T5 language model and four datasets and compare it against existing state-of-the-art Parameter-Efficient Fine-Tuning (PEFT) techniques. We find that fine-tuning only 6.8% of the model parameters leads to competitive results for both the task performance and the quality of the generated NLEs compared to full fine-tuning of the model and produces better results on average than other PEFT methods in terms of predictive accuracy and NLE quality.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Computationally efficient methods for jointly generation natural language predictions with explanations

41HTML, ShellApr 2, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{solano2023sparsefit,
  title  = {SPARSEFIT: Few-shot Prompting with Sparse Fine-tuning for Jointly Generating Predictions and Natural Language Explanations},
  author = {Jesus Solano and Mardhiyah Sanni and Oana-Maria Camburu and Pasquale Minervini},
  year   = {2023},
  eprint = {2305.13235},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.13235v3}
}

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/2305.13235.svg)](https://codeofpaper.com/paper/2305.13235)

Discussion