SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2110.00061 · 2021

PubTables-1M: Towards comprehensive table extraction from unstructured documents

arXiv · PDF · Open in the Atlas

Code that ran

11 of 13 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 3 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 2 failures of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2110.00061.json · badge: /api/ran/2110.00061.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
microsoft/table-transformer canonical (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
phamquiluan/table-transformer community (classifier label)
classifier basis not recorded on the link
8 ran · 2 no recorded run
FunctionStatusWhere it lives
align_1d Ran
ran on a synthesized input
phamquiluan/table-transformer/src/grits.py
pointer only (licence: MIT) · get_code("8ac9e5fec2aa104d")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, phamquiluan/table-transformer, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

apply_class_thresholds Ran
ran on a synthesized input
phamquiluan/table-transformer/src/eval_utils.py
pointer only (licence: MIT) · get_code("ba4693e812106154")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, phamquiluan/table-transformer, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

apply_threshold Ran
ran on a synthesized input
phamquiluan/table-transformer/src/eval_utils.py
pointer only (licence: MIT) · get_code("4877ebf4c4df63a4")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, phamquiluan/table-transformer, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

box_cxcywh_to_xyxy Ran
ran, honoured the contract we drafted
microsoft/table-transformer/src/inference.py
code served (permissive licence) · get_code("52d4b812bdc17687")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function expects a tensor x with shape (..., 4) where the last dimension
# contains [center_x, center_y, width, height] values
# It unbinds the last dimension and converts to [x_min, y_min, x_max, y_max]

x = torch.tensor([
    [10.0, 20.0, 4.0, 6.0],
    [30.0, 40.0, 8.0, 10.0]
])

ARGS = {
    'x': x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
box_cxcywh_to_xyxy Ran
ran, honoured the contract we drafted
phamquiluan/table-transformer/src/transforms.py
pointer only (licence: MIT) · get_code("e0a06ded5d4f6c3c")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, phamquiluan/table-transformer, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

box_xyxy_to_cxcywh Ran
ran, honoured the contract we drafted
phamquiluan/table-transformer/src/transforms.py
pointer only (licence: MIT) · get_code("031b02fb990284ba")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, phamquiluan/table-transformer, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_class_map Ran
ran; our contract draft was wrong, not the code
microsoft/table-transformer/src/inference.py
code served (permissive licence) · get_code("0342a5d56baf82fb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    'data_type': 'structure'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_json Ran
ran on a synthesized input
phamquiluan/table-transformer/core.py
pointer only (licence: MIT) · get_code("7c2ef30ca5a59095")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, phamquiluan/table-transformer, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

read_pascal_voc Ran
ran on a synthesized input
phamquiluan/table-transformer/src/table_datasets.py
pointer only (licence: MIT) · get_code("e914fd7c0331c5f1")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, phamquiluan/table-transformer, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

rescale_bboxes Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
microsoft/table-transformer/src/inference.py
code served (permissive licence) · get_code("44195a5621bcf750")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small batch of bounding boxes in cxcywh format
# Shape: (batch_size=2, 4) where 4 represents [center_x, center_y, width, height]
out_bbox = torch.tensor([
    [0.5, 0.5, 0.2, 0.3],
    [0.7, 0.6, 0.4, 0.5]
], dtype=torch.float32)

# Image size as (width, height)
size = (640, 480)

ARGS = {
    "out_bbox": out_bbox,
    "size": size
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
transpose Ran
ran on a synthesized input
phamquiluan/table-transformer/src/grits.py
pointer only (licence: MIT) · get_code("1503ee81768a3749")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, phamquiluan/table-transformer, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_transformer Not yet run
unverified (harvested, no recorded run)
phamquiluan/table-transformer/detr/models/transformer.py
pointer only (licence: MIT) · get_code("302ec916d91b12a8")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, phamquiluan/table-transformer, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

crop_around_bbox_coco Not yet run
unverified (harvested, no recorded run)
phamquiluan/table-transformer/src/table_datasets.py
pointer only (licence: MIT) · get_code("3cac9717d8564e2d")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, phamquiluan/table-transformer, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 1 the same month, 4 later) and 9 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
box_cxcywh_to_xyxy 49 other papers
6 dated earlier, 43 later · 11 only as an assembly brick
1811.07628 (2018-11)
ATOM: Accurate Tracking by Overlap Maximization
2011.10881 (2020-11)
Rethinking Transformer-based Set Prediction for Object Detection
2103.12115 (2021-03)
End-to-End Trainable Multi-Instance Pose Estimation with Transformers
and 46 more not named here
box_xyxy_to_cxcywh 45 other papers
4 dated earlier, 41 later · 20 only as an assembly brick
2011.10881 (2020-11)
Rethinking Transformer-based Set Prediction for Object Detection
2103.12115 (2021-03)
End-to-End Trainable Multi-Instance Pose Estimation with Transformers
2103.17154 (2021-03)
Learning Spatio-Temporal Transformer for Visual Tracking
and 42 more not named here
build_transformer 32 other papers
9 dated earlier, 1 the same month, 22 later
2005.12872 (2020-05)
End-to-End Object Detection with Transformers
2103.12115 (2021-03)
End-to-End Trainable Multi-Instance Pose Estimation with Transformers
2104.04369 (2021-04)
Video-aided Unsupervised Grammar Induction
and 29 more not named here
rescale_bboxes 3 other papers
1 dated earlier, 2 later
2103.12115 (2021-03)
End-to-End Trainable Multi-Instance Pose Estimation with Transformers
ijcai2024_0084 (2024 (year only))
CF-Deformable DETR: An End-to-End Alignment-Free Model for Weakly Aligned Visible-Infrared Object Detection
2601.08728 (2026-01)
Salience-SGG: Enhancing Unbiased Scene Graph Generation with Iterative Salience Estimation

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Recently, significant progress has been made applying machine learning to the problem of table structure inference and extraction from unstructured documents. However, one of the greatest challenges remains the creation of datasets with complete, unambiguous ground truth at scale. To address this, we develop a new, more comprehensive dataset for table extraction, called PubTables-1M. PubTables-1M contains nearly one million tables from scientific articles, supports multiple input modalities, and contains detailed header and location information for table structures, making it useful for a wide variety of modeling approaches. It also addresses a significant source of ground truth inconsistency observed in prior datasets called oversegmentation, using a novel canonicalization procedure. We demonstrate that these improvements lead to a significant increase in training performance and a more reliable estimate of model performance at evaluation for table structure recognition. Further, we show that transformer-based object detection models trained on PubTables-1M produce excellent results for all three tasks of detection, structure recognition, and functional analysis without the need for any special customization for these tasks. Data and code will be released at https://github.com/microsoft/table-transformer.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2110.00061")
get_code_for_paper("2110.00061")
have("2110.00061")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2110.00061.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2110.00061.svg)](https://syntology.ai/paper/2110.00061)

Connect an agent — have() is free.