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

MUSE:面向科学编码智能体的结合选择性运行时注入的多级记忆框架

MUSE: Multi-Level Memory with Selective Runtime Injection for Scientific Coding Agents

University of Science and Technology of China(中国科学技术大学);Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院)

Haoran Jin, Defu Lian, Xiting Wang, Hong Xie

AI总结:

提出MUSE框架,通过多级记忆构建与LLM门控的选择性运行时注入,在四类科学编码基准上优于基线,验证了多级设计与门控注入的有效性,实现经验有效复用。

摘要:

历史经验可在多个层面指导科学编码,但任务级检索可能会遗漏在执行过程中变得相关的实现经验。我们提出MUSE,一种面向科学编码智能体的结合多级记忆与选择性运行时注入的记忆管理框架。MUSE从历史轨迹构建全局、方法级和实现级记忆:初始化时,智能体接收全局记忆和与问题匹配的方法级记忆;执行过程中,当前交互用于检索实现级记忆,由大语言模型(LLM)门控选择相关经验并生成特定审查建议,或跳过注入。在涵盖数值问题求解、内核优化和科学软件修复的四个基准测试中,MUSE在所有评估指标上均优于检索和记忆基线;消融实验验证了多级设计和门控注入的有效性,迁移实验表明该记忆在内核基准间仍具实用性。这些结果表明,多级记忆与选择性运行时注入可实现科学编码中经验的有效复用,代码可在指定URL获取。

英文摘要:

Historical experience can guide scientific coding at multiple levels, but task-level retrieval may miss implementation lessons that become relevant during execution. We introduce MUSE, a memory management framework combining multi-level memory with selective runtime injection for scientific coding agents. MUSE builds global, approach-level, and implementation-level memory from historical trajectories. At initialization, the agent receives global memory and problem-matched approach-level memory. During execution, current interactions are used to retrieve implementation-level memory. An LLM gate selects relevant experience and generates specific review advice, or skips injection. Across four benchmarks spanning numerical problem solving, kernel optimization, and scientific software repair, MUSE outperforms retrieval and memory baselines on all evaluation metrics. Ablations support the multi-level design and gated injection, while transfer experiments show that memory remains useful across kernel benchmarks. These results show that multi-level memory and selective runtime injection enable effective reuse of experience in scientific coding. Code is available at https://github.com/hr-jin/MUSE.

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

↑