Lune

ACL Findings2026

Demystify the Role of Memory in Machine Learning Engineering Agents

Xinyu Zhao, Junpeng Wang, Yuzhong Chen, Menghai Pan, Chin-Chia Michael Yeh, Jiarui Sun, Yan Zheng, Mahashweta Das, Tianlong Chen

Abstract

While memory is a core component in agent systems, its behavioral impact in complex, longhorizon domains like machine learning engineering (MLE) remains poorly understood. Unlike short, reactive exchanges, MLE agents solve tasks through cycles of experimentation and improvement where past errors can inform future success. This paper presents a systematic study dissecting how memory influences agent behavior and performance across diverse MLE challenges. We first introduce a dynamic coding memory designed to capture and reuse debugging experiences, and integrate it into two representative agent paradigms: a sequential, chain-based agent that mirrors human-like iterative refinement, and a parallel, tree-based agent that performs broad, self-exploratory search in the code space. Our central finding is that the role of memory is contingent on the agent's underlying architecture. For chainbased agents, memory proves highly beneficial, enabling them to avoid recurring mistakes and engage in more coherent, iterative refinement, which significantly improves reliability and task success. In contrast, for treebased search agents, memory introduces a critical trade-off: it enhances procedural stability at the cost of constraining search diversity, which can prematurely narrow exploration and lead to suboptimal final solutions. These findings reveal a fundamental trade-off between procedural reliability and solution innovation modulated by memory, offering insights for designing more effective and robust MLE agents.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • MLAgentBench: Evaluating Language Agents on Machine Learning Experimentation cites WebArena: A Realistic Web Environment for Building Autonomous Agents
  • MLAgentBench: Evaluating Language Agents on Machine Learning Experimentation cites Reflexion: language agents with verbal reinforcement learning
  • WebArena: A Realistic Web Environment for Building Autonomous Agents cites Tree of Thoughts: Deliberate Problem Solving with Large Language Models
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on18

  1. Reflexion: language agents with verbal reinforcement learningNoah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan et al.NeurIPS 2023 · 5,828 citations
  2. Tree of Thoughts: Deliberate Problem Solving with Large Language ModelsShunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran et al.NeurIPS 2023 · 5,068 citations
  3. WebArena: A Realistic Web Environment for Building Autonomous AgentsShuyan Zhou, Frank F. Xu, Hao Zhu, Xuhui Zhou et al.ICLR 2024 · 1,197 citations
  4. A-Mem: Agentic Memory for LLM AgentsWujiang Xu, Zujie Liang, Kai Mei, Hang Gao et al.NeurIPS 2025 · 1,138 citations
  5. MLAgentBench: Evaluating Language Agents on Machine Learning ExperimentationQian Huang, Jian Vora, Percy Liang, Jure LeskovecICML 2024 · 209 citations

Related papers

  1. How Memory Management Impacts LLM Agents: An Empirical Study of Experience-Following BehaviorZidi Xiong, Yuping Lin, Wenya Xie, Pengfei He et al.ACL 2026 · 64 citations
  2. Investigating Component Contributions in Multi-Agent ML SystemsJunsung Kim, Ilia Mireskandari, Seungwan Son, Yifan Zhou et al.ICML 2026
  3. Remember Me, Refine Me: A Dynamic Procedural Memory Framework for Experience-Driven Agent EvolutionZouying Cao, Jiaji Deng, Li Yu, Weikang Zhou et al.ACL Findings 2026 · 2 citations
  4. Memp: Exploring Agent Procedural MemoryRunnan Fang, Yuan Liang, Xiaobin Wang, Jialong Wu et al.ACL Findings 2026
  5. Controllable Memory Usage: Balancing Anchoring and Innovation in Long-Term Human-Agent InteractionZisu Huang, Muzhao Tian, Xiaohua Wang, Jingwen Xu et al.ACL 2026
Dusk over the sea between two cliffs drawn in fine vertical lines