potentialpaper

Branch-Grafted On-Policy Distillation for Agents Solving Capture-the-Flag Challenges

Anonymous authors

ICLR 2027

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. On-policy distillation (OPD) trains a student policy using teacher supervision on trajectories generated by the student, thereby reducing the distribution mismatch between offline supervision and the states encountered during deployment. For multi-turn agents, we study how to make fuller use of teacher supervision at interaction histories already visited by the student. Standard OPD follows the response sampled by the student, while alternative teacher responses from the same history are not directly used for distillation. We introduce Branch-Grafted On-Policy Distillation (BG-OPD), which augments student trajectories with single-turn teacher-generated response branches at selected interaction histories. BG-OPD uses teacher–student residual disagreement to allocate branch supervision and distills the resulting teacher responses without executing their proposed actions in the environment. We further show that the branch objective can be interpreted as a turn-level approximation to residual-weighted teacher supervision and characterize the corresponding approximation error. We evaluate BG-OPD on interactive cybersecurity tasks, where long-horizon hypothesis testing and tool use make alternative response paths particularly important. To support on-policy training at scale, we construct 1,370 containerized CTF environments whose solvability is verified through independently executed solutions. Across Cybench, NYU CTF Bench, and XBOW, BG-OPD consistently outperforms offline SFT and existing OPD baselines for both 4B and 9B students, improving mean task success from 13.20% to 21.01% over the strongest baseline for the 9B model and from 7.70% to 14.76% for the 4B model. Ablations further attribute the improvement to teacher-generated branches and disagreement-based branch selection.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
18 Sep 2026ICLR 2027submittedICLR 2027Desk rejectedreviews ↓[1]PDF[1]
Missing a version?

ICLR 2027

Desk rejected · OpenReview

Updated 24 Nov 2026, 16:54 UTC.

The venue hasn't published any reviews yet.

Missing a submission?

Loading the discussion…