arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2507.16784cs.CL
收藏

超越上下文限制:用于长程推理的潜意识线程

Beyond Context Limits: Subconscious Threads for Long-Horizon Reasoning

MIT CSAIL(麻省理工学院计算机科学与人工智能实验室);Subconscious Systems Technologies, Inc.(Subconscious Systems Technologies公司);Princeton University(普林斯顿大学);Tel Aviv University(特拉维夫大学)

Hongyin Luo, Nathaniel Morgan, Tina Li, Derek Zhao, Ai Vy Ngo, Philip Schroeder, Lijie Yang, Assaf Ben-Kish, Jack O'Brien, James Glass

AI总结:

本文提出线程推理模型TIM及其运行时TIMRUN,通过将自然语言建模为推理树并结合子任务剪枝的工作记忆机制,突破LLM上下文限制,实现长程推理与多跳工具调用。

摘要:

为了突破大型语言模型(LLMs)在推理准确性和效率方面所受到的上下文限制瓶颈,我们提出了线程推理模型(TIM),这是一个经过递归和分解式问题求解训练的LLM系列,以及TIMRUN,一个能够在上下文限制之外实现长程结构化推理的推理运行时。TIM部署在TIMRUN上,共同支持在单次语言模型推理中实现几乎无限的工作记忆和多跳工具调用,从而克服输出限制、位置嵌入约束和GPU内存瓶颈。其性能的实现方式是将自然语言建模为以长度和深度同时衡量的推理树,而非线性序列。推理树由带有思考的任务、递归子任务以及基于我们在Schroeder等人(2025)中提出的概念的结论组成。在生成过程中,我们维护一个工作记忆,仅保留最相关上下文token的键值状态,这些token由基于规则的子任务剪枝机制选择,从而能够在整个推理过程中复用位置嵌入和GPU内存页。实验结果表明,即使在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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑