Manuscript Offprint

arXiv:2610.13494

Humanize MLE Agents: Multi-Agent Session Alternation Beyond Single-Agent Limits

Changye Li, Zijian Zhang, Muheng Li, Yiduo Pang, Tingjun Wu, Menghan Li, Yitong Liu, Hongkai Guo, Mengchi Chen, Chenyu He, Kaisheng Ma, Wei Xu, Song Han, Sihao Liu, Ligeng Zhu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Existing LLM-based agent approaches for long-horizon machine learning engineering (MLE) often use context engineering, implemented through custom harnesses that manage tools, skills, and accumulated experience. However, we find that as single-session execution lengthens, the agent's reasoning intensity declines alongside slowing progress, summarized as long-horizon deceleration, and the benefits of these custom harnesses vanish as the underlying model improves, summarized as harness staleness. These findings suggest that their benefits may not persist across versions, which motivates a workflow-level approach in which agents build on one another's work across sessions. We model these alternating agent sessions as a context-reset semi-Markov decision process (CR-SMDP) and establish sufficient conditions for alternation to exceed single-agent reference limits, derive an explicit experiment-budget bound, and characterize when session caps preserve this advantage. Guided by this analysis, we introduce Humanize MLE Agents (HMA), which alternates two agents on a shared workspace, limits each session to at most k experiments and resets the context between sessions, without additional task-specific harness or prior knowledge supplements. Across 75 Kaggle tasks in MLE-bench, HMA reaches a state-of-the-art any-medal rate of 78.2%, exceeding the strongest open-source baseline by 8.0 points with a quarter of its time budget. Moreover, among six configurations spanning five heterogeneous agent pairs, HMA improves any-medal rate over the constituent baselines by 6.4 points on average, demonstrating cross-pair generality. A supplementary case on kernel optimization reaches 878 cycles, within 1.6% of the community leaderboard leader, demonstrating applicability beyond MLE.

Code: https://github.com/humanfia/hma

1 INTRODUCTION

LLM-based agents tackle machine learning engineering (MLE) through repeated experiments: writing training code, running it, and evaluating candidate solutions (Chan et al., 2025; Toledo et al., 2025; Karpathy, 2026). For long-horizon tasks, producing a working solution is only the beginning: the agent must keep finding ways to improve it. As further gains become harder to find, the agent is expected to spend more tokens reasoning about the limitations of the current solution and deciding the next action. In our experiment across six models, however, mean output tokens per response—a proxy for reasoning intensity—decline over time as score gains diminish (Figure 2). We refer to this phenomenon as long-horizon deceleration and analyze its implications for prior agent design.

Existing approaches often seek to sustain improvement through context engineering, supplying Markdown instructions, skills, and accumulated knowledge to guide an agent's next steps (Zhu et al., 2026; Du et al., 2026; Karpathy, 2026; Rajasekaran et al., 2025). However, guidance that helps one model need not help its successor. For example, OpenAI recommends rewriting AGENTS.md, skills, and task prompts when upgrading models (Provencher, 2026), while Anthropic advises removing instructions for checks that newer models can already perform on their own (Anthropic, 2026a). As

(A) Prior Failure Phenomena

  1. Long-horizon Deceleration

Single-agent goal run

X0→X1→X2→…X_{0} \rightarrow X_{1} \rightarrow X_{2} \rightarrow \ldots

Declining Response Length and Score

Figure

— Score — Mean output tokens per response

Reasoning effort declines as research proceeds.

  1. Harness Staleness

— Native agent -- w/ agent harness

Score

Helpful

No gain / harmful

Model Capability

Weaker Model

Stronger Model

Harness gains vanish as models improve.

(B) HMA: Alternative Optimization with Fixed k-Interruption

  1. System Overview: Agent Session as Option oi=(Fi,πi,βi)o_i = (\mathcal{F}_i, \pi_i, \beta_i)

Fi\mathcal{F}_i: Initiation Set πi\pi_i: Agent Policy βi\beta_i: Termination Rule

Overall policy μ:oA1→oB1→⋯\mu: o_{A1} \to o_{B1} \to \cdots

Option A

Agent A

Humanize Framework

Interrupt after k steps

Switch agent + reset context

Archives all evaluated candidates Ei\mathcal{E}_i

Option B

Agent B

Task state Xi=(Wi,Ei,ci)X_i = (W_i, E_i, c_i)

E: Reserved Candidate;

cic_i: Agent Context; W: Shared Workspace; E\mathcal{E}: All Candidates {Ei}i=1N\{E_i\}_{i=1}^N

Review( E,E−1,tend\mathcal{E}, E_{-1}, t_{end})

At budget end

Workflow design generalizes across model generations.

Final Result E^\widehat{E}

  1. Theoretical View: Context-Reset Semi-MDP Formulation

Option A

Option B

Repeat to budget N

X0⟶X1⟶…⟶Xk⟶Xk+1⟶…⟶X2k⟶…⟶XNX_{0} \longrightarrow X_{1} \longrightarrow \ldots \longrightarrow X_{k} \longrightarrow X_{k+1} \longrightarrow \ldots \longrightarrow X_{2k} \longrightarrow \ldots \longrightarrow X_{N}

Alternating agents: Continued exploration

Single Agent: Rapid Convergence

New State for A

Beyond single-model endpoint

OA1O_{A1}

Early endpoint

OB1O_{B1}

OANO_{AN}

OBNO_{BN}

Complementary models can open new search states.

Figure 1: HMA overview. (A) Declining output tokens per response accompany diminishing score gains, indicating decelerating single-agent exploration; harness gains can vanish or reverse as models improve. (B) HMA alternates native agents after at most k experiments, resetting context while preserving shared work and candidates for final review. The motor analogy illustrates options A and B alternately energizing shared state XiX_i toward the final result E^\widehat{E}. The CR-SMDP view captures how complementary options can extend exploration beyond single-agent limits.

model capabilities improve, guidance that once compensated for their limitations can thus become redundant or counterproductive. We observe a related pattern in our comparison of three custom MLE harnesses—systems that manage a model's tools, context, and execution loop (Zhu et al., 2026; Du et al., 2026; Zhao et al., 2026). Nevertheless, our comparison shows that the relative benefits of specialized harnesses diminish or reverse as the base model improves, even under longer execution budgets (Table 1). We refer to this decline in relative performance as harness staleness, which indicates the limitations of custom harness design.

These limitations motivate workflow-level coordination across agent sessions, each defined as an agent's execution from context initialization to termination. In MLE, code, trained models, and evaluated candidates persist in a shared workspace, allowing successive agents to build on prior work (Zhao et al., 2026; Young, 2025). This persistence enables complementary roles: the agent that discovers a useful candidate need not be the one best suited to refine it, and subsequent changes can provide a new starting point when the first agent returns. We therefore ask: Can structured alternation convert complementary agent capabilities into a consistent advantage over the best single agent under a matched budget?

To address this question, we represent alternating agent sessions as a context-reset semi-Markov decision process (CR-SMDP). We establish sufficient conditions and derive experiment-budget bounds under which alternation exceeds single-agent reference limits, and identify when fixed-k interruption retains this advantage (Sections 3.1–3.3). Building on these results, we introduce Humanize MLE Agents (HMA), which coordinates two native agents—complete model—harness pairs using official harnesses—through a shared workspace (Figure 1). Each session is capped at k experiments; after each handoff, the other agent continues with the shared work and a reset context. The workflow leaves each agent's tools, context management, and execution loop unchanged (Bolin, 2026; Anthropic, 2026c), and provides no task-specific knowledge at initialization. Because coordination depends on completed experiments and persistent task artifacts, application to other iterative optimization tasks is a natural question. In summary, our contributions are:

  • We identify single-agent limitations and show how HMA sustains exploration. We characterize long-horizon deceleration across six models and harness staleness across three custom MLE harnesses in Sections 2. In contrast, from the early to the late phase of execution, HMA retains 86.4%86.4\% of its mean output tokens per response, compared with 60.7%60.7\% for matched single-agent baselines, indicating more persistent exploration across sessions.

  • Alternation and workflow design extend single-agent limits. Our CR-SMDP analysis establishes sufficient conditions and experiment-budget bounds for exceeding single-agent reference limits (Theorem 3.3), and characterizes when fixed-k interruption preserves this advantage Theorem 3.5). Algorithm 1 instantiates these principles with context reset, alternating agents, and final review of candidates (Sections 3.1–3.4).

  • HMA achieves state-of-the-art any-medal performance with cross-pair generality. On MLE-bench, HMA achieves a state-of-the-art any-medal rate of 78.2%78.2\%, exceeding the strongest published open-source workflow by 8.0 points. Across the six heterogeneous agent-pair configurations, HMA improves the any-medal rate over the constituent baselines by 6.4 points on average, with gains in every configuration (Sections 4.2). We also explore applicability beyond MLE-bench through a supplementary 48-hour kernel-optimization case study (Section 4.5).

References (27)