arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2305.13514cs.CLcs.LG
收藏

小语言模型通过改写大语言模型的输出来提升其性能

Small Language Models Improve Giants by Rewriting Their Outputs

EPFL(洛桑联邦理工学院);HEIG-VD(沃州高等工程学院);HES-SO(瑞士应用科学大学联盟);Google Research(谷歌研究院)

Giorgos Vernikos, Arthur Bražinskas, Jakub Adamek, Jonathan Mallinson, Aliaksei Severyn, Eric Malmi

AI总结:

本研究提出即插即用的小型LM-corrector(LMCor)模型,通过合并大语言模型的少样本候选输出提升其性能,无需微调LLM,效果媲美甚至超越标准微调,且对不同提示鲁棒。

摘要:

尽管大语言模型(LLMs)表现出色,但它们在各类任务中往往落后于专用模型。LLMs仅利用现有训练数据的一小部分进行上下文学习,而任务专用模型则利用完整数据集进行微调。在本研究中,我们解决了无需微调即可利用训练数据提升LLMs性能的问题。我们的方法直接针对LLM的预测结果,无需访问其权重。我们通过少样本提示从LLM生成候选池,并采用一个紧凑模型——LM-corrector(LMCor,语言模型校正器),该模型经过专门训练以合并这些候选结果,从而生成增强的输出。我们在四项自然语言生成任务上的实验表明,即便只有2.5亿参数的小型LMCor模型,也能大幅提升620亿参数LLMs的少样本性能,达到甚至超越标准微调的效果。此外,我们证明了LMCor对不同提示具有鲁棒性,从而减少了大量提示工程的需求。最后,我们展示了LMCor可在推理阶段与不同LLMs无缝集成,作为即插即用模块提升其性能。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑