Manuscript Offprint

arXiv:2610.25089

DAGLoop: Aligning Method Design with Experimental Feedback in Automated AI Research

Dengyuxing Wang, Yonggang Zhang, Qianshu Cai, Huajiang Zheng, Jun Song, Yangqiu Song, Yike Guo

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

ABSTRACT

Automated AI research agents aim to improve machine learning methods by iteratively proposing, implementing, and evaluating candidate methods. Existing work uses the outcome of each evaluation to determine how the next candidate should be revised for performance improvement. However, a candidate often combines multiple design decisions, and its overall outcome alone does not reveal which decisions produced their expected effects, whether their required conditions were satisfied, or which decisions should be retained or revised. Inspired by ablation studies in the machine learning community, we propose DAGLoop to test the expected effect of a design decision by comparing implementations with and without that decision while preserving the other decisions it requires. Specifically, DAGLoop translates each design decision's rationale into a testable expectation and pairs it with a targeted experiment, forming an experimental specification for assessing the expected effect under its required conditions. Using these specifications, we formulate ablation planning as the construction of a directed acyclic graph (DAG) from the candidate method's design: nodes associate decisions with tests, and edges encode dependencies. The DAG specifies which decisions each experiment must retain and supports joint tests when an expected effect requires several decisions to act together. Outcomes are recorded with the tested decisions, expectations, and conditions to form structured research memory. This memory guides the agent in retaining experimentally supported decisions, revising unsupported ones, and planning further experiments when the evidence is unresolved. Experiments on dozens of research tasks demonstrate substantial performance improvements achieved by DAGLoop across diverse executable research settings. Code and evaluation scripts are available at https://github.com/deng34567/DAGLoop.

1 INTRODUCTION

Improving a machine learning method requires repeated decisions about what to change, what to test, and how to interpret the result. Recent research agents automate this process by proposing candidate methods, implementing them, running experiments, and using the outcomes to guide subsequent revisions. MLAgentBench studies agents that conduct machine learning experiments, while The AI Scientist extends automation to longer research workflows and agentic tree search (Huang et al., 2024; Lu et al., 2026; Yamada et al., 2025). AlphaEvolve uses executable evaluators to guide program and algorithm discovery (Novikov et al., 2025). We study the executable method-improvement setting: given a research task, a baseline, an experimental environment, and a finite budget, an agent seeks to improve performance under a fixed task evaluator.

Experimental feedback determines which candidates the agent explores next. Optimization by PROmpting (OPRO) generates candidates from scored solutions; FunSearch selects evaluated pro-

Figure

Figure 1: Why dependencies matter. Candidate-level feedback combines decision effects, while independent tests can remove prerequisites. DAGLoop preserves prerequisites in the control. Here M0M_{0} is the baseline, JqJ_{q} the task metric, and p1p_{1} a property supplied by z1z_{1}.

grams for further search (Yang et al., 2024; Romera-Paredes et al., 2024). Richer feedback includes MetaReflection's memory of past reflections and Trace's execution traces for parameter updates (Gupta et al., 2024; Cheng et al., 2024). Our focus is the relation between this feedback and the design decisions being revised. A candidate may combine a data transformation, a representation, an objective, and an optimization rule. Its overall performance measures their combined effect, but does not establish which decisions produced their expected effects or whether their required conditions held. The evaluator scores the complete candidate, whereas revision must determine which constituent decisions to retain, revise, or test further.

Ablation studies examine decisions by comparing implementations with and without them; recent benchmarks study whether language models can plan informative ablations (Zhao et al., 2025; Abramovich & Chechik, 2026). However, testing each decision independently can remove the conditions needed for its effect. Suppose z1z_{1} constructs a representation and z2z_{2} introduces an objective that uses it. The representation may provide a necessary intermediate property without improving the task metric alone, while the objective may be meaningless without it. Rejecting z1z_{1} for lacking standalone gain prevents a meaningful test of z2z_{2}; evaluating only their composition leaves each decision's contribution unresolved. Decision-level evidence therefore requires experiments that preserve the prerequisites of the decision being tested (Figure 1).

We present DAGLoop, a general-purpose research system that addresses executable method-improvement problems through proposal, implementation, experimentation, and revision. It constructs targeted experiments from a candidate method's design. For each decision, it translates the rationale into a testable expectation: the effect the decision should produce and its required conditions. A targeted experiment specifies what to compare and measure, forming an experimental specification that connects design reasoning to evidence. These specifications define a DAG, whose nodes associate decisions with tests and whose edges encode their dependencies. Each experiment compares a control implementation containing the prerequisites with a treatment implementation that additionally applies the decision: z1+z2z_{1} + z_{2} against z1z_{1} in the example. A decision that provides a prerequisite, such as z1z_{1}, is assessed through the intermediate property it is intended to provide. Effects requiring several decisions are tested jointly, retaining their external prerequisites and attributing experimental support to the group of decisions tested together.

After checking execution validity, DAGLoop records each outcome alongside the decision, expected effect, required conditions, and saved control implementation. This structured research memory guides the agent to retain supported decisions, revise unsupported ones, and plan further experiments when evidence is unresolved. Failed implementations provide debugging information. Revised decisions are assembled into a subsequent candidate and evaluated with the same official evaluator. Targeted experiments guide revision; complete-candidate evaluation measures improvement.

We evaluate DAGLoop on 36 AutoLab tasks spanning CPU optimization, CUDA kernels, program synthesis, and model development (Xu et al., 2026), comparing with Terminus-2 using the same language model. Our contributions are threefold:

• We identify a mismatch between evaluating complete candidates and revising individual decisions, motivating experiments that retain prerequisites for decision-level evidence.

• We propose DAGLoop, a research system that translates design rationales into experimental specifications, constructs a dependency DAG to plan targeted ablations, and uses structured research memory to guide evidence-based revision and further experimentation.

• Experiments on 36 AutoLab tasks demonstrate method improvement across diverse executable problems. DAGLoop achieves a mean score of 0.6459, compared with 0.5831 for Terminus-2 using the same language model, with higher means on both CPU and GPU tasks. Additional comparisons with reasoning disabled cover GLM-5.2 and DeepSeek-V4-Flash.

References (62)