arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.14337cs.LGcs.CL
收藏

PENCIL:短记忆中的长思考

PENCIL: Long Thoughts with Short Memory

Toyota Technological Institute at Chicago(丰田技术研究所(芝加哥))

Chenxiao Yang, Nathan Srebro, David McAllester, Zhiyuan Li

AI总结:

PENCIL通过在自回归生成中引入递归清理中间思考的归约机制,以更短上下文和更少计算实现更深推理,在实验和理论上均优于传统思维链。

摘要:

虽然最先进的LLM已经展现出使用长思维链(CoT)来提升推理的巨大前景,但在测试时将其扩展到更具挑战性的问题上,从根本上受到次优内存使用的限制——中间计算会在上下文中无限累积,即使它们对未来的思考已不再需要。我们引入了PENCIL,它在自回归生成过程中融入了一种新颖的归约机制,该机制基于从训练中学习到的模式递归地清理中间思考。通过迭代地生成和擦除思考,PENCIL能够使用更短的上下文和更少的计算进行更深入的思考,从而解决更难的问题。实验上,我们观察到PENCIL比CoT显著更有效且更高效。例如,我们展示了一个具有25M参数的小型Transformer和2048上下文长度的PENCIL解决了爱因斯坦谜题——这一任务对GPT-4等更大的模型也构成挑战。理论上,我们证明了PENCIL能够通过以最优的时间和空间复杂度模拟任意图灵机来执行通用高效计算,因此可以解决任意可计算任务,而这些任务对于普通CoT而言是难以处理的。

英文摘要:

While state-of-the-art LLMs have demonstrated great promise of using long Chains-of-Thought (CoT) to boost reasoning, scaling it up to more challenging problems at test-time is fundamentally limited by suboptimal memory usage -- intermediate computations accumulate indefinitely in context even when no longer needed for future thoughts. We introduce PENCIL, which incorporates a novel reduction mechanism into the autoregressive generation process that recursively cleans up intermediate thoughts based on patterns learned from training. By iteratively generating and erasing thoughts, PENCIL can think deeper to solve harder problems using shorter context and less compute. Empirically, we observe PENCIL is significantly more effective and efficient than CoT. For example, we demonstrate PENCIL with a small 25M-parameter transformer and 2048 context length solves Einstein's puzzle -- a task that challenges much larger models like GPT-4. Theoretically, we prove PENCIL can perform universal efficient computation by simulating any Turing machines with optimal time and space complexity, and thus can solve arbitrary computable tasks that are otherwise intractable for vanilla CoT.

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

↑