arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.06974cs.CLcs.LG
收藏

MILES:用于自我改进的语言模型推理的具有可学习选择的模块化指令内存

MILES: Modular Instruction Memory with Learnable Selection for Self-Improving LLM Reasoning

University of New South Wales(新南威尔士大学)

Ruilin Tong, Dong Gong

AI总结:

研究针对LLMs测试时推理问题,提出MILES框架,通过动态扩展内存及正确性优化的内存组合,利用模块化内存单元与可学习选择头实现粗到细检索机制,实验表明该框架在性能、效率及权衡上表现出色。

摘要:

大型语言模型(LLMs)在测试时越来越多地通过额外计算来改进推理,但大多数现有工作孤立地处理每个问题。当问题顺序出现时,积累可重复使用的经验可以进一步提高性能。现有的基于内存的方法要么存储对新问题泛化性差的全解决方案模板,要么使用未针对最终答案正确性进行优化的启发式步骤级选择。学习选择策略需要大规模训练数据和固定动作空间,不适用于内存增量扩展且只有有限监督的测试时设置。我们提出了MILES框架,它在现实的测试时约束下动态逐步扩展内存并应用正确性优化的内存组合。MILES维护由子目标嵌入和子指令的不对称对组成的模块化内存单元,每个单元都与一个可学习的选择头相关联。这种内存结构实现了从粗到细的检索机制。大量实验证明了其有效性、鲁棒性和可转移性。

英文摘要:

Large language models (LLMs) increasingly improve their reasoning at test time via additional computation, yet most existing works treat each problem in isolation. When problems arrive sequentially, accumulating reusable experience across them can further improve performance. Existing memory-based methods either store whole-solution templates that generalize poorly to novel problems or use heuristic step-level selection that is not optimized for final-answer correctness. Learning selection policies requires large-scale training data and fixed action spaces, making such approaches unsuitable for test-time settings where memory expands incrementally and only limited supervision is available. We propose MILES (Modular Instruction Memory with LEarnable Selection), a framework that dynamically expands step-wise memory and applies correctness-optimized memory composition under realistic test-time constraints. MILES maintains modular memory units consisting of asymmetric pairs of sub-goal embeddings and sub-instructions, each associated with a learnable selection head. This memory structure enables a coarse-to-fine retrieval mechanism: The coarse level enables memory expansion and collects supervision for training selection heads from confident samples, while the fine stage applies learned selection heads to rerank coarse-level candidates and guide reasoning for uncertain samples. MILES achieves self-improvement by using its own confidence as the learning signal at test time, or given feedback such as labeled data in an offline setting. MILES consistently matches or outperforms prior methods while achieving superior accuracy-efficiency tradeoffs. Extensive experiments demonstrate its effectiveness, robustness, and transferability.

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

↑