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

ReFT:语言模型的表示微调

ReFT: Representation Finetuning for Language Models

Stanford University(斯坦福大学)

Zhengxuan Wu, Aryaman Arora, Zheng Wang, Atticus Geiger, Dan Jurafsky, Christopher D. Manning, Christopher Potts

AI总结:

本文提出表示微调(ReFT)方法,通过编辑冻结模型的隐藏表示实现参数高效微调,其中LoReFT在多个推理和GLUE任务上优于LoRA,且参数效率高15-65倍。

摘要:

参数高效微调(PEFT)方法旨在通过更新少量权重来适应大型神经模型。然而,许多先前的可解释性工作表明,表示编码了丰富的语义信息,这表明编辑表示可能是一个更强大的替代方案。我们通过开发一系列表示微调(ReFT)方法来探索这一假设。ReFT方法在冻结的基础模型上操作,并学习对隐藏表示的特定任务干预。我们定义了ReFT家族的一个强实例,即低秩线性子空间ReFT(LoReFT),并确定了该方法的一种消融变体,该变体以牺牲部分性能换取更高的效率。这两种方法都是现有PEFT的直接替代品,并且学习的干预比LoRA参数效率高15倍至65倍。我们在八个常识推理任务、四个算术推理任务、指令微调和GLUE基准上展示了LoReFT。在所有评估中,我们的ReFT方法在效率和性能之间取得了最佳平衡,并且几乎总是优于最先进的PEFT方法。我们在https://github.com/stanfordnlp/pyreft公开发布了一个通用的ReFT训练库。

英文摘要:

Parameter-efficient finetuning (PEFT) methods seek to adapt large neural models via updates to a small number of weights. However, much prior interpretability work has shown that representations encode rich semantic information, suggesting that editing representations might be a more powerful alternative. We pursue this hypothesis by developing a family of Representation Finetuning (ReFT) methods. ReFT methods operate on a frozen base model and learn task-specific interventions on hidden representations. We define a strong instance of the ReFT family, Low-rank Linear Subspace ReFT (LoReFT), and we identify an ablation of this method that trades some performance for increased efficiency. Both are drop-in replacements for existing PEFTs and learn interventions that are 15x--65x more parameter-efficient than LoRA. We showcase LoReFT on eight commonsense reasoning tasks, four arithmetic reasoning tasks, instruction-tuning, and GLUE. In all these evaluations, our ReFTs deliver the best balance of efficiency and performance, and almost always outperform state-of-the-art PEFTs. We release a generic ReFT training library publicly at https://github.com/stanfordnlp/pyreft.

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

↑