---
title: 'AutoCon: A Multi-Agent System for Autonomous Clinical Model Post-Training'
authors: ['Akshat Choube', 'Mohsen Sharifi Renani', 'Meysam Ghaffari', 'Junda Wang', 'Varun Mishra', 'Carlos Morato']
date: 2026-12-02
categories: ['cs.AI']
tags: ['multi_agent']
source_id: '2612.02354'
source_url: 'https://arxiv.org/abs/2612.02354'
description: 'Autonomous post-training has the potential to reduce the manual effort required to adapt foundation models to specialized clinical tasks, but it must operate under practical deployment constraints...'
keywords: ['cs.AI', 'AutoCon', 'Multi-Agent', 'System']
canonical: 'https://dailyreading.cc/records/arxiv_2612.02354'
---
# **AutoCon: A Multi-Agent System for Autonomous Clinical Model Post-Training**
**Akshat Choube**1 **, Mohsen Sharifi Renani**1 **, Meysam Ghaffari**1 **, Junda Wang**1 **, Varun Mishra**2 **, Carlos Morato**1
> 1Optum, UnitedHealth Group Minneapolis, MN, USA 2Northeastern University Boston, MA, USA
## **Abstract**
Autonomous post-training has the potential to reduce the manual effort required to adapt foundation models to specialized clinical tasks, but it must operate under practical deployment constraints common in healthcare, including restricted internet access, reliance on open-source tooling, fixed computational budgets, and the need for reproducible experimentation. We present AutoCon, a multi-agent framework for autonomous post-training that separates experiment proposal, budget admission, execution, and diagnosis while preserving the ability to implement open-ended methods. Within this constrained setting, we compare three autonomy regimes under a common five-hour wall-clock budget: an unconstrained coding-agent baseline, literature-open AutoCon-OE, and template-based AutoCon-T. We evaluate a Sparse-EHR mixture-of-experts model for longitudinal ICD-code prediction on MIMIC-IV, running for each target metric (macro F1, precision, and recall). AutoCon-T achieves the highest mean result across all three metrics. The baseline fails to produce a score for 48% of initiated experiments, compared with 9% for AutoCon-OE and 0% for AutoCon-T. AutoCon-T and AutoCon-OE also consume approximately 72× and 11× fewer LLM tokens than the baseline, respectively. Our findings suggest that, in this clinical post-training task, structured orchestration improved operational reliability and resource efficiency relative to a fully autonomous coding-agent baseline. Within the controlled workflow, template access encouraged exploitation of working methods, whereas literature access encouraged broader exploration.
## **Introduction**
Advances in large language models (LLMs) have enabled autonomous coding agents capable of generating code, using tools, and iteratively improving machine learning systems with limited human supervision (Liu et al. 2024). These agents have begun to be applied to research workflows, including literature review, implementation, debugging, and model post-training (Gridach et al. 2025; Wei et al. 2025; Lu et al. 2024; Rank et al. 2026; Liu et al. 2026). Existing autonomous post-training systems have primarily been developed and evaluated in unconstrained settings, where agents are free to access external resources, iterate extensively, and independently control the entire optimization process (Rank et al. 2026; Li et al. 2026; Yu et al. 2026).
Clinical machine learning research can impose a markedly different experimentation environment. Post-training is often performed within secure computing environments that restrict internet access, rely primarily on open-source tooling, operate under fixed computational budgets, and require every experimental decision to be reproducible and auditable. In these settings, unrestricted autonomous experimentation can become costly: inaccurate planning may exhaust limited compute, implementation failures may waste scarce experimental opportunities, and opaque decision-making can make improvements difficult to trust or reproduce. These constraints raise a different question from prior work—not whether autonomous agents can perform post-training, but how they should be organized to operate effectively under these constrained, secure research conditions.
We investigate whether guiding the workflow, rather than letting agents operate autonomously, yields more reliable post-training under these practical constraints. Specifically, we ask whether separating experiment proposal, resource allocation, execution, and diagnosis produces more efficient and reproducible experimentation than allowing a single coding agent to control the entire optimization loop. We study this question through longitudinal ICD-code prediction on MIMIC-IV, a representative clinical post-training task conducted under a fixed computational budget without public internet access.
To study this question, we introduce AutoCon, a controlled multi-agent framework that decomposes post-training into a Researcher that proposes experiments, a rule-based Planner that admits affordable proposals, an Experiment agent that implements and executes them, and an Analyst that analyzes the outcome. We instantiate two variants that share this controlled workflow but differ in method space. AutoCon-T selects from templates of established post-training methods (GRPO, DPO, ORPO, and KTO), whereas AutoCon-OE can retrieve literature from a local paper repository and implement open-ended, literature-derived objectives. We compare both against a fully autonomous coding-agent baseline that independently plans, implements, and iterates on experiments. All systems start from the same checkpoint and receive the same task, evaluation metric, and a 5-hour wallclock budget.
Our contributions are threefold. (1) We present a controlled multi-agent architecture for autonomous post-training designed for constrained clinical research environments, separating experiment proposal, budget admission, execution, and diagnosis while preserving the ability to implement open-ended methods. (2) We compare controlled and unconstrained autonomy under identical resource constraints on longitudinal ICD-code prediction, evaluating template-based, literature-open, and fully autonomous workflows optimizing three target metrics. (3) We characterize the performance, reliability, resource consumption, and search behavior of the three systems. Our results show that the controlled workflows produce fewer no-score experiments and consume substantially fewer LLM tokens than the continuous-session baseline. Within AutoCon, templates promote repeated refinement of a working method, while literature access promotes broader but more costly exploration.
#### **Related Work**
#### **Autonomous Experimentation**
LLM agents have been proposed for literature review, scientific hypothesis generation, implementation, and end-to-end experimentation (Gridach et al. 2025; Wei et al. 2025; Lu et al. 2024). Recent systems and benchmarks extend this idea to autonomous fine-tuning and post-training (Li et al. 2026; Yu et al. 2026; Liu et al. 2026). PostTrainBench (Rank et al. 2026) benchmarks fully autonomous coding-agent scaffolds under a fixed compute ceiling, closely matching our Baseline-CA setup. LaMDAgent (Yano, Ishibashi, and Oyamada 2025) and TREX (Ma et al. 2026) instead search over post-training pipelines and fine-tuning schemes, respectively, using a single coupled policy that decides both what to try next and whether to try it. In the clinical setting, we study the task of predicting the ICD-code set recorded at a patient's next admission from longitudinal EHR data in MIMIC-IV (Johnson et al. 2023), building on transformer-based sequence models such as TransformEHR (Yang et al. 2023). Post-training for generative ICD coding on this task has so far been studied as a static SFT/RL comparison designed and run entirely by the researchers (Wang et al. 2026), while agentic approaches to medical coding have targeted inference-time code assignment and validation rather than the training process itself (Motzfeldt et al. 2025). AutoCon instead separates experiment proposal, budget-aware selection, execution, and analysis into auditable, specialized roles, and treats the method space itself (template-restricted vs. literature-open) as a controlled variable, comparing both against an unconstrained coding-agent baseline under a common task, evaluator, starting checkpoint, and wall-clock ceiling. Our focus is not a new EHR architecture, but how autonomous systems conduct post-training in constrained settings.
## **Reward- and Preference-Based Post-Training**
Post-training methods provide several approaches for adapting a pretrained policy. DPO directly optimizes pairwise preferences without an explicit reward model (Rafailov et al. 2023); ORPO integrates preference alignment with an SFT-style objective (Hong, Lee, and Thorne 2024); and KTO learns from binary desirable or undesirable signals (Ethayarajh et al. 2024). GRPO performs on-policy optimization using group-relative rewards without a learned critic model (Shao et al. 2024), while Cal-DPO augments DPO
by calibrating implicit reward values (Xiao et al. 2024). In practice, selecting among these methods requires balancing expected performance, computational cost, and implementation complexity. Existing studies typically assume that a researcher manually selects and implements a single method. In contrast, we study autonomous post-training in constrained clinical environments, where an autonomous system must select, implement, and iteratively refine these methods under fixed computational budgets, restricted execution environments, and a common evaluation protocol.
## **Problem Setting and Study Protocol Formal Problem Definition**
Let $\theta_0$ denote the common model checkpoint, k the target metric, and $x_t$ an experiment configuration specifying a method, hyperparameters, and reward or preference construction at round t. Let $D_{\rm tr}$ , $D_{\rm val}$ , and $D_{\rm test}$ denote the training, validation, and held-out test sets, respectively. Let $\mathcal C$ denote the fixed execution environment, including the available tools, secure literature resources, and the absence of public internet access. Every experiment independently warm-starts from $\theta_0$ :
$$\theta_t = \text{Train}(\theta_0, D_{\text{tr}}; x_t, \xi_t), \qquad y_{t,k} = M_k(\theta_t; D_{\text{val}}),$$
(1)
where Train is the post-training procedure, $\theta_t$ is its resulting checkpoint, $\xi_t$ captures training randomness, and $M_k$ is the evaluator for metric k, producing validation score $y_{t,k}$ . The experimentation history after round t is $H_t = \{(x_i, y_{i,k}, c_i, s_i)\}_{i=1}^t$ , where i indexes completed attempts, $c_i$ records their resource use, and $s_i$ indicates whether a score was produced. Given the previous history, remaining wall-clock budget $b_t$ , and execution environment $\mathcal{C}$ , policy $\pi$ selects the next experiment,
$$x_t \sim \pi(H_{t-1}, k, b_t, \mathcal{C}). \tag{2}$$
It is subject to the binding study constraint
$$\sum_{t=1}^{T} c_t^{\text{wall}} \le B, \qquad B = N \text{ hours.}$$
(3)
Here, T is the number of attempted experiments, $c_t^{\rm wall}$ is the elapsed time of round t, and B is the session budget. LLM-token use is measured rather than constrained. At termination, a promotion policy selects experiment $\hat{t} = {\rm Promote}(H_T)$ using validation results. The study harness then reports the policy's held-out performance,
$$J_k(\pi) = M_k(\theta_{\hat{t}}; D_{\text{test}}), \tag{4}$$
without exposing test data to the agent. While the optimization objective is held-out predictive performance, we additionally evaluate the induced policy in terms of reliability (successful experiment completion), resource efficiency, and LLM-token consumption under the fixed resource budget.
#### Task and Data
We construct the study cohort from MIMIC-IV, a deidentified longitudinal EHR database (Johnson et al. 2023), retaining
Table 1: Ordered Recall@K on the held-out test set before and after the common QLoRA-SFT stage.
| | Base (pre-SFT) | + QLoRA-SFT |
|-----------|----------------|-------------|
| Recall@1 | 0.122 | 0.479 |
| Recall@3 | 0.218 | 0.618 |
| Recall@5 | 0.459 | 0.679 |
| Recall@10 | 0.512 | 0.746 |
| Recall@20 | 0.569 | 0.804 |
patients whose records contain ICD-10 diagnosis and procedure codes. For each patient, we order admissions chronologically and represent the available clinical history as a sequence of codes augmented with age and gender. The task is next-admission code prediction: given the history preceding a patient's final admission, the model generates the set of diagnosis codes recorded at that admission.
After cohort filtering, the dataset contains 13,589 patient examples. We split patients into 9,512 training examples (70%), 1,359 validation examples (10%), and 2,718 held-out test examples (20%). All autonomous decisions and checkpoint selection use validation data only; the test set is evaluated by the study harness after each autonomous session has terminated.
## **Model and Common Starting Checkpoint**
We use Sparse-EHR, an approximately 1B-parameter mixture-of-experts (MoE) language model operating over a vocabulary of diagnosis and procedure codes (Ghaffari et al. 2026). The base model was pretrained on ICD-10-coded patient timelines from an anonymized private clinical dataset.
Before autonomous post-training, we supervised fine-tune the frozen base model using QLoRA (Dettmers et al. 2023) on next-token prediction over the training timelines, with all pretrained backbone parameters kept frozen. Every condition begins from this identical SFT adapter. We apply LoRA ( $r=8,\,\alpha=32,\,$ dropout 0.05) to the query, key, value, and output projections and the MoE routing gate, with the base model quantized to 4-bit NF4 with double quantization. We train for three epochs with effective batch size 16, learning rate 5e-4, paged AdamW-8bit, a cosine schedule with 500 warmup steps, maximum sequence length 512, and gradient checkpointing.
#### **Evaluation Metrics**
We evaluate unordered predicted code sets using macro precision, recall, and $F_1$ . For example i, let $Y_i$ be the gold code set and $\hat{Y}_i$ the set decoded autoregressively until the end token. Per-example metrics are
$$P_i = \frac{|\hat{Y}_i \cap Y_i|}{|\hat{Y}_i|}, \quad R_i = \frac{|\hat{Y}_i \cap Y_i|}{|Y_i|}, \quad F_{1,i} = \frac{2P_i R_i}{P_i + R_i}.$$
(5)
Here, $|\cdot|$ denotes set cardinality and $\cap$ denotes intersection, so $|\hat{Y}_i \cap Y_i|$ counts correctly predicted codes. $P_i$ , $R_i$ , and $F_{1,i}$ are the precision, recall, and harmonic-mean $F_1$ score for patient i. We report each metric's macro average
(the unweighted mean over patients), assigning zero when a denominator is zero.
#### **AutoCon**
AutoCon is a multi-agent framework for improving a user-specified target metric under an explicit resource ceiling and clinical settings constraints. Its central loop is $propose \rightarrow admit \rightarrow execute \rightarrow diagnose$ . Figure 1 summarizes the workflow.
**Researcher Agent.** The LLM-driven Researcher proposes a ranked list of post-training experiments conditioned on the target metric, dataset statistics, model architecture, completed experiments, retrieved literature when available, and prior Analyst feedback. Each proposal specifies a method, hyperparameters, and a metric-aligned reward or preference construction.
**Planner Agent.** The rule-based, non-LLM Planner admits at most one proposal per round. In priority order, it estimates GPU time, rejects configurations that duplicate prior experiments or exceed the remaining budget, and selects the first valid, novel, and affordable proposal. Separating stochastic proposal generation from deterministic budget admission makes the decision trace and accounting auditable.
**Experiment Agent.** The Experiment agent converts an admitted proposal into a training job and monitors its execution. It can invoke templates for established methods or generate task-specific code for a new method or reward. Generated code runs in isolation so that shared reference implementations are not mutated. When an invocation raises a runtime error, the agent may diagnose the traceback, repair the code, and re-execute it. Completed configurations, checkpoints, metrics, and repair traces are persisted.
**Analyst Agent.** After each scored experiment, the LLM-driven Analyst compares its outcome with the SFT checkpoint and prior experiments. It records a diagnosis and recommends a method, hyperparameter, or reward change for the next round. This mandatory reflection closes the controlled loop.
**Persistent State and Budget Enforcement.** Agents communicate through an experiment store containing each configuration, outcome, and lineage, and through a ledger tracking elapsed time, GPU use, and LLM-token spend. The store allows for duplicate detection and cross-round reasoning.
**Policy Factorization.** The components above factorize AutoCon's experimentation policy as
$$Q_{t} = \mathcal{R}(H_{t-1}, k, z_{t-1}; \Omega), \quad x_{t} = \mathcal{P}(Q_{t}, H_{t-1}, b_{t}), \quad (6)$$
$$o_{t} = \mathcal{E}(x_{t}), \qquad z_{t} = \mathcal{A}(H_{t-1}, o_{t}, k). \quad (7)$$
Here, $\mathcal{R}$ , $\mathcal{P}$ , $\mathcal{E}$ , and $\mathcal{A}$ denote the Researcher, Planner, Experiment, and Analyst, respectively. The Researcher draws on method space $\Omega$ to produce proposal list $Q_t$ , conditioned on history $H_{t-1}$ , target metric k, and preceding diagnostic feedback $z_{t-1}$ . Given remaining budget $b_t$ , the Planner admits configuration $x_t$ ; the Experiment returns outcome $o_t$ (e.g., scores, logs, and errors); and the Analyst converts that outcome into feedback $z_t$ for the next round.

Figure 1: Baseline-CA vs AutoCon system design with shared research contracts and environment conditions.
## **AutoCon Variants**
The two AutoCon conditions share the same agents, prompts, evaluator, execution environment, repair mechanism, and persistent state. They differ in the method space exposed to the research loop. **AutoCon-T** selects and tunes fixed templates for GRPO, DPO, ORPO, and KTO. **AutoCon-OE** can retrieve literature through Paper Lantern and propose open-ended, literature-derived methods, rewards, and custom implementations through a coding harness.
## **Experimental Design**
## **Compared Systems**
Prior autonomous post-training systems (e.g., (Rank et al. 2026; Yano, Ishibashi, and Oyamada 2025; Ma et al. 2026)) assume unrestricted execution environments and are primarily evaluated on general-capability benchmarks, making them difficult to apply directly in our clinical setting. To establish a comparison point, we implemented a fully autonomous coding-agent baseline, Baseline-CA, using Open-Code (OpenCode Contributors 2025) and inspired by Post-TrainBench (Rank et al. 2026). In this baseline, the harness provides the agent with a task specification, model summary, literature excerpt, target metric, wall-clock budget, and a fixed evaluator within a sandboxed environment. The agent autonomously writes, modifies, and executes training and reward code, iteratively refining its approach and ultimately selecting the checkpoint with the best validation performance. In contrast, AutoCon-OE and AutoCon-T operate within the controlled orchestration framework described above, using open-ended and template-based method spaces, respectively. AutoCon-OE leverages OpenCode as its coding agent to implement novel proposed methods, whereas AutoCon-T restricts implementation to predefined, validated templates.
Each autonomous session receives the same five-hour wall-clock ceiling on one NVIDIA A100 GPU and access to the same fixed evaluator. Agents may call the evaluator on validation data but cannot modify or reimplement it, and they never receive test labels or test scores. After a session ends, the study harness independently evaluates the checkpoint promoted by that system.
## **Experimental Units and Reporting**
A *condition* is one of the three systems, run for three independent sessions per target metric (macro F1, precision, recall), yielding nine sessions per condition. A *round* is one propose–admit–execute–diagnose cycle; a *training attempt* is one training-script invocation within a round, with repair and re-execution counted as steps of the same attempt. Performance tables report mean ± standard deviation across the three sessions targeting each metric.
## **Implementation**
We implement AutoCon in Python and OpenCode, an opensource coding harness (OpenCode Contributors 2025). AutoCon-OE accesses academic literature only through the Paper Lantern MCP service (Paper Lantern 2026); no condition receives unrestricted public-internet access for enhanced

Figure 2: LLM token usage (log scale) and wall-clock time per run across conditions, against the shared 5-hour wall-clock budget.
security. All LLM-driven agents use GPT-5 through a secured gateway. Systems may install approved packages from internal repositories. During the experiments, compute costs were \$4.40 per GPU-hour, with API costs of \$1.25 per million input tokens and \$10.00 per million output tokens.
#### **Results**
#### **Performance Comparison**
Table 2 compares the test performance of Baseline-CA, AutoCon-OE, and AutoCon-T. Across three sessions targeting each metric, AutoCon-T achieves the highest mean $F_1$ , precision, and recall. Relative to the frozen SFT checkpoint, its mean improvements are +0.0048 F1, +0.0709 precision, and +0.0113 recall. The largest mean difference occurs for precision, where AutoCon-T reaches $0.4741 \pm 0.0403$ , compared with $0.4105 \pm 0.0045$ for AutoCon-OE and $0.4072 \pm 0.0055$ for Baseline-CA; this result also has the highest between-session variance. The post-training methods did not improve all metrics uniformly; instead, optimizing one metric often traded off performance on another. For instance, in AutoCon-T, GRPO tuned for precision raised precision by up to +0.162 while cutting recall by up to -0.097 which is in line with prior work (Wang et al. 2026).
Beyond predictive performance, we analyze planning, resource use, method selection, reflection, and failures. Auto-Con maintains structured, auditable records of each experiment that make independent reproduction possible, whereas equivalent analyses for Baseline-CA required post-hoc inspection of agent transcripts and execution logs.
## **Resource Use and Token Efficiency**
We present the wall-clock time and LLM token usage each run consumed under different conditions (Figure 2). Baseline-CA used only $1.39\pm0.56$ hours of its shared 5-hour budget (28%), while both AutoCon variants ran to completion of the budget (5 hours). The Baseline-CA transcripts contain little explicit tracking of the remaining wall-clock budget and show sessions ending soon after single validation gains, despite substantial time remaining. This behavior is consistent with the agent treating a local improvement as a sufficient stopping condition rather than continuing

Figure 3: Post-training methods chosen across conditions.
to use the available budget. Despite this far shorter wallclock footprint, Baseline-CA consumed 1,908,654±562,814 LLM tokens per run—roughly 72× more than AutoCon-T $(26,410 \pm 8,495)$ and $11\times$ more than AutoCon-OE $(169,872\pm104,804)$ . Notably, 87% of AutoCon-OE's rounds also required a custom implementation written through the same OpenCode coding harness Baseline-CA uses throughout; yet despite dispatching OpenCode this often, AutoCon-OE's token usage remained an order of magnitude lower than Baseline-CA's, and it still ran to near-completion of its full budget rather than stopping early. Breaking Baseline-CA's usage down by token type, the overwhelming majority was input tokens: across all nine runs, input tokens accounted for 66.6% of total usage (a mean of 1,270,466 tokens per session), versus only 0.63% for output (11,963 tokens per session) and 0.89% for reasoning (16,960 tokens per session), with the remainder recorded as cached context. This input-dominated profile is consistent with an advantage from role-scoped execution: as a single coding session, Baseline-CA repeatedly re-sent a growing conversation history and full file contents with every turn, whereas AutoCon's rounds isolate each OpenCode dispatch to a narrow task with fresh context and did not accumulate long conversations.
## **Planning Accuracy**
In AutoCon, the Planner estimated the run time of experiments before running them. The Planner agent's GPU-hour cost estimates, however, were severely off for AutoCon-OE's literature-derived methods. For instance, Cal-DPO was underestimated by a mean factor of $15.6 \times$ (range $9.9-19.6 \times$ ) across all three attempts, with estimated costs of 0.19-0.38 GPU-hours against actual costs of 3.3-3.7 GPU-hours. A method that appeared to cost a small fraction of a round's remaining budget instead consumed nearly all of it once launched. This was a plausible contributor to why Cal-DPO was selected in the first place: since the planner weighed estimated cost against remaining budget, a method that looked nearly free was an attractive, low-risk choice late in a session, right up until it consumed a disproportionate share of the budget in practice. This negative result motivates adaptive cost estimates that combine execution history with brief smoke runs before committing most of the remaining budget to an unfamiliar method.
Table 2: Test-set mean $\pm$ standard deviation across three independent sessions per target metric and condition, compared with the common frozen SFT checkpoint. Each row summarizes sessions optimized for that row's metric.
| Metric | SFT | Baseline-CA | AutoCon-OE | AutoCon-T |
|-------------------|--------|---------------------|---------------------|---------------------------------------|
| F1 (macro) | 0.2484 | $0.2482 \pm 0.0003$ | $0.2497 \pm 0.0015$ | $\textbf{0.2532} \pm \textbf{0.0007}$ |
| Precision (macro) | 0.4032 | $0.4072 \pm 0.0055$ | $0.4105 \pm 0.0045$ | $0.4741 \pm 0.0403$ |
| Recall (macro) | 0.1950 | $0.2018 \pm 0.0096$ | $0.1996 \pm 0.0055$ | $\textbf{0.2063} \pm \textbf{0.0014}$ |
#### **Search Behavior and Method Selection**
In Figure 3, we report the diversity of methods chosen across conditions. Baseline-CA relied almost entirely on supervised fine-tuning variants (32 of 50 attempts)—each handdesigned per run with a different loss-weighting scheme (e.g., masking the loss to the target code-list segment, or upweighting rare codes via inverse label-frequency)—with the remainder split between ORPO (11) and DPO (7), and never attempted GRPO. AutoCon-OE showed high method diversity, selecting GRPO (9), DPO (5), ORPO (4), Cal-DPO (3), and one-off attempts at inference-time filtering and adaptive thresholding. This distribution is consistent with Paper Lantern influencing the Researcher agent's proposals. AutoCon-T's Researcher agent was offered a comparably diverse set of candidates each round—including DPO, ORPO, and KTO—yet its Planner selected GRPO in 23 of 24 rounds (96%), with a single DPO attempt as the only exception.
AutoCon-T's larger precision result (0.4741 vs. 0.4105 for AutoCon-OE) coincided with a different methodselection pattern: AutoCon-T repeatedly chose GRPO, while AutoCon-OE never attempted GRPO on its precision runs, instead proposing literature-drawn methods—Cal-DPO, ORPO, inference-time filtering—none of which beat the frozen baseline. One plausible explanation is how the literature was consumed: Paper Lantern supplied only a highlevel natural-language summary of each method, with no source code or internet access to find a reference implementation, and many retrieved papers had no public code at all. Re-deriving these methods from prose alone routinely fell short of reported gains, likely because details that matter in practice—reward shaping, hyperparameters, preprocessing—were lost in summary. The present comparison cannot determine whether method, implementation fidelity, or another correlated difference caused the gap.
## **Reliability and Failure Handling**
Figure 4 reports final experiment outcomes after any permitted repairs. Baseline-CA failed to produce a score for 24 of its 50 attempted experiments (48%); Table 3 categorizes these failures. AutoCon-OE ended without a score for 2 of 23 experiments (9%), whereas all 24 AutoCon-T experiments produced scores. The two AutoCon-OE no-score outcomes were not unrepaired implementation errors: both jobs were still training when the session's wall-clock ceiling expired before a first checkpoint had been saved.
Notably, 87% of AutoCon-OE's rounds required a custom implementation even when the selected method was established (e.g., GRPO, DPO): the Researcher agent rederives a bespoke reward or preference-scoring scheme each

Figure 4: Final outcome of each initiated experiment after any permitted repairs: no score, trained without beating the frozen SFT checkpoint, or trained and beat the checkpoint.
round—custom precision/recall proxies, inverse-prevalence weighting, preference-pair rules, length penalties—rather than reusing a prior implementation, forcing the Experiment agent to write and debug new reward code almost every round regardless of the method's maturity. Four of the 20 custom implementations (20%) raised an error on the first invocation; the repair loop recovered them within at most two attempts.
## **Reflection and Diagnostic Behavior**
The Analyst's recommendations diverged sharply by condition, revealing an exploit-versus-explore asymmetry between the two AutoCon variants. Under AutoCon-T, every recommendation stayed within the same method, proposing a specific hyperparameter adjustment in response to the just-observed outcome (e.g., "stay with GRPO... increase kl\_beta to 0.1")—exploiting a working recipe rather than restarting from scratch. Under AutoCon-OE, recommendations instead explored a new method almost every round, even after the current one had demonstrably worked. Since the two AutoCon variants differed primarily in their method source, this pattern suggests that literature access encouraged additional exploration within our setup while leading to limited exploitation of working methods.
Baseline-CA had no structured reflection step at all. Across the nine transcripts, the agent produced only 3–5 free-form reflective comments per multi-hour session, versus a mandatory Analyst insight after every AutoCon round. When it did comment on a result, the reasoning was comparatively brief: after a successful ORPO run, its entire reflection was "We have improved precision\_macro over the SFT baseline. I'll run a second short pass with slightly higher beta..."—with
Table 3: Categorized causes of Baseline-CA (OpenCode) experiment failures (n = 24).
| Category | Count | Description | |
|------------------------------------|-------|-------------------------------------------------------------------------------------|--|
| Agent code bugs | 5 | Logic
errors
in
the
agent's
self-written
training/evaluation code | |
| Tool-level timeouts | 5 | Commands
killed
af
ter exceeding execution
time limits | |
| Wrong data paths | 5 | Scripts referenced incor
rect file locations | |
| CUDA/generation
insta
bility | 3 | Numerical errors during
sampling-based training | |
| Silent process failures | 3 | Training
terminated
with
no
error
output
(likely memory-related) | |
| Checkpoint promotion er
rors | 2 | Failures
while
sav
ing/promoting a trained
checkpoint | |
| Missing dependency | 1 | A required module was
not found | |
Table 4: Thematic categorization of Analyst insights, AutoCon-T vs. AutoCon-OE (multi-label).
| Theme | AutoCon-T | AutoCon-OE |
|-----------------------------------|-----------|------------|
| Hyperparameter effect | 89% | 69% |
| Precision/recall length trade-off | 84% | 56% |
| Rare-code / class weighting | 58% | 81% |
| MoE routing perturbation | 42% | 75% |
| Val–test generalization gap | 42% | 38% |
| Calibration | 16% | 25% |
| Reward/proxy misalignment | 11% | 19% |
| Weak/noisy preference signal | 5% | 38% |
no discussion of why the gain occurred or whether it would generalize. AutoCon's Analyst, reacting to a comparable result, proposed four possible mechanisms: proxy and lengthpenalty over-shrinkage, limited negative coverage, perturbed MoE routing, and missing calibration.
## **Discussion and Limitations**
## **What Workflow Control Contributed**
Fully autonomous coding harnesses are well suited to openended software engineering and exploratory research, where unrestricted iteration is often desirable. Clinical model posttraining, however, may be performed in constrained research environments with a fixed starting checkpoint, target metric, evaluation protocol, computational budget, and restricted execution environment. These characteristics make the workflow naturally amenable to decomposition into stable stages. AutoCon therefore constrains the *workflow*, rather than the available methods: AutoCon-OE can still propose and implement literature-derived methods through the same coding harness as Baseline-CA, while experiment proposal, budget admission, execution, and diagnosis remain explicitly separated and auditable. Within this constrained clinical setting, the controlled workflows achieve higher mean predictive performance, substantially lower LLM-token consumption, and fewer final no-score experiments than Baseline-CA. Although this comparison does not isolate the contribution of individual components, the results are consistent with structuring autonomous post-training as a controlled workflow improving reliability and resource efficiency without restricting the method space.
## **Exploration versus Exploitation**
Controlled orchestration also introduced failure modes. The rule-based Planner substantially underestimated unfamiliar literature-derived methods, including Cal-DPO by 15.6× on average. Literature access also coincided with more method switching in AutoCon-OE, even after a method improved the validation target, whereas AutoCon-T repeatedly refined a working GRPO template. These observations motivate uncertainty-aware admission rules that reserve budget for smoke runs and explicitly balance revisiting strong configurations against trying novel methods all the time.
## **Scope and Limitations**
The study evaluates one private-pretrained model family, one clinical task, one coding harness, and three independent sessions per target metric. Conditions received equal wall-clock ceilings but did not consume equal compute: Baseline-CA stopped substantially earlier, so the comparison captures each system's ability to use the available ceiling, not equalized training work. Repeated validation queries may also induce adaptive overfitting despite the held-out test protocol. We do not ablate individual AutoCon components, vary the time ceiling, evaluate another model or agent scaffold, or measure downstream clinical utility. Finally, our experiments were conducted exclusively with open-source tools and without unrestricted internet access. Consequently, our findings may not be comparable to autonomous post-training systems operating with full web access or using closed-source agent frameworks (e.g., Claude CLI or Codex).
## **Conclusion**
We compared template-based, literature-open, and unconstrained autonomous post-training under a common task, starting checkpoint, evaluator, and wall-clock ceiling. In this setting, AutoCon-T achieves the highest mean result for every target metric, and both controlled workflows use substantially fewer LLM tokens and produce fewer final no-score experiments than the coding-agent baseline. The literatureopen variant explores more methods but also exposes large planning errors for unfamiliar procedures. These systemlevel findings support controlled, traceable orchestration as a promising design for resource-bounded autonomous experimentation, while leaving component ablations and evaluation across additional models, tasks, and budgets as the most important next steps.
## **Competing Interests**
The authors declare no competing interests.
## **References**
- Dettmers, T.; Pagnoni, A.; Holtzman, A.; and Zettlemoyer, L. 2023. Qlora: Efficient finetuning of quantized llms. *Advances in neural information processing systems*, 36: 10088–10115.
- Ethayarajh, K.; Xu, W.; Muennighoff, N.; Jurafsky, D.; and Kiela, D. 2024. KTO: Model Alignment as Prospect Theoretic Optimization. In *Proceedings of the 41st International Conference on Machine Learning*.
- Ghaffari, M.; Agarwal, A.; Fatehi, N.; Leong, L.; Linden, T.; Hassanzadeh, R.; and Morato, C. 2026. SparseEHR: Scalable Foundation Modeling for Structured EHR via Conditional Computation. In *ICML 2026 Workshop on Structured Data for Health*.
- Gridach, M.; Nanavati, J.; Mack, C.; El Abidine, K. Z.; and Mendes, L. 2025. Agentic ai for scientific discovery: A survey of progress, challenges, and future directions. In *Towards Agentic AI for Science: Hypothesis Generation, Comprehension, Quantification, and Validation*.
- Hong, J.; Lee, N.; and Thorne, J. 2024. ORPO: Monolithic Preference Optimization without Reference Model. In *Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing*, 11170–11189.
- Johnson, A. E. W.; Bulgarelli, L.; Shen, L.; Gayles, A.; Shammout, A.; Horng, S.; Pollard, T. J.; Moody, B.; Gow, B.; Lehman, L.-w. H.; Celi, L. A.; and Mark, R. G. 2023. MIMIC-IV, a Freely Accessible Electronic Health Record Dataset. *Scientific Data*, 10(1): 1.
- Li, Q.; Zhang, Y.; Yang, X.; Yang, X.; Wang, Z.; Liu, W.; and Bian, J. 2026. FT-Dojo: Towards Autonomous LLM Fine-Tuning with Language Agents. *arXiv preprint arXiv:2603.01712*.
- Liu, J.; Song, S.; Wang, Y.; Mao, J.; Chen, H.; Huang, X.; Qi, T.; Guo, P.; Tang, Y.; He, Y.; et al. 2026. Automedbench: Towards medical autoresearch with agentic ai models. *arXiv preprint arXiv:2606.01961*.
- Liu, J.; Wang, K.; Chen, Y.; Peng, X.; Chen, Z.; Zhang, L.; and Lou, Y. 2024. Large language model-based agents for software engineering: A survey. *arXiv preprint arXiv:2409.02977*.
- Lu, C.; Lu, C.; Lange, R. T.; Foerster, J.; Clune, J.; and Ha, D. 2024. The ai scientist: Towards fully automated open-ended scientific discovery. *arXiv preprint arXiv:2408.06292*.
- Ma, Z.; Wang, G.; Xie, X.; Chen, Y.; Du, H.; Li, B.; Sun, Y.; Liu, W.; Chen, K.; and Li, Y. 2026. TREX: Automating LLM Fine-tuning via Agent-Driven Tree-based Exploration. *arXiv preprint arXiv:2604.14116*.
- Motzfeldt, A.; Edin, J.; Christensen, C. L.; Hardmeier, C.; Maaløe, L.; and Rogers, A. 2025. Code like humans: A multi-agent solution for medical coding. In *Findings of the Association for Computational Linguistics: EMNLP 2025*, 22612–22627. Association for Computational Linguistics.
- OpenCode Contributors. 2025. OpenCode: The Open Source AI Coding Agent. https://opencode.ai.
- Paper Lantern. 2026. Paper Lantern: AI-Powered Academic Search for Coding Agents. https://www.paperlantern.ai. Accessed July 27, 2026.
- Rafailov, R.; Sharma, A.; Mitchell, E.; Ermon, S.; Manning, C. D.; and Finn, C. 2023. Direct Preference Optimization: Your Language Model Is Secretly a Reward Model. In *Advances in Neural Information Processing Systems*, volume 36.
- Rank, B.; Bhatnagar, H.; Prabhu, A.; Eisenberg, S.; Nguyen, K.; Bethge, M.; and Andriushchenko, M. 2026. PostTrain-Bench: Can LLM Agents Automate LLM Post-Training? *arXiv preprint arXiv:2603.08640*.
- Shao, Z.; Wang, P.; Zhu, Q.; Xu, R.; Song, J.; Bi, X.; Zhang, H.; Zhang, M.; Li, Y. K.; Wu, Y.; and Guo, D. 2024. DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models. *arXiv preprint arXiv:2402.03300*.
- Wang, Z.; Li, W.; Chen, S.; Luo, Y.; and Ding, K. 2026. Can Post-Training Turn LLMs into Good Medical Coders? An Empirical Study of Generative ICD Coding. *arXiv preprint arXiv:2606.13940*.
- Wei, J.; Yang, Y.; Zhang, X.; Chen, Y.; Zhuang, X.; Gao, Z.; Zhou, D.; Wang, G.; Gao, Z.; Cao, J.; et al. 2025. From ai for science to agentic science: A survey on autonomous scientific discovery. *arXiv preprint arXiv:2508.14111*.
- Xiao, T.; Yuan, Y.; Zhu, H.; Li, M.; and Honavar, V. G. 2024. Cal-DPO: Calibrated Direct Preference Optimization for Language Model Alignment. In *Advances in Neural Information Processing Systems*.
- Yang, Z.; Mitra, A.; Liu, W.; Berlowitz, D.; and Yu, H. 2023. TransformEHR: Transformer-Based Encoder-Decoder Generative Model to Enhance Prediction of Disease Outcomes Using Electronic Health Records. *Nature Communications*, 14: 7857.
- Yano, T.; Ishibashi, Y.; and Oyamada, M. 2025. LaMDAgent: An Autonomous Framework for Post-Training Pipeline Optimization via LLM Agents. In *Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing*, 30066–30083.
- Yu, Z.; Yin, P.; Gao, S.; He, S.; Cai, K.; and Zhang, X.- P. 2026. AutoTrainess: Teaching Language Models to Improve Language Models Autonomously. *arXiv preprint arXiv:2606.31551*.