Upload PHASE4_HC_ATTRIBUTION.md with huggingface_hub
Browse files- PHASE4_HC_ATTRIBUTION.md +79 -0
PHASE4_HC_ATTRIBUTION.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Phase 4 — H-C refinement & attribution: the gain is *learnability*, not Calabi–Yau
|
| 2 |
+
|
| 3 |
+
After the autoresearch sweep found that a **learnable per-head γ** "Holonomic-ALiBi"
|
| 4 |
+
bias beats baselines, we asked the question that decides what we actually learned:
|
| 5 |
+
**is the gain from the Calabi–Yau curve shape, or just from making the slope
|
| 6 |
+
learnable?** Two runs answer it (2026-06-22).
|
| 7 |
+
|
| 8 |
+
## Result 1 — v2 GPU full run confirms the gain is REAL and holds at scale (PASS)
|
| 9 |
+
|
| 10 |
+
Regularized (γ-L2 + val early-stop + 8M-char corpus), 8000 steps, real WikiText-2:
|
| 11 |
+
|
| 12 |
+
| scheme | val ppl@512 |
|
| 13 |
+
|---|---|
|
| 14 |
+
| **holo_ladder_pos** | **3.324** |
|
| 15 |
+
| holo_ladder | 3.336 |
|
| 16 |
+
| holo_tiny | 3.576 |
|
| 17 |
+
| learned (baseline) | 3.617 |
|
| 18 |
+
| sliding (baseline) | 3.702 |
|
| 19 |
+
|
| 20 |
+
holo_ladder_pos vs best baseline = **+8.1%**. The v1 overfitting inversion is gone;
|
| 21 |
+
the learnable Holonomic bias genuinely beats the baselines at scale. **The original
|
| 22 |
+
§5 KILL is overturned — this configuration PASSES.**
|
| 23 |
+
|
| 24 |
+
## Result 2 — attribution (local, controlled): it's LEARNABILITY, not the CY shape
|
| 25 |
+
|
| 26 |
+
A nested bias $\text{bias}_h(d) = -a_h\,d + b_h\log d$ ($a,b$ learnable per head)
|
| 27 |
+
lets us separate the linear slope from the log-curvature, with controls:
|
| 28 |
+
|
| 29 |
+
| scheme | ppl@512 | vs fixed ALiBi | isolates |
|
| 30 |
+
|---|---|---|---|
|
| 31 |
+
| **nested_curv0** | **8.548** | **+6.9%** | learnable slope + free log-curvature (linear init) |
|
| 32 |
+
| nested_free | 8.680 | +5.5% | learnable slope + free curvature (CY init) |
|
| 33 |
+
| **alibi_learn** | 8.835 | **+3.8%** | learnable slope, **no curvature** (control) |
|
| 34 |
+
| holo_fixed | 8.998 | +2.0% | fixed CY shape (the autoresearch "winner") |
|
| 35 |
+
| log_only | 8.998 | +2.0% | fixed CY shape (exact tiered) |
|
| 36 |
+
| alibi (fixed) | 9.181 | — | baseline |
|
| 37 |
+
|
| 38 |
+
**Three conclusions, stated plainly:**
|
| 39 |
+
|
| 40 |
+
1. **Learnability is the driver, not the geometry.** A plain *learnable* ALiBi slope
|
| 41 |
+
with zero Calabi–Yau content (`alibi_learn`, +3.8%) beats the fixed holonomic
|
| 42 |
+
bias (`holo_fixed`, +2.0%). The headline "CY-Sieve beats ALiBi" was really
|
| 43 |
+
"learnable beats fixed."
|
| 44 |
+
|
| 45 |
+
2. **Given freedom, the model moves AWAY from the CY curvature.** `nested_free`
|
| 46 |
+
starts at the Calabi–Yau prior (log-curvature $b=\beta=2$ per unit slope) and
|
| 47 |
+
gradient descent drives $b$ **negative** ($b\approx-0.2$). The $\beta=2$
|
| 48 |
+
curvature is not what the data wants — the geometry was a prior, and not a
|
| 49 |
+
well-pointed one.
|
| 50 |
+
|
| 51 |
+
3. **The actual best bias drops the holonomic sequence entirely.** `nested_curv0`
|
| 52 |
+
(+6.9%) — a learnable linear slope plus a small *learned* log-correction — wins,
|
| 53 |
+
and needs no $S_{20}$, no recurrence, no Calabi–Yau structure. It is essentially
|
| 54 |
+
**learnable-ALiBi + a learnable log term**.
|
| 55 |
+
|
| 56 |
+
## Honest consolidation — what H-C actually is
|
| 57 |
+
|
| 58 |
+
- **A real, modest quality win exists** (+6.9% local / +8.1% at GPU scale vs
|
| 59 |
+
baselines) and it is **shippable** — but its source is *parameterizing the
|
| 60 |
+
positional slope (and a log term) as learnable per-head*, a known-good idea in the
|
| 61 |
+
ALiBi/learnable-bias family. The Calabi–Yau sequence is **not** the source and is
|
| 62 |
+
best dropped.
|
| 63 |
+
- **No memory win** (see `CYSIEVE_FUTURE_DIRECTIONS.md`): a learnable per-head
|
| 64 |
+
scalar bias is O(1) state and O(L) to apply — same as ALiBi — so there is nothing
|
| 65 |
+
to save over FlashAttention+ALiBi.
|
| 66 |
+
- **The most defensible contribution** from this whole applied arc is therefore a
|
| 67 |
+
small, honest one: *a learnable per-head linear+log positional bias that edges
|
| 68 |
+
ALiBi by a few %, with stable length-extrapolation.* We will not attach the
|
| 69 |
+
Calabi–Yau story to it, because the controlled experiment says the geometry does
|
| 70 |
+
not earn its place.
|
| 71 |
+
|
| 72 |
+
## What to ship / next
|
| 73 |
+
|
| 74 |
+
- **Ship `nested_curv0` (learnable slope + learnable log term)** as the positional
|
| 75 |
+
scheme, named for what it is (not "CY-Sieve"). Re-run it at GPU scale alongside
|
| 76 |
+
learnable-ALiBi to confirm the local ranking.
|
| 77 |
+
- The Calabi–Yau mathematics remains the project's real contribution; the attention
|
| 78 |
+
kernel is, honestly, *a learnable-bias result that the geometry inspired but does
|
| 79 |
+
not explain*.
|