FrontierSD
FRONTIER-ALIGNED SELF-DISTILLATION

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.

ONE AGENT. LOCAL LESSONS.A moving target for teaching
Teach near the error frontierA trace consists of a recorded prefix, a frontier with a local teaching interval, and a remaining trajectory. This is a conceptual illustration. Recorded prefix Local teaching Remaining trajectory Estimated frontier
GRPO across the trajectoryRule-guided teaching within a local interval
FOUR ENVIRONMENTSWebShopALFWorldMiniHackScienceWorld
01 / THE IDEA

A lesson at the right place.

Long-horizon tasks need more than a reward at the end. They need feedback aligned with the decisions an agent has yet to master.

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, distills a reusable rule from hindsight, and controls how long that rule continues to supervise.

The same agent acts, writes the rule, and learns from it. Fresh experience from the updated agent closes the loop. At evaluation time, the agent acts independently, without guidance or a teacher.

Task-outcome feedback, trajectory-wide distillation, and local frontier-aligned teaching compared along an agent trajectory.
From outcome feedback to teaching aligned with the current bottleneck.
02 / THE METHOD

Where. What. How.

Three connected decisions turn an agent’s own experience into a local learning signal.

TWO-STAGE LOCALIZATION

Recall uncertainty. Refine with action support.

Recall the five decisions with highest action-token entropy. At every candidate, sample eight independent next responses without executing them. Compare support for alternative actions with support for the recorded action, and select a qualifying positive support margin. Skip teaching when no candidate qualifies.

One shared agentFresh trajectories.
Fresh teaching positions.
Fresh decision rules.
Full FrontierSD framework: two-stage localization, hindsight rule generation, and local self-distillation with adaptive teaching strength.
FrontierSD combines full-trajectory GRPO with frontier-aligned, rule-guided self-distillation.
03 / GET STARTED

Explore FrontierSD.

The implementation, released checkpoints, and training tasks are available below.

from huggingface_hub import snapshot_download

snapshot_download(
    repo_id="namespace-ERI/frontiersd-model",
    local_dir="frontiersd-model",
)