Don't Mask the Environment: Observation Supervision Changes How Agents Explore Under RL
Juzheng Zhang, Disha Makhija, Manoj Ghuhan Arivazhagan, Vinayshekhar Bannihatti Kumar, Rashmi Gangadharaiah
University of Maryland · AWS AI Labs
Published September 17, 2026 · on the feed September 18, 2026 · ▲ 42 · arXiv 2609.20715
The abstract
Agent trajectories record what an agent does and what happens next. Yet standard supervised fine-tuning (SFT) applies loss only to agent-authored action tokens, using environment observations as context but not as prediction targets. We ask whether this convention provides the best initialization for subsequent reinforcement learning. We introduce ActObs, which also supervises the observation tokens already present in each trajectory. Although deployed agents never generate observations, learning to predict them encourages the policy to model action consequences without adding data, parameters, sequence tokens, or forward passes. The methods perform similarly after SFT but diverge after GRPO. On Qwen3-4B, GRPO from ActObs achieves higher pass@k at every evaluated sampling budget than its action-only counterpart on Terminal-Bench 2.0. On Qwen3-8B, it trades some pass@1 reliability for higher pass@k (+3.4 pp at pass@16) and solves more distinct tasks. The advantage extends to cross-domain code editing on aider-polyglot (+4.2 pp at pass@1 at 4B), whose tasks are unseen during SFT and RL. ActObs retains more entropy during RL while requiring less policy movement, leaving the final policy closer to its SFT initialization. Our analysis traces this difference to SFT: action and observation gradients rapidly become orthogonal, while action-only training leaves a large residual observation gradient and degrades environment prediction below the base model. Joint supervision prevents this one-sided specialization, preserving consequence prediction and preparing the policy for downstream exploration.
The Brief
2:51A short podcast summary of the paper. Written and voiced by AI.
Transcript
Don't Mask the Environment. Observation Supervision Changes How Agents Explore Under RL. By Juzheng Zhang and four others, from the University of Maryland and AWS AI Labs. Published on the seventeenth of September. No code repository is linked to it.
Agent trajectories record what an agent did and what happened next. Standard supervised fine-tuning puts loss only on the tokens the agent wrote, its actions, and uses environment observations as context but never as targets. The claim here is that this convention is not the best starting point for reinforcement learning afterwards. Also training on the observations changes how the agent explores later. The observations are already sitting in every trajectory. The only question is whether to learn from them.
ActObs supervises the observation tokens already present in each trajectory. Deployed agents never generate observations, but learning to predict them encourages the policy to model the consequences of its actions. It adds no data, parameters, sequence tokens or forward passes. The whole change is in which tokens carry loss. After fine-tuning alone, the two methods perform similarly. They diverge after GRPO.
On Qwen3-4B, GRPO starting from ActObs achieves higher pass at k than the action-only counterpart at every sampling budget evaluated, on Terminal-Bench 2.0. On Qwen3-8B it trades some pass at one reliability for higher pass at k, three point four points higher at pass at sixteen, and solves more distinct tasks. The advantage extends to cross-domain code editing on aider-polyglot, four point two points at pass at one for the four billion model, on tasks unseen in fine-tuning and in reinforcement learning.
ActObs keeps more entropy during reinforcement learning while needing less policy movement, and ends closer to its fine-tuned starting point. The analysis traces the difference back to fine-tuning. With joint training, action and observation gradients quickly become orthogonal. Action-only training leaves a large residual observation gradient, and drives environment prediction below the base model's level. An agent trained only on its own actions becomes worse at predicting its environment than the model it started from. Joint training keeps that ability intact.
The evidence comes from Qwen3 models at four and eight billion parameters, with GRPO as the reinforcement learning method, on terminal and code-editing tasks. The effect is not a uniform win either: at eight billion it is a trade, with some pass at one given up for broader coverage.
Masking the environment, on this account, is not neutral. Training on actions alone lets the model forget how the world responds. Keeping observations in the loss prevents that one-sided specialization, and a policy that still predicts consequences explores better once reinforcement learning begins. The benefit stays hidden until then, which is why it is easy to miss: after fine-tuning alone, the two look alike.
Paper Quest · 7 chapters · about 40 min
Play this paper
Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.
Chapter 1 🧩 · The problem
Every agent trajectory holds two voices: the agent's and the environment's. Training usually listens to one.
You fine-tune a terminal agent on expert trajectories: commands interleaved with what the terminal printed back. As usual, the loss falls only on the agent's commands; the terminal output is context, never a target.
The road ahead
- 1 · The problem ~6 min Agent fine-tuning usually trains only on the agent's own commands, and that model then becomes the starting point for reinforcement learning.
- 2 · What came before ~3 min
- 3 · The key idea ~9 min Put the training loss on the environment's observations too, so the agent learns what its actions do before reinforcement learning begins.
- 4 · Choose your own research ~3 min
- 5 · Build the method ~8 min Take expert traces, fine-tune with loss on both actions and observations, then run the usual GRPO reinforcement learning from there.
- 6 · The experiment ~6 min You’ll guess: Right after fine-tuning, before any reinforcement learning, how did training on observation tokens compare with action-only fine-tuning?
- 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Free, with Google or an email address. Your stars and progress are kept.