Small Language Models Improve Giants by Rewriting Their Outputs
Preprint
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.Keywords
All Related Versions
This publication has 30 references indexed in Scilit:
- High Quality Rather than High Model Probability: Minimum Bayes Risk Decoding with Neural MetricsTransactions of the Association for Computational Linguistics, 2022
- How Can We Know When Language Models Know? On the Calibration of Language Models for Question AnsweringTransactions of the Association for Computational Linguistics, 2021
- LM-Critic: Language Models for Unsupervised Grammatical Error Correction2021
- The Power of Scale for Parameter-Efficient Prompt Tuning2021
- A Simple Recipe for Multilingual Grammatical Error Correction2021
- Prefix-Tuning: Optimizing Continuous Prompts for Generation2021
- Making Pre-trained Language Models Better Few-shot Learners2021
- It’s Not Just Size That Matters: Small Language Models Are Also Few-Shot Learners2021
- AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Prompts2020
- BLEURT: Learning Robust Metrics for Text Generation2020