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

高精度、少言 (HALT):通过能力对齐微调实现可靠的LLM

High Accuracy, Less Talk (HALT): Reliable LLMs through Capability-Aligned Finetuning

University of Oxford(牛津大学);Anthropic(Anthropic公司);Meta;University of Washington(华盛顿大学)

Tim Franzmeyer, Archie Sravankumar, Lijuan Liu, Yuning Mao, Rui Hou, Sinong Wang, Jakob N. Foerster, Luke Zettlemoyer, Madian Khabsa

AI总结:

HALT通过能力对齐微调提高LLM的响应正确性,使模型在四个领域中正确性提升至87%

摘要:

大型语言模型 (LLMs) 当前会响应每一个提示。然而,当它们缺乏知识或能力时,可能会产生错误答案——这被称为幻觉问题。我们提出在训练后对LLM进行微调,使其只在确信正确性时生成内容,否则(部分)放弃。具体而言,我们的方法HALT生成了能力对齐的微调数据,这些数据编码了模型可以和不能可靠生成的内容。我们通过将预训练LLM的响应分成事实片段(原子陈述或推理步骤),并利用真实信息来识别错误片段来生成这些数据。我们通过删除错误片段或用“此处不确定”替换它们来实现能力对齐的微调响应,根据可调阈值允许实践者在响应完整性和响应片段的平均正确性之间进行权衡。我们使用HALT对四个开源模型进行微调,用于撰写传记、数学、编程和医学领域,针对三种不同的权衡阈值。HALT有效地在响应完整性与正确性之间进行权衡,平均提高了响应片段的正确性15%,同时在响应的F1分数(完整性和正确性的平均)方面相比相关基线提高了4%。通过为HALT调优以获得最高正确性,我们训练了一个可靠的Llama3-70B模型,其在所有四个领域中的正确性从51%提高到87%,同时保持了标准微调时53%的响应完整性。

英文摘要:

Large Language Models (LLMs) currently respond to every prompt. However, they can produce incorrect answers when they lack knowledge or capability -- a problem known as hallucination. We instead propose post-training an LLM to generate content only when confident in its correctness and to otherwise (partially) abstain. Specifically, our method, HALT, produces capability-aligned post-training data that encodes what the model can and cannot reliably generate. We generate this data by splitting responses of the pretrained LLM into factual fragments (atomic statements or reasoning steps), and use ground truth information to identify incorrect fragments. We achieve capability-aligned finetuning responses by either removing incorrect fragments or replacing them with "Unsure from Here" -- according to a tunable threshold that allows practitioners to trade off response completeness and mean correctness of the response's fragments. We finetune four open-source models for biography writing, mathematics, coding, and medicine with HALT for three different trade-off thresholds. HALT effectively trades off response completeness for correctness, increasing the mean correctness of response fragments by 15% on average, while resulting in a 4% improvement in the F1 score (mean of completeness and correctness of the response) compared to the relevant baselines. By tuning HALT for highest correctness, we train a single reliable Llama3-70B model with correctness increased from 51% to 87% across all four domains while maintaining 53% of the response completeness achieved with standard finetuning.

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

↑