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.
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.

Where. What. How.
Three connected decisions turn an agent’s own experience into a local learning signal.
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.
Turn experience into a decision rule.
The current agent reads the selected position, the recorded experience, and training-only hindsight. When available, a successful trace from the same task provides a reference. The output is one reusable decision rule: what to check, when it matters, and how it changes the next decision.
Teach while the rule still matters.
A rule-conditioned teacher and an unguided student share parameters, decision context, and response-token prefix. Local on-policy distillation internalizes the rule with a stop-gradient teacher. Action-token JS influence controls teaching strength and duration, while full-trajectory GRPO remains active.
Fresh teaching positions.
Fresh decision rules.

Explore FrontierSD.
The implementation, released checkpoints, and training tasks are available below.
Code
Training, inference, benchmark setup, and baseline implementations.
Read the documentation HUGGING FACEModels
Benchmark-specific checkpoints, organized together for easy download.
Download checkpoints HUGGING FACEData
RL training tasks for WebShop, ALFWorld, MiniHack, and ScienceWorld.
Browse the task setsfrom huggingface_hub import snapshot_download
snapshot_download(
repo_id="namespace-ERI/frontiersd-model",
local_dir="frontiersd-model",
)