SRO:用LLM智能体自动优化后训练配方,Qwen3上远超基线
LLM Agents for Automated Post-Training via Structured Recipe Optimization
SRO让LLM自动设计后训练配方空间,再用贝叶斯选试验,Qwen3上分数远超基线,代码已开源。
arXiv论文提出SRO(Structured Recipe Optimization),把自动化后训练从搜索固定配方空间改为让配方空间本身随目标任务自适应,并显式表示各选项以便跨试验复用与重组。系统由基于LLM的Recipe-Space Designer构建任务适配的配方空间,Multi-Domain Recipe Optimizer用结构化试验证据指导候选构造,并以多目标贝叶斯方法做试验选择。在3个能力域、6个基准的联合后训练中,SRO在Qwen3-1.7B搭配GPT-5.4时得41.1分,最强基线为15.4;Qwen3-4B搭配DeepSeek-V4-Flash时得53.8分,基线为40.8。代码已在GitHub仓库RuohLiuq/SRO开源。
LLM Agents for Automated Post-Training via Structured Recipe Optimization
Automated post-training transforms pre-trained large language models (LLMs) into models capable of handling diverse domains by automatically constructing and optimizing a recipe of coupled decisions over data sources, data processing, cross-domain composition, and training configuration under a limited experimental budget. Existing automation either searches predefined recipe spaces that enable systematic optimization but remain fixed rather than adapting their available choices to the target tasks, or uses open-ended agents that discover task-specific choices but leave them implicit in trial-level edits, limiting their systematic reuse and recombination across trials. To fill this gap, we introduce optimization over a task-adapted recipe space, a novel paradigm that can adapt the recipe space itself to the target tasks while representing its choices explicitly for systematic reuse, recombination, and joint optimization. We instantiate this paradigm with Structured Recipe Optimization (SRO), comprising an LLM-based Recipe-Space Designer that constructs the task-adapted recipe space and a Multi-Domain Recipe Optimizer that uses structured trial evidence to guide LLM candidate construction and multi-objective Bayesian trial selection. Extensive experiments show that SRO achieves the highest average score in all evaluated target-model and agent-LLM combinations. In joint post-training across three capability domains and six benchmarks, SRO reaches 41.1 versus 15.4 for the strongest baseline on Qwen3-1.7B with GPT-5.4, and 53.8 versus 40.8 on Qwen3-4B with DeepSeek-V4-Flash. Our code is available at https://github.com/RuohLiuq/SRO.