Upload CYSIEVE_JOURNEY.md with huggingface_hub
Browse files- CYSIEVE_JOURNEY.md +76 -0
CYSIEVE_JOURNEY.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# The CY-Sieve attention journey — a case study in honest applied research
|
| 2 |
+
|
| 3 |
+
This documents the full arc of the applied "CY-Sieve" attention experiment, end to
|
| 4 |
+
end, because the *method* is the achievement as much as any number. It is a worked
|
| 5 |
+
example of falsification discipline: a bold hypothesis, a pre-committed kill
|
| 6 |
+
criterion, a near-miss false positive caught, a real result confirmed at scale, and
|
| 7 |
+
an attribution experiment that corrected our own narrative. Nothing here is the
|
| 8 |
+
project's core (that is the Calabi–Yau mathematics); this is the honest record of an
|
| 9 |
+
engineering side-quest the geometry inspired.
|
| 10 |
+
|
| 11 |
+
## The hypothesis
|
| 12 |
+
|
| 13 |
+
Modern accelerators are memory-bandwidth bound. A positional-attention bias whose
|
| 14 |
+
values are *generated on the fly* from the proved order-4 holonomic recurrence of
|
| 15 |
+
$S_{20}(n)=\sum_k\binom nk^4\binom{n+k}k$ would cost $\mathcal{O}(L)$ memory instead
|
| 16 |
+
of an $\mathcal{O}(L^2)$ table — *if* it preserves model quality. We set a
|
| 17 |
+
pre-committed quality gate (`tests.md` §5): PASS within +1% of the best baseline,
|
| 18 |
+
KILL at >5% regression.
|
| 19 |
+
|
| 20 |
+
## The arc (chronological, all on real WikiText-2, trained from scratch)
|
| 21 |
+
|
| 22 |
+
| stage | result | what we learned |
|
| 23 |
+
|---|---|---|
|
| 24 |
+
| **§4 kernel parity** | PASS (4/4, FP16) | the Triton kernel is numerically correct |
|
| 25 |
+
| **§6 memory** | $\mathcal{O}(L)$ vs $\mathcal{O}(L^2)$, 8192×@16K | the bias-HBM claim is real **vs a stored table** |
|
| 26 |
+
| **§5 quality v1 (fixed bias)** | **KILL +10.15%** | the geometry-fixed slope ($\log\lambda{=}3.762$) is too steep; a sliding window won |
|
| 27 |
+
| **autoresearch screen** (1200 steps) | learnable-γ **beat baselines** (5.89 vs 6.15) | making the slope **learnable** flips the result |
|
| 28 |
+
| **autoresearch full v1** (6000 steps) | **inverted → KILL** (12.7 vs 4.3) | overfitting: ~37 epochs/2 MB; γ ran *steeper*, not flatter |
|
| 29 |
+
| **autoresearch full v2** (regularized) | **PASS +8.1%** (3.32 vs 3.62) | γ-L2 + val early-stop + bigger corpus fix it; the gain is real at scale |
|
| 30 |
+
| **attribution** (nested $-a d + b\log d$) | gain is **learnability, not CY** | learnable-ALiBi (+3.8%) > fixed-CY (+2%); free curvature $b\to$ **negative**, away from the CY $\beta{=}2$ |
|
| 31 |
+
|
| 32 |
+
## What we can honestly claim
|
| 33 |
+
|
| 34 |
+
1. **A real, reproducible quality result.** A *learnable* per-head positional bias
|
| 35 |
+
beats fixed ALiBi by **~4–8%** perplexity on WikiText-2 (from scratch), with
|
| 36 |
+
**stable length-extrapolation** where learned-absolute positions collapse. This
|
| 37 |
+
PASSES the pre-committed gate at GPU scale.
|
| 38 |
+
|
| 39 |
+
2. **The source is learnability, not the Calabi–Yau geometry.** A controlled,
|
| 40 |
+
nested-parameterization experiment shows a plain learnable-ALiBi slope (zero CY
|
| 41 |
+
content) already beats the fixed holonomic bias, and that when the log-curvature
|
| 42 |
+
is made free the model moves it *away* from the CY value $\beta=2$. The geometry
|
| 43 |
+
was an inspiring prior; it does not earn its place in the final bias. We renamed
|
| 44 |
+
the shipped scheme accordingly and dropped the $S_{20}$/recurrence machinery.
|
| 45 |
+
|
| 46 |
+
3. **No memory win over real SOTA.** Against a materialized bias table the
|
| 47 |
+
$\mathcal{O}(L)$ generation saves 8192×; against **FlashAttention+ALiBi (which
|
| 48 |
+
already generates its bias on the fly)** the saving is ~0. A learnable per-head
|
| 49 |
+
scalar bias is $\mathcal{O}(1)$ state, identical to ALiBi. We do **not** claim a
|
| 50 |
+
memory breakthrough.
|
| 51 |
+
|
| 52 |
+
## What we explicitly do NOT claim
|
| 53 |
+
|
| 54 |
+
- Not "Calabi–Yau geometry improves attention" — the attribution refutes it.
|
| 55 |
+
- Not "infinite extrapolation / zero degradation / LPU dominance" — earlier such
|
| 56 |
+
phrasings are retracted (they came from an invalid frozen-model method).
|
| 57 |
+
- Not a memory contribution beyond a stored-table strawman.
|
| 58 |
+
|
| 59 |
+
## The achievement, stated plainly
|
| 60 |
+
|
| 61 |
+
> A disciplined, falsifiable applied-research loop that took a bold geometric
|
| 62 |
+
> hypothesis from KILL, through a caught overfitting false-positive, to a confirmed
|
| 63 |
+
> +8% quality result at GPU scale — and then used a controlled attribution
|
| 64 |
+
> experiment to correct its own story, concluding that the win is from
|
| 65 |
+
> **learnable per-head positional bias** (a known-good idea, modestly improved),
|
| 66 |
+
> not the Calabi–Yau structure. The negative and null results are reported as
|
| 67 |
+
> prominently as the positive one.
|
| 68 |
+
|
| 69 |
+
Honest, modest, reproducible — and we would value expert review of the attribution
|
| 70 |
+
methodology and a fair comparison against learnable-ALiBi / NoPE / RoPE-scaling on
|
| 71 |
+
a real long-range benchmark.
|
| 72 |
+
|
| 73 |
+
— Artifacts: `docs/PHASE3_CYSIEVE_GPU_FINDINGS.md` (gate), `PHASE4_HC_ATTRIBUTION.md`
|
| 74 |
+
(attribution), `CYSIEVE_FUTURE_DIRECTIONS.md` (memory analysis),
|
| 75 |
+
`4_ai_hardware_attention/gpu_phase_runs/` (raw runs), and the
|
| 76 |
+
[HF benchmark dataset](https://huggingface.co/datasets/callensxavier/cy-sieve-attention-benchmark).
|