license: mit
task_categories:
- text-generation
language:
- en
tags:
- arxiv
- maths
- computer-science
- physics
size_categories:
- 10K<n<100K
arxiv-tex-corpus-medium (15GB)
Medium-scale LaTeX corpus from arXiv (math, CS, physics, statistics)
π Paper: https://arxiv.org/abs/2602.17288
π Overview
arxiv-tex-corpus-medium (15GB) is a medium-sized version of the arXiv LaTeX corpus, containing structured LaTeX source content extracted from selected arXiv categories.
This dataset is restricted to the following categories:
mathcshep-thhep-phquant-phstat.MLstat.TH
This version (~15GB) is intended for:
- Research experiments
- Model prototyping
- Ablation studies
- Resource-constrained training setups
π Full Dataset
For the complete version (~80GB), see:
The 80GB version contains the full dataset without size reduction.
π¦ Files
train.jsonl val.jsonl checkpoint.txt
### `train.jsonl`
Training split in JSON Lines format.
### `val.jsonl`
Validation split in JSON Lines format.
### `checkpoint.txt`
Internal processing checkpoint file used during dataset creation.
Not required for training.
## π§Ύ Data Format
Each line in `train.jsonl` and `val.jsonl` is a JSON object.
Example schema:
```json
{
"paper_id": "xxxx.xxxxx",
"category": "cs",
"latex": "\\documentclass{article} ..."
}
Fields
paper_idβ arXiv identifiercategoryβ one of:mathcshep-thhep-phquant-phstat.MLstat.TH
latexβ extracted LaTeX source content
π Dataset Characteristics
- Size: ~15GB
- Format: JSONL
- Categories: mathematics, computer science, theoretical physics, quantum physics, and statistics
- Derived from the same pipeline as the 80GB version
- Snapshot date: (add date here)
This version is a reduced subset of the full dataset.
π§Ή Processing Pipeline
The dataset was constructed by:
- Downloading arXiv source archives.
- Extracting LaTeX source files.
- Filtering to retain only specified categories.
- Converting documents to structured JSONL format.
- Creating train/validation splits.
- Subsampling to create the 15GB medium version.
βοΈ Licensing
This dataset contains LaTeX source files from papers hosted on arXiv.
Each paper retains its original license as specified by its authors on arXiv.
Users are responsible for complying with the licensing terms of individual papers.
For license information: https://arxiv.org/help/license
π― Intended Use
- Medium-scale pretraining
- Fine-tuning on scientific domains
- Research in mathematical reasoning
- LaTeX modeling and generation
π« Limitations
- LaTeX sources may contain compilation errors.
- Some source bundles may be incomplete.
- Licensing varies per paper.
- This dataset is a subset of the full corpus.
π Citation
If you use this dataset, please cite:
- The original arXiv papers
- The arxiv-latex-corpus dataset
Example:
@dataset{arxiv_latex_corpus_2026,
title = {arxiv-latex-corpus},
year = {2026},
publisher = {Hugging Face},
}
π€ Acknowledgements This dataset is derived from papers made publicly available by authors via arXiv. We thank the research community for openly sharing their work.