---
license: other
license_name: dual-license
license_link: LICENSE
task_categories:
- text-generation
- feature-extraction
language:
- en
tags:
- science
- arxiv
- latex
- academic
pretty_name: arXiv LaTeX Source Dataset
size_categories:
- 1M
This dataset provides the entire corpus of arXiv's LaTeX source files, pre-parsed, formatted, and aligned with official metadata in ready-to-query Parquet files.
---
## Why I Built This
If you have ever tried to work with the complete history of arXiv papers at scale, you have likely run into two massive hurdles:
1. **Network Egress Costs**: While arXiv does offer public bulk access to its source files via S3 (`s3://arxiv`), the bucket is configured as "requester-pays." If you attempt to download the full 5 TB corpus of over 3 million papers to any machine outside of the AWS `us-east-1` (N. Virginia) region, you are hit with standard AWS egress fees. At **$0.09 per GB**, a single full download costs **more than $450**.
2. **Computational Friction**: The raw S3 data is packaged as hundreds of nested `.tar` archives, each containing gzip payloads (`.gz`) of individual papers. Extracting these, parsing the inner LaTeX code, and matching the files with their JSON metadata snapshots is extremely CPU-heavy, requiring complex local pipeline architecture.
This dataset acts as an open mirror that solves both issues. The project ingests the S3 data inside `us-east-1` (where data transfer is free), indexes and processes the LaTeX source documents, aligns them directly to their metadata snapshot, and uploads the finalized Parquet files here. Researchers and developers can download clean, structured data without worrying about network egress bills or spending days writing ingestion code.
---
## Sync Automation & Tooling
The pipeline that builds and updates this dataset is completely open-source. If you wish to mirror this data, customize the processing logic, or run local extractions directly from AWS S3, you can use the sync infrastructure codebase:
* **GitHub Repository**: [arthiondaena/arxivETL_sync](https://github.com/arthiondaena/arxivETL_sync)
This accompanying repository features a high-performance **parallel Rust engine** paired with a Python orchestrator designed to handle zero-copy memory-mapped metadata processing, concurrent S3 stream downloads, and automated chunked uploads back to Hugging Face.
---
## Ingest Schedule & The Parquet Manifest
* **Update Cycle**: I sync the latest publications and revisions from arXiv S3 once **every month**.
* **Why Monthly?**: As outlined in the [official arXiv bulk data guide](https://info.arxiv.org/help/bulk_data_s3.html), arXiv packages and pushes updates to its S3 bulk buckets (both source files and PDFs) on an approximately monthly schedule. The pipeline runs right after these drops to pick up new and revised content.
* **Manifest Tracking**: To support crash-resilient resuming, validation, and incremental syncing, the project maintains a central XML manifest file: [arxiv_parquet_manifest.xml](https://huggingface.co/datasets/scholarweave/arxiv/raw/main/arxiv_parquet_manifest.xml). This manifest maps each Parquet partition file to its size, MD5 checksum, processed timestamp, range of paper IDs (`first_item` and `last_item`), and the list of raw S3 `.tar` files that were unpacked to generate it.
---
## Dataset Schema
Every row represents a single paper with metadata and parsed LaTeX source contents:
| Column Name | Type | Description |
| :--- | :--- | :--- |
| `id` | `string` | arXiv paper identifier (e.g. `0704.0001` or `hep-th/9901001`). |
| `yymm_id` | `string` | Normalized ID mapped to `YYMM` format for chronological sorting. |
| `submitter` | `string` | Name of the user who uploaded the paper. |
| `authors` | `string` | Raw authors string. |
| `title` | `string` | Title of the paper. |
| `comments` | `string` | Submitter comments or journal references. |
| `journal-ref` | `string` | Official journal publication reference (if published). |
| `doi` | `string` | Digital Object Identifier (DOI). |
| `report-no` | `string` | Report or document series numbers. |
| `categories` | `string` | Space-separated arXiv categories (e.g., `cs.CL math.PR`). |
| `license` | `string` | License under which the paper was published. |
| `abstract` | `string` | The paper's abstract. |
| `versions` | `list` | Struct list of versions with creation timestamps. |
| `update_date` | `string` | Date the paper record was last modified by arXiv. |
| `authors_parsed`| `list>`| Split author names (structured by Last Name, First Name, suffix). |
| `latex` | `large_string` | The parsed, compiled LaTeX source code from the paper. All source files (`.tex`, `.bib`, `.sty`, etc.) are bundled into a single readable Markdown-style tree structure. |
---
## Related Projects & Datasets
If you find large-scale structured datasets useful, check out some of my other data curation work:
* **[openjobdata](https://openjobdata.com)**: An open-access initiative mapping, cleaning, and standardizing a massive ecosystem of more than **3.5M+ jobs**, labor market metrics, and career transitions into easily queried structural data frames for economic and machine learning research.
---
## Curation & Licensing
This dataset mirrors data provided under arXiv's Terms of Use. The copyright and licenses of individual paper contents are retained by their respective authors, and correspond to the license identifier specified in the `license` column.