You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HBit's dual-band primitive (alpha = value, beta = phi.fold(value),
tension = |alpha - beta|) gives a reference-free OOD signal: zero
fitting, zero reference set, computed per test point in O(D) floats.
Results, AUROC across both scenarios from experiment 4:
Scenario A (uniform [1,90] OOD, hits all three axes):
HBit tension: 1.000 <-- perfect, no reference needed
Marginal rarity: 0.910
L2 NN: 0.961
Combined: 0.999
Scenario B (on-manifold, distribution shift only):
HBit tension: 0.500 <-- random, both sides on manifold
Marginal rarity: 0.956
L2 NN: 0.946
Combined: 0.967 <-- beats every single gate
Mechanism: each gate owns a different OOD axis.
HBit -> off-manifold detection (free)
Marginal rarity -> attractor distribution shift
L2 NN -> magnitude / position shift
Combined gate is sum of z-normalised per-gate scores, with the
z-normalisation parameters fit on in-dist reference scores only
(combiner never peeks at OOD). Wins on both scenarios.
The "harmonic substrate is a structural detector" thesis is now
empirically grounded with quantified contribution from each piece.
The deployable artifact is the combined gate. Next experiment is
layer-norm-matched preprocessing to simulate transformer activations,
then a reusable library.
Both engines audit byte-identical (1503 bytes).
| 3 | 4-channel PE (harmonic primes 7/11/13/17, sin/cos periods 8/64), L2 lookup, L = 8 → 200 |**Sinusoidal regains its lead decisively at every L ≥ 16.** L=48: 48/48 vs 21/48. L=200: 72/200 vs 34/200. Harmonic saturates at 22 unique vectors by L=64; sinusoidal stays perfectly distinct up to L=64 then saturates at 64. The single-channel L=48 harmonic "win" was a metric artefact, exactly as suspected. |
90
90
| 4A | Harmonic OOD gate vs L2-NN baseline on 4-dim synthetic vectors (N_REF=300, 150 in-dist test, 150 OOD test). OOD = uniform [1, 90]. | L2 wins. AUROC L2 0.961 vs harmonic 0.910. TPR @ FPR=10%: L2 0.91 vs harmonic 0.71. L2 has a trivial magnitude advantage — mean L2 score 87 (in-dist) vs 1313 (OOD), since OOD vectors are larger on average and harmonic gate's `phi.fold` discards magnitude. |
91
91
| 4B | Same gates, **magnitude-matched** structural OOD (inverted attractor weights: 10%/30%/60% small/med/large vs in-dist's 60%/30%/10%). |**Harmonic edges past L2 in AUROC: 0.956 vs 0.946.** At low FPR L2 still wins (TPR@FPR=1%: L2 0.60 vs harmonic 0.48), but on overall ranking the structural rarity signal beats the L2 metric once magnitude is no longer a giveaway. |
92
+
| 5 | HBit cross-cutting tension (no reference) + combined gate (sum of z-normalised HBit, marginal rarity, L2) on both scenarios. |**Scenario A: HBit tension AUROC = 1.0** (perfect — mean tension 0.0 in-dist vs 20.1 OOD). Combined: 0.999. **Scenario B: HBit AUROC = 0.5** (random — both sides on-manifold, tension = 0 everywhere). Combined: 0.967, beating every single gate. Each gate owns a different OOD axis: HBit→off-manifold, marginal→distribution-shift, L2→magnitude. |
92
93
93
-
### Cumulative read across experiments 0–4
94
+
### Cumulative read across experiments 0–5
94
95
95
-
The five experiments converge on a clear, conditional picture:
96
+
The six experiments now form a complete picture. Each OOD axis has
97
+
a gate that owns it:
96
98
97
-
> **The harmonic substrate is a structural detector, not a primary
98
-
> computation.** It loses head-to-head against softmax attention
99
-
> (exp 1) and multi-channel sinusoidal PE (exp 3). It loses to a
100
-
> trivial L2-NN OOD gate when raw magnitude separates the
101
-
> distributions (exp 4A). **It edges past L2-NN when magnitude is
102
-
> matched and only structural distribution differs (exp 4B).**
99
+
| Failure mode | Owning gate | Cost | Scenario A AUROC | Scenario B AUROC |
0 commit comments