2025-02-24 · 专家 · 自然语言处理 · 机器学习

SIFT: Grounding LLM Reasoning in Contexts via Stickers

本文提出了一种名为SIFT的方法,通过模型生成的贴纸来增强大型语言模型在推理过程中的上下文理解能力。

更新于 2025-02-24。作者:Zihao Zeng、Xuyao Huang、Boxiu Li、Zhijie Deng。

中文摘要

本文指出,在大型语言模型的推理过程中,对上下文的误解可能成为一个重大问题,这一过程不仅包括像Llama3.2-3B-Instruct这样的小型模型,还包括像DeepSeek-R1这样的尖端模型。例如,在“每公斤10美元”的短语中,LLM可能无法识别“每”代表“每个”,从而导致计算错误。我们提出了一种新颖的、训练后方法,称为** Stick to the Facts (SIFT)**,来解决这个问题。SIFT利用增加的推理时间计算量,将LLM的推理根植于上下文中。SIFT的核心是*Sticker*,由模型本身生成,以明确强调上下文中的关键信息。给定精心制作的Sticker,SIFT生成两个预测——一个来自原始查询,另一个来自添加了Sticker的查询。如果它们不同,Sticker将通过*正向*优化(更好地将提取的事实与查询对齐)和*逆向*生成(符合模型固有的倾向)进行逐次细化,以获得更忠诚的推理结果。跨不同模型(从30亿到1000亿+)和基准(例如,GSM8K、MATH-500)的研究显示,性能得到了一致的提升。值得注意的是,SIFT将DeepSeek-R1在AIME2024上的pass@1准确率从78.33%提高到**85.67**%,在开源社区中确立了新的最高水平。代码可在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.

解读

一句话总结

本文提出了一种名为SIFT的方法,通过模型生成的贴纸来增强大型语言模型在推理过程中的上下文理解能力。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源