EXP-13: Permutation Sensitivity & O(1) Dual-Mirror Canvas
Naming note (2026-10-03): this page uses βIDCβ (Invariant Decision Calibration), the research name at the time. The production approach is now hesitation-gating: order bias is monitored per release rather than corrected per request.
Update (EXP-14, 2026-09-25): A same-session re-run on the Vertex AI endpoint reproduced the slot-A habit but not every case below (e.g.
perm_08). It also found that the production--dual-mirrorpath named the reversed slot<id>__mirror_rev, and that the word βmirrorβ in a slot id degraded both readings;bench-permutation(used here) names its slotsdecision_fwd/decision_revand was not affected. See EXP-14.
1. Motivation & Problem Statement
Section titled β1. Motivation & Problem StatementβIn constrained decision models (DiffusionGemma / dgem), single-pass epistemic confidence is typically derived from the restricted softmax probability and Shannon entropy over option letters under a fixed presentation order .
However, Shannon entropy under a single option ordering measures token-slot certainty, not semantic invariance: where:
- is the true semantic preference for option ,
- is the structural positional/token bias for slot index (e.g., primacy bias toward
'A'), and - is formatting-order interaction noise.
The Epistemic Blindspot: When a task is genuinely ambiguous (), a strong positional prior artificially inflates the probability of whichever option happens to sit in Slot 'A', collapsing single-pass Shannon entropy and causing a False Early Exit in entropy-gated cascades (EXP-05).
2. Falsifiable Hypotheses (H1βH4)
Section titled β2. Falsifiable Hypotheses (H1βH4)βH1(Content-Free Positional'A'-Bias): Whendgemmaevaluates a content-free state ([REDACTED / CONTENT-FREE CALIBRATION PROBE]) with neutral option strings, exhibits a strong structural primacy bias toward Slot'A'. Subtracting in logit space (Null-Prior De-Biasing) improves calibration without extra inference passes.H2(Single-Pass Entropy Blindspot vs. Permutation Mutual Information): On human-disagreement tasks (ChaosNLI), single-pass normalized Shannon entropy can fall below early-exit thresholds (< 0.16) when a plausible option aligns with Slot'A', whereas Permutation Jensen-Shannon Divergence (Cyclic JSD) spikes by and reveals that theargmaxflips under option reordering.H3( Single-Pass Dual-Mirror Canvas): BecauseDiffusionGemmadenoises all canvas slots simultaneously in one bidirectional forward pass (reads=1), emitting two mirrored slots (decision_fwdanddecision_rev) on the same diffusion canvas runs with zero latency overhead (0 mspenalty vs. 1-slot), cancels first/last positional bias (), guarantees0.0%reversal flip rate, and provides a live Single-Pass Mirror JSD / TVD disagreement signal.H4(Joint Entropy + Mirror JSD Cascade Rule): Augmenting single-pass entropy gating with Dual-Mirror disagreement (Escalate if) catches every permutation-unstable ambiguity that fools single-pass Shannon entropy.
3. Empirical Results on Live Cloud Run GPU (dgemma)
Section titled β3. Empirical Results on Live Cloud Run GPU (dgemma)βExecuted via ./bin/dgem bench-permutation -u "https://dgemma-<hash>-uc.a.run.app/v1" --gcp-auth -w 2 -o benchmarks/results_permutation_cloudrun.json (benchmarks/results_permutation_cloudrun.json).
3.1 EXP-13B: Measured Content-Free Positional Null Priors ()
Section titled β3.1 EXP-13B: Measured Content-Free Positional Null Priors (p0p_0p0β)βWhen prompted with a content-free context ([REDACTED / CONTENT-FREE CALIBRATION PROBE]) and neutral option labels (Option 1 Option K), dgemma exhibits a severe structural bias toward Slot 0 ('A') (and secondary recency bias on 'D' for , starving middle slot 'B' to 4.8%):
| Cardinality () | Slot 'A' () | Slot 'B' () | Slot 'C' () | Slot 'D' () | Uniform Baseline () | Slot 'A' Bias Ratio | Null Entropy ( vs ) |
|---|---|---|---|---|---|---|---|
(Binary) | 88.3% | 11.7% | β | β | 50.0% | 1.77x | 0.361 / 0.693 nats |
(3-Way NLI) | 78.3% | 8.6% | 13.1% | β | 33.3% | 2.35x | 0.669 / 1.099 nats |
(4-Way MCQ) | 49.3% | 4.8% | 16.3% | 29.5% | 25.0% | 1.97x | 1.164 / 1.386 nats |
Applying Logit-Space Null-Prior De-Biasing ( with ) reduced the Multi-Class Brier Score by -90.2% (0.0173 0.0017).
3.2 EXP-13A & EXP-13C: Method Comparison (1-Slot vs. Null-Prior vs. Cyclic-K vs. O(1) Dual-Mirror Canvas)
Section titled β3.2 EXP-13A & EXP-13C: Method Comparison (1-Slot vs. Null-Prior vs. Cyclic-K vs. O(1) Dual-Mirror Canvas)β| Calibration / Readout Method | Forward Passes (reads) | Mean Latency (ms) | Overall Accuracy | Multi-Class Brier (β) | Soft-Label TVD (β) | Order Flip Rate (β) | Permutation Signal Available? |
|---|---|---|---|---|---|---|---|
1. Baseline 1-Slot (Canonical) | 1 | 128.8 ms | 100.0% | 0.0173 | 0.1536 | 12.5% cyclic (2/16; 2/4 on ambiguous) | β No |
2. 1-Slot + Null-Prior De-Biased (13B, Ξ±=0.75) | 1 | 128.8 ms | 100.0% | 0.0017 (-90.2%) | 0.1355 (-11.8%) | 25.0% cyclic (worse) | β Static prior correction only |
3. K-Pass Cyclic Ensemble (13A Oracle) | K (2β4) | 369.5 ms (2.86x) | 93.75% | 0.0369 | 0.1570 | n/a (ensemble = one answer) | β
Full Cyclic JSD () |
4. O(1) Dual-Mirror Canvas (13C) | 1 (2 slots) | 124.7 ms (0.97x) | 100.0% | 0.0410 (worse) | 0.1370 (-10.8%) | n/a (merged = one answer) | β
Live Mirror JSD & Mirror TVD in 1 pass (reversal only) |
Key architectural result: Because
DiffusionGemmafills bothdecision_fwd() anddecision_rev() in the same bidirectional canvas, the Dual-Mirror readout costs no extra forward pass (124.7 msvs.128.8 ms, n=16) and exposes a per-requestMirror TVD/JSD. Caveats: a merged output cannot βflipβ by construction, so reversal flip rate is not a meaningful metric for it; its Brier score is worse than baseline on this suite; and it only tests one alternative order (seeperm_06below). The baseline made zero errors on these 16 synthetic items, so this suite measures confidence honesty, not error catching.
3.3 Regime Breakdown: Where Single-Pass Entropy Is Blind and What Catches It (H2)
Section titled β3.3 Regime Breakdown: Where Single-Pass Entropy Is Blind and What Catches It (H2)βRegime (4 synthetic cases each) | Mean 1-Pass Norm Entropy () | Mean Cyclic JSD () | Cyclic JSD vs Consensus | Cyclic Permutation Flip Rate | Mean Mirror TVD (13C) |
|---|---|---|---|---|---|
consensus (Unambiguous facts) | 0.0065 | 0.0017 nats | 1.0x (baseline) | 0.0% (0/4) | 0.0044 |
adversarial_trap (Distractor in 'A') | 0.0176 | 0.0036 nats | 2.1x | 0.0% (0/4) | 0.0673 |
binary_ablation ( policies) | 0.0330 | 0.0016 nats | 0.9x | 0.0% (0/4) | 0.0431 |
ambiguous_chaosnli (ChaosNLI-style split) | 0.2077 | 0.2683 nats | ~156x | 50.0% (2/4 flip argmax) | 0.2626 (driven by perm_07 0.785 and perm_08 0.258; perm_05/perm_06 β 0.001β0.007) |
(All values from benchmarks/results_permutation_cloudrun.json, 2026-09-23. βChaosNLI-styleβ items are authored for this suite with a stated human split; they are not drawn from the ChaosNLI release.)
Concrete Cases (perm_08, perm_06, perm_07)
Section titled βConcrete Cases (perm_08, perm_06, perm_07)βperm_08_ambiguous_fair_use_parody(14-second chorus captured incidentally in a documentary; expectedincidental_fair_use): Dual-Mirror catches false certainty.- Canonical 1-Slot (
A=requires_sync_license, B=incidental_fair_use, C=public_domain_waiver):incidental_fair_useat99.9%, , so it would early-exit under the0.16entropy gate. - Dual-Mirror canvas (1 pass): forward slot
71.3%, reversed slot96.5%, givingMirror TVD = 0.258and merged , so it is escalated. (The forward reading itself dropped from 99.9% to 71.3% once the reversed slot shared the canvas: the two slots are not independent.)
- Canonical 1-Slot (
perm_06_ambiguous_chaosnli_hospital(surgeon sighs and summons the family; stated split 48% entailment / 46% neutral; expectedneutral): Dual-Mirror misses a real order sensitivity.- Canonical 1-Slot (
A=entailment, B=neutral, C=contradiction):neutralat99.5%(). Correct, and not the Slot-'A'option. - Cyclic shift (
A=contradiction, B=entailment, C=neutral): flips toentailmentat95.6%(Cyclic JSD = 0.573 nats). - Dual-Mirror canvas: forward and reversed readings are both β
99.9%neutral(Mirror TVD = 0.0006), so it is not flagged. Reversal is only one of the orderings that matter.
- Canonical 1-Slot (
perm_07_ambiguous_dual_intent_vip(ticket that is equally an SRE outage and a legal termination): caught by both gates. Canonical ; the forward and reversed slots pick different answers (Mirror TVD = 0.785).
3.4 Verdict on Hypotheses
Section titled β3.4 Verdict on Hypothesesβ| Hypothesis | Verdict | Evidence |
|---|---|---|
H1 Content-free Slot-'A' bias exists; subtracting it improves calibration | β Supported (bias); β οΈ Mixed (effect) | Bias is large (88% / 78% / 49%). Brier improves -90.2% on already-correct answers, but cyclic flip rate rises 12.5% β 25%. On the 50-item calibration suite it is the best IDC component (see IDC Β§6). |
H2 Single-pass entropy can miss order-sensitive items; cyclic JSD reveals them | β Supported (n=4) | perm_06 and perm_08 have with large cyclic JSD. |
H3 Dual-Mirror is O(1), cancels position bias, gives a live disagreement signal | β οΈ Partly | O(1) latency β
; live signal β
(perm_08); Brier worse (0.0410); β0% reversal flipβ is by construction; misses perm_06. |
H4 Entropy + Mirror gate catches every order-unstable ambiguity | β Not supported | Catches perm_07 and perm_08; misses perm_06. Also escalates 3 correct non-ambiguous items (perm_10, perm_12, perm_16). |
4. Reproducibility & CLI Usage
Section titled β4. Reproducibility & CLI Usageβ# Run from saved Cloud Run GPU receipt (instant table + JSON validation):./bin/dgem bench-permutation --from-receipt benchmarks/results_permutation_cloudrun.json
# Run live against Cloud Run GPU (executes 13B Null-Prior probes + 13A K-Cyclic shifts + 13C Dual-Mirror Canvas):./bin/dgem bench-permutation -u "https://dgemma-<hash>-uc.a.run.app/v1" --gcp-auth -w 2