Joshua Shay Kricheli*, Alexander Lawrence Reid*, Soumajyoti Sarkar, Venkata Gandikota, Paulo Shakarian
* equal contribution
- What is this?
- Installation
- Quick start
- Repository structure
- Full pipeline
- Known behaviours
- Testing
- Citing
- Acknowledgments
The code and data pipeline behind the NeurIPS 2026 paper Tokens-per-Parameter Coverage Is Critical for Robust LLM Scaling Law Extrapolation.
Scaling laws are fitted on small models and used to predict large ones. Whether such a fit extrapolates depends on the tokens-per-parameter (TPP) ratios D/N that the training runs cover:
| Collinear (CO) design | Non-collinear (NC) design |
|---|---|
| Grows N and D together along a few TPP rays | Spreads the same number of runs over TPP |
| The law's parameters are badly conditioned | The parameters are well conditioned |
| Extrapolates poorly | Wins 97.3% of the extrapolation comparisons |
We test this on about 1,900 trained models over five corpora and four scaling laws, and give a criterion, computable before any training, that tells which designs are well conditioned.
All the data the analysis needs is public on HuggingFace and needs no account:
leibnitz-lab/colinear_scaling_models- training metrics, checkpoints and pre-computed outputs of every trained model;leibnitz-lab/public_checkpoint_reanalysis- run tables of the ten published studies re-analysed in the camera-ready version.
uv is the only tool needed. One locked environment (Python 3.10) runs the analysis, the training and the tests.
git clone https://github.com/lab-v2/tpp-coverage.git && cd tpp-coverage
uv syncReproduce the paper's tables and figures from the public data, no GPU:
uv run python src/tpp_analysis/download_and_extract.py --results-only
uv run python src/tpp_analysis/run_analysis.py all --data-dir extracted_losses/ --n-workers "$(nproc)"
uv run python src/tpp_analysis/generate_appendix_tables.py full_coverage_results/
uv run bash src/tpp_analysis/visualizations/run_appendix_figures.shAdd --clear-cache to run_analysis.py to refit every law from the loss tables; the refit
reproduces the released results bit for bit (about 4 minutes on 480 threads; tests/tpp_analysis/test_paper_numbers.py checks it).
%%{init: {"theme": "base", "flowchart": {"curve": "basis", "nodeSpacing": 30, "rankSpacing": 50, "padding": 14}, "themeVariables": {"fontFamily": "Inter, -apple-system, Segoe UI, Helvetica, sans-serif", "fontSize": "15px", "lineColor": "#94A3B8", "clusterBkg": "transparent", "clusterBorder": "#94A3B8", "titleColor": "#94A3B8", "edgeLabelBackground": "transparent"}}}%%
flowchart TB
subgraph TRAIN["TRAIN · GPU"]
direction LR
A("Download<br/>5 corpora") --> B("Generate the<br/>N × D grid") --> C("Train<br/>1,900 models")
end
subgraph ANALYSE["ANALYSE · CPU"]
direction LR
D("Extract<br/>losses") --> E("Fit 4<br/>scaling laws") --> F("Tables<br/>and figures")
end
H[("Public data<br/>on HuggingFace")]
G("Camera-ready<br/>analyses")
TRAIN ==> ANALYSE
H -.-> ANALYSE
H -.-> G
classDef train fill:#F76900,stroke:#FFB27A,stroke-width:1px,color:#FFFFFF
classDef analyse fill:#1F2A5C,stroke:#7C8DD6,stroke-width:1px,color:#FFFFFF
classDef data fill:#334155,stroke:#94A3B8,stroke-width:1px,color:#FFFFFF
classDef extra fill:#475569,stroke:#94A3B8,stroke-width:1px,color:#FFFFFF
class A,B,C train
class D,E,F analyse
class H data
class G extra
Every folder below has one job; a linked folder has its own README.
| Folder | What it holds |
|---|---|
src/ |
The importable Python packages |
src/tpp_analysis/ |
The paper's analysis: corpora, job generation, loss extraction, law fits, tables and figures |
src/training_models/ |
Llama-style models and the distributed trainer |
src/tpp_large_scale/ |
The analysis package of large_scale/ |
camera_ready/ |
The two analyses added for the camera-ready version: 24 published designs classified, ten public releases reanalysed |
large_scale/ |
The paper's analysis rerun on an independent grid of 461 C4 runs up to 354M parameters |
cluster/ |
A larger Wikipedia stratum (to 380.6M parameters) trained on the paper's protocol |
docs/ |
Step-by-step guides: downloading, training, analysis, figures, n-gram KL, and the known behaviours |
slides/ |
The five-minute NeurIPS 2026 talk (Beamer source and PDF) |
website/ |
The project page at lab-v2.github.io/tpp-coverage |
tests/ |
The pytest suite, one folder per component |
.github/ |
CI on the project's own runners: tests, pre-commit hooks, ruff check ., the privacy scan and the merge rule |
images/ |
The logos shown in this README |
Download, train, extract, fit, tabulate and plot, step by step, with each step's command and guide, and every table and figure of the paper mapped to its command: Full pipeline.
Ten behaviours change a reproduced number when they are missed: padding, BF16, the GPU count, the seed, the incomplete releases, model sizes, run names, cached fits, start draws and drivers. Each is in Known behaviours, with what it changes and what to do.
uv run pytest -n autoWhat the suite checks, and what CI runs on every pull request: Tests.
If you use this work, please cite our paper:
@article{kricheli2026tpp,
title = {Tokens-per-Parameter Coverage Is Critical for Robust {LLM} Scaling Law Extrapolation},
author = {Kricheli, Joshua Shay and Reid, Alexander Lawrence and Sarkar, Soumajyoti and Gandikota, Venkata and Shakarian, Paulo},
journal = {arXiv preprint arXiv:2605.08541},
year = {2026},
eprint = {2605.08541},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2605.08541},
note = {Accepted to the 40th Conference on Neural Information Processing Systems (NeurIPS 2026)}
}This work was done at the Leibniz Lab, Department of Electrical Engineering and Computer
Science, Syracuse University. This research was funded by ARO grant W911NF-24-1-0007.
Separately, this work used resources at NCSA through allocation CIS230318 from the Advanced
Cyberinfrastructure Coordination Ecosystem: Services & Support (ACCESS) program
(Boerner et al., 2023), which is supported by U.S.
National Science Foundation grants #2138259, #2138286, #2138307, #2137603, and #2138296.
Three AMD EPYC CPU chips, donated by AMD, were used for the experiments. This research was
supported in part through computational resources provided by Syracuse University (NSF award
ACI-1341006). The code is released under the GNU
General Public License v2 (LICENSE).
