arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.04157cs.CLcs.LG
收藏

FLEx:基于少样本语言解释的语言建模

FLEx: Language Modeling with Few-shot Language Explanations

Georgia Institute of Technology(佐治亚理工学院);Microsoft(微软)

Adar Avsian, Christopher Richardson, Anirudh Sundar, Larry Heck

AI总结:

FLEx通过少量解释性示例改进语言模型,有效减少错误并优于链式推理方法。

摘要:

语言模型在解决数学问题和开放领域问答等任务上已表现出色。然而,它们仍然会犯错,且这些错误往往在相关查询中重复出现。自然语言解释有助于纠正这些错误,但大规模收集这些解释可能不可行,尤其是在需要专家标注者的情况下。为了解决这个问题,我们引入了FLEx(Few-shot Language Explanations),一种通过少量解释性示例来改进模型行为的方法。FLEx通过基于嵌入的聚类选择具有代表性的模型错误,验证相关解释能纠正这些错误,并将它们总结成一个提示前缀,在推理时前置。该总结引导模型在新输入上避免类似错误,而无需修改模型权重。我们在CounterBench、GSM8K和ReasonIF上评估了FLEx。我们发现FLEx在所有三个数据集上均优于链式推理(CoT)提示,并且能够减少多达83%的CoT剩余错误。

英文摘要:

Language models have become effective at a wide range of tasks, from math problem solving to open-domain question answering. However, they still make mistakes, and these mistakes are often repeated across related queries. Natural language explanations can help correct these errors, but collecting them at scale may be infeasible, particularly in domains where expert annotators are required. To address this issue, we introduce FLEx ($\textbf{F}$ew-shot $\textbf{L}$anguage $\textbf{Ex}$planations), a method for improving model behavior using a small number of explanatory examples. FLEx selects representative model errors using embedding-based clustering, verifies that the associated explanations correct those errors, and summarizes them into a prompt prefix that is prepended at inference-time. This summary guides the model to avoid similar errors on new inputs, without modifying model weights. We evaluate FLEx on CounterBench, GSM8K, and ReasonIF. We find that FLEx consistently outperforms chain-of-thought (CoT) prompting across all three datasets and reduces up to 83\% of CoT's remaining errors.

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

↑