On-Policy Distillation as Active Inference in Finite Variational Models
Daniel Ari Friedman (2026) · Active Inference
Context
This work addresses topics in Active Inference: on-policy distillation, active inference, self-distillation, privileged information.
Methods
Primary methods and techniques applied in this work:
- Formal mapping of OPD roles onto active-inference variational objects — Teacher policy is read as the generative model, student policy as the approximate posterior, and per-token reverse-KL loss as variational free energy.
- Bernoulli-Ising oracle with closed-form and recomputed mutual-information sweeps — A binary toy couples a teacher's privileged variable to the answer through a coupling parameter; MI and the free-energy gap are computed analytically.
- pymdp T-maze rollout with sophisticated-inference planning — A pymdp agent samples its own observations under a privileged cue, serving as the on-policy student process witness.
- Two-agent classroom: privileged teacher vs on-policy student — A teacher with cue validity 0.98 and a student with cue validity 0.5 are compared on belief entropy and reverse-KL distillation signal.
- Lean theorem inventory and fail-closed manuscript validation gates — Lean theorem statements are extracted and checked against an inventory, with gates failing on sorry, axiom or native_decide.
Key Findings
Core contributions and results:
- The closed-form and independently recomputed mutual-information sweeps agree to machine precision (RMSE 2.1e-16 nats).
- In the classroom toy, teacher belief entropy was 0.247 nats versus 0.347 nats for the student, with a mean reverse-KL distillation signal of 6.28 nats.
- In a four-state/two-action witness, teacher-forced train loss (0.333 nats) underestimated student-induced test loss (0.409 nats); on-policy correction reduced it to 0.096 nats.
- All reported numbers are hydrated from generated artifacts, and 16 of 16 invariant checks pass before rendering.
- The author states these are toy, generated findings rather than production-LLM measurements; external OPD results are context, not reproduced.
Methods and findings are summarized from the full text; each item is backed by a verbatim quote recorded in metadata.json (evidence, key_findings_evidence).
Related Works
Validation
Verification points for this work:
- Canonical DOI: 10.5281/zenodo.20747834
- PDF SHA-256: c6b5ec494915e6e046f24cf723f8dbbf93a5b168544daed3cca14c089d4087aa
- Pairing confidence: strong
- Last checked: 2026-09-24T18:29:56Z
- Artifact DOI: 10.5281/zenodo.20749817
Prerequisites
- Familiarity with on-policy distillation, active inference, self-distillation
- Background in Active Inference fundamentals
- Access to source repository: ActiveInferenceInstitute/on_policy_distillation
Instructions
When working with this paper:
- Reference the DOI for citation:
10.5281/zenodo.20747834
- Apply methods listed in the Methods section for related analysis.
- Validate findings against the original PDF and metadata.
1---2# docxology:generated-document SKILL.md; ownership=explicit-manifest3name: on-policy-distillation-as-active-inference-in-finite-variati4description: "This paper formulates on-policy distillation as active inference in finite variational models, with exact claims only for declared objects and interpretive claims explicitly bounded outside them. In the construction, the intractable teacher policy pl..."5tags: ["on-policy-distillation", "active-inference", "self-distillation", "privileged-information", "free-energy-principle", "reverse-kl-divergence", "pymdp", "sophisticated-inference"]6domain: "Active Inference"7citation: "Daniel Ari Friedman (2026). *On-Policy Distillation as Active Inference in Finite Variational Models*. Zenodo."8doi: "10.5281/zenodo.20747834"9artifact_doi: "10.5281/zenodo.20749817"10metadata:11 source: https://skillmd.com/skills/docxology/on-policy-distillation-as-active-inference-in-finite-variati12---1314# On-Policy Distillation as Active Inference in Finite Variational Models1516**Daniel Ari Friedman** (2026) · Active Inference1718## Context1920This work addresses topics in **Active Inference**: on-policy distillation, active inference, self-distillation, privileged information.2122## Methods2324Primary methods and techniques applied in this work:2526- **Formal mapping of OPD roles onto active-inference variational objects** — Teacher policy is read as the generative model, student policy as the approximate posterior, and per-token reverse-KL loss as variational free energy.27- **Bernoulli-Ising oracle with closed-form and recomputed mutual-information sweeps** — A binary toy couples a teacher's privileged variable to the answer through a coupling parameter; MI and the free-energy gap are computed analytically.28- **pymdp T-maze rollout with sophisticated-inference planning** — A pymdp agent samples its own observations under a privileged cue, serving as the on-policy student process witness.29- **Two-agent classroom: privileged teacher vs on-policy student** — A teacher with cue validity 0.98 and a student with cue validity 0.5 are compared on belief entropy and reverse-KL distillation signal.30- **Lean theorem inventory and fail-closed manuscript validation gates** — Lean theorem statements are extracted and checked against an inventory, with gates failing on sorry, axiom or native_decide.3132## Key Findings3334Core contributions and results:3536- The closed-form and independently recomputed mutual-information sweeps agree to machine precision (RMSE 2.1e-16 nats).37- In the classroom toy, teacher belief entropy was 0.247 nats versus 0.347 nats for the student, with a mean reverse-KL distillation signal of 6.28 nats.38- In a four-state/two-action witness, teacher-forced train loss (0.333 nats) underestimated student-induced test loss (0.409 nats); on-policy correction reduced it to 0.096 nats.39- All reported numbers are hydrated from generated artifacts, and 16 of 16 invariant checks pass before rendering.40- The author states these are toy, generated findings rather than production-LLM measurements; external OPD results are context, not reproduced.4142Methods and findings are summarized from the full text; each item is backed by a verbatim quote recorded in `metadata.json` (`evidence`, `key_findings_evidence`).4344## Related Works4546- [2018_WoodliceAndMen](../2018_WoodliceAndMen/)47- [2020_BehaviorEngineering](../2020_BehaviorEngineering/)48- [2021_ModelingConflict](../2021_ModelingConflict/)4950## Validation5152Verification points for this work:5354- Canonical DOI: 10.5281/zenodo.2074783455- PDF SHA-256: c6b5ec494915e6e046f24cf723f8dbbf93a5b168544daed3cca14c089d4087aa56- Pairing confidence: strong57- Last checked: 2026-09-24T18:29:56Z58- Artifact DOI: 10.5281/zenodo.207498175960## Prerequisites6162- Familiarity with on-policy distillation, active inference, self-distillation63- Background in Active Inference fundamentals64- Access to source repository: ActiveInferenceInstitute/on_policy_distillation6566## Instructions6768When working with this paper:69701. Reference the DOI for citation: `10.5281/zenodo.20747834`712. Apply methods listed in the Methods section for related analysis.723. Validate findings against the original PDF and metadata.