Date: 2026-03-13
Experiment: artifacts/v5_final/20260313_131041/
| Parameter | Value |
|---|---|
| W_res std | 2e-3 (baseline) |
| Gate bias | [0, 0, 0] (baseline) |
| LR | 3e-4 |
| Warmup | 300 steps (linear, Fix D) |
| Steps | 3000 |
| Seeds | 1--10 |
| Dataset | RetrievalOnlyDataset (H6, Fix C per-sample RNG) |
| OLD_FACT range | 220--252 (32 types), span len 2 |
| Eval samples | 400 per config per seed |
Fix C: per-sample deterministic RNG (seed * 100_000 + idx).
Fix D: linear LR warmup 0 -> 3e-4 over 300 steps.
Fix B (W_res=1e-4, gate bias=[0,0.2,0]): reverted -- ineffective in Fix C post-world.
| Seed | A comp | B comp | C comp | D comp | B pat | D pat | C old | D old | D-max(ABC) |
|---|---|---|---|---|---|---|---|---|---|
| 1 | 0.2488 | 0.5322 | 0.2608 | 0.5317 | 0.995 | 0.995 | 0.260 | 0.192 | -0.0005 |
| 2 | 0.2678 | 0.5346 | 0.3115 | 0.5558 | 0.990 | 1.000 | 0.186 | 0.292 | +0.0212 |
| 3 | 0.2351 | 0.5154 | 0.3493 | 0.5236 | 1.000 | 0.995 | 0.178 | 0.222 | +0.0082 |
| 4 | 0.2673 | 0.5123 | 0.3267 | 0.8308 | 0.976 | 0.986 | 0.339 | 1.000 | +0.3185 |
| 5 | 0.2519 | 0.2774 | 0.3589 | 0.5817 | 0.082 | 0.149 | 0.325 | 1.000 | +0.2228 |
| 6 | 0.2721 | 0.5411 | 0.3130 | 0.5724 | 0.998 | 1.000 | 0.419 | 0.487 | +0.0312 |
| 7 | 0.2615 | 0.4038 | 0.5704 | 0.7087 | 0.322 | 0.337 | 1.000 | 1.000 | +0.1382 |
| 8 | 0.2853 | 0.2565 | 0.3827 | 0.8269 | 0.072 | 1.000 | 0.394 | 1.000 | +0.4442 |
| 9 | 0.2341 | 0.3897 | 0.5685 | 0.8832 | 0.430 | 1.000 | 1.000 | 1.000 | +0.3147 |
| 10 | 0.3022 | 0.6019 | 0.2526 | 0.7486 | 0.918 | 0.591 | 0.228 | 1.000 | +0.1466 |
| mean | 0.2626 | 0.4565 | 0.3694 | 0.6763 | 0.678 | 0.805 | 0.433 | 0.719 | +0.1645 |
- mean(old_C) = 0.4329
- mean(old_A) = 0.2181
- Difference: +0.2148 (threshold: +0.05)
- 8/10 seeds C > A
The retrieval index with copy-mix decoder recovers old facts that KV-only cannot access.
- mean(pat_B) = 0.6784
- mean(pat_A) = 0.0947
- Difference: +0.5837 (threshold: +0.05)
- Also: mean(pat_D) - mean(pat_C) = +0.5808
TRN oscillator learns periodic patterns that KV-only treats as noise. Seeds 5 and 8 show B stuck (pat < 0.10) but D recovers (pat 0.149 and 1.000 respectively).
- D >= max(A,B,C) in 10/10 seeds (with 0.01 tolerance)
- Seed 1 is the only near-miss: D - max = -0.0005 (effectively tied)
- Mean D - max(A,B,C) = +0.1645
- Script verdict:
TRN_ROLE_SUCCESS(D-max = +0.2198)
The three paths are complementary. D never degrades below the best single-path model.
- 10/10 seeds D composite > 0.20
- Range: [0.5236, 0.8832]
- No collapses, no stuck seeds
Fix D (warmup 300) resolves the bimodality that caused D to fail in 6/10 seeds pre-warmup. Seed 10 (previously known outlier requiring warmup 1000) now succeeds with warmup 300: D comp = 0.7486.
-
Fix C (per-sample RNG): eliminates data leakage that inflated retrieval scores. Without Fix C, A/B/C/D comparisons are invalid.
-
Fix D (warmup 300): prevents gate from locking into wrong basin during the full-LR transition at step ~300--350. Pre-warmup D success rate: 4/10. Post-warmup: 10/10.
-
Fix B (W_res 1e-4, gate bias): reverted. Was designed for pre-Fix-C world where initialization dominated. In Fix C post-world, schedule dominates.
Previously documented as requiring warmup 1000 to rescue (in the Fix D exploration
using run_fixc_reexplore.py). In this full V5 bench with all four configs,
seed 10 D achieves composite 0.7486 with warmup 300. The difference may be
due to the V5 eval script using marker query mode and copy_mix decoder
(vs the simpler setup in run_fixc_reexplore.py).
| Gate | Weight |
|---|---|
| KV | 0.223 |
| TRN | 0.406 |
| Retrieval | 0.371 |
All three paths receive non-trivial weight. TRN dominates slightly, consistent with pattern being the highest-variance task in H6.
cd D:\work\Projects\trn python scripts/run_trimemory_v5_trn_reeval.py \ --steps 3000 --checkpoint-at 1000 \ --seeds 1 2 3 4 5 6 7 8 9 10 \ --device cuda --output artifacts/v5_final
Runtime: ~3.5 hours on RTX 5090.
TriMemory prototype is COMPLETED on the H6 synthetic benchmark.
Evidence:
- Retrieval contribution confirmed (H1 PASS)
- TRN contribution confirmed (H2 PASS)
- Full 3-path integration confirmed (H3 PASS)
- Stability confirmed across 10/10 seeds (H4 PASS)
Scope: This completion claim is limited to the H6 synthetic benchmark under the final default setting (Fix C + Fix D + baseline init). Scaling, real-data validation, and productionization remain future work.
F.R.I.D.A.Y. 3-body parallel math review identified 14 issues across the codebase.
All fixed in commit 907f5aa. The 3 CRITICAL fixes (C1, C2, C3) affect streaming
inference paths only -- training forward() and the H6 benchmark results above are unaffected.
TriMemory's three-path architecture is validated on the H6 synthetic benchmark. Each path contributes a distinct capability (KV: recent, Retrieval: old facts, TRN: patterns). The full model D consistently matches or exceeds the best single-path model across 10 seeds. Fix C + Fix D constitute the minimum viable training recipe.