ZeroHero: Training Small Language Agents from Scratch
Organizations: Cognitive AI Systems Lab (cogailab.com) · Moscow Independent Research Institute of Artificial Intelligence (miriai.org)
Abstract
Large pretrained language models provide capable policies for interactive tasks, but how much model capacity is necessary for a specialized language agent? We introduce ZeroHero, a framework for training small language agents (SLAs) from scratch. In each environment, a large language model acts as the expert, and we collect its successful trajectories. We pretrain each SLA, which has fewer than 50 million parameters, to predict the expert's responses given the interaction history. We then post-train the agent on its own interactions using proximal policy optimization (PPO). During post-training, reasoning alignment supplements environment rewards with expert supervision on the language the agent generates alongside its actions. We evaluate the agents in three multistep environments where acting requires both understanding and generating language. In Crafter, agents interpret textual observations and generate reasoning before acting. In WebShop, they translate shopping instructions into search queries. In Alfworld-Dialogue, they ask clarifying questions and use the answers to guide household actions. The agents approach expert performance on WebShop and surpass their respective demonstration experts on Crafter training rollouts and held-out Alfworld-Dialogue tasks. An interactive demo is available at https://zoyav.github.io/-ZoyaV-zerohero-demo.
Figures & tables
| Policy | RL steps | Repeated ACTION: (%) | Repeat-4 (%) |
|---|---|---|---|
| Pretrained | 0 | 0.00 | 0.61 |
| PPO | 29.38M | 71.88 | 19.91 |
| PPO-RA | 15.86M | 3.13 | 0.51 |
| Agent | Input | Params. | RL budget | Mean Achievements | Crafter Progress (%) |
|---|---|---|---|---|---|
| GPT-6-Astra-Max | Text | — | — | 16.90 | 76.8 |
| Claude-Opus-5-Max | Text | — | — | 15.00 | 68.2 |
| Gemini-2.5-Pro-Exp-03-25 | VLM | — | — | 8.21 | 37.3 |
| ZeroHero PPO-RA | Text | 5M | 50M | 15.03 | 68.3 |
| ZeroHero SFT | Visual | 12.6M | 0 | 8.96 | 40.7 |
| ZeroHero PPO-RA | Visual | 12.6M | 50M | 18.48 | 84.0 |
LLM Agent Training
Large language model agent training teaches models to plan, use tools, and learn from multi-step interaction with environments.
See all 631 papers