Pushing the Error Frontier: Recursive Self-Improvement of Long-Horizon Agents via Frontier-Aligned Self-Distillation
Abstract
FRONTIERSD localizes an agent's error frontier and applies local self-distillation with hindsight rules to overcome bottlenecks in long-horizon tasks.
LLM-based agents can now handle longer tasks, such as web shopping and browser navigation. They often do well in the early steps but get stuck later. Outcome-based training such as group relative policy optimization (GRPO) offers little feedback about where these bottlenecks lie or how to overcome them. Another recent approach, on-policy distillation (OPD), provides dense feedback, but dense feedback alone does not specify where teaching should begin or when a rule should stop supervising. We argue that teaching should focus on the current bottleneck and advance as the agent learns. We introduce the error frontier: the position separating a mastered prefix, which the agent executes reliably, from an unmastered suffix, where progress becomes less reliable and success less likely. Our insight is to turn hindsight at this position into supervision for overcoming the bottleneck. We propose FRONTIERSD to combine frontier localization with local self-distillation. Entropy recall and action-support comparison select the teaching position, where the agent extracts a hindsight rule and distills rule-guided predictions in the original decision context. Rule influence controls teaching strength and scope, alongside full-trajectory GRPO. After initialization with externally labeled examples, the same agent generates fresh trajectories and rules for successive updates, forming a recursive self-improvement loop. We evaluate Qwen3-1.7B and Qwen3-4B in four environments without guidance at test time. FrontierSD improves success on WebShop, ALFWorld seen, and MiniHack at both scales. The 4B gains over the strongest reported baselines are 4.3 and 10.8 percentage points on WebShop and ALFWorld seen, respectively; success on ALFWorld unseen reaches 91.8%. During training, teaching generally moves to later positions and guidance is triggered less often, consistent with an expanding mastered prefix.
Community
FrontierSD
Pushing the Error Frontier: Recursive Self-Improvement of Long-Horizon Agents via Frontier-Aligned Self-Distillation
Teach at the current bottleneck. Revisit it as the agent learns.
FrontierSD combines frontier localization, hindsight rule generation, and
local on-policy self-distillation for long-horizon agents. The same agent acts,
identifies teaching positions, writes rules, and learns from them. Fresh experience
and rules from the updated agent form a recursive self-improvement loop.
The error frontier separates a mastered prefix from an unmastered suffix on
an agent's own trajectory. FrontierSD estimates a teaching position near this
boundary, rather than treating uncertainty at every step as an instruction to teach.
At evaluation time, the trained agent acts without guidance or a teacher.
Why frontier-aligned teaching?
Task-outcome rewards offer limited information about intermediate difficulties.
Dense distillation provides additional feedback, but also needs to decide where
teaching should start and how far a rule should continue to supervise.
Method: WHERE · WHAT · HOW
| Component | What FrontierSD does |
|---|---|
| WHERE · Locate | Recall the five decisions with highest action-token entropy. At each candidate, sample eight independent next responses without executing them; compare support for alternative actions with support for the recorded action. Select the largest positive support margin with sufficient alternative support, or skip teaching when no candidate qualifies. |
| WHAT · Guide | Let the same agent extract one reusable decision rule from the selected position, recorded experience and training-only hindsight, optionally with a successful reference from the same task. |
| HOW · Internalize | Compare the unguided student with a stop-gradient, rule-conditioned teacher using the same parameters, decision context and response-token prefix. Distill the original response; action-token JS influence controls teaching strength and duration. Full-trajectory GRPO remains active. |
Rule generation is initialized once with externally labeled examples and
guidance-only SFT. During RL, rules come from the current agent, not a separate
fixed rule generator. A rule is fixed for its source trajectory, while teacher
distributions are recomputed using current parameters during learning.
Original model → source experience → externally labeled rules → guidance-only SFT
↓
Fresh unguided rollouts → WHERE → WHAT → HOW + full-trajectory GRPO
↑ ↓
└────────── updated shared agent ─────┘
Get this paper in your agent:
hf papers read 2611.40408 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper

