自适应检索有助于增强大语言模型的推理能力——但主要是当它不被使用时
Adaptive Retrieval helps Reasoning in LLMs -- but mostly if it's not used
AI总结:
本研究发现自适应检索在某些情况下反而有助于提升大语言模型的推理能力,表明模型在无需检索时可能表现更佳。
摘要:
大型语言模型(LLMs)在复杂推理任务中常常因静态参数化知识而表现不佳,导致幻觉现象并在数学等专业领域表现不佳。本研究探讨了增强生成模型的基本原则:将检索视为一种动态上下文学习。我们测试了一种自适应检索增强架构,其中LLM代理在推理过程中主动决定何时查询外部知识库。我们比较了这种自适应策略与标准的链式思维(CoT)基线和静态检索方法在GSM8K和MATH-500基准测试中的表现。尽管我们的实验表明静态检索不如CoT,但自适应检索显示出有趣的行为:包含检索结果的跟踪显示比CoT稍差,而不包含检索的跟踪实际上比CoT更好。这表明:(a)检索很少帮助推理(我们展示了几个反例,例如使用有用的定理)和(b)主动不使用检索是良好模型性能的指示。此外,我们发现模型会根据问题的难度调整检索频率,强化了决定检索是关键的元认知信号。代理自我评估其知识并选择性地与外部信息互动的能力是构建更稳健和可靠生成模型的关键原则。
英文摘要:
Large Language Models (LLMs) often falter in complex reasoning tasks due to their static, parametric knowledge, leading to hallucinations and poor performance in specialized domains like mathematics. This work explores a fundamental principle for enhancing generative models: treating retrieval as a form of dynamic in-context learning. We test an adaptive retrieval-augmented architecture where an LLM agent actively decides when to query an external knowledge base during its reasoning process. We compare this adaptive strategy against a standard Chain-of-Thought (CoT) baseline and a static retrieval approach on the GSM8K and MATH-500 benchmarks. Although our experiments show that static retrieval is inferior to CoT, the adaptive retrieval shows interesting behavior: While traces including retrieved results show slightly worse performance compared to CoT, traces that do not include retrieval actually perform better compared to CoT. This suggests that: (a) retrieval only rarely helps reasoning (we show a few counterexamples, e.g. using useful theorems) and (b) actively not using retrieval is indicative of good model performance. Furthermore, we find that the model scales its retrieval frequency with the difficulty of the problem, reinforcing that the decision to retrieve is a crucial metacognitive signal. The agent's ability to self-assess its knowledge and selectively engage with external information represents a key principle for building more robust and reliable generative models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。