Repository navigation
enrich(Probas/Infer): Infer-8 motivate WHY Expectation Propagation (vs exact inference) - #8097
Merged
Merged
Conversation
…s exact) Audit #8081 finding (distillation fidelity vs MBML Ch.3). Infer-8 USES Expectation Propagation as its core inference algorithm (cells 11, 15) but never MOTIVATES it — cell[15] only compares EP-vs-VMP (intra-approximation). The deeper question goes unanswered: why approximate inference at all? MBML Ch.3 (Winn & Bishop, "Meeting Your Match" — the chapter this series is distilled from) makes the motivation explicit, and it was lost in distillation: - The IsGreaterThan factor is NOT conjugate to Gaussians: it truncates the Gaussian (kills the half-plane where player 2 wins), producing a cumulative- Gaussian (sigmoid) message. The exact posterior is an asymmetric non-Gaussian (Gaussian x cumulative-Gaussian). - An exact posterior needs 4 params (vs 2 for a Gaussian); each match adds such a factor, so after k matches the exact representation needs 2(k+1) params — unsustainable for a system ranking millions of players. - EP re-projects onto a Gaussian after each factor (moment matching), keeping a bounded 2-param-per-skill representation. This is why EP exists. This is the #3801 Prong-B concern: a SOTA engine (EP) used without showing its necessity reads as gratuitous. The missing "why approximate at all" was substance lost during distillation. The interp also annotates the committed posterior N(29.21, 7.19) (cell 13) as the EP Gaussian projection of a truly-asymmetric posterior — a precision/cost tradeoff that makes TrueSkill deployable at Xbox Live scale. Markdown-only (C.2 exception, no re-exec). nbformat.validate OK. Diff = 20 insertions, 0 deletions (pure addition, anti-regression clean). 0 CRLF, convention json.dumps indent=1 preserved. UTF-8 French accents clean. See #8081 (audit: Probas/Infer+PyMC fidelity vs Infer.NET repo + MBML sources). Co-Authored-By: Claude-Code <noreply@anthropic.com>
5 tasks
Contributor
Golden-Set Execution (H.7 P3)✅ 8/8 notebooks passed (certified reproducible)
Pinned lockfile: |
Contributor
Notebook PR Validation: PASS
Checks: H.1 (no errors), H.3 (execution_count), C.1 (no banned patterns) |
jsboige
commented
Jul 23, 2026
jsboige
left a comment
Owner
Author
There was a problem hiding this comment.
[Hermes] Review — Infer-8 EP motivation
✅ Diff vérifié : +20/-0 markdown-only (1 cellule markdown, pas de code exécuté).
- Motivation EP claire et correcte : facteur
IsGreaterThannon-conjugué → posterior non-Gaussien → explosion paramétrique → reprojection EP ✓ - Référence croisée à la cellule 12 (
N(29.21, 7.19)) cohérente — ancrage dans le notebook existant ✓ - Lien MBML Ch.3 approprié ✓
- Security scan : 0 hit ✓
- CI golden-set : 8/8 PASS ✓
Bonne pédagogie, comble un gap conceptuel réel. LGTM.
This was referenced Jul 23, 2026
Closed
Closed
This was referenced Jul 24, 2026
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary — audit #8081 finding (first pilot)
Infer-8-TrueSkilluses Expectation Propagation (EP) as its core inference algorithm (cells 11, 15) but never motivates it. cell[15] only compares EP-vs-VMP (intra-approximation). The deeper question — why approximate inference at all? — goes unanswered. This is the first concrete finding of audit #8081 (distillation fidelity vs MBML Ch.3): a SOTA engine used without showing its necessity reads as gratuitous (#3801 Prong-B).What MBML Ch.3 makes explicit (and Infer-8 lost)
The chapter this series is distilled from — Model-Based Machine Learning (Winn & Bishop), « Meeting Your Match » — motivates EP explicitly:
Change (markdown-only, C.2 exception)
One markdown cell after cell[15], reading the committed posterior
N(29.21, 7.19)(cell 13) as the EP Gaussian projection of a truly-asymmetric posterior — a precision/cost tradeoff that makes TrueSkill deployable at Xbox Live scale.Audit verdict for Infer-8 vs MBML Ch.3 (documented in #8081)
Validation (firsthand)
nbformat.validateOK.json.dumps(indent=1, ensure_ascii=False) + "\n"== raw, 0 CRLF.\text{perf}_1 > \text{perf}_2, no\texttexttypo).Honnêteté
This is a limited, targeted finding — Infer-8 is a rich, largely faithful notebook, not a case of massive substance loss by complaisance. The audit shows the loss is real (EP motivation) but bounded. Nuance is the point of #8081.
See #8081. Co-Authored-By: Claude-Code noreply@anthropic.com