Instructions to use YihuaiHong/manifold-pretraining-engineering with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use YihuaiHong/manifold-pretraining-engineering with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="YihuaiHong/manifold-pretraining-engineering")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("YihuaiHong/manifold-pretraining-engineering", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use YihuaiHong/manifold-pretraining-engineering with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "YihuaiHong/manifold-pretraining-engineering" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "YihuaiHong/manifold-pretraining-engineering", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/YihuaiHong/manifold-pretraining-engineering
- SGLang
How to use YihuaiHong/manifold-pretraining-engineering with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "YihuaiHong/manifold-pretraining-engineering" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "YihuaiHong/manifold-pretraining-engineering", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "YihuaiHong/manifold-pretraining-engineering" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "YihuaiHong/manifold-pretraining-engineering", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use YihuaiHong/manifold-pretraining-engineering with Docker Model Runner:
docker model run hf.co/YihuaiHong/manifold-pretraining-engineering
Manifold Pretraining Engineering: trained models
Models from the paper Manifold Pretraining Engineering: Right Geometry, Right Time, Right Place (Yihuai Hong, Hanxi Ma, Chen Zhao). arXiv: coming soon. Code: github.com/yihuaihong/manifolds. Project page: yihuaihong.github.io/manifolds.
What these models are
Small OLMo-2-style decoder-only language models (53M to 1.07B parameters) pretrained from scratch on FineWeb-Edu text with a share of addition lines (operands 0..999) mixed in. Each comparison has a model trained with a manifold prior and one trained without it. The prior is an auxiliary loss, 1 - CKA between the hidden states of a concept's tokens at two layers and a target manifold (for numbers, a helix: cos and sin of 2Οx/T for T = 2, 5, 10, 100, 1000 plus a linear term), added to the language-modelling loss for a window of training (5% to 40% unless stated). The models without a prior are trained the same way at their own best learning rate.
The repository also holds models trained with six priors at once (numbers, dimensions, cities, countries, a 6Γ6 torus and a 5Γ5 grid; Table 1, Sec. 4.4): 190M, 505M and 1.07B models with these six priors (Sec. 4.4, "Up to 1.07B parameters"), with their models without priors and with the dimensions prior alone; and checkpoints of the 53M six-prior model with the matching dimensions-prior-only model, used to read the answer code that dimensions share with the torus (Sec. 4.4, App. J).
The repository holds one seed per reported cell: the lowest seed whose final weights were kept. The numbers in the paper are means over 8 seeds, except for the six priors at 190M to 1.07B, which are reported on three seeds for the six priors (16-18) and, for the models without priors, three at every size (seed 16 is here); the tables give both the paper result and this seed's own numbers.
70 models, 105.2 GB (float32 safetensors, as the trainer saved them).
Loading
Every subfolder is a complete transformers model with its tokenizer:
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "YihuaiHong/manifold-pretraining-engineering"
sub = "ladder-7pct/1.07b/helix-prior"
tok = AutoTokenizer.from_pretrained(repo, subfolder=sub)
model = AutoModelForCausalLM.from_pretrained(repo, subfolder=sub) # float32
# in training, addition lines always follow ordinary text at the end of a 512-token row
text = "The museum opened in the spring, and visitors came from the nearby towns to see the new collection. "
ids = tok(text * 4 + "Q: 457 + 38 = ", return_tensors="pt").input_ids
out = model.generate(ids, max_new_tokens=3, do_sample=False)
print(tok.decode(out[0, ids.shape[1]:]))
The tokenizer adds no BOS token, and the models never saw one. The OLMo-2 tokenizer encodes 0..999 as single tokens. The
training lines use four formats (Q: a + b = , a plus b equals , The sum of a and b is , Compute a + b. Result: ),
each followed by the sum and a newline, and always come after text at the end of a row. The paper's accuracies are
teacher-forced exact matches of the answer tokens with the prompt in that position (after held-out text, ending at
token 512); a prompt at the start of the context is outside the training distribution. Context length is 512.
Each subfolder also contains:
provenance.json: setup (batch), cell, arm, learning rate, seed, tokens, steps, the trainer'scode_sha, the sha256 of the source checkpoint, the conversion check, and this run's own accuracy;- the run's JSON log (
run_whole_*.json, local paths removed): arguments and the full evaluation curve (held-out accuracy per operand-length bucket at every evaluation).
Training setup
- Architecture:
Olmo2ForCausalLM, tied input and output embeddings, context 512, OLMo-2 tokenizer (vocabulary 100,278). Sizes (hidden size x layers): 53M (384 x 6), 93M (512 x 10), 136M (640 x 11), 190M (768 x 12), 294M (832 x 19), 391M (960 x 20), 505M (1024 x 24), 731M (1152 x 29), 1.07B (1280 x 36); exact shapes in eachconfig.json. - Data: FineWeb-Edu
sample/10BT(files000_00000and001_00000at dataset commit87f09149ef4734204d70ed1d046ddc9ca3f2b8f9, tokenized to 400M training tokens). Each 512-token row is a window of this text at a random offset followed by 1 (2% arithmetic) or 4 (7% arithmetic) addition lines with operands 0..999 in six operand-length buckets. Per seed, 150 unordered operand pairs per bucket (20 for one-digit pairs) are held out and never trained; they form the held-out evaluation sets. - Optimisation: AdamW (0.9, 0.95), weight decay 0.1, gradient clipping 1.0, batch 32 x 512 tokens, 1% warm-up, cosine to 0.1x, bf16 autocast; weights kept and saved in float32.
- Prior (helix-prior arms): Ξ» 5 on the operand tokens at layers n/3 and 2n/3, on from 5% to 40% of training. The six-prior
models of Table 1 (
six-priors) use Ξ» 1 per prior on numbers, dimensions, cities, countries, a 6x6 torus and a 5x5 grid, with two lines of these domains per row (dimensions, the torus and the grid written with made-up tokens). Thesix-priors-sizemodels use the same six priors at 6e-4. - "Curve average": held-out addition accuracy averaged over the six operand-length buckets and the 75 evaluations of training (x 100), the paper's main metric. "Final": the same at the last evaluation.
Models
Families: ladder-7pct = 7% arithmetic at a fixed 300M tokens; ladder-2pct = 2% at 300M tokens, one cluster;
tokens-per-param = a fixed ratio of tokens to non-embedding parameters; six-priors/v5-checkpoints = checkpoints of
the 53M six-prior model and the dimensions-prior-only model (steps 7323 = last step with priors on, 12000, 18309 = end),
used to read the answer code shared with the torus; fig1-53m-2pct = the 53M models of Figure 1; six-priors-size = the six priors of Table 1 at 190M, 505M and 1.07B (below).
F-numbers refer to the findings log in the code repository (report/FINDINGS.md).
| Subfolder | Size | Arm | lr | Seed | Tokens | Paper | Paper result (FINDINGS id; curve average, %) | This model: curve average / final (%) |
|---|---|---|---|---|---|---|---|---|
ladder-7pct/53m/helix-prior |
53M | helix prior | 2e-3 | 0 | 300M | Fig. 2a (fixed 300M tokens), Fig. 6b, Table 13 (tab:pt300) | F87, F111: 8 seeds: no prior 66.1, prior 88.9, gain +22.8 (8/8) | 88.6 / 99.4 |
ladder-7pct/53m/no-prior |
53M | no prior | 8e-3 | 0 | 300M | Fig. 2a (fixed 300M tokens), Fig. 6b, Table 13 (tab:pt300) | F87, F111: 8 seeds: no prior 66.1, prior 88.9, gain +22.8 (8/8) | 67.0 / 99.2 |
ladder-7pct/136m/helix-prior |
136M | helix prior | 6e-4 | 4 | 300M | Fig. 2a (fixed 300M tokens), Fig. 6b, Table 13 (tab:pt300) | F111: 8 seeds: no prior 62.0, prior 89.9, gain +27.8 (8/8) | 89.9 / 100.0 |
ladder-7pct/136m/no-prior |
136M | no prior | 4.8e-3 | 4 | 300M | Fig. 2a (fixed 300M tokens), Fig. 6b, Table 13 (tab:pt300) | F111: 8 seeds: no prior 62.0, prior 89.9, gain +27.8 (8/8) | 70.2 / 100.0 |
ladder-7pct/190m/helix-prior |
190M | helix prior | 1.2e-3 | 0 | 300M | Fig. 2a (fixed 300M tokens), Fig. 6b, Table 13 (tab:pt300) | F87, F111: 8 seeds: no prior 66.5, prior 90.0, gain +23.5 (8/8) | 89.4 / 99.5 |
ladder-7pct/190m/no-prior |
190M | no prior | 4.8e-3 | 0 | 300M | Fig. 2a (fixed 300M tokens), Fig. 6b, Table 13 (tab:pt300) | F87, F111: 8 seeds: no prior 66.5, prior 90.0, gain +23.5 (8/8) | 54.2 / 93.2 |
ladder-7pct/294m/helix-prior |
294M | helix prior | 6e-4 | 4 | 300M | Fig. 2a (fixed 300M tokens), Fig. 6b, Table 13 (tab:pt300) | F111: 8 seeds: no prior 60.5, prior 89.5, gain +29.0 (8/8) | 89.6 / 99.6 |
ladder-7pct/294m/no-prior |
294M | no prior | 9.6e-3 | 4 | 300M | Fig. 2a (fixed 300M tokens), Fig. 6b, Table 13 (tab:pt300) | F111: 8 seeds: no prior 60.5, prior 89.5, gain +29.0 (8/8) | 54.9 / 98.4 |
ladder-7pct/391m/helix-prior |
391M | helix prior | 6e-4 | 4 | 300M | Fig. 2a (fixed 300M tokens), Fig. 6b, Table 13 (tab:pt300) | F111: 8 seeds: no prior 64.1, prior 89.6, gain +25.5 (8/8) | 89.3 / 100.0 |
ladder-7pct/391m/no-prior |
391M | no prior | 9.6e-3 | 4 | 300M | Fig. 2a (fixed 300M tokens), Fig. 6b, Table 13 (tab:pt300) | F111: 8 seeds: no prior 64.1, prior 89.6, gain +25.5 (8/8) | 62.6 / 98.9 |
ladder-7pct/505m/helix-prior |
505M | helix prior | 1.2e-3 | 0 | 300M | Fig. 2a (fixed 300M tokens), Fig. 6b, Table 13 (tab:pt300); also Fig. 2a fixed-0.745 line | F87, F97, F111: 8 seeds: no prior 57.5, prior 89.7, gain +32.2 (8/8) | 89.3 / 98.7 |
ladder-7pct/505m/no-prior |
505M | no prior | 9.6e-3 | 0 | 300M | Fig. 2a (fixed 300M tokens), Fig. 6b, Table 13 (tab:pt300); also Fig. 2a fixed-0.745 line | F87, F97, F111: 8 seeds: no prior 57.5, prior 89.7, gain +32.2 (8/8) | 62.1 / 100.0 |
ladder-7pct/731m/helix-prior |
731M | helix prior | 6e-4 | 4 | 300M | Fig. 2a (fixed 300M tokens), Fig. 6b, Table 13 (tab:pt300) | F111: 8 seeds: no prior 59.0, prior 89.7, gain +30.7 (8/8) | 89.9 / 100.0 |
ladder-7pct/731m/no-prior |
731M | no prior | 9.6e-3 | 4 | 300M | Fig. 2a (fixed 300M tokens), Fig. 6b, Table 13 (tab:pt300) | F111: 8 seeds: no prior 59.0, prior 89.7, gain +30.7 (8/8) | 61.4 / 99.3 |
ladder-7pct/1.07b/helix-prior |
1.07B | helix prior | 6e-4 | 2 | 300M | Fig. 2a (fixed 300M tokens), Fig. 6b, Table 13 (tab:pt300); also Fig. 2a fixed-0.318 line | F87, F97, F111: 8 seeds: no prior 53.3, prior 89.4, gain +36.1 (8/8) | 90.0 / 100.0 |
ladder-7pct/1.07b/no-prior |
1.07B | no prior | 2.4e-3 | 2 | 300M | Fig. 2a (fixed 300M tokens), Fig. 6b, Table 13 (tab:pt300); also Fig. 2a fixed-0.318 line | F87, F97, F111: 8 seeds: no prior 53.3, prior 89.4, gain +36.1 (8/8) | 44.0 / 92.8 |
ladder-2pct/53m/helix-prior |
53M | helix prior | 2e-3 | 0 | 300M | Fig. 2b (fixed 300M tokens, one cluster) | F98, F108: 8 seeds: no prior 20.6, prior 68.6, gain +48.0 (8/8) | 69.6 / 96.9 |
ladder-2pct/53m/no-prior |
53M | no prior | 8e-3 | 0 | 300M | Fig. 2b (fixed 300M tokens, one cluster) | F98, F108: 8 seeds: no prior 20.6, prior 68.6, gain +48.0 (8/8) | 24.2 / 54.6 |
ladder-2pct/93m/helix-prior |
93M | helix prior | 6e-4 | 4 | 300M | Fig. 2b (fixed 300M tokens, one cluster) | F108: 8 seeds: no prior 24.2, prior 75.9, gain +51.6 (8/8) | 78.2 / 99.9 |
ladder-2pct/93m/no-prior |
93M | no prior | 4.8e-3 | 4 | 300M | Fig. 2b (fixed 300M tokens, one cluster) | F108: 8 seeds: no prior 24.2, prior 75.9, gain +51.6 (8/8) | 40.1 / 85.6 |
ladder-2pct/190m/helix-prior |
190M | helix prior | 6e-4 | 0 | 300M | Fig. 2b (fixed 300M tokens, one cluster) | F98, F108: 8 seeds: no prior 28.0, prior 77.9, gain +49.9 (8/8) | 75.2 / 99.0 |
ladder-2pct/190m/no-prior |
190M | no prior | 4.8e-3 | 0 | 300M | Fig. 2b (fixed 300M tokens, one cluster) | F98, F108: 8 seeds: no prior 28.0, prior 77.9, gain +49.9 (8/8) | 26.6 / 66.0 |
ladder-2pct/294m/helix-prior |
294M | helix prior | 6e-4 | 4 | 300M | Fig. 2b (fixed 300M tokens, one cluster) | F108: 8 seeds: no prior 26.0, prior 78.3, gain +52.3 (8/8) | 78.0 / 99.5 |
ladder-2pct/294m/no-prior |
294M | no prior | 9.6e-3 | 4 | 300M | Fig. 2b (fixed 300M tokens, one cluster) | F108: 8 seeds: no prior 26.0, prior 78.3, gain +52.3 (8/8) | 28.7 / 79.5 |
ladder-2pct/505m/helix-prior |
505M | helix prior | 6e-4 | 0 | 300M | Fig. 2b (fixed 300M tokens, one cluster); Fig. 6a; Fig. 2b fixed-0.745 line | F86, F98, F108: 8 seeds: no prior 24.4, prior 77.4, gain +53.0 (8/8) | 76.4 / 99.9 |
ladder-2pct/505m/no-prior |
505M | no prior | 4.8e-3 | 0 | 300M | Fig. 2b (fixed 300M tokens, one cluster); Fig. 6a; Fig. 2b fixed-0.745 line | F86, F98, F108: 8 seeds: no prior 24.4, prior 77.4, gain +53.0 (8/8) | 28.2 / 64.8 |
tokens-per-param/2pct-tpp0.745/190m/helix-prior |
190M | helix prior | 1.2e-3 | 4 | 84M | Fig. 2b (fixed 0.745 tokens per non-embedding parameter) | F97: 8 seeds: no prior 4.8, prior 34.9, gain +30.1 (8/8) | 42.2 / 82.4 |
tokens-per-param/2pct-tpp0.745/190m/no-prior |
190M | no prior | 9.6e-3 | 4 | 84M | Fig. 2b (fixed 0.745 tokens per non-embedding parameter) | F97: 8 seeds: no prior 4.8, prior 34.9, gain +30.1 (8/8) | 4.1 / 8.9 |
tokens-per-param/2pct-tpp0.745/294m/helix-prior |
294M | helix prior | 6e-4 | 4 | 157M | Fig. 2b (fixed 0.745 tokens per non-embedding parameter) | F97: 8 seeds: no prior 7.9, prior 62.7, gain +54.8 (8/8) | 61.4 / 91.4 |
tokens-per-param/2pct-tpp0.745/294m/no-prior |
294M | no prior | 4.8e-3 | 4 | 157M | Fig. 2b (fixed 0.745 tokens per non-embedding parameter) | F97: 8 seeds: no prior 7.9, prior 62.7, gain +54.8 (8/8) | 9.6 / 30.8 |
tokens-per-param/7pct-tpp0.318/505m/helix-prior |
505M | helix prior | 1.2e-3 | 4 | 128M | Fig. 2a (fixed 0.318 tokens per non-embedding parameter) | F97: 8 seeds: no prior 19.8, prior 82.8, gain +63.0 (8/8) | 82.8 / 100.0 |
tokens-per-param/7pct-tpp0.318/505m/no-prior |
505M | no prior | 9.6e-3 | 4 | 128M | Fig. 2a (fixed 0.318 tokens per non-embedding parameter) | F97: 8 seeds: no prior 19.8, prior 82.8, gain +63.0 (8/8) | 22.4 / 72.5 |
tokens-per-param/7pct-tpp0.745/1.07b/helix-prior |
1.07B | helix prior | 3e-4 | 2 | 703M | Fig. 2a (fixed 0.745 tokens per non-embedding parameter) | F97: 8 seeds: no prior 79.3, prior 92.3, gain +13.0 (8/8) | 92.5 / 100.0 |
tokens-per-param/7pct-tpp0.745/1.07b/no-prior |
1.07B | no prior | 2.4e-3 | 2 | 703M | Fig. 2a (fixed 0.745 tokens per non-embedding parameter) | F97: 8 seeds: no prior 79.3, prior 92.3, gain +13.0 (8/8) | 78.7 / 99.1 |
six-priors/v5-checkpoints/all6-lr2e-3-s16-step7323 |
53M | six priors | 2e-3 | 16 | 120M | Sec. 4.4 (Joint training lifts dimensions); App. J (A code shared with the torus) | F107, F110: removing the torus answer subspace at layer 5 cuts held-out dimensions accuracy at the end of training by 44-46 points with the six priors vs 1.5-5 with the dimensions prior alone | no eval at this step (7250 / 7500 nearest) |
six-priors/v5-checkpoints/all6-lr2e-3-s16-step12000 |
53M | six priors | 2e-3 | 16 | 197M | Sec. 4.4 (Joint training lifts dimensions); App. J (A code shared with the torus) | F107, F110: removing the torus answer subspace at layer 5 cuts held-out dimensions accuracy at the end of training by 44-46 points with the six priors vs 1.5-5 with the dimensions prior alone | numbers held-out at this step 77.8 |
six-priors/v5-checkpoints/all6-lr2e-3-s16-step18309 |
53M | six priors | 2e-3 | 16 | 300M | Sec. 4.4 (Joint training lifts dimensions); App. J (A code shared with the torus) | F107, F110: removing the torus answer subspace at layer 5 cuts held-out dimensions accuracy at the end of training by 44-46 points with the six priors vs 1.5-5 with the dimensions prior alone | numbers held-out at this step 96.1 |
six-priors/v5-checkpoints/all6-lr2e-3-s17-step7323 |
53M | six priors | 2e-3 | 17 | 120M | Sec. 4.4 (Joint training lifts dimensions); App. J (A code shared with the torus) | F107, F110: removing the torus answer subspace at layer 5 cuts held-out dimensions accuracy at the end of training by 44-46 points with the six priors vs 1.5-5 with the dimensions prior alone | no eval at this step (7250 / 7500 nearest) |
six-priors/v5-checkpoints/all6-lr2e-3-s17-step12000 |
53M | six priors | 2e-3 | 17 | 197M | Sec. 4.4 (Joint training lifts dimensions); App. J (A code shared with the torus) | F107, F110: removing the torus answer subspace at layer 5 cuts held-out dimensions accuracy at the end of training by 44-46 points with the six priors vs 1.5-5 with the dimensions prior alone | numbers held-out at this step 83.5 |
six-priors/v5-checkpoints/all6-lr2e-3-s17-step18309 |
53M | six priors | 2e-3 | 17 | 300M | Sec. 4.4 (Joint training lifts dimensions); App. J (A code shared with the torus) | F107, F110: removing the torus answer subspace at layer 5 cuts held-out dimensions accuracy at the end of training by 44-46 points with the six priors vs 1.5-5 with the dimensions prior alone | numbers held-out at this step 96.7 |
six-priors/v5-checkpoints/only-dim-lr2e-3-s16-step7323 |
53M | dimensions prior only | 2e-3 | 16 | 120M | Sec. 4.4 (Joint training lifts dimensions); App. J (A code shared with the torus) | F107, F110: removing the torus answer subspace at layer 5 cuts held-out dimensions accuracy at the end of training by 44-46 points with the six priors vs 1.5-5 with the dimensions prior alone | no eval at this step (7250 / 7500 nearest) |
six-priors/v5-checkpoints/only-dim-lr2e-3-s16-step12000 |
53M | dimensions prior only | 2e-3 | 16 | 197M | Sec. 4.4 (Joint training lifts dimensions); App. J (A code shared with the torus) | F107, F110: removing the torus answer subspace at layer 5 cuts held-out dimensions accuracy at the end of training by 44-46 points with the six priors vs 1.5-5 with the dimensions prior alone | numbers held-out at this step 34.9 |
six-priors/v5-checkpoints/only-dim-lr2e-3-s16-step18309 |
53M | dimensions prior only | 2e-3 | 16 | 300M | Sec. 4.4 (Joint training lifts dimensions); App. J (A code shared with the torus) | F107, F110: removing the torus answer subspace at layer 5 cuts held-out dimensions accuracy at the end of training by 44-46 points with the six priors vs 1.5-5 with the dimensions prior alone | numbers held-out at this step 66.7 |
six-priors/v5-checkpoints/only-dim-lr2e-3-s17-step7323 |
53M | dimensions prior only | 2e-3 | 17 | 120M | Sec. 4.4 (Joint training lifts dimensions); App. J (A code shared with the torus) | F107, F110: removing the torus answer subspace at layer 5 cuts held-out dimensions accuracy at the end of training by 44-46 points with the six priors vs 1.5-5 with the dimensions prior alone | no eval at this step (7250 / 7500 nearest) |
six-priors/v5-checkpoints/only-dim-lr2e-3-s17-step12000 |
53M | dimensions prior only | 2e-3 | 17 | 197M | Sec. 4.4 (Joint training lifts dimensions); App. J (A code shared with the torus) | F107, F110: removing the torus answer subspace at layer 5 cuts held-out dimensions accuracy at the end of training by 44-46 points with the six priors vs 1.5-5 with the dimensions prior alone | numbers held-out at this step 12.3 |
six-priors/v5-checkpoints/only-dim-lr2e-3-s17-step18309 |
53M | dimensions prior only | 2e-3 | 17 | 300M | Sec. 4.4 (Joint training lifts dimensions); App. J (A code shared with the torus) | F107, F110: removing the torus answer subspace at layer 5 cuts held-out dimensions accuracy at the end of training by 44-46 points with the six priors vs 1.5-5 with the dimensions prior alone | numbers held-out at this step 35.0 |
fig1-53m-2pct/helix-prior |
53M | helix prior | 2e-3 | 0 | 300M | Fig. 1b-c (seed-0 states at the end of training) | F86, F92: Fig. 1c (CKA with the helix 0.94); F86 8-seed curve average 69.9 (Burst runs) | 69.2 / 95.7 |
fig1-53m-2pct/no-prior |
53M | no prior | 8e-3 | 0 | 300M | Fig. 1b-c (seed-0 states at the end of training) | F86, F92: Fig. 1b (CKA with the helix 0.62); F86 8-seed curve average 18.4 (Burst runs) | 19.3 / 44.6 |
fig1-53m-2pct/shuffled-helix |
53M | shuffled helix (control) | 2e-3 | 0 | 300M | Fig. 1d (shuffled control, seed 0 of 8) | F86, F92: F92 addendum: shuffled-helix control at the prior's lr, 8-seed curve average 8.64 | 10.8 / 14.1 |
Some cells appear on two lines of Figure 2: 505M at 7% (ladder-7pct/505m) is also the fixed-0.745 cell, 1.07B at 7%
(ladder-7pct/1.07b) the fixed-0.318 cell, and 505M at 2% (ladder-2pct/505m) the 2% fixed-0.745 cell.
Six priors at 190M, 505M and 1.07B (six-priors-size)
The Table 1 recipe (300M tokens, 2% addition plus two lines of the other domains per row, each prior with Ξ» 1 on its items in context, the same window, sites and weights), changing only the architecture and the learning rate (Sec. 4.4, "Up to 1.07B parameters"; App. J, "Larger models"; FINDINGS F114). Per size: the six priors in the window (5% to 40% of training), the six priors kept on until the end, and the dimensions prior alone, all at 6e-4 (the rate chosen for the helix alone at these sizes, not tuned for the six), and the model without priors at four learning rates (2.4e-3 to 1.92e-2 at 190M and 505M, 1.2e-3 to 9.6e-3 at 1.07B). All are seed 16.
Results (curve average; Sec. 4.4 and App. J, updated in FINDINGS F114 addenda 6β10, F116): on numbers, dimensions, the torus and the grid, each of our 21 runs with the six priors at these sizes (in the window or kept on until the end) is above each of our 63 runs without priors, at any size, learning rate and seed (at least 75.3, 80.0, 86.0 and 68.5% against at most 32.3, 64.6, 76.5 and 49.1%). At every size from 190M to 1.07B and in every one of the three seeds, the six priors raise accuracy averaged over training on all six concepts above the model without priors at its best learning rate (54 of 54 comparisons). As means of seeds 16-18, on numbers, dimensions, cities, countries, the torus and the grid, the gains are 51.3, 48.1, 4.2, 3.4, 20.4 and 42.9 points at 190M and 51.4, 42.8, 3.4, 3.0, 18.2 and 37.1 at 505M. At 1.07B, the largest model we train, the six priors raise accuracy averaged over training on all six concepts in every seed, by 49.9 points on numbers, 49.2 on the grid, 45.0 on dimensions and 17.4 on the torus, each against the model without priors at its best learning rate, with the learning-rate range closed on both sides; on cities and countries the 1.07B gains are 2.5 and 2.9 points. The gains do not shrink with model size: from 190M to 1.07B they stay at 50β51 points on numbers (51.3, 51.4, 49.9), 43β48 on dimensions (48.1, 42.8, 45.0), 37β49 on the grid (42.9, 37.1, 49.2) and 17β20 on the torus (20.4, 18.2, 17.4).
At the same learning rate, the six priors cost a little language-modelling loss at 190M and 505M (+0.3% and +1.4% bits per byte, 4 of 4 seeds each) and none on average at 1.07B (0.0%; higher in 3 of 4 seeds, lower in 1). At the same learning rate, the six priors change no benchmark's mean score by more than 0.6 points at any size: across the 15 size Γ benchmark comparisons (190M, 505M, 1.07B Γ five benchmarks, four paired seeds each), mean differences range from β0.45 to +0.56 points with no consistent sign (7 positive, 8 negative), none is worse, 9 are non-inferior at a 1-point margin (all 5 at 190M, 3 at 505M, 1 at 1.07B), and the other 6 have 95% confidence intervals too wide to decide. LAMBADA perplexity is 3β8% higher with the six priors (geometric means 1.03, 1.05, 1.08; intervals include 1). The three-seed results use seeds 17 and 18, and the same-rate comparisons (seeds 16-19) use models without priors at 6e-4; neither is in this repository.
Columns below: this model's own seed-16 numbers, in the order numbers / dimensions / cities / countries / torus / grid.
Curve average = held-out accuracy averaged over the 75 evaluations of training (x 100); final = the mean of the last 3
evaluations. Dimensions: the strict held-out set; cities and countries: held-out "which of two is closer to a third?"
comparisons; torus and grid: held-out problems. Bits per byte: validation loss at the end of training. The same numbers
are in each subfolder's provenance.json (six_manifold_readout).
| Subfolder | Size | Arm | lr | Seed | Tokens | Curve average (%) | Final (%) | Bits per byte |
|---|---|---|---|---|---|---|---|---|
six-priors-size/190m/all6-lr6e-4 |
190M | six priors | 6e-4 | 16 | 300M | 78.3 / 92.3 / 92.9 / 94.5 / 88.2 / 84.4 | 99.9 / 100.0 / 97.2 / 97.6 / 98.9 / 93.9 | 1.125 |
six-priors-size/190m/all6-kept-on-lr6e-4 |
190M | six priors kept on until the end | 6e-4 | 16 | 300M | 79.1 / 92.3 / 91.0 / 94.8 / 88.4 / 89.1 | 100.0 / 100.0 / 94.8 / 98.3 / 99.8 / 99.6 | 1.125 |
six-priors-size/190m/only-dim-lr6e-4 |
190M | dimensions prior only | 6e-4 | 16 | 300M | 12.0 / 87.7 / 72.9 / 81.6 / 2.6 / 20.8 | 18.1 / 94.8 / 77.3 / 86.4 / 4.3 / 28.3 | 1.122 |
six-priors-size/190m/no-prior-lr2.4e-3 |
190M | no prior | 2.4e-3 | 16 | 300M | 27.1 / 9.8 / 86.8 / 89.4 / 1.4 / 30.6 | 59.5 / 12.6 / 95.1 / 95.6 / 1.3 / 33.8 | 1.144 |
six-priors-size/190m/no-prior-lr4.8e-3 |
190M | no prior | 4.8e-3 | 16 | 300M | 24.9 / 7.0 / 85.2 / 89.2 / 1.2 / 14.3 | 58.6 / 9.8 / 93.5 / 95.4 / 2.3 / 17.0 | 1.141 |
six-priors-size/190m/no-prior-lr9.6e-3 |
190M | no prior | 9.6e-3 | 16 | 300M | 24.2 / 44.0 / 87.0 / 90.8 / 61.7 / 43.4 | 74.1 / 64.9 / 92.8 / 95.1 / 95.4 / 55.1 | 1.166 |
six-priors-size/190m/no-prior-lr1.92e-2 |
190M | no prior | 1.92e-2 | 16 | 300M | 22.0 / 42.5 / 85.0 / 87.7 / 69.6 / 36.0 | 66.1 / 54.6 / 91.1 / 95.4 / 95.6 / 44.2 | 1.229 |
six-priors-size/505m/all6-lr6e-4 |
505M | six priors | 6e-4 | 16 | 300M | 78.9 / 91.2 / 88.9 / 93.2 / 86.8 / 86.3 | 99.8 / 97.1 / 93.0 / 97.1 / 98.0 / 95.4 | 1.096 |
six-priors-size/505m/all6-kept-on-lr6e-4 |
505M | six priors kept on until the end | 6e-4 | 16 | 300M | 80.0 / 90.7 / 91.8 / 95.0 / 87.3 / 85.0 | 100.0 / 99.4 / 96.3 / 98.0 / 99.6 / 97.6 | 1.111 |
six-priors-size/505m/only-dim-lr6e-4 |
505M | dimensions prior only | 6e-4 | 16 | 300M | 20.2 / 88.0 / 74.3 / 79.8 / 7.5 / 6.7 | 44.2 / 98.3 / 78.6 / 83.8 / 12.5 / 8.1 | 1.095 |
six-priors-size/505m/no-prior-lr2.4e-3 |
505M | no prior | 2.4e-3 | 16 | 300M | 23.6 / 6.5 / 84.3 / 88.5 / 0.8 / 6.7 | 52.7 / 6.3 / 92.8 / 96.2 / 1.1 / 7.6 | 1.107 |
six-priors-size/505m/no-prior-lr4.8e-3 |
505M | no prior | 4.8e-3 | 16 | 300M | 29.0 / 26.7 / 85.7 / 89.3 / 71.0 / 42.6 | 80.7 / 29.9 / 94.6 / 95.8 / 94.7 / 51.4 | 1.128 |
six-priors-size/505m/no-prior-lr9.6e-3 |
505M | no prior | 9.6e-3 | 16 | 300M | 29.8 / 34.8 / 88.0 / 90.6 / 71.6 / 44.4 | 64.0 / 42.0 / 95.5 / 97.6 / 95.4 / 55.1 | 1.154 |
six-priors-size/505m/no-prior-lr1.92e-2 |
505M | no prior | 1.92e-2 | 16 | 300M | 20.0 / 42.1 / 86.0 / 89.4 / 70.7 / 43.1 | 70.0 / 37.9 / 92.1 / 95.5 / 96.3 / 46.6 | 1.205 |
six-priors-size/1.07b/all6-lr6e-4 |
1.07B | six priors | 6e-4 | 16 | 300M | 78.2 / 88.8 / 92.6 / 94.2 / 86.0 / 84.0 | 99.9 / 100.0 / 96.9 / 97.7 / 97.1 / 94.6 | 1.084 |
six-priors-size/1.07b/all6-kept-on-lr6e-4 |
1.07B | six priors kept on until the end | 6e-4 | 16 | 300M | 80.2 / 92.0 / 89.9 / 92.0 / 88.1 / 87.3 | 100.0 / 100.0 / 94.0 / 94.9 / 99.4 / 99.6 | 1.090 |
six-priors-size/1.07b/only-dim-lr6e-4 |
1.07B | dimensions prior only | 6e-4 | 16 | 300M | 13.4 / 90.7 / 77.9 / 84.5 / 1.6 / 21.7 | 23.6 / 99.4 / 83.1 / 88.9 / 2.2 / 27.9 | 1.089 |
six-priors-size/1.07b/no-prior-lr1.2e-3 |
1.07B | no prior | 1.2e-3 | 16 | 300M | 23.7 / 8.4 / 79.1 / 84.1 / 2.1 / 17.6 | 50.1 / 6.9 / 86.2 / 87.9 / 4.0 / 22.2 | 1.092 |
six-priors-size/1.07b/no-prior-lr2.4e-3 |
1.07B | no prior | 2.4e-3 | 16 | 300M | 27.3 / 8.6 / 83.3 / 88.6 / 3.6 / 21.1 | 62.4 / 7.5 / 90.9 / 92.8 / 7.1 / 25.9 | 1.098 |
six-priors-size/1.07b/no-prior-lr4.8e-3 |
1.07B | no prior | 4.8e-3 | 16 | 300M | 27.4 / 4.4 / 85.9 / 89.0 / 61.1 / 20.8 | 72.6 / 8.0 / 92.7 / 95.2 / 86.5 / 26.6 | 1.116 |
six-priors-size/1.07b/no-prior-lr9.6e-3 |
1.07B | no prior | 9.6e-3 | 16 | 300M | 25.0 / 10.0 / 89.5 / 91.3 / 67.3 / 24.8 | 61.9 / 10.9 / 96.1 / 97.2 / 92.9 / 21.4 | 1.154 |
Not included because no weights were kept: the 93M and B200 294M cells of the 7% ladder; the 7% tokens-per-parameter
cells at 93M, 190M and 294M; the 2% 53M and 190M runs of Figure 6a trained on our other cluster (same-configuration
reruns are in ladder-2pct and fig1-53m-2pct); the final models of the Table 1 six-prior runs (their jobs did not save
weights; six-priors/v5-checkpoints are re-runs of two of its cells with saving switched on); and the OLMo-2-7B LoRA
adapters of Figure 1 (the fine-tuning script does not save them).
Intended use
Research on how auxiliary geometric losses shape representations and learning: probing number representations, comparing models with and without a prior, reproducing the paper's figures. They are not instruction-tuned, not safety-tuned, and not meant for deployment or for generating text for end users.
Limitations
- Small models trained on 300M tokens or fewer: they produce fluent-looking but unreliable English and have little world knowledge.
- One seed per cell; the paper's claims rest on 8 seeds, except for the six priors at 190M to 1.07B, which are reported on three seeds for the six priors (16-18) and, for the models without priors, three at every size (seed 16 is here), and single seeds vary (for example, a model without a prior can learn late).
- Accuracies refer to the held-out sets of the training script, in the training formats; other prompt formats are untested.
- The six-prior models were trained with concept-domain lines (city and country comparisons; dimension, torus and grid problems written with made-up tokens) that are not in plain FineWeb-Edu text.
- In
six-priors-size, the models without priors in this repository run at higher learning rates than the priors (6e-4), and their validation loss rises with the rate, so the bits-per-byte column is not a same-rate comparison (the same-rate cost is given above).
License and attribution
Models: MIT, as the code repository. Tokenizer files: from allenai/OLMo-2-1124-7B (Apache-2.0). Training text:
FineWeb-Edu by Hugging Face (HuggingFaceFW/fineweb-edu), released under ODC-By 1.0; the models were trained on it, and
its use is subject to the CommonCrawl terms of use.
Citation
@article{hong2026manifold,
title = {Manifold Pretraining Engineering: Right Geometry, Right Time, Right Place},
author = {Hong, Yihuai and Ma, Hanxi and Zhao, Chen},
journal = {arXiv preprint},
year = {2026}
}