Small Language Models Improve Giants by Rewriting Their Outputs

Giorgos Vernikos, Arthur Bražinskas, Jakub Adamek, Jonathan Mallinson, Aliaksei Severyn +1 more
5/22/2023
cs.CLcs.LG

No official code found. Best implementation: GeorgeVern/lmcor (12 stars, last commit 2024-04-20).

Abstract

Despite the impressive performance of large language models (LLMs), they often lag behind specialized models in various tasks. LLMs only use a fraction of the existing training data for in-context learning, while task-specific models harness the full dataset for fine-tuning. In this work, we tackle the problem of leveraging training data to improve the performance of LLMs without fine-tuning. Our approach directly targets LLM predictions without requiring access to their weights. We create a pool of candidates from the LLM through few-shot prompting and we employ a compact model, the LM-corrector (LMCor), specifically trained to merge these candidates to produce an enhanced output. Our experiments on four natural language generation tasks demonstrate that even a small LMCor model (250M) substantially improves the few-shot performance of LLMs (62B), matching and even outperforming standard fine-tuning. Furthermore, we illustrate the robustness of LMCor against different prompts, thereby minimizing the need for extensive prompt engineering. Finally, we show that LMCor can be seamlessly integrated with different LLMs at inference, serving as a plug-and-play module to improve their performance.

View on arXivView PDF

Code Implementations(1)

GeorgeVern/lmcorCommunity100%

Code for the EACL 2024 paper: "Small Language Models Improve Giants by Rewriting Their Outputs"

121PythonJan 25, 20242 years ago
data-to-text-generationgrammatical-error-correctionlarge-language-modelsmachine-translationparameter-efficient-fine-tuning+1 more

Similar Papers

Cite this paper

@article{vernikos2023small,
  title  = {Small Language Models Improve Giants by Rewriting Their Outputs},
  author = {Giorgos Vernikos and Arthur Bražinskas and Jakub Adamek and Jonathan Mallinson and Aliaksei Severyn and Eric Malmi},
  year   = {2023},
  eprint = {2305.13514},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.13514v2}
}

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

Discussion