Ask · Explore · Act

ZeroHero

Choose your world
Research edition THE RESEARCH ↓
The research

Can a small agent learn to talk and act?

Question → reply → action.

If a task requires making decisions through dialogue, can a small model learn to generate text, choose actions, and plan both together: what should it ask to decide what to do next?

ZeroHero: Training Small Language Agents from Scratch

Task formulation

Can a small language model trained from scratch learn to use conversation as part of a decision-making strategy? We study this in Reinforcement Learning with Oracle Dialogue (RLOD): the agent acts in an environment, but information needed to complete its task is available only through dialogue with an operator, or oracle.

What the agent knows and chooses

The agent receives public observations and an interaction history: what it has seen, its previous decisions, and the operator's replies. At each decision, it generates either a physical command or a natural-language question, optionally preceded by reasoning. A physical command advances the environment and produces a new observation. A question leaves the physical state unchanged and adds a reply to the history. Both use the finite decision budget.

This creates two coupled planning problems: how to obtain the right information through dialogue, and how to use it to act. For example, finding a piece of bread is not enough if the agent does not know whether to heat or cool it, or where to put it. It must formulate a useful question, interpret the answer, and carry the recovered requirement into its subsequent actions.

What is hidden in each environment

In ALFWorld-Dialogue, the agent receives a shortened household request. It hides the destination, the required treatment and quantity, or all three. The original goal is also removed from observations and action history. The operator can clarify these requirements, object locations, and operation procedures. An episode permits at most 60 decisions, including no more than 50 physical steps and eight questions. Success requires satisfying the original, complete task: for example, cooling the object and placing it at the correct destination.

In Craftax-Dialogue, the agent sees a symbolic local map but does not know the target location. It can move up, down, left, or right, or ask for landmark-based guidance. The operator sees the hidden target and an annotated route; the agent receives only the textual reply and must choose its own moves. It has 75 decisions to reach the target, with questions drawing from that same budget.

What is learned and evaluated

The operator remains available during evaluation through the same question-answer interface. Its privileged information is never given directly to the agent, and a model-based operator can make mistakes. This role differs from the training expert, which supplies example decisions and corrections: the expert sees the public observations and dialogue and must also ask to recover hidden requirements.

For a fixed operator, the agent learns to maximize task reward over the interaction horizon. We evaluate the fraction of tasks completed within the limits above. Questions matter through their effect on later decisions: a fluent exchange is useful only if it helps the agent complete the task.

Environments

ALFWorld-Dialogue

An ALFWorld kitchen example: bread on the countertop.

AgentHow should I treat the bread?

OperatorCool it in the fridge.

ActionGoes to the fridge.

Part of the instruction is hidden. The agent clarifies it and continues the task. The kitchen frame is illustrative; the agent receives text.
Example from the paper ↗

Craftax-Dialogue

A Craftax map from a navigation example.

AgentWhat landmark should I look for?

OperatorGo to the grass directly below you.

ActionTakes a step down.

The target location is hidden. The agent asks for a landmark and chooses a move. See the full annotated illustration below.
Example from the paper ↗

The BATS method: adaptively choosing between expert supervision and reward-based learning

BATS stands for Bandit-based Adaptive Training Selection: choosing a training regime adaptively with a contextual bandit.

First, the language model learns from scratch on successful expert demonstrations. We then alternate between learning from expert corrections and from environment rewards. BATS selects the next training regime based on the agent's behavior and learning progress.

Pretraining. The expert solves tasks through the same interface as the future agent, taking actions and asking the operator questions. Successful episodes provide training examples. Starting from random weights, the model learns to reproduce the expert's responses: actions and questions.

Expert corrections (DAgger). The agent attempts tasks itself, and the expert labels what it should have answered in the situations it visited. These examples are mixed with previously collected data for training.

Learning from rewards (PPO). The agent collects new episodes in the environment and learns to choose actions and ask questions from the rewards it receives.

Measure current behavior

Before a training block, BATS evaluates the agent on a separate control set and collects behavioral features:

xk=[1,SR,finvalid,frepeat,T¯H,Q¯Qnorm]⊤

Here, SR is the task success rate, finvalid is the rate of invalid decisions, and frepeat is the frequency of repeating the same observed-history–response pair on consecutive steps. Mean episode length T̄ is normalized by the interaction limit H, and the mean number of questions Q̄ by an environment-specific scale Qnorm. The leading constant allows the score model to include an intercept.

Choose DAgger or PPO

Pretraining is followed by one PPO block and one DAgger block. LinUCB then chooses the regime m with the largest sum of predicted improvement and an uncertainty bonus:

mk=arg maxm[xk⊤Am−1bm+αxk⊤Am−1xk]

The first term predicts the improvement in success rate from the current feature vector xk. The second gives extra weight to a regime whose effect on this agent behavior is less certain; the coefficient α sets the size of this bonus. These are the two components shown as bars in the animation.

Each regime maintains its own matrix Am and vector bm, accumulating the relationship between agent features and observed progress. They are initialized as Am = λI and bm = 0, where I is the identity matrix and λ is a regularization coefficient. The selected regime updates the shared model for two cycles.

Measure progress and update the estimate

After the block, the agent is evaluated on the same control tasks with the same random seeds. BATS receives the change in success rate:

ρk=Jctrl(θk+1)−Jctrl(θk)

θk and θk+1 are the agent weights before and after the block, and Jctrl is the control-set success rate. If it rises from 0.40 to 0.45, the controller receives ρk = 0.05. A decline produces a negative signal and is also recorded.

Amk←Amk+xkxk⊤bmk←bmk+xkρk

Only the selected regime's statistics are updated. The new behavioral assessment becomes the input to the next choice. Final test tasks are excluded from this process. The operator answers the agent's questions under both regimes; the expert supplies training responses for DAgger.

Equations follow the paper's Bandit-based Adaptive Training Selection section. The controller observes the outcome of the selected regime; the effect of the alternative update at that point remains unknown. Short-term improvement therefore does not guarantee the best schedule over the whole training run.

The paper compares GPT-2-style (Classic) and Qwen3-style (Modern) architectures. Modern is used for post-training: the 5M-parameter class in ALFWorld-Dialogue and the 10M class in Craftax-Dialogue.

Regime-selection diagram from the paper. The curves are schematic examples. The sequence of regimes follows BATS estimates rather than a fixed schedule.

Comparing BATS, PPO, and DAgger

A schematic illustration of three training strategies. Experimental results follow below.

Results

Small language models trained from scratch on dialogue tasks learned to complete assignments and exceeded the large expert model's success rate. With strong initialization, BATS achieved the best mean results: 89.6% in ALFWorld-Dialogue and 66.7% in Craftax-Dialogue. The benefit of choosing between DAgger and PPO depends on the environment and the agent's competence at the start of post-training.

Test task success rate (%). Small models begin post-training from strong initialization.
Model / trainingALFWorld-DialogueCraftax-Dialogue
Qwen3-4B · no post-training11.910.9
Qwen3-8B · no post-training36.625.8
Expert · Gemma 4 26B-A4B67.961.5
Qwen3-4B · GiGPO post-training88.362.5
Small models with strong initialization
PPO74.4 ± 5.240.4 ± 3.0
DAgger73.9 ± 1.162.0 ± 4.4
PPO + imitation78.4 ± 2.539.6 ± 4.0
BATS89.6 ± 2.166.7 ± 3.5

Small model: Modern, 5M-parameter class for ALFWorld and 10M for Craftax. Values are means and standard deviations over three runs. Test sets contain 134 ALFWorld tasks and 512 Craftax worlds, excluded from BATS regime selection. The paper matches GPU compute budgets in the comparison with Qwen3-4B post-trained using GiGPO.

Source: ZeroHero paper, Experiments and Analysis sections, Test SR table. The joint-loss baseline combines PPO and imitation objectives in a single optimization step.

Analysis

Learning from expert trajectories

Pretraining provides a working initial policy: the model can already solve some tasks. Yet predicting expert responses more accurately does not necessarily mean acting more successfully on its own. When choosing its own actions, the agent encounters situations that may be absent from the training examples.

Architecture matters. After six epochs in ALFWorld, the 5M-class Modern model solves 55.0% of validation tasks, compared with 26.7% for Classic in the same size class. In Craftax, the advantage depends on model size. Increasing parameter count with the same amount of data does not guarantee improvement either: better imitation may not transfer to independent task completion.

Subsequent experiments therefore use three initialization levels: weak, medium, and strong, corresponding to different pretraining stages. Within each level, post-training methods start from identical weights and tokenizers.

Adaptive post-training

BATS shows its largest gain in ALFWorld with strong initialization: 15.2 percentage points over PPO and 15.7 over DAgger. From a weak start, PPO solves no test tasks; expert corrections bring DAgger to 64.7% and BATS to 69.9%. In this setting, the weak agent's own attempts are insufficient for successful reward-only training.

With medium initialization in ALFWorld, DAgger performs better: 75.0% versus 70.9% for BATS. In Craftax, BATS has the highest mean success rate with medium and strong initialization, while DAgger wins from a weak start: 65.1% versus 60.9%. Adaptive selection does not help equally at every starting point.

Individual runs reveal different training strategies. In ALFWorld, BATS uses both regimes from a weak start before switching to PPO; from a strong start, it predominantly selects PPO. In Craftax, expert corrections account for most of training. An effective allocation need not be balanced.

Simply combining PPO and imitation objectives in a single loss does not reproduce BATS results. However, this comparison involves complete training procedures with different allocations of optimization steps. It does not by itself establish that the joint loss causes the performance gap.

Dialogue and task completion

In a separate analysis of ALFWorld runs, the BATS agent asks more questions, completes more tasks, and uses fewer steps per episode on average. PPO asks the fewest questions but solves fewer tasks than BATS. Question frequency alone does not determine solution quality.

Behavior in individual ALFWorld runs with strong initialization. Questions and steps are episode averages.
AgentSuccess, %QuestionsSteps
Expert67.94.4328.02
PPO79.93.8027.35
DAgger73.14.4330.87
BATS88.14.8925.19
How to read these numbers

These are individual runs, so success rates differ from the means in the main table. Steps include questions and unsuccessful decisions; questions count accepted requests to the operator. All agents use the same operator.

A lower mean step count does not mean BATS always acts faster. The average includes unsuccessful episodes that exhaust the interaction budget. On tasks solved by the expert, PPO, and BATS alike, the expert uses fewer steps. These data also do not establish how informative each individual question is.

Conclusion

A small language model can be trained from scratch both to act and to request information needed for a decision. In ZeroHero, models in the 5–10M-parameter classes learn this combination in two specified environments, first from expert examples and then through corrections and rewards.

Results depend on initialization and post-training strategy. BATS achieves the best mean results with strong initialization in both environments, but does not win under every condition. The work shows that dialogue can become part of a small agent's strategy; open-ended conversation and transfer to arbitrary tasks remain outside this evaluation.