Skip to main content
Contract: teacher = the same base model, conditioned on a golden-answer demonstration; student trains to match it over its own on-policy rollouts. Caller math: This is Self-Distillation Fine-Tuning (SDFT), “Self-Distillation Enables Continual Learning” (Shenfeld et al., 2026) — the technique current survey literature groups under “on-policy self-distillation”: a single LLM acts as teacher and student under different contexts, and the student trains to match the teacher’s distribution over its own on-policy rollouts. This is SDFT’s per-token importance-sampling fallback (topk=0): advantage = teacher_logprob - student_logprob. SDFT’s primary, paper-validated mode (top-K soft-label cross_entropy, default topk=20) needs a (N, K)-shaped soft-target datum built from Whitney’s topk_prompt_logprobs sample field — a real extension, not shown here. Whitney mapping: The teacher is a frozen second Whitney run, synced once and never trained — SDFT’s own default (teacher_sync_every=None, “works comparably to EMA in our experiments”). The teacher prompt is a fixed demonstration template (question + a golden answer as an in-context demonstration), tokenized on the caller side — Whitney’s HTTP contract speaks only token IDs:
Fail closed: You must supply a real tokenized demonstration prompt — there is no default golden answer.
rl_datum and forward_backward_payload are the shared datum helpers.