arXiv:2607.25090cs.AIcs.LG2026-07

分层代理框架让大模型高效完成复杂长周期机器学习任务

Matryoshka Agent: Unfolding Sub-Agents for Long-Horizon Machine Learning Engineering

论文配图:Matryoshka Agent: Unfolding Sub-Agents for Long-Horizon Machine Learning Engineering
图 1 · 摘自论文原文
  • 用高层统筹与低层执行的分层结构,分离策略与执行负担
  • 使小模型(Qwen3-4B)性能逼近大模型(o4-mini),大模型提升36.7%
  • 适合需要长期调试与迭代的自动化机器学习工程场景

机器学习工程任务需在昂贵且反馈驱动的环境中进行长时间决策,涉及反复调试与优化。构建单一智能体面临上下文过长、探索空间巨大、算力受限等挑战。为此,我们提出马特罗什卡代理(Matryoshka Agent)——一种统一的分层代理框架。该框架将智能体问题求解分解为协同层级:高层协调器维护紧凑的长期探索状态并发出战略指令,底层子代理通过标准化工具接口直接与环境交互执行具体方案。此设计分离了策略探索与高成本执行,显著降低长上下文推理压力,支持高效迭代优化。我们还开发了高效的训练范式。在多种模型类型与规模的机器学习工程任务上实验表明,该框架对长周期任务具有有效性与可扩展性。特别地,使 Qwen3-4B-Instruct 的协调器性能接近 o4-mini;应用于 Qwen3-30B-Coder 时,相对性能最高提升 36.7%。

原文摘要 · Abstract (English)

Machine learning engineering (MLE) tasks require long-horizon decision making over iterative solution debugging and refinement, under expensive and feedback-driven environment interactions. Developing and training a monolithic agent for such tasks is fundamentally challenging, as it must simultaneously manage extremely long and noisy contexts, explore vast solution spaces, and remain effective under limited model capacity and computational budgets. To address these challenges, we propose Matryoshka Agent, a unified hierarchical agent framework for complex long-horizon tasks. Matryoshka Agent decomposes agentic problem solving into a coordinated hierarchy of decision making and execution: a high-level Orchestrator maintains compact, long-horizon exploration states and issues strategic instructions, while lower-level Sub-Agents execute concrete solution attempts through direct environment interaction, mediated by standardized Tool interface. This design decouples strategic exploration from costly execution, substantially reducing the burden of long-context reasoning and enabling efficient iterative refinement. We further develop an efficient training paradigm for Matryoshka Agent. Experimental results on a broad range of MLE tasks with diverse model types and scales demonstrate that Matryoshka Agent is an effective and scalable paradigm for long-horizon MLE tasks and complex agentic problem solving. Notably, Matryoshka Agent enables Qwen3-4B-Instruct to reach Orchestrator performance comparable to o4-mini. Applying Matryoshka Agent to Qwen3-30B-Coder results in at most 36.7% relative performance gain.

智能体系统长周期任务分层架构机器学习工程

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。