TL;DR
Do you really need a massive, power-hungry LLM to build an AI agent that can think, talk, and act? ZeroHero shows that randomly initialized, pint-sized models—under 50 million parameters—can be trained from scratch to reason, search the web, and ask clarifying questions. Better yet, once they practice via reinforcement learning, these tiny agents frequently outperform the multi-billion-parameter giants that taught them.
What Problem Does This Paper Address?
Large language models (LLMs) make great interactive agents: they can formulate search queries, plan intermediate steps, and talk to users to clarify vague goals. The catch? They are computationally massive. Running a 30B+ parameter model locally drains memory and compute, while cloud APIs fail when you have strict privacy rules or spotty internet.
Meanwhile, we know tiny Transformers (under 10M parameters) can write coherent children's stories (TinyStories) or play Atari games using non-linguistic tokens. What hasn't been clear is whether a model that small, starting from random weights with zero pretraining priors, has enough capacity to weave natural language understanding and generation directly into multi-step decision-making. ZeroHero puts that exact question to the test.
Methods
ZeroHero trains Qwen-like decoder-only Transformers (at 5M, 10M, and 50M parameter scales, plus a 12.6M vision-language variant) from scratch in two distinct stages:
- Supervised Pretraining (Imitation): First, a massive LLM (7B to 27B+ parameters) plays inside the target environment. The authors collect its winning trajectories and train the tiny student model via standard cross-entropy loss to predict the expert's responses—including internal thoughts, questions, and executable actions—given the interaction history.
- RL Post-Training with Reasoning Alignment (PPO-RA): Next, the student interacts with the environment on its own, updating its policy via Proximal Policy Optimization (PPO) based on task rewards.
Here is what's novel: environment rewards only score actions, leaving the model's generated language unsupervised—which often causes RL-tuned models to devolve into repetitive gibberish. To prevent this, PPO-RA introduces two guardrails:
- Language Anchor: A KL-divergence penalty during PPO keeps the agent's language tokens close to its frozen, post-imitation self.
- Teacher-Supervised Auxiliary Phases: Inspired by Phasic Policy Gradient, the training periodically pauses RL to revisit expert language targets (using byte-prefix marginalization to bridge different tokenizers), while holding action probabilities steady so it doesn't overwrite its newly learned skills.
Datasets
The authors evaluate ZeroHero across three interactive environments where language plays fundamentally different roles, training on custom corpora of successful expert trajectories:
- Crafter: A 2D Minecraft-like survival world (up to 85k text transitions from Qwen3.8-27B; 4.4M transitions from Qwen3.8-Flash-Next-FP8 for the visual setting). Language is used to reason about prerequisites and maintain memory notes before acting.
- WebShop: A simulated e-commerce site with 1,000 synthetic products (up to 42.6k transitions from a GiGPO-trained Qwen2.5-7B). Language is used to write and revise search queries.
- Alfworld-Dialogue (Newly Adapted): Built on ALFWorld's six household task families (up to 63.4k transitions from Gemma-4-26B-A4B-it). Unlike standard ALFWorld, the authors strip critical details from the initial prompt (like where to put an object or how to treat it). The agent must recognize the ambiguity and issue free-text
askqueries to a privileged Qwen3-4B oracle before acting.
Key Insights and Ideas
- Shockingly little data gets the ball rolling: Even with random initialization, just 1,200 to 2,200 expert transitions are enough for tiny agents to start completing multi-step language tasks.
- Bigger isn't automatically better at small scales: While adding data steadily helps, scaling parameters from 5M to 50M yields diminishing—or even negative—returns on finite expert data. In Alfworld-Dialogue, the 10M model crushed the 50M model (67.2% vs. 41.0% success), as larger models overfit more quickly during pretraining.
- RL cures "imitation ceilings," and alignment cures "RL brain damage": RL lets tiny students surpass their massive teachers via trial-and-error. However, plain PPO caused Crafter agents to wildly repeat
ACTION:markers (71.9% of responses) and loop 4-gram phrases (19.9%). Adding Reasoning Alignment dropped action-marker repetition back down to 3.1%, keeping language clean while boosting task scores in Crafter and WebShop.
Key Results
- Alfworld-Dialogue: A 5M-parameter agent post-trained with plain PPO achieved 74.4% mean test success on unseen household tasks, beating its 26B-parameter Gemma expert (67.9%). Interestingly, PPO-RA slightly hurt validation performance here compared to plain PPO (83.3% vs. 93.3%).
- WebShop: Starting from a 10M pretrained checkpoint, PPO-RA pushed rollout success to 67.2% (nearly matching the 70% expert reference) and beat plain PPO by 17.2 percentage points.
- Text & Visual Crafter: A 5M text agent surpassed its 27B expert reference (12 achievements) within 6M steps, reaching 15.4 achievements/episode with PPO-RA. Scaling up to a 12.6M visual-language policy (trained from scratch, pixel encoder included!) yielded 18.48 achievements at 50M decisions and 19.19 (87.2% of all 22 skills, including mining diamonds) at 1B decisions—outscoring frontier text models on the BALROG leaderboard like GPT-6-Astra-Max (16.90) and Claude-Opus-5-Max (15.00), though across different input modalities and protocols.
Limitations and Future Work
- Unmeasured semantic quality: While the authors prove PPO-RA prevents degenerate text repetition, they openly note they haven't measured whether alignment actually improves the semantic accuracy of explanations or whether clarifying questions target the exact missing information.
- Domain specialization: Every ZeroHero agent is an ultra-specialist trained for one environment with a task-specific tokenizer; generalist transfer isn't explored here.
- Alignment trade-offs: Because PPO-RA underperformed plain PPO on Alfworld-Dialogue, figuring out exactly when teacher supervision constrains useful exploration remains an open question.
Summary updated