arXiv:2611.06263cs.SENov 2026

Manuscript Offprint

arXiv:2611.06263

CLEAR: Structured Specifications for Controllable Long-Horizon ML Research Engineering

Xin Liu, Hongru Song, Ruqing Zhang, Jiafeng Guo, Xueqi Cheng

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

Xin Liu

State Key Laboratory of AI Safety

Institute of Computing Technology,

Chinese Academy of Sciences

University of Chinese Academy of

Sciences

Beijing, China

liuxin25s@ict.ac.cn

Hongru Song

State Key Laboratory of AI Safety

Institute of Computing Technology,

Chinese Academy of Sciences

University of Chinese Academy of

Sciences

Beijing, China

songhongru24s@ict.ac.cn

Ruqing Zhang ∗^{*}

State Key Laboratory of AI Safety

Institute of Computing Technology,

Chinese Academy of Sciences

University of Chinese Academy of

Sciences

Beijing, China

zhangruqing@ict.ac.cn

Jiafeng Guo

State Key Laboratory of AI Safety

Institute of Computing Technology,

Chinese Academy of Sciences

University of Chinese Academy of

Sciences

Beijing, China

guojiafeng@ict.ac.cn

Abstract

Large language model (LLM) agents are increasingly capable of automating machine learning (ML) research engineering, including code development, experiment execution, and research reproduction. However, existing systems typically couple research interpretation directly with code generation and execution, making them vulnerable to cascading errors and costly end-to-end repair. We identify a fundamental cause of this limitation: research artifacts are not executable specifications. They describe models, data, algorithms, and evaluation protocols through heterogeneous and often implicit representations, leaving critical implementation decisions to be resolved during generation.

We propose CLEAR, a specification-centered framework for controllable long-horizon ML research engineering. CLEAR introduces an explicit intermediate layer that transforms heterogeneous research artifacts into structured and human verifiable execution specifications before executable generation. These specifications provide persistent states for decomposing workflows into localized implementation units, enabling specification-conditioned generation and repair rather than repeated end-to-end regeneration. Building on this representation, CLEAR combines a strong planning model with a dynamically adjusted number of low-cost coding workers according to task decomposition complexity, and employs a lifecycle-oriented harness to monitor workflow states, localize failures, and perform cost-aware intervention. Experiments on PaperBench and MLE-Bench Lite demonstrate that CLEAR achieves a favorable performance–efficiency trade-off. The code is available at https://anonymous.4open.science/r/CLEAR-VSS.

Xueqi Cheng

State Key Laboratory of AI Safety

Institute of Computing Technology,

Chinese Academy of Sciences

University of Chinese Academy of

Sciences

Beijing, China

cxq@ict.ac.cn

CCS Concepts

• Computing methodologies → Planning and scheduling: Multi-agent systems.

References (16)