cs.AIOct 14, 2026

Teaching Agents in their Own Style: Blackbox Teacher Distillation for Web Agents

Authors: Md Farhan Ishmam, Kenneth Marino

Organizations: Kahlert School of Computing, University of Utah

Abstract

Frontier web agents using closed models have high inference and computational costs. Smaller open models can be an alternative, but to be performant, they require training supervision from a human or teacher model. Token-level teacher distillation is not an option for closed teachers as it needs access to the model's logits. The standard approach is to imitate teacher demonstrations offline, but it trains the student on states it has never visited, and in a style it does not write in. We introduce WebKD, where the teacher is the editor of the student's failures. Given a failed episode, the teacher finds the first point of mistake, and rewrites the student's reasoning traces, harness states, and actions from that point onward. The editing reveals that the teacher's corrections can be more surprising to the student than the student's own text. WebKD instead aims to edit minimally. In the data space, the teacher writes each correction in the student's style. In the objective space, the reasoning is weighted by its contribution to the action. A role-asymmetric KL anchor allows the corrected action to move freely while keeping the reasoning near the student's prior. On the TimeWarp benchmark, WebKD students gain about 5.5-10.7 pp over behavior cloning, outcome-reward RL, and teacher editing baselines. The performance transfers to unseen versions and to the live web in the OnlineMind2Web benchmark. WebKD opens a new way of distilling black-box models to improve the capabilities of open-weight web agents.

Figures & tables

Appendix figures & tables4 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. ActionOPD: Distilling Decisions, Not Tokens

    Oct 14, 2026Huining Yuan, Xiangmin Yi, Zelai Xu +5LLM Agent TrainingKnowledge Distillation

  2. Harness-Aware Distillation for Small Language Model Agents

    Oct 2, 2026Moonseok Choi, Taehong Moon, Giung Nam +1LLM Agent HarnessesOn-Policy Distillation

  3. When and What to Teach: Budget-Aware Online Adaptation for Web Agents

    Aug 31, 2026Jianwei Zhang, Sihan Cao, Pengcheng Zheng +7Online Knowledge DistillationLLM Agent Training