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

DevFeed: [MUSE: Multi-Level Memory with Selective Runtime Injection for Scientific Coding Agents](<https://devfeed.tech/articles/muse-multi-level-memory-with-selective-runtime-injection-for-scientific-coding-agents-108061.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.38332>)

Author: Haoran Jin, Defu Lian, Xiting Wang, Hong Xie

Published: 2026-10-30T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [agentic-coding](<https://devfeed.tech/topics/agentic-coding.md>), [Retrieval Augmented Generation (RAG)](<https://devfeed.tech/topics/retrieval-augmented-generation-rag.md>)

Tags: [abstract](<https://devfeed.tech/tags/abstract.md>), [agents](<https://devfeed.tech/tags/agents.md>), [coding](<https://devfeed.tech/tags/coding.md>), [coding-agents](<https://devfeed.tech/tags/coding-agents.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [memory](<https://devfeed.tech/tags/memory.md>), [muse](<https://devfeed.tech/tags/muse.md>), [runtime](<https://devfeed.tech/tags/runtime.md>)

## AI overview

MUSE aims to make scientific coding agents reuse experience at the point it becomes relevant. It builds global, approach-level, and implementation-level memories from past trajectories. At startup, the agent receives global and problem-matched approach guidance; during execution, current interactions retrieve implementation lessons, which an LLM gate turns into review advice or skips. The abstract reports that MUSE outperformed retrieval and memory baselines across all metrics on four benchmarks covering numerical problem solving, kernel optimization, and scientific software repair. Ablations support the multi-level design and gated injection, and transfer experiments indicate memory remains useful across kernel benchmarks. The excerpt gives no metric values or implementation details.

## Source excerpt

arXiv:2610.38332v1 Announce Type: cross Abstract: 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.