Beyond Context Limits: Subconscious Threads for Long-Horizon Reasoning
这篇论文提出了Thread Inference Model (TIM),一种基于Transformer的LLM,以及TIMRUN,一个支持长距离推理的推理运行时,以解决大型语言模型在推理准确性和效率方面的瓶颈。
更新于 2025-08-04。作者:Hongyin Luo、Nathaniel Morgan、Tina Li、Derek Zhao、Ai Vy Ngo、Philip Schroeder、Lijie Yang、Assaf Ben-Kish、Jack O'Brien、James Glass。
中文摘要
为了打破大型语言模型(LLMs)在推理准确性和效率方面的上下文限制,我们提出了线程推理模型(TIM),这是一系列专门用于递归和分解问题解决的LLMs,以及TIMRUN,这是一个推理运行时,它使得超出上下文限制的长期结构化推理成为可能。共同而言,托管在TIMRUN上的TIM支持几乎无限的工怍内存和多跳工具调用,在单个语言模型推理中克服了输出限制、位置嵌入约束和GPU内存瓶颈。通过将自然语言建模为既按长度又按深度衡量的推理树,而不是线性序列,实现了性能的提升。推理树由基于我们2025年提出的概念的任务、递归子任务和结论组成。在生成过程中,我们维持一个工作内存,仅保留与最相关上下文标记的关键值状态,这些标记通过基于规则的子任务剪枝机制进行选择,从而在整个推理过程中实现位置嵌入和GPU内存页面的重用。实验结果表明,即使操纵高达90%的KV缓存,我们的系统仍能保持高推理吞吐量。它还能在数学任务上提供准确的推理,并处理需要长期推理和多跳工具使用的信
英文摘要
To break the context limits of large language models (LLMs) that bottleneck reasoning accuracy and efficiency, we propose the Thread Inference Model (TIM), a family of LLMs trained for recursive and decompositional problem solving, and TIMRUN, an inference runtime enabling long-horizon structured reasoning beyond context limits. Together, TIM hosted on TIMRUN supports virtually unlimited working memory and multi-hop tool calls within a single language model inference, overcoming output limits, positional-embedding constraints, and GPU-memory bottlenecks. Performance is achieved by modeling natural language as reasoning trees measured by both length and depth instead of linear sequences. The reasoning trees consist of tasks with thoughts, recursive subtasks, and conclusions based on the concept we proposed in Schroeder et al, 2025. During generation, we maintain a working memory that retains only the key-value states of the most relevant context tokens, selected by a rule-based subtask-pruning mechanism, enabling reuse of positional embeddings and GPU memory pages throughout reasoning. Experimental results show that our system sustains high inference throughput, even when manipulating up to 90% of the KV cache in GPU memory. It also delivers accurate reasoning on mathematical tasks and handles information retrieval challenges that require long-horizon reasoning and multi-hop tool use.
解读
一句话总结
这篇论文提出了Thread Inference Model (TIM),一种基于Transformer的LLM,以及TIMRUN,一个支持长距离推理的推理运行时,以解决大型语言模型在推理准确性和效率方面的瓶颈。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:大型语言模型(LLMs)在处理复杂任务时,如多跳推理和工具使用,存在推理准确性和效率的瓶颈,因为它们受限于上下文窗口、隐藏状态大小和GPU内存容量。
- 现有方案不足:现有的LLMs难以维持长期推理轨迹和协调复杂工作流程,限制了鲁棒性和内存密集型应用的发展。多代理架构虽然可以分解问题,但引入了额外的开发负担和运行时延迟。
- 研究目标:设计一种新的LLM和推理运行时,以实现超越上下文限制的长期推理,同时提高推理准确性和效率。
问题2:论文的核心创新点是什么?
- 技术创新:TIM通过将推理轨迹建模为递归子任务树,实现了对复杂任务的分解和结构化推理。
- 方法改进:TIMRUN通过动态释放不再需要的子任务内存,并重用这些内存,实现了高效的推理和工具使用。
- 优势:TIM和TIMRUN结合,实现了几乎无限的长期推理,同时提高了解码吞吐量和内存效率。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在MATH500、MMLU-STEM500、AMC 2022、AMC 2023、AIME 2024和GPQADiamond等基准测试中评估TIM模型的推理能力。
- 性能提升:TIM模型在多个任务上实现了与基线方法相当的性能,同时使用了更少的缓存槽。
- 对比结果:TIM在数据commons QA和Browsecomp等基准测试中,无需复杂的代理框架或特定任务的微调,就达到了与强基线相当的性能。
问题4:这个研究的实际应用价值是什么?
- 应用场景:TIM和TIMRUN可以用于构建能够处理复杂任务的智能代理,如多跳推理和工具使用。
- 实施建议:TIM和TIMRUN可以集成到现有的LLM服务中,以提供更强大的推理能力。
- 局限与展望:虽然TIM和TIMRUN在实验中表现出色,但它们仍然面临一些挑战,如内存管理和工具集成的效率。未来的研究可以探索更有效的内存管理策略和更广泛的工具集成。
来源
机器可读索引:llms.txt