AgentSSL transforms semi-supervised learning from a manually engineered optimization problem into an autonomous program-search process in which LLM-based agents discover, evaluate, and refine complete machine learning pipelines using limited supervision.
Instead of asking an AI agent to train one predefined model, give it a complete ML engineering environment. The agent can experiment with pseudo-labeling, graph-based learning, consistency regularization, feature extraction, and other techniques, combining them into executable programs. The challenge then shifts from generating good programs to reliably selecting the best one without extensive labeled validation data.
Represent each complete machine learning solution as an executable program. An LLM agent drafts, debugs, analyzes, and improves programs through iterative search rather than being restricted to a predefined set of model architectures or hyperparameters.
Agents explore established semi-supervised learning techniques, combining pseudo-labeling, consistency regularization, self-training, graph-based methods, contrastive learning, and domain-specific inductive biases to exploit unlabeled datasets.
Separate discovering high-performing programs from selecting them for deployment. Evaluate unsupervised selection metrics and active model selection methods to identify strong candidates without requiring a large labeled validation dataset.
1. What Existed Before: Context & Limitations
Traditional AutoML systems automate hyperparameter optimization, pipeline search, and neural architecture search, but generally depend on predefined search spaces and manually specified optimization objectives.
Recent LLM-based MLE agents can generate, execute, debug, and refine machine learning programs. However, most existing evaluations assume abundant labeled training and validation data.
Semi-Supervised Learning combines a small labeled dataset with a much larger unlabeled dataset. Classical approaches include graph-based label propagation and low-density separation.
Modern deep SSL methods use pseudo-labeling, consistency regularization, self-training, and confidence-based filtering. Examples include FixMatch, SoftMatch, Mean Teacher, and foundation-model adaptation methods.
Deploying SSL remains difficult because different datasets have different distribution characteristics and inductive biases. A technique that performs well on one dataset may perform poorly on another.
Existing approaches typically require human engineers to select and tune the appropriate SSL algorithm for each dataset.
Conventional ML workflows require expensive human annotation and extensive manual engineering. Existing MLE agents reduce engineering effort but generally assume that labeled data is abundant.
2. The Core Problem Formulated
The SSL problem consists of a labeled dataset L and an unlabeled dataset U, where the number of labeled examples is significantly smaller than the number of unlabeled examples.
The objective is to construct a predictor h that performs well on an unseen test distribution using both datasets.
Instead of defining a solution as a fixed neural network and training objective, the paper defines a solution as an executable program A that maps labeled and unlabeled datasets into a prediction function.
AgentSSL divides the problem into two independent challenges: program discovery and program selection.
Program discovery searches for high-performing SSL programs using limited feedback. Program selection identifies the best candidate from the generated program pool without access to complete ground-truth labels.
3. The Mechanism: Algorithmic Architecture & Verification
AgentSSL uses an LLM-powered machine learning engineering agent built on the AIRA-Dojo framework. The agent searches over executable SSL programs, evaluates candidates in an isolated execution environment, receives feedback, and iteratively improves its solutions.
Algorithmic Execution DAG
n8n WORKFLOWSequential computational flow across inference and verification states
Dataset and Task Initialization
Provide the agent with a task description, a small labeled dataset, a larger unlabeled dataset, and a predefined execution interface. A simple supervised learning program is used as the initial search point.
Program Generation
The LLM generates complete executable machine learning programs. It explores different SSL methods, training strategies, feature representations, and combinations of existing techniques.
Program Execution and Evaluation
Candidate programs execute in isolated Apptainer environments. The evaluator returns execution logs, runtime errors, and fitness scores to the agent.
Feedback-Driven Search
The agent uses noisy validation or unsupervised metrics to guide subsequent program modifications. The search procedure maintains a directed graph of candidate programs and their transformations.
Program Pool Construction
Successful and unsuccessful program candidates are collected into a pool. Each candidate represents a potentially different learning procedure, including its architecture, data processing, training strategy, and prediction mechanism.
Unsupervised Program Selection
Evaluate candidate programs using label-free statistics derived from predictions or representations. Select the candidate with the strongest estimated performance.
Active Model Selection
When unsupervised metrics are unreliable, allocate a limited annotation budget to identify which candidate performs best. The system actively queries labels to distinguish between competing programs.
Final Predictor Deployment
Select the strongest candidate under the available information constraints and use its learned prediction function for downstream inference.
4. Empirical Results & Benchmark Measurements
The authors evaluate AgentSSL on six image classification datasets covering natural, specialized, and structured visual domains. Each dataset uses two class-balanced labeled-data settings and three random data splits. The experiments compare agent-discovered programs against six human-engineered baselines.
| Metric | Standard Baseline | With Proposed Method | Measured Delta | Condition |
|---|---|---|---|---|
| Oracle performance against human SSL baselines | Best human-engineered SSL program | Best discovered AgentSSL program | AgentSSL wins in 8 of 12 settings | The oracle comparison assumes the best program is known and measures discovery capability rather than practical selection. |
| Maximum improvement on RESISC45 | 54.37% (SoftMatch, 2-shot) | 76.18% (AgentSSL with noisy validation, 2-shot) | +21.81 percentage points | Largest reported improvement over the best human-engineered SSL baseline. |
| RESISC45 1-shot | 73.17% (SoftMatch) | 79.80% (AgentSSL with unsupervised feedback) | +6.63 percentage points | Demonstrates strong performance under extremely limited supervision. |
| Retinopathy 40-shot | 51.48% (Supervised) | 72.47% (AgentSSL with noisy validation) | +20.99 percentage points | Agent-generated programs exploit medical domain structure. |
| Retinopathy 80-shot | 54.37% (SoftMatch) | 73.47% (AgentSSL with noisy validation) | +19.10 percentage points | Strong improvement over the best human-engineered SSL result. |
| Unsupervised program selection | Oracle-selected best program | Selection using the agent feedback metric | Up to approximately 47 percentage points of performance loss | Selection regret is dataset- and feedback-dependent. The largest reported regret is 47.29 percentage points. |
| ProgramSelectBench size | No comparable standardized benchmark in this study | 16,977 evaluated program instances | 35 selection tasks across six datasets | Includes human-engineered and agent-generated solutions. |
| Search compute | 7,628.7 GPU-hours for the aggregated baseline experiments | 2,484 GPU-hours for AgentSSL experiments | Different experimental compute budgets | Aggregated training compute reported in Appendix B; this should not be interpreted as a general speedup. |
5. Production Implementation Blueprint
The paper implements AgentSSL using the AIRA-Dojo machine learning agent framework. An LLM generates complete executable ML programs, which are executed inside isolated Apptainer environments. The evaluator calculates fitness metrics and returns execution feedback to the agent.
- •Unreliable unsupervised metrics: A feedback metric can fail to correlate with true predictive accuracy, resulting in poor candidate selection.
- •Domain shift: Strong programs discovered for one dataset may perform poorly when transferred to another dataset.
- •Insufficient labeled validation data: Noisy validation feedback can have high variance when the available labeled examples are extremely limited.
- •Search diversity limitations: Greedy search may converge to narrower regions of the program space than evolutionary search.
- •Unnecessary SSL complexity: Unlabeled data is not always beneficial; simple supervised improvements can sometimes match more complicated SSL solutions.
- •Compute requirements: Iteratively generating and evaluating executable programs requires substantial GPU and execution resources.
- •Selection instability: Active selection algorithms can exhibit high variance or behave inconsistently as more labels are acquired.
6. Curator Assessment & Architectural Context
"As agents make candidate programs cheap to generate, the bottleneck in AgentSSL shifts from building programs to choosing among them."