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: the first set at 190M and 505M (numbers plus month and weekday arithmetic, the 24-hour clock, products in the permutation group S4 and sums and differences of physical dimensions; Fig. 6c), and checkpoints of the later six-prior model (numbers, dimensions, cities, countries, a 6×6 torus and a 5×5 grid; Sec. 4.4) with the matching dimensions-prior-only model, used for the interpretability analysis.
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 (4 for the first set of six priors); the table gives both the paper result and this seed's own numbers.
66 models, 77.5 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. The first set of six priors (six-priors-first-set) uses λ 1 per prior on numbers (helix), months, weekdays and the 24-hour clock (circles), products in S4 and sums of physical dimensions (the last two written with made-up tokens), with two lines of these domains per row; its learning rates were chosen on numbers only. - "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 six-prior model and the dimensions-prior-only model (steps 7323 = last step with priors on, 12000, 18309 = end),
used for the interpretability analysis; fig1-53m-2pct = the 53M models of Figure 1; six-priors-first-set = the first
set of six priors at 190M and 505M (Figure 6c, Appendix G): all six priors, no prior at the six priors' learning rate and
at the learning rate chosen on numbers, the number prior alone, and the further arms Appendix G reports (190M: the clock
prior alone, the six priors without the clock prior, both six priors and the number prior at 1.2e-3, no prior at 9.6e-3
and 1.92e-2; 505M: no prior at 2.4e-3, 9.6e-3 and 1.92e-2). Their paper results are means over seeds 0-3 (the sweep cells
at 505M over seeds 0-1), descriptive; S4 is final accuracy on fresh held-out cells, dimensions on the strict held-out
set, clock on held-out problems that cross 24. 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 14 (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 14 (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 14 (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 14 (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 14 (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 14 (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 14 (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 14 (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 14 (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 14 (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 14 (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 14 (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 14 (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 14 (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 14 (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 14 (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 six priors: shared answer code read (Amendment V5/V6) | 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 six priors: shared answer code read (Amendment V5/V6) | 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 six priors: shared answer code read (Amendment V5/V6) | 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 six priors: shared answer code read (Amendment V5/V6) | 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 six priors: shared answer code read (Amendment V5/V6) | 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 six priors: shared answer code read (Amendment V5/V6) | 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 six priors: shared answer code read (Amendment V5/V6) | 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 six priors: shared answer code read (Amendment V5/V6) | 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 six priors: shared answer code read (Amendment V5/V6) | 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 six priors: shared answer code read (Amendment V5/V6) | 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 six priors: shared answer code read (Amendment V5/V6) | 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 six priors: shared answer code read (Amendment V5/V6) | 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 |
six-priors-first-set/190m/all6-lr6e-4 |
190M | six priors | 6e-4 | 0 | 300M | Fig. 6c; App. G (first set of six priors) | F88: 4 seeds: numbers 76.6, S4 44.5, dimensions 89.4, clock 62.2 | 77.1 / 98.5 |
six-priors-first-set/190m/no-prior-lr6e-4 |
190M | no prior | 6e-4 | 0 | 300M | Fig. 6c; App. G (first set of six priors) (same-lr control) | F88: 4 seeds: numbers 15.0, S4 0.0, dimensions 14.3, clock 27.5 | 18.1 / 36.8 |
six-priors-first-set/190m/no-prior-lr4.8e-3 |
190M | no prior | 4.8e-3 | 0 | 300M | Fig. 6c; App. G (first set of six priors) (numbers-selected lr) | F88: 4 seeds: numbers 31.6, S4 1.1, dimensions 12.8, clock 90.5 | 36.4 / 68.3 |
six-priors-first-set/190m/only-numbers-lr6e-4 |
190M | numbers prior only | 6e-4 | 0 | 300M | App. G (clock comparison) | F88: 4 seeds: numbers 78.2, S4 0.6, dimensions 2.9, clock 96.4 | 78.4 / 98.5 |
six-priors-first-set/190m/no-prior-lr1.92e-2 |
190M | no prior | 1.92e-2 | 0 | 300M | Fig. 6c (dark grey); App. G | F88: 4 seeds: S4 60.5, dimensions 40.1 (highest none lr tried) | 26.0 / 67.4 |
six-priors-first-set/190m/no-prior-lr9.6e-3 |
190M | no prior | 9.6e-3 | 0 | 300M | App. G (none at higher lrs) | F88: 4 seeds: S4 8.7, dimensions 22.1 | 31.0 / 65.8 |
six-priors-first-set/190m/all6-lr1.2e-3 |
190M | six priors | 1.2e-3 | 0 | 300M | App. G (clock gap at 1.2e-3) | F88: 4 seeds: S4 43.2, dimensions 76.0; clock 17.3 below only-numbers at 1.2e-3 | 73.5 / 98.7 |
six-priors-first-set/190m/only-numbers-lr1.2e-3 |
190M | numbers prior only | 1.2e-3 | 0 | 300M | App. G (clock gap at 1.2e-3) | F88: 4 seeds: clock gap all6 - only-numbers -17.3 (1/4, n.s.) | 75.4 / 98.2 |
six-priors-first-set/190m/only-clock-lr6e-4 |
190M | clock prior only | 6e-4 | 0 | 300M | App. G (clock prior alone) | F88: 4 seeds: clock 78.2 (only-numbers 96.4, no prior 27.5) | 27.2 / 51.8 |
six-priors-first-set/190m/all6-minus-clock-lr6e-4 |
190M | six priors without the clock prior | 6e-4 | 0 | 300M | App. G (gap closes without the clock prior) | F88: 4 seeds: clock 96.5 (only-numbers 96.4, all six 62.2) | 76.8 / 98.4 |
six-priors-first-set/505m/all6-lr6e-4 |
505M | six priors | 6e-4 | 0 | 300M | Fig. 6c; App. G (first set of six priors) | F88: 4 seeds: numbers 77.0, S4 29.6, dimensions 89.9, clock 71.4 | 76.6 / 99.4 |
six-priors-first-set/505m/no-prior-lr6e-4 |
505M | no prior | 6e-4 | 0 | 300M | Fig. 6c; App. G (first set of six priors) (same-lr control) | F88: 4 seeds: numbers 15.1, S4 0.5, dimensions 9.1, clock 23.4 | 16.5 / 32.0 |
six-priors-first-set/505m/no-prior-lr4.8e-3 |
505M | no prior | 4.8e-3 | 0 | 300M | Fig. 6c; App. G (first set of six priors) (numbers-selected lr) | F88: 4 seeds: numbers 35.9, S4 1.1, dimensions 11.9, clock 98.0 | 38.1 / 64.9 |
six-priors-first-set/505m/only-numbers-lr6e-4 |
505M | numbers prior only | 6e-4 | 0 | 300M | App. G (same-lr comparisons) | F88: 4 seeds: numbers 77.5, S4 1.0, dimensions 7.9, clock 92.5 | 76.4 / 97.9 |
six-priors-first-set/505m/no-prior-lr2.4e-3 |
505M | no prior | 2.4e-3 | 0 | 300M | App. G (none lr sweep, 2 seeds) | F88: 2 seeds: S4 0.2 | 15.3 / 38.6 |
six-priors-first-set/505m/no-prior-lr9.6e-3 |
505M | no prior | 9.6e-3 | 0 | 300M | App. G (none lr sweep, 2 seeds) | F88: 2 seeds: S4 9.9 | 38.0 / 72.3 |
six-priors-first-set/505m/no-prior-lr1.92e-2 |
505M | no prior | 1.92e-2 | 0 | 300M | App. G (none lr sweep, 2 seeds) | F88: 2 seeds: S4 16.8, dimensions 31.6 / 44.3 (highest none lr tried) | 20.6 / 55.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.
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); the 53M models of the
first set of six priors (Figure 6c's 53M bars and the 53M table of Appendix G), which were trained on our other cluster
and of which only the logs were copied back (the 190M and 505M models of this set are in six-priors-first-set); 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 (4 for the first set of six priors), and single seeds vary (for example, a model without a prior can learn late).
- Accuracies refer to the held-out addition sets of the training script, in the training formats; other prompt formats are untested.
- The six-prior models were trained with concept-domain lines (cities, countries, nonce lattice items; months, weekdays, clock times, S4 products and dimension sums with made-up tokens) that are not in plain FineWeb-Edu text.
- In the first set of six priors, the learning rates were chosen on numbers only, so the models without priors are not tuned for S4, dimensions or the clock; their results are on the learning-rate-selection seeds and descriptive.
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}
}