Papers › TAPEX: Table Pre-training via Learning a Neural SQL Executor

TAPEX: Table Pre-training via Learning a Neural SQL Executor

16 Jul 2021ICLR 2022 4arXiv:2107.07653archive 2025-07-28

Qian Liu, Bei Chen, Jiaqi Guo, Morteza Ziyadi, Zeqi Lin, Weizhu Chen, Jian-Guang Lou

Recent progress in language model pre-training has achieved a great success via leveraging large-scale unstructured textual data. However, it is still a challenge to apply pre-training on structured tabular data due to the absence of large-scale high-quality tabular data. In this paper, we propose TAPEX to show that table pre-training can be achieved by learning a neural SQL executor over a synthetic corpus, which is obtained by automatically synthesizing executable SQL queries and their execution outputs. TAPEX addresses the data scarcity challenge via guiding the language model to mimic a SQL executor on the diverse, large-scale and high-quality synthetic corpus. We evaluate TAPEX on four benchmark datasets. Experimental results demonstrate that TAPEX outperforms previous table pre-training approaches by a large margin and achieves new state-of-the-art results on all of them. This includes the improvements on the weakly-supervised WikiSQL denotation accuracy to 89.5% (+2.3%), the WikiTableQuestions denotation accuracy to 57.5% (+4.8%), the SQA denotation accuracy to 74.5% (+3.5%), and the TabFact accuracy to 84.2% (+3.2%). To our knowledge, this is the first work to exploit table pre-training via synthetic executable programs and to achieve new state-of-the-art results on various downstream tasks. Our code can be found at https://github.com/microsoft/Table-Pretraining.

PaperPDFConference PDFCode

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

Code

microsoft/Table-Pretraining officialmentioned in papermentioned on GitHubpytorch report
sohanpatnaik106/cabinet_qa mentioned on GitHubpytorch report
pwc-1/Paper-9 mindspore 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

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Language ModelingLanguage ModellingSemantic ParsingTable-based Fact Verification

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Semantic Parsing SQA TAPEX-Large Denotation Accuracy 74.5 #1 of 2 Archive leaderboard report
Semantic Parsing WikiSQL TAPEX-Large (weak supervision) Denotation accuracy (test) 89.5 #2 of 5 Archive leaderboard report
Semantic Parsing WikiTableQuestions TAPEX-Large Accuracy (Dev) 57.0 #17 of 22 Archive leaderboard report
Semantic Parsing WikiTableQuestions TAPEX-Large Accuracy (Test) 57.5 #17 of 22 Archive leaderboard report
Table-based Fact Verification TabFact TAPEX-Large Test 84.2 #8 of 15 Archive leaderboard report
Table-based Fact Verification TabFact TAPEX-Large Val 84.6 #8 of 15 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

Introduced by this paper: TAPEX

TAPEX

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