Commit fb62424
experiment: seed expansion via PyTorch — closed-set succeeds, open-set fails
Tested the broader claim from Sovereign Lattice:
"Replicate compressed data from singular tokens using Geodesic
tensor data through PyTorch."
Operationalized as: can a tiny GRU model, conditioned ONLY on a
16-dim substrate-derived seed feature vector (mod-prime fingerprints,
log-magnitudes, bit-decomposition of canonical hash), reconstruct
the original OMC source byte-for-byte?
## Setup
Corpus: 50 hand-curated OMC functions (build_corpus.omc → corpus.jsonl)
Model: 2-layer GRU, 128 hidden, 64 embed, conditioning MLP (~249k params)
Train: 1500 epochs AdamW + cosine LR schedule
## Results
### v1: closed-set memorization (train = test = 50)
TRAIN: 50/50 (100%) exact-match
Verified at source-level via sanity_decode.py: full `fn fib(n)`
body with recursion, lambda-containing `arr_filter`, multi-stmt
bodies all reconstructed byte-for-byte from their 16-dim seed.
Substrate-conditioning DOES work as a learned codec for seen data.
### v2: held-out generalization (40 train / 10 test)
TRAIN: 40/40 (100%) exact
HELD-OUT: 0/10 (0%) exact, mean_prefix=0.202
The model produces OMC-token-shaped outputs for held-out seeds
but they share nothing with the actual functions. Even the
first token after `fn` is essentially random.
## What this CONFIRMS
- Substrate-keyed cache: index N known OMC snippets by canonical-hash
seed; the model file IS the compressed library; recovery via seed
is O(decode_steps).
- Lossless round-trip over lossy channels: send seed, decode, verify
hash matches.
- The deterministic backbone (geodesic primitives) + a learned
expansion head DOES give the claimed "single-seed expansion"
property — for inputs the model was trained on.
## What this HONESTLY FALSIFIES (or rather, bounds)
- Open-set decompression from a single seed alone is NOT
achievable with this setup. The substrate hash is uncorrelated
with semantic structure (proven separately in the prime-resonance
null result), so the model has no interpolation signal between
seen and unseen seeds.
- The "expand any compressed data" framing reaches further than
the deterministic backbone supports. You'd need either:
(a) a model trained at scale on diverse code (LLM territory), or
(b) richer features that encode semantic similarity (embeddings).
## Files
build_corpus.omc — generates corpus.jsonl (50 OMC fns)
corpus.jsonl — training data
train_seed_expander.py — v1: 64-hidden, 5-feat, 24% exact
train_v2.py — v2: 128-hidden, 16-feat, 100% exact
sanity_decode.py — source-level reconstruction check
holdout_test.py — 40/10 split → 100% train, 0% held-out
results.json, results_v2.json — numeric output
RESULTS.md — full honest writeup
Reproducible end-to-end.
## Verdict
Closed-set claim: SUCCEEDED. 100% byte-for-byte reconstruction of
50 OMC functions from 16-dim substrate seeds.
Open-set claim: FAILED. 0% reconstruction of held-out functions.
Both results are valuable: success confirms the substrate-primitive
backbone is enough for fixed-library codecs; failure delineates
exactly where the deterministic-only approach stops and where
learned-at-scale models would need to take over.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent f8623d4 commit fb62424
9 files changed
Lines changed: 1814 additions & 0 deletions
File tree
- experiments/seed_expansion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
0 commit comments