生产规模下的自动研究:失败模式与多智能体框架
研究论文 · 2026/10/09
在生产推荐流水线中优化嵌入系统需要系统性的探索,这在大规模下消耗了不成比例的工程努力。我们应用了Andrej Karpathy的AutoResearch范式——一个大型语言模型迭代编辑训练脚本并保留能提升留出标量指标的修改——来自动化这一探索。我们报告了在生产规模下运行该范式十二周的情况,其中迭代消耗数小时的多GPU计算,评估涉及相互竞争的标准,且活动跨越数周和许多训练任务。在两个独立开发的书籍推荐流水线表示学习系统上,我们运行了220多次实验,并观察到原始设置中不存在的五种反复出现的失败模式:基础设施脆弱性、智能体记忆衰减、搜索方向停滞、迭代成本不对称和指标固着。我们贡献了一个三原则脚手架设计——预防、持久化、重定向——将每种失败模式映射到结构性补救措施,其实例化随迭代成本扩展。该框架比手工调优的基线产生了1.82倍的Recall@6提升和2.1倍的一致性提升,并且智能体自主设计了一个纯文本回退方案,将目录覆盖率扩大了5.8倍。这两个系统在每次迭代成本上跨越了近三个数量级,却表现出相同的失败模式,表明这些是生产规模自主研究的结构性属性,而非任一应用的产物。
本文首次系统性地揭示了生产规模下自主研究范式的结构性失败模式,并提出了可扩展的解决方案,对大规模机器学习系统自动化优化具有重要指导意义。
Optimizing embedding systems for production recommendation pipelines demands systematic exploration that consumes disproportionate engineering effort at scale. We apply Andrej Karpathy's AutoResearch paradigm -- a large language model that iteratively edits a training script and retains modifications that improve a held-out scalar metric -- to automate this exploration. We report on twelve weeks of running this paradigm at production scale, where iterations consume hours of multi-GPU compute, evaluation involves competing criteria, and campaigns span weeks across many training jobs. Across two independently developed representation-learning systems for a book recommendation pipeline, we ran 220+ experiments and observed five recurring failure modes absent from the original setting: infrastructure fragility, agent memory decay, search-direction stagnation, iteration-cost asymmetry, and metric fixation. We contribute a three-principle scaffolding design -- prevent, persist, redirect -- that maps each failure mode to a structural remedy and whose instantiation scales with iteration cost. The framework produced a 1.82x Recall@6 lift and a 2.1x coherence lift over hand-tuned baselines, and the agent autonomously designed a text-only fallback that expanded catalog coverage by 5.8x. The two systems span nearly three orders of magnitude in per-iteration cost yet exhibit the same failure modes, suggesting these are structural properties of production-scale autonomous research rather than artifacts of either application.