Manuscript Offprint

arXiv:2611.00384

Agent Stack for ML Training Lifecycle: Generation, Validation, and Optimization

Jaideep Ray, Daniel Tang, Zejun Lin, Haoyue Tang, Lijuan Zhang, Tao Huang, Tommy Li, Aditya Jain, Ankit Goyal, Harsh Jain, Zhuo Zhi, Youmin Han, Santosh Jha, Shuying Liang, Yujie Ai, Jonathan Hung, Ethan Lyu, Abi Liu, Siddharth Singh, Feng Wen, Mahesh Ravindran, Souvik Ray, Yitong Zhou, Animesh Singh

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

Jaideep Ray*, Daniel Tang*, Zejun Lin*, Haoyue Tang*, Lijuan Zhang*, Tao Huang*, Tommy Li*, Aditya Jain*, Ankit Goyal*, Harsh Jain*, Zhuo Zhi*, Youmin Han*, Santosh Jha*, Shuying Liang*, Yujie Ai*, Jonathan Hung*, Ethan Lyu*, Abi Liu*, Siddharth Singh*, Feng Wen*, Mahesh Ravindran*, Souvik Ray*, Yitong Zhou*, Animesh Singh*

LinkedIn • *Equal contribution • Correspondence: jaray@linkedin.com

Abstract

Production model development requires repeated architecture design, platform integration, debugging, training, and evaluation. We present an agent stack deployed at LinkedIn with two independently usable agent loops: AutoTorch for model generation and migration, and AutoResearch for model optimization. AutoTorch generates PyTorch models and training pipelines for TensorFlow migration, XGBoost replacement, and new-model development. Executable validation hooks check platform API compliance, trainability, and conversion fidelity on sampled data, guiding iterative repair before engineer review and full-scale distributed training. AutoResearch explores architecture and training-configuration changes through expert-steered or autonomous experimentation. An external orchestrator manages parallel trials, experiment history, candidate selection, and wall-clock budgets across agent sessions. A shared runtime preserves execution state independently of agent reasoning and allocates GPUs separately from agent execution. Across ranking, content understanding, and recommendation workloads, AutoTorch completed generation and full-scale training in 92 of 115 workflow runs (80%). Of these, 77 (83.7%) produced models meeting post-training quality requirements. In a separate cohort, AutoResearch improved the primary task metric on held-out data for 28 of 100 production pipelines. Engineering teams estimate that the stack reduced elapsed end-to-end migration time from approximately eight weeks to two weeks, a 4× speedup.

1 Introduction

Developing production machine learning models remains a labor-intensive process. Engineers must design model architectures, integrate them with platform-specific training APIs, debug runtime failures, and repeatedly train and evaluate models to achieve target quality. Framework migrations add further complexity, requiring engineers to reproduce existing model behavior while adapting to a new training stack.

We introduce agent loops to automate this iterative process. Rather than generating model code in a single step, agents continuously generate, validate, repair, and optimize models using execution feedback. These loops operate across multiple agent sessions and GPU training jobs, with persistent state and validation mechanisms supporting long-running execution (Figure 1). We evaluate this approach at LinkedIn across model generation, distributed training, and offline evaluation.

We implement two independently usable agent loops. AUTOTORCH generates PyTorch models and training pipelines, including framework migration, and uses executable checks to guide repair before engineer review and full-scale training. AUTORESEARCH starts from a validated pipeline and searches for improvements through budgeted experiments. Both can run independently or be composed for migration followed by optimization.

A shared runtime supports these loops with durable execution sandboxes, persistent task state, and brokered GPU and data access. Architecture-specific skills guide

candidate generation, while executable validation and experiment records provide feedback to agents. Completion remains governed by explicit checks and engineer review, not by the LLM's own assessment.

This paper describes three contributions: (1) model-generation and optimization loops with task-specific validation and search policies; (2) the shared runtime and execution controls supporting long-running tasks on production training infrastructure; and (3) deployment experience across model migration and optimization workloads at LinkedIn.

References (20)