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, responses shorten and additional experiments yield diminishing returns, which we term long-horizon deceleration. Moreover, the advantages of custom harnesses vanish or reverse as the underlying model improves, reflecting harness staleness. Together, these observations motivate 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. Across five configurations spanning four heterogeneous agent pairs, HMA improves the three-run any-medal rate by 6.9 points on average over the mean of the constituent baselines and by 3.3 points on average over the stronger constituent. Beyond MLE-bench, in a supplementary AOPT kernel-optimization problem, HMA reaches 878 simulated execution cycles, achieving a 10th-ranked score on the Paradigm community leaderboard.
翻译:暂无翻译