Memory Transfer Learning: How Memories are Transferred Across Domains in Coding Agents
Abstract
Memory transfer learning enables cross-domain code generation by leveraging unified memory pools, with performance improvements achieved through high-level abstraction rather than low-level code traces.
Memory-based self-evolution has emerged as a promising paradigm for coding agents. However, existing approaches typically restrict memory utilization to homogeneous task domains, failing to leverage the shared infrastructural foundations, such as runtime environments and programming languages, that exist across diverse real-world coding problems. To address this limitation, we investigate Memory Transfer Learning (MTL) by harnessing a unified memory pool from heterogeneous domains. We evaluate performance across 6 coding benchmarks using four memory representations, ranging from concrete traces to abstract insights. Our experiments demonstrate that cross-domain memory improves average performance by 3.7\%, primarily by transferring meta-knowledge, such as validation routines, rather than task-specific code. Importantly, we find that abstraction dictates transferability; high-level insights generalize well, whereas low-level traces often induce negative transfer due to excessive specificity. Furthermore, we show that transfer effectiveness scales with the size of the memory pool, and memory can be transferred even between different models. Our work establishes empirical design principles for expanding memory utilization beyond single-domain silos. Project page: https://memorytransfer.github.io/
Community
TL;DR: We investigate cross-domain memory transfer for coding agents and show that leveraging a unified memory pool from heterogeneous benchmarks improves average performance by 3.7%. Abstraction is the key: high-level insights generalize across domains while low-level traces induce negative transfer.
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- MemCollab: Cross-Agent Memory Collaboration via Contrastive Trajectory Distillation (2026)
- Structurally Aligned Subtask-Level Memory for Software Engineering Agents (2026)
- Generalizable Self-Evolving Memory for Automatic Prompt Optimization (2026)
- Hybrid Self-evolving Structured Memory for GUI Agents (2026)
- M$^\star$: Every Task Deserves Its Own Memory Harness (2026)
- Self-Evolving LLM Memory Extraction Across Heterogeneous Tasks (2026)
- Mem$^2$Evolve: Towards Self-Evolving Agents via Co-Evolutionary Capability Expansion and Experience Distillation (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
the really interesting bit here is that abstraction governs transferability: high level insights generalize across domains, while raw traces can actually hurt. that aligns with meta-learning intuition, and it's nice to see it tested across four memory representations and six benchmarks. my main curiosity is how you retrieve when the memory pool contains conflicting insights from different domains; is there a learned weighting or a prune step to avoid diluting useful meta-knowledge? btw the arxivlens breakdown helped me parse the method details, they do a solid walk through memory representations here: https://arxivlens.com/PaperView/Details/memory-transfer-learning-how-memories-are-transferred-across-domains-in-coding-agents-5979-6be052bc
Get this paper in your agent:
hf papers read 2604.14004 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper