递归语言模型与不确定性:自我反思程序搜索在长上下文中的意外效果
Recursive Language Models Meet Uncertainty: The Surprising Effectiveness of Self-Reflective Program Search for Long Context
AI总结:
本文提出SRLM框架,通过引入不确定性感知的自我反思,提升长上下文处理能力,实验显示其在多种任务中优于现有基线,且无需递归机制。
摘要:
长上下文处理仍是语言模型的核心挑战:即使扩展上下文窗口,模型仍难以可靠地提取、推理和利用长上下文信息。最近的递归语言模型(RLM)通过代理方式将长上下文分解为递归子调用,通过程序交互进行推理。尽管有前景,RLM的成功关键在于如何选择这些上下文交互程序,这一问题仍未深入研究。本文研究此问题,提出SRLM框架,通过引入不确定性感知的自我反思,增强程序上下文交互。SRLM利用三种内在信号:自我一致性、推理长度和口头化信心,作为模型内部不确定性的互补指标,用于评估和比较候选上下文交互程序。广泛实验显示,SRLM在多种基准数据集、上下文长度和基础模型上均优于现有基线,其在相同时间预算下比RLM提升高达22%。研究发现,递归本身并非RLM性能的主要驱动因素,简单的自我反思程序搜索可匹配或超越RLM,无需自我查询或显式递归机制。对于模型窗口内的上下文长度,递归RLM往往比基础模型表现更差,而SRLM在短和长上下文上均获得一致收益。此外,RLM在语义密集型任务中效果较差,而SRLM的自我反思提供更有效的语义信号,引导推理。
英文摘要:
Long-context handling remains a core challenge for language models: even with extended context windows, models often fail to reliably extract, reason over, and use the information across long contexts. Recent works like Recursive Language Models (RLM) have approached this challenge by agentic way of decomposing long contexts into recursive sub-calls through programmatic interaction at inference. While promising, the success of RLM critically depends on how these context-interaction programs are selected, which has remained largely unexplored. In this paper, we study this problem and introduce SRLM, a framework that augments programmatic context interaction with uncertainty-aware Self-Reflection. SRLM leverages three intrinsic signals: self consistency, reasoning length, and verbalized confidence. These serve as complementary indicators of a model's internal uncertainty, and the model uses them to evaluate and compare candidate context-interaction programs. Extensive experiments across diverse benchmark datasets, context lengths, and backbone models, show that SRLM consistently outperforms state-of-the-art baselines, yielding up to 22% improvement over RLM under the same time budget. Our findings show that recursion itself is not the primary driver of performance in RLM, and a simple self-reflective program search can match or surpass RLM without requiring self-query or explicit recursion mechanisms. We find that for context lengths within the model's window, RLMs with recursion often degrade performance relative to the base model, whereas SRLM yields consistent gains across both short and long contexts. We also find that RLM is less effective in tasks with semantically intensive nature, where heuristic program search is insufficient and broader contextual understanding is required, while self-reflection in SRLM provides a semantic signal that better steers reasoning in these scenarios.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。