MARS: Modular Agent with Reflective Search for Automated AI Research
Jiefeng Chen, Bhavana Dalvi Mishra, Jaehyun Nam, Rui Meng, Tomas Pfister, Jinsung Yoon
TL;DR
MARS reframes automated AI research as a constrained, long-horizon software-repository problem and introduces three core innovations: Budget-Aware Planning via cost-constrained Monte Carlo Tree Search (MCTS), Modular Construction through a Design-Decompose-Implement pipeline, and Comparative Reflective Memory to distill high-signal lessons. The framework explicitly balances performance gains against execution costs, manages architectural complexity with modularization, and resolves credit attribution by analyzing differences between solutions. Across the MLE-Bench suite, MARS achieves state-of-the-art results among open-source approaches and demonstrates strong cross-branch knowledge transfer, validating its capacity to generalize insights across search paths. The work also provides ablations, cost analyses, and prompts to facilitate reproducibility and future research in autonomous AI discovery.
Abstract
Automating AI research differs from general software engineering due to computationally expensive evaluation (e.g., model training) and opaque performance attribution. Current LLM-based agents struggle here, often generating monolithic scripts that ignore execution costs and causal factors. We introduce MARS (Modular Agent with Reflective Search), a framework optimized for autonomous AI research. MARS relies on three pillars: (1) Budget-Aware Planning via cost-constrained Monte Carlo Tree Search (MCTS) to explicitly balance performance with execution expense; (2) Modular Construction, employing a "Design-Decompose-Implement" pipeline to manage complex research repositories; and (3) Comparative Reflective Memory, which addresses credit assignment by analyzing solution differences to distill high-signal insights. MARS achieves state-of-the-art performance among open-source frameworks on MLE-Bench under comparable settings, maintaining competitiveness with the global leaderboard's top methods. Furthermore, the system exhibits qualitative "Aha!" moments, where 63% of all utilized lessons originate from cross-branch transfer, demonstrating that the agent effectively generalizes insights across search paths.
