Papers › TAPAS: Weakly Supervised Table Parsing via Pre-training

TAPAS: Weakly Supervised Table Parsing via Pre-training

5 Apr 2020ACL 2020 6arXiv:2004.02349archive 2025-07-28

Jonathan Herzig, Paweł Krzysztof Nowak, Thomas Müller, Francesco Piccinno, Julian Martin Eisenschlos

Answering natural language questions over tables is usually seen as a semantic parsing task. To alleviate the collection cost of full logical forms, one popular approach focuses on weak supervision consisting of denotations instead of logical forms. However, training semantic parsers from weak supervision poses difficulties, and in addition, the generated logical forms are only used as an intermediate step prior to retrieving the denotation. In this paper, we present TAPAS, an approach to question answering over tables without generating logical forms. TAPAS trains from weak supervision, and predicts the denotation by selecting table cells and optionally applying a corresponding aggregation operator to such selection. TAPAS extends BERT's architecture to encode tables as input, initializes from an effective joint pre-training of text segments and tables crawled from Wikipedia, and is trained end-to-end. We experiment with three different semantic parsing datasets, and find that TAPAS outperforms or rivals semantic parsing models by improving state-of-the-art accuracy on SQA from 55.1 to 67.2 and performing on par with the state-of-the-art on WIKISQL and WIKITQ, but with a simpler model architecture. We additionally find that transfer learning, which is trivial in our setting, from WIKISQL to WIKITQ, yields 48.7 accuracy, 4.2 points above the state-of-the-art.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2004.02349")

Code

Syntology Ran 0 of 14 code samples harvested from 1 repository linked to this paper; 14 have no recorded run.

By repository: community (archive-listed): 14 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

google-research/tapas officialmentioned in papermentioned on GitHubtf report
PriyalNarang/Tapas-Experiments mentioned on GitHubApache-2.0 report
dreji18/Tapas-Implementation mentioned on GitHub report
huggingface/transformers mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 0 ran; 0 honoured the contract we drafted; 14 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

14unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from kamalkraj/TAPAS-TF2. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

convert_to_float kamalkraj/TAPAS-TF2/tapas/utils/text_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 86f83c07342e5a39 · report
flatten kamalkraj/TAPAS-TF2/tapas/models/segmented_tensor.py community (archive-listed) unverified Apache-2.0 (permissive) · 3afaf4fe080fb374 · report
gather kamalkraj/TAPAS-TF2/tapas/models/segmented_tensor.py community (archive-listed) unverified Apache-2.0 (permissive) · 5627e0c233b85bf2 · report
gelu kamalkraj/TAPAS-TF2/tapas/models/tf_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 44a49b752068dd08 · report
get_answer_indexes kamalkraj/TAPAS-TF2/tapas/utils/prediction_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 2bdc76acdd4efd43 · report
get_correct_powerset kamalkraj/TAPAS-TF2/tapas/utils/interpretation_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 2f4d3cb79e069b0d · report
get_initializer kamalkraj/TAPAS-TF2/tapas/models/modeling.py community (archive-listed) unverified Apache-2.0 (permissive) · d05bac24655b6e92 · report
get_mean_cell_probs kamalkraj/TAPAS-TF2/tapas/utils/prediction_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 0d68ef2cc5138081 · report
is_ordinal kamalkraj/TAPAS-TF2/tapas/utils/number_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · cfe3053c233813ea · report
pack_inputs kamalkraj/TAPAS-TF2/tapas/models/tf_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 8c8db6c2cff0952b · report
range_index_map kamalkraj/TAPAS-TF2/tapas/models/segmented_tensor.py community (archive-listed) unverified Apache-2.0 (permissive) · 4617c8d5aef65a35 · report
swish kamalkraj/TAPAS-TF2/tapas/models/tf_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · c2414a1393c4800e · report
tokenize_string kamalkraj/TAPAS-TF2/tapas/utils/text_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 84b82f831409eb64 · report
wtq_normalize kamalkraj/TAPAS-TF2/tapas/utils/text_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · a266b518abe797d8 · report

Tasks

Question AnsweringSemantic ParsingTransfer Learning

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Semantic Parsing SQA TAPAS-Large Accuracy 67.2 #2 of 2 Archive leaderboard report
Semantic Parsing WikiSQL TAPAS-Large (weak supervision) Denotation accuracy (test) 83.6 #5 of 5 Archive leaderboard report
Semantic Parsing WikiTableQuestions TAPAS-Large (pre-trained on SQA) Accuracy (Dev) / #20 of 22 Archive leaderboard report
Semantic Parsing WikiTableQuestions TAPAS-Large (pre-trained on SQA) Accuracy (Test) 48.8 #20 of 22 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

TAPAS

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections