SIFT:通过Stickers将大语言模型推理锚定在上下文语境中
SIFT: Grounding LLM Reasoning in Contexts via Stickers
AI总结:
针对大语言模型推理时易误解上下文的问题,提出后训练方法SIFT,通过模型自生成的Sticker锚定上下文,结合前向优化与逆向生成迭代修正,在多模型多基准上实现性能提升,刷新开源模型AIME2024准确率纪录。
摘要:
本文指出,上下文误解是大语言模型推理过程中的一个显著问题,涵盖从Llama3.2-3B-Instruct这类较小模型到DeepSeek-R1这类前沿模型的各类LLM。例如,在短语“每公斤10美元”中,LLM可能无法识别“per”意为“每一”,进而导致计算错误。为此,我们提出了一种名为**Stick to the Facts(SIFT,紧扣事实)**的新型后训练方法来解决该问题。SIFT通过增加推理时的计算量,将LLM的推理锚定在上下文语境中。SIFT的核心是*Sticker(标注贴)*,它由模型自身生成,用于明确强调上下文中的关键信息。在得到精心生成的Sticker后,SIFT会生成两个预测结果——一个基于原始查询生成,另一个基于添加了Sticker的增强查询生成。若两个结果存在差异,就通过*前向优化*(使提取的事实与查询更匹配)和*逆向生成*(契合模型的内在倾向)对Sticker进行迭代优化,以获得更符合事实的推理结果。在不同规模模型(3B到100B+参数)和基准测试(如GSM8K、MATH-500)上的研究表明,SIFT能持续提升模型性能。值得注意的是,SIFT将DeepSeek-R1在AIME2024上的pass@1准确率从78.33%提升至**85.67%**,创下了开源社区的新SOTA。代码可在https://github.com/zhijie-group/SIFT获取。
英文摘要:
This paper identifies the misinterpretation of the context can be a significant issue during the reasoning process of large language models, spanning from smaller models like Llama3.2-3B-Instruct to cutting-edge ones like DeepSeek-R1. For example, in the phrase "10 dollars per kilo," LLMs might not recognize that "per" means "for each," leading to calculation errors. We introduce a novel, post-training approach called **Stick to the Facts (SIFT)** to tackle this. SIFT leverages increasing inference-time compute to ground LLM reasoning in contexts. At the core of SIFT lies the *Sticker*, which is generated by the model itself to explicitly emphasize the key information within the context. Given the curated Sticker, SIFT generates two predictions -- one from the original query and one from the query augmented with the Sticker. If they differ, the Sticker is sequentially refined via *forward* optimization (to better align the extracted facts with the query) and *inverse* generation (to conform with the model's inherent tendencies) for more faithful reasoning outcomes. Studies across diverse models (from 3B to 100B+) and benchmarks (e.g., GSM8K, MATH-500) reveal consistent performance improvements. Notably, SIFT improves the pass@1 accuracy of DeepSeek-R1 on AIME2024 from 78.33% to **85.67**%, establishing a new state-of-the-art in the open-source community. The code is available at https://github.com/zhijie-group/SIFT.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。