Complete script-free reading and print edition
Policy Detective
Trace provenance before naming the objective.
- Contract
- OPD-CORE-v1
- Fixture
- OPD-TOY-001 · invented
- Edition
- Generated locally · zero scripts
Complete script-free reading and print edition
Trace provenance before naming the objective.
An on-policy distillation case file
A student sampled B, arrived at xB, and received teacher feedback there. A review note says the run is on-policy because it uses reverse KL. Your job is to test that reasoning against the trace.
One deterministic toy · no model download · no training · no score · no claim of mastery
Briefing · four labels
We will introduce notation only when the case needs it. For now, keep four nouns separate.
Case DETECTIVE-CASE-CANONICAL
xBReconstruct provenance first. Then calculate. Every number below is an invented teaching input frozen by OPD-CORE-v1.
Evidence board
The fixed prompt is x. The behavior row at x is [0.75, 0.25]. The recorded uniform draw is 0.8. Do not use the teacher or loss name to infer the sampled token.
| Prefix | Student A | Student B | Teacher A | Teacher B | Trace role |
|---|---|---|---|---|---|
x | 0.75 | 0.25 | 0.50 | 0.50 | fixed start · included |
xB | 0.60 | 0.40 | 0.90 | 0.10 | student-visited · included |
xA | 0.30 | 0.70 | 0.80 | 0.20 | fixed teacher comparison · excluded |
xstudent-v0 draw u=.8sample Bvisit xBDerived draw from a toy fixture. The provenance rule is source-backed. OPD-CL-001OPD-CL-006DETECTIVE-CL-013DETECTIVE-CL-014DETECTIVE-CL-015DETECTIVE-CL-016DETECTIVE-CL-017
Branching diagnosis
The choice changes the evidence you reveal, not the frozen trace.
DETECTIVE-BRANCH-PROVENANCE · action: provenance
Record. behavior student-v0 supplied [0.75, 0.25] at x; u=0.8 selected B; the child prefix is xB.
Ruling. Decisive for the continuation-side state source: B and xB came from the current student behavior policy. The fixed prompt x does not change that completion provenance.
DETECTIVE-BRANCH-OBJECTIVE · action: objective
Record. the declared local objective is reverse KL.
Ruling. Insufficient for provenance. Reverse KL names the objective direction, not the policy that generated the visited prefix.
DETECTIVE-BRANCH-CONFIDENCE · action: teacher-confidence
Record. teacher-v0 supplies [0.9, 0.1] at xB.
Ruling. Insufficient for provenance and correctness. The row says what this teacher predicts at xB; confidence neither identifies the behavior policy nor proves the teacher is right.
Read the machine record
At xB, both student and teacher distributions are evaluated at that same prefix. The teacher is not asked to pretend the student took A.
u=.8 → B. Detached in this GKD-style toy.
x + B → xB. Provenance: current student-v0.
Teacher-v0 supplies its row at xB.
The reduced loss reaches an update boundary; parameters are not modeled.
Canonical GKD detaches student sampling; that local estimator is not every OPD method. OPD-CL-002OPD-CL-004OPD-CL-005OPD-CL-007
DETECTIVE-CALC-001 · derived
The trace has already answered whose states these are. The equation answers a different question: how far apart are the two declared distributions at each included prefix?
Read it as: at one visited prefix s, weight each natural-log student/teacher ratio by the student's probability. The unit is nats. Teacher and student rows must refer to the same prefix and aligned vocabulary.
Included · prefix x
| Token | Student | Teacher | Weighted log-ratio |
|---|---|---|---|
| A | 0.75 | 0.5 | 0.304098831081123 |
| B | 0.25 | 0.5 | -0.173286795139986 |
Included · prefix xB
| Token | Student | Teacher | Weighted log-ratio |
|---|---|---|---|
| A | 0.6 | 0.9 | -0.243279064864899 |
| B | 0.4 | 0.1 | 0.554517744447956 |
Excluded comparison · prefix xA
This is a valid reverse-KL calculation on a fixed teacher branch. It does not enter the current-student canonical reduction.
Display: 0.221025 nats. Average the unrounded locals, then round once. Averaging the displayed values gives 0.2210255 and can produce a different six-decimal result.
Derived from the invented OPD-TOY-001 fixture; not model evidence. DETECTIVE-CL-013DETECTIVE-CL-014DETECTIVE-CL-015DETECTIVE-CL-016
The misleading note
This run is on-policy because it uses reverse KL.
Misleading. The student-generated xB prefix establishes the completion-side provenance; reverse KL is a separate objective choice.
sourced OPD-CL-003
DETECTIVE-FIG-004 · transfer comparison
Each ruling asks for one missing implementation contract. These are invented diagnostic cases, not observations from a trainer.
01 · toy
stale relative to update policy
02 · toy
full-vocabulary KL not computable
03 · toy
mapping required
04 · toy
local feedback only
The distinctions draw on the cited primary methods; the concrete records are toys. DETECTIVE-CL-008DETECTIVE-CL-009DETECTIVE-CL-010DETECTIVE-CL-011DETECTIVE-CL-012
Transfer desk · no score, no mastery claim
Answer in two sentences: first name the divergence; then name the state source. Open the worked resolution only after you have committed to both.
OPD-XFER-A
A learner uses reverse KL on a fixed teacher-generated xA prefix. Is the divergence reverse KL, and is the state sampling on-policy? Explain both axes separately.
The divergence is reverse KL. The xA state is fixed and teacher-generated, so its state sampling is not current-student on-policy.
OPD-XFER-B
A learner samples B from the student, queries the teacher at xB, and computes forward KL. Is this on-policy distillation? Explain why divergence direction does not change the state source.
Yes with respect to the completion-side state source: B and xB came from the current student. Forward KL is the independent objective choice.
The compact rule: trace the behavior policy that generated the visited prefix. Then inspect teacher query, feedback granularity, objective, reduction, and update semantics as separate fields.
Field notes
Use this page after the case. It keeps publication status, state source, feedback granularity, objective, and update semantics in separate columns.
| Method | State / trajectory source | Feedback | Objective | Update semantics | Source status |
|---|---|---|---|---|---|
| Canonical GKD / fully on-policy | Current student completions when λ = 1 | Full teacher/student token distributions at identical prefixes | Declared divergence; forward, reverse, JSD tested | Detached student sampling in Eq. 4 | Peer-reviewed ICLR 2024 |
| SeqKD | Fixed teacher-decoded sequence | Sequence target used for student likelihood training | Sequence-level teacher target / NLL setup | Supervised update on fixed sequence | Peer-reviewed EMNLP 2016 |
| ImitKD | Mixture of initial data and student generations; generated pool may be older | Teacher best token or distribution at visited prefixes | Imitation cross-entropy variants | Mixed-data imitation-learning loop | Peer-reviewed EMNLP 2020 |
| MiniLLM | Student sequence distribution with practical teacher-mixed sampling | Sequence-level reverse-KL estimator terms | Reverse KL | Policy-gradient derivation, IS and length terms | Peer-reviewed ICLR 2024; later arXiv v6 retitled |
| Scalar-reward RL | Policy trajectories under the algorithm contract | Scalar reward / return signal | Reward objective, optionally regularized | Policy-gradient family dependent | Separate term in Agarwal Eq. 5 |
| Thinking Machines implementation | Student rollouts | Teacher/student log-probs on sampled tokens | Negative sampled reverse log-ratio as per-token advantage | RL importance-sampling loss | 2025 engineering report; not peer reviewed |
Compact comparison only; read the primary papers before implementing a trainer. OPD-CL-007DETECTIVE-CL-003DETECTIVE-CL-004DETECTIVE-CL-005DETECTIVE-CL-006DETECTIVE-CL-007DETECTIVE-CL-008
Student-generated GKD trajectories, same-prefix distribution comparison, independent data-source/divergence axes, fixed-prompt compatibility, detached GKD sampling, and method-specific estimator distinctions.
The categorical draw, three reverse-KL values, unrounded mean, operation decomposition, and trace-order invariants.
Every probability, draw, version label, complication record, and narrative case detail.
Cross-tokenizer mapping, top-k tail handling, allowed policy lag/correction, EOS inclusion, production length weighting, and teacher correctness.
Every record is expanded with its status, source locator, and wording boundary.
OPD-CL-001In canonical GKD, “on-policy” identifies output trajectories sampled from the student and the prefixes visited along those trajectories.OPD-CL-002The teacher is evaluated at the same student-visited prefix used for the local student prediction; the returned feedback granularity is method-specific.OPD-CL-003Trajectory provenance and divergence choice are independent axes; an on-policy student trajectory can be paired with forward KL, reverse KL, JSD, or another declared divergence.OPD-CL-004Student sampling, prefix visitation, teacher evaluation, local loss computation, loss reduction, and parameter update are separable conceptual operations.OPD-CL-005The canonical GKD-style toy does not backpropagate through the student sampling distribution or discrete sampled token.OPD-CL-006A fixed input/prompt collection can coexist with on-policy student-generated completions.OPD-CL-007Canonical GKD's detached trajectory with token-distribution losses and MiniLLM's sequence-level reverse-KL policy-gradient formulation are distinct estimators with different gradient semantics.DETECTIVE-CL-001The canonical paper is an ICLR 2024 peer-reviewed conference paper; its current readable author manuscript is arXiv v3 dated 17 January 2024.DETECTIVE-CL-002GKD's tokenwise sequence discrepancy is a declared length reduction over divergences between teacher and student next-token distributions at identical prefixes.DETECTIVE-CL-003Scalar-reward RL and the distillation divergence are separate objective terms that can be combined but are not synonyms.DETECTIVE-CL-004SeqKD trains on a fixed teacher-generated sequence rather than gathering current-student trajectory prefixes for feedback.DETECTIVE-CL-005ImitKD uses a sequence-level mixture of initial data and student generations, and its generated pool may contain outputs from earlier iterations.DETECTIVE-CL-006The peer-reviewed MiniLLM formulation optimizes a sequence-level reverse KL using a policy-gradient derivation and practical estimator terms that are absent from OPD-TOY-001.DETECTIVE-CL-007The 2025 Thinking Machines implementation samples student trajectories, retrieves student and teacher log-probabilities on sampled tokens, assigns the negative sampled log-ratio as a per-token advantage, and updates through an RL importance-sampling loss.DETECTIVE-CL-008Full-vocabulary teacher distributions, sampled-token log-ratios, and top-k teacher feedback expose different information and are not interchangeable without an estimator/renormalization contract.DETECTIVE-CL-009A direct tokenwise divergence requires teacher and student probabilities over an aligned vocabulary/token event at the same prefix.DETECTIVE-CL-010Sampling temperature changes the distribution of student-visited trajectories; canonical GKD reports training with student temperature 1.DETECTIVE-CL-011EOS inclusion, truncation, and sequence-length reduction affect the implemented objective and must be declared.DETECTIVE-CL-012Stored data is only strictly current on-policy relative to the behavior policy that produced it; a later update policy may differ.DETECTIVE-CL-013For prefix x, D_KL([0.75,0.25] || [0.5,0.5]) = 0.13081203594113696… nats.DETECTIVE-CL-014For prefix xB, D_KL([0.6,0.4] || [0.9,0.1]) = 0.3112386795830576… nats.DETECTIVE-CL-015The full-precision unweighted mean of the two included local losses is 0.2210253577620973… nats, displayed 0.221025.DETECTIVE-CL-016The off-policy comparison row xA has reverse KL 0.5826853020432398… nats and is excluded from the canonical mean.DETECTIVE-CL-017The shared kernel, extra cases, and generated illustrations are teaching devices and provide no empirical evidence about OPD efficacy or learner outcomes.Open the complete Markdown claim ledger copied into this local build (local copy).
OPD-CORE-v1; SHA-256 9AAD0A…0E697, verified before build.u=.8; draw detached.DETECTIVE-ALIGNED-TOY-v1. The mismatch case fails closed.x and xB; EOS excluded; unweighted mean of unrounded values.student-v0. A separate case exposes v0 → v1 lag.It does not show that OPD universally beats SFT, offline distillation, or RL; that a stronger or more confident teacher is correct; that tokenwise feedback supplies causal/process supervision; that full-vocabulary, sampled-token, and top-k feedback are equivalent; or that completing this case demonstrates mastery. No real model was trained or downloaded.
The experimental hypothesis about diagnostic reconstruction remains unproven. A learner study would be needed to compare transfer, retention, or speed across variants.
| Seq | Event ID | Type | Evidence summary |
|---|---|---|---|
| 1 | TRACE-DETECTIVE-CANONICAL-E001 | trace.started | The deterministic teaching trace begins: natural-log reverse KL in nats; no model is loaded. |
| 2 | TRACE-DETECTIVE-CANONICAL-E002 | rollout.prompt_loaded | Fixed prompt x is loaded. Prompt provenance and completion provenance are separate fields. |
| 3 | TRACE-DETECTIVE-CANONICAL-E003 | rollout.prefix_visited | Position 0 visits x, the fixed starting prefix included in the canonical loss. |
| 4 | TRACE-DETECTIVE-CANONICAL-E004 | student.behavior_distribution_evaluated | Behavior policy student-v0 gives [0.75, 0.25] at x for categorical sampling. |
| 5 | TRACE-DETECTIVE-CANONICAL-E005 | student.token_sampled | The detached draw u=0.8 falls in B's interval, so the sampled token is B. |
| 6 | TRACE-DETECTIVE-CANONICAL-E006 | rollout.prefix_visited | Position 1 visits xB because current behavior policy student-v0 appended B. |
| 7 | TRACE-DETECTIVE-CANONICAL-E007 | student.loss_distribution_evaluated | Loss policy student-v0 is evaluated at the same position-0 prefix x. |
| 8 | TRACE-DETECTIVE-CANONICAL-E008 | teacher.distribution_evaluated | Teacher-v0 supplies a full-vocabulary distribution [0.5, 0.5] at that same prefix x. |
| 9 | TRACE-DETECTIVE-CANONICAL-E009 | loss.local_computed | Reverse KL at x is 0.130812 nats. |
| 10 | TRACE-DETECTIVE-CANONICAL-E010 | student.loss_distribution_evaluated | Loss policy student-v0 is evaluated at the student-visited position-1 prefix xB. |
| 11 | TRACE-DETECTIVE-CANONICAL-E011 | teacher.distribution_evaluated | Teacher-v0 supplies [0.9, 0.1] at the identical student-visited prefix xB. |
| 12 | TRACE-DETECTIVE-CANONICAL-E012 | loss.local_computed | Reverse KL at xB is 0.311239 nats. |
| 13 | TRACE-DETECTIVE-CANONICAL-E013 | loss.reduced | The unweighted mean of the two unrounded local losses is 0.221025 nats. |
| 14 | TRACE-DETECTIVE-CANONICAL-E014 | comparison.fixed_teacher_prefix_loaded | Comparison branch x -> A -> xA comes from a fixed teacher demonstration and is excluded. |
| 15 | TRACE-DETECTIVE-CANONICAL-E015 | comparison.student_distribution_evaluated | For comparison only, student-v0 gives [0.3, 0.7] at xA. |
| 16 | TRACE-DETECTIVE-CANONICAL-E016 | comparison.teacher_distribution_evaluated | For comparison only, teacher-v0 gives [0.8, 0.2] at xA. |
| 17 | TRACE-DETECTIVE-CANONICAL-E017 | comparison.loss_computed | Reverse KL at xA is 0.582685 nats, but it is not part of the canonical mean. |
| 18 | TRACE-DETECTIVE-CANONICAL-E018 | parameter_update.boundary | The reduced loss reaches a separate update boundary; no parameter update is executed or invented. |
| 19 | TRACE-DETECTIVE-CANONICAL-E019 | trace.completed | Case resolved: current-student continuation provenance and reverse-KL objective are recorded as separate axes. |