Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,25 +1,159 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
download_size: 19209935
|
| 19 |
-
dataset_size: 49851643
|
| 20 |
configs:
|
| 21 |
- config_name: default
|
| 22 |
-
data_files:
|
| 23 |
-
- split: train
|
| 24 |
-
path: data/train-*
|
| 25 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: cc-by-4.0
|
| 5 |
+
task_categories:
|
| 6 |
+
- table-detection
|
| 7 |
+
- document-ai
|
| 8 |
+
tags:
|
| 9 |
+
- latex
|
| 10 |
+
- tables
|
| 11 |
+
- arxiv
|
| 12 |
+
- scientific-documents
|
| 13 |
+
- table-extraction
|
| 14 |
+
- document-understanding
|
| 15 |
+
pretty_name: arXiv LaTeX Tables 43k
|
| 16 |
+
size_categories:
|
| 17 |
+
- 10K<n<100K
|
|
|
|
|
|
|
| 18 |
configs:
|
| 19 |
- config_name: default
|
| 20 |
+
data_files: "*.parquet"
|
|
|
|
|
|
|
| 21 |
---
|
| 22 |
+
|
| 23 |
+
# arXiv LaTeX Tables 43k
|
| 24 |
+
|
| 25 |
+
A curated collection of **~43k LaTeX tables** extracted from all arXiv papers published in December 2025, classified by structural complexity for training and evaluating table extraction models.
|
| 26 |
+
|
| 27 |
+
## Key Specifications
|
| 28 |
+
|
| 29 |
+
| Aspect | Details |
|
| 30 |
+
|--------|---------|
|
| 31 |
+
| **Size** | 43,651 tables |
|
| 32 |
+
| **Source** | All arXiv papers published in December 2025 |
|
| 33 |
+
| **Complexity Classes** | Simple (27,655), Moderate (10,647), Complex (5,349) |
|
| 34 |
+
| **Compilability** | All tables compile with `pdflatex` |
|
| 35 |
+
| **License Filter** | Only redistributable CC licenses |
|
| 36 |
+
| **Format** | Hugging Face Dataset (Parquet) |
|
| 37 |
+
|
| 38 |
+
## Dataset Structure
|
| 39 |
+
|
| 40 |
+
```python
|
| 41 |
+
{
|
| 42 |
+
"table_id": str, # Unique ID: "{arxiv_id}_table_{n}"
|
| 43 |
+
"width_pt": float, # Rendered table width in points
|
| 44 |
+
"height_pt": float, # Rendered table height in points
|
| 45 |
+
"tabular": str, # LaTeX tabular source code
|
| 46 |
+
"complexity": str, # "simple", "moderate", or "complex"
|
| 47 |
+
}
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
## Quick Start
|
| 51 |
+
|
| 52 |
+
```python
|
| 53 |
+
from datasets import load_dataset
|
| 54 |
+
|
| 55 |
+
ds = load_dataset("piushorn/arxiv-latex-tables-43k")
|
| 56 |
+
sample = ds['train'][0]
|
| 57 |
+
print(sample['tabular']) # LaTeX source
|
| 58 |
+
print(sample['complexity']) # e.g., "simple"
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
Efficient column-selective loading via DuckDB (fetches only needed columns from Parquet):
|
| 62 |
+
|
| 63 |
+
```python
|
| 64 |
+
import duckdb
|
| 65 |
+
|
| 66 |
+
parquet_url = (
|
| 67 |
+
"https://huggingface.co/datasets/piushorn/arxiv-latex-tables-43k/"
|
| 68 |
+
"resolve/refs%2Fconvert%2Fparquet/default/train/0000.parquet"
|
| 69 |
+
)
|
| 70 |
+
con = duckdb.connect()
|
| 71 |
+
rows = con.execute(f"SELECT tabular, complexity FROM read_parquet('{parquet_url}')").fetchall()
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
## Complexity Classification
|
| 75 |
+
|
| 76 |
+
Tables are classified into three structural complexity levels based on how well their layout maps to Markdown:
|
| 77 |
+
|
| 78 |
+
| Level | Criteria | Count |
|
| 79 |
+
|-------|----------|-------|
|
| 80 |
+
| **Simple** | Regular grid, no cell merging, standard lines | 27,655 |
|
| 81 |
+
| **Moderate** | Limited merging (header only or horizontal only), partial `\cline` | 10,647 |
|
| 82 |
+
| **Complex** | Multi-dimensional merging, nested structures, irregular layouts | 5,349 |
|
| 83 |
+
|
| 84 |
+
Classification was performed using GPT-5-mini based on structural analysis of the LaTeX source.
|
| 85 |
+
|
| 86 |
+
## Extraction Pipeline
|
| 87 |
+
|
| 88 |
+
1. **Source**: All arXiv papers published in December 2025 with redistributable Creative Commons licenses
|
| 89 |
+
2. **Extraction**: `tabular` and `tabular*` environments extracted from LaTeX source files
|
| 90 |
+
3. **Cleaning**: Citations (`\cite`, `\ref`, etc.) and captions removed; `\href` simplified to link text
|
| 91 |
+
4. **Validation**: Each table compiled with `pdflatex` using standard packages (booktabs, multirow, makecell, etc.)
|
| 92 |
+
5. **Measurement**: Page dimensions measured with `pdfinfo` to obtain width/height in points
|
| 93 |
+
6. **Classification**: Structural complexity classified by GPT-5-mini
|
| 94 |
+
|
| 95 |
+
### Compilation Template
|
| 96 |
+
|
| 97 |
+
```latex
|
| 98 |
+
\documentclass[varwidth]{standalone}
|
| 99 |
+
\usepackage[utf8]{inputenc}
|
| 100 |
+
\usepackage[T1]{fontenc}
|
| 101 |
+
\usepackage{booktabs,multirow,makecell,graphicx,array}
|
| 102 |
+
\usepackage{amsmath,amssymb}
|
| 103 |
+
\usepackage{colortbl}
|
| 104 |
+
\usepackage[table]{xcolor}
|
| 105 |
+
\usepackage{adjustbox,caption,diagbox}
|
| 106 |
+
\usepackage{pifont}
|
| 107 |
+
\begin{document}
|
| 108 |
+
|
| 109 |
+
% tabular environment inserted here
|
| 110 |
+
|
| 111 |
+
\end{document}
|
| 112 |
+
```
|
| 113 |
+
|
| 114 |
+
Tables that fail to compile with this template are excluded from the dataset.
|
| 115 |
+
|
| 116 |
+
## Use Cases
|
| 117 |
+
|
| 118 |
+
- **Table extraction evaluation**: Benchmark document parsers on LaTeX table recovery
|
| 119 |
+
- **Synthetic PDF generation**: Render tables into PDFs with known ground truth
|
| 120 |
+
- **Table structure recognition**: Train models to understand table layouts
|
| 121 |
+
- **Complexity-aware evaluation**: Evaluate models separately on simple vs. complex tables
|
| 122 |
+
|
| 123 |
+
## Citation
|
| 124 |
+
|
| 125 |
+
If you use this dataset in your research or project, please cite our paper:
|
| 126 |
+
|
| 127 |
+
```bibtex
|
| 128 |
+
@misc{horn2026benchmarking,
|
| 129 |
+
title = {Benchmarking PDF Parsers on Table Extraction with LLM-based Semantic Evaluation},
|
| 130 |
+
author = {Horn, Pius and Keuper, Janis},
|
| 131 |
+
year = {2026},
|
| 132 |
+
eprint={2603.18652},
|
| 133 |
+
archivePrefix={arXiv},
|
| 134 |
+
primaryClass={cs.CV},
|
| 135 |
+
url = {https://arxiv.org/abs/2603.18652}
|
| 136 |
+
}
|
| 137 |
+
```
|
| 138 |
+
|
| 139 |
+
📄 **Paper:** [arXiv:2603.18652](https://arxiv.org/abs/2603.18652)
|
| 140 |
+
|
| 141 |
+
### Acknowledgments
|
| 142 |
+
|
| 143 |
+
This work has been supported by the German Federal Ministry of Research, Technology and Space (BMFTR) in the program "Forschung an Fachhochschulen in Kooperation mit Unternehmen (FH-Kooperativ)" within the joint project **LLMpraxis** under grant 13FH622KX2.
|
| 144 |
+
|
| 145 |
+
<p align="center">
|
| 146 |
+
<img src="logos/BMFTR_logo.png" alt="BMFTR_logo" width="150" />
|
| 147 |
+
<img src="logos/HAW_logo.png" alt="HAW_logo" width="150" />
|
| 148 |
+
</p>
|
| 149 |
+
|
| 150 |
+
### Licensing Information
|
| 151 |
+
|
| 152 |
+
**Content License**: Individual tables retain their original arXiv paper licenses (CC BY 4.0, CC BY-SA 4.0, CC BY-NC-SA 4.0, or CC0 1.0).
|
| 153 |
+
|
| 154 |
+
**Dataset License**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
|
| 155 |
+
|
| 156 |
+
---
|
| 157 |
+
|
| 158 |
+
**Source**: arXiv papers, December 2025
|
| 159 |
+
**Dataset Created**: March 2026
|