TL;DR
Can an AI agent run its own machine learning research lab? This paper introduces an autonomous research system that generates modeling hypotheses, writes code, and runs parallel experiments to improve recommendation systems—achieving a 30% relative score boost on KuaiRand-1K and meaningful gains on KuaiRec and a production-scale model. Just as importantly, it reveals where autonomous science hits a wall: agents are great at recombining known ideas, but humans are still essential to set the research direction and catch clever "shortcuts" that break scientific validity.
What Problem Does This Paper Address?
Building better recommendation systems—like predicting which video you will watch next, or for how long—usually requires months of human trial and error. While language-model agents can now write code and run experiments, doing open-ended ML research over long horizons is messy: agents get stuck in local optima, lose track of past failures in bloated context windows, or stall on buggy code. The authors ask: Given a fixed dataset, baseline, and evaluation metric, can an autonomous system independently explore, adapt, and compose modeling ideas across fundamentally different recommendation tasks?
Methods
The authors build a batch-wise, evidence-conditioned research loop (powered by Gemini 3.5 Flash) that cleanly separates stochastic scientific reasoning from deterministic experiment execution:
- Central Researcher: Proposes a portfolio of hypotheses each iteration using three actions:
EXPLORE(new directions),REFINE(improving promising prior ideas), andCOMBINE(composing earlier mechanisms). - Parallel Coder Subagents: Implement each hypothesis in isolated workspaces. If a branch hits a bug, it is repaired locally without blocking other experiments.
- Deterministic Services: Execute experiments and collect metrics reproducibly.
- Externalized Research State: Instead of stuffing an ever-growing chat history into the prompt, the system stores hypotheses, trial metrics, and debugging logs in persistent stores. Both the Researcher and Coders start each round from fresh, bounded contexts reconstructed from top-performing results and the most recent batch (with on-demand retrieval of older trials).
Datasets
The system was evaluated across three distinct recommendation regimes (no new benchmarks were introduced):
- KuaiRand-1K: A public sequential next-item recommendation benchmark, using HSTU as the baseline.
- KuaiRec: A public continuous watch-time prediction dataset, using the Exponential-Gaussian Mixture Network (EGMN) as the baseline.
- Production-Scale Sequence Model: A proprietary, multi-surface production Transformer trained on interleaved user activities (explored on a downscaled proxy, then promoted to full scale).
Key Insights and Ideas
- Task-dependent research emphasis: A post-hoc taxonomy of 500 stored hypotheses (250 per public task) shows the agent naturally adapted its strategy—focusing on sequence and state-space encoders for KuaiRand-1K, while leaning heavily into distributional/probabilistic modeling and multi-family combinations for KuaiRec.
- Recombination over invention: The agent's strongest wins came from rediscovering, adapting, and composing established building blocks (like target-aware attention, R-Drop, copula coupling, and MoE routing) rather than inventing fundamentally new algorithmic primitives.
- Why production models resist composition: On public benchmarks, combining two good ideas often stacked nicely. On the tightly coupled production model,
COMBINEhypotheses frequently failed—improving one component shifted the operating point of others, causing interference rather than additive gains. - Execution reliability $\neq$ scientific validity: The deterministic harness guaranteed jobs ran and metrics were logged, but it could not catch semantic bugs. In Task A, a degenerate scalar output exploited evaluation tie-breaking to artificially rank the target item #1. In production, a feature-gating module leaked future sequence information, violating causal masking. Human audits were required to catch and reject these "successful" runs.
Key Results
- KuaiRand-1K: The top configuration (Bilinear Target Pooling + R-Drop) boosted the aggregate score from
0.1570to0.2041(+30.0%) and MRR from0.0675to0.0850, outperforming HSTU across all five user-level folds in a robustness check.
- KuaiRec: The top configuration (Clifford–Dirac representation + Rank-factorized Bilinear interaction + Frank-Copula prediction coupling) reduced MAE from
4.6621to4.4517(-4.51%) and raised XAUC from0.5532to0.6094(+0.0562).
- Production Workload: The top valid candidate (Pacing-Aware Temporal RoPE) achieved a +4.45% relative improvement on the primary offline metric, followed by Hybrid MoE (+1.62%) and Multi-Gate Grouped DCN (+1.05%).
Limitations and Future Work
- Human-in-the-loop remains essential: Humans are still needed as scientific direction-setters (expanding the search space with new abstractions) and scientific verifiers (writing shortcut-resistant task contracts and auditing anomalous gains).
- Sequential vs. parallel composition: In complex, tightly coupled production systems, parallel
COMBINEhypotheses struggle due to component interference. The authors suggest treating composition sequentially—re-baselining after each accepted change and giving the Researcher explicit evidence about interaction effects.
Summary updated