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
ADR 0008 §11.11 postscript: K1.E NIAH validation Mac M4 PASS
Records the 2026-06-08 Mac M4 K1.E empirical result documenting that
the v0.4 GA gate (a) of ADR 0008 §11.8 — 'NIAH mid-context recall
>= 95% at 100k-token context' — has been verified at the K1
same-model identity scope on Mac M4 24 GB with google/gemma-3-1b-it
at 1-2k context. The 100k-token context scale itself remains pending
the vast.ai multi-context scan (PR #75 reviewer aid).
Run summary:
oracle full attention: 1.000 (20/20) mean lat 69.06s
v0.3 sink+window=4+64: 0.000 (0/20) mean lat 67.54s
v0.4 DLMRestoredVerifier: 1.000 (20/20) mean lat 93.37s
v0.4 vs oracle delta: 0.0 (exact match)
v0.4 vs v0.3 improvement: +1.0 (+100pp)
Evidence: results/research/k1e_niah_1780909617.json (committed in
cbdf13d on the K1.E branch).
The §11.11 postscript covers four points beyond the bare numbers:
1. Why v0.3 went to 0.000 here vs 0.167 in the 2026-06-06 A/B
benchmark — different dataset designs (the A/B's 'recent
window positive control' sample sat inside the trailing
window by construction). K1.E's NIAH builder forces needles
outside both sink and window so v0.3 fails on every sample.
2. Why v0.4 matched oracle exactly — in K1 same-model identity,
captured proposer K/V at evicted positions are bit-exactly
the K/V the verifier would have computed at full attention.
100% across 20 samples is the architecturally expected
outcome; any K1.A/B/C/D bug would have produced < 100%.
This is the strongest possible end-to-end correctness signal
for the four-layer K1 stack.
3. What this validation does NOT yet prove:
(a) Long context (>= 16k, target 100k) — needs vast GPU.
(b) Cross-model (f_theta != identity) — K2 territory; recall
will drop, the gate becomes 'how close can the trained
projection get'.
(c) Real NL workloads — RULER / NarrativeQA / agentic
benchmarks are K3.
4. Latency: v0.4 +35% over oracle (one extra proposer forward
per gen step). Acceptable for Mac mini local agent workloads;
server batching schedules amortise the proposer cost across
concurrent sessions in v0.4 GA Phase 2.
Documentation-only update — no code change. Future postscripts
(§11.12 for vast multi-context, §11.13 for K2 cross-model) will
follow this same pattern as the K-series progresses.
Branch off main, independent of the K1 implementation stack
(#71/#72/#73/#74/#75) — this PR is purely the documentation
record of the empirical result already established on the K1.E
branch.
Co-authored-by: FluffyAIcode <FluffyAIcode@users.noreply.github.com>
The v0.4 GA gate (a) of §11.8 — "NIAH mid-context recall ≥ 95 % at 100k-token context" — has been **empirically verified at the K1 same-model identity scope**, on Mac M4 24 GB with `google/gemma-3-1b-it`. The 100k-token claim itself is pending vast.ai multi-context scan (only feasible on a GPU because the full-attention oracle's KV cache alone needs ~10 GB at 100k); this Mac result establishes the architecture works end-to-end at the 1-2k context regime.
Configuration: `n_samples=20`, `haystack_min_lines=60`, `haystack_max_lines=80`, `seed=42`. Prompt token length distribution: min 1234, max 1634, mean 1428 (≈ 1.4 k tokens).
1421
+
1422
+
Gate predicates all `True`:
1423
+
-`v04_vs_oracle_delta = 0.0` (v0.4 matches oracle exactly on these 20 samples)
Evidence: [`results/research/k1e_niah_1780909617.json`](../../results/research/k1e_niah_1780909617.json) and accompanying log under `results/research/logs/`. Reproducible from main via `bash scripts/review_pr_k1e_on_mac.sh`.
1430
+
1431
+
### Why v0.3 went to 0.000 here vs 0.167 in the 2026-06-06 A/B benchmark
1432
+
1433
+
The two evaluations disagree on the v0.3 baseline (16.7 % vs 0 %). They are not contradictory; they differ in dataset construction:
0 commit comments