Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 6 min read Research hardMaster

Efficient Table Pre-training without Real Data: An Introduction to TAPEX

TAPEX pre-trains a language model (BART) for table reasoning by teaching it to act as a neural SQL executor. Its training corpus is synthetic: SQL queries are sampled over web tables and executed with a real engine such as MySQL to produce target outputs. Because SQL execution is structurally close to table question answering, TAPEX set new state-of-the-art results on WikiSQL (89.6%), TabFact (84.2%), SQA (74.5%) and WikiTableQuestions (57.5%). It beat TaBERT by 2% using only 2% of the pre-training corpus, roughly a 50x efficiency gain. The takeaway for continual pre-training is to synthesize a small, accurate, program-generated corpus rather than mine large, noisy natural-language data. Models and fine-tuning scripts are available in Hugging Face Transformers.

Assumes: transformer language modelspre-training and fine-tuningSQL basics

Related posts

  • The Agentic Analytics Benchmark, round two: GPT-6, Claude Opus 5.5, Claude Sonnet 5.5

    ClickHouse mediumAdept

    Five new models (GPT-6 Astra, Luna, Sol, Claude Opus 5.5 and Claude Sonnet 5.5) were added to a frozen 201-question agentic text-to-SQL benchmark over a synthetic ClickHouse warehouse. All five land in a statistically tied 68.7–69.7% band, below leader Claude Fable 5.1 (76.6%), and no GPT-6 variant beats GPT-5.5 at default reasoning effort. Sonnet 5.5 is the standout: +6.5 points over Sonnet 5, concentrated on multi-hop dimensional-layer questions, with zero turn-limited runs (vs 16), 3.5 mean turns vs 9.1, and about 5 cents per question. Wrong planning remains the dominant failure mode and runtime SQL errors have disappeared. Harness changes include engine/timezone pinning, credential preflight, configurable numeric tolerance and a Rasch model for judge uncertainty, and the advice stands to run the open-source harness on your own warehouse.

  • Turning Database Grading into RL Rewards: Post-Training Agents with ThinkingBox

    Hugging Face hardMaster

    Executable checks on terminal database state, originally built to grade agents in ThinkingBox-Bench, double as binary RL rewards for post-training tool-using agents. Fine-tuning Qwen3.8-27B with token-mean GRPO for 50 steps on 187 out-of-distribution tasks raised pass@1 from 51.70% to 60.78% and tasks solved on all 20 attempts from 38 to 107, while pass@20 coverage dipped slightly, consistent with sharpening. The key lever is offline policy-relative difficulty: candidate tasks are probed against the base policy, a Jeffreys Beta posterior estimates success probability, and only tasks likely to yield mixed reward groups (non-zero GRPO advantage) are kept. Cost per dependable task fell from $24.36 to $8.00, approaching frontier models.

  • The Agentic Analytics Benchmark: ranking tables and labeling failures with Jev

    ClickHouse mediumAdept

    Jev, a typed classifier model returning calibrated answers in 70-500 ms, was applied to the Agentic Analytics Benchmark for two jobs: labeling failed text-to-SQL agent runs and ranking warehouse tables per question. A 16-sub-mode failure taxonomy showed wrong data selection, mostly entity resolution, as the largest bucket and flagged 18 likely grader errors, traced to a comparator bug that fails on row-count differences. Table ranking reached nDCG@10 0.951 and recall@10 0.991 on an 18-table warehouse, and 87% recall@10 on catalogs of 75-710 tables. Fed back to agents as an in-loop hint across 20 models, the ranking left accuracy flat (pooled +12, CI spanning zero), suggesting the bottleneck is using the right table correctly, not finding it.

  • The Agentic Analytics Benchmark: Measuring model accuracy and efficiency in analytical agents

    ClickHouse mediumAdept

    data-agent-mnist is an open harness for benchmarking agentic analytics, built from 201 real questions from ClickHouse's internal agent DWAINE and replayed against a deterministically seeded, anonymized synthetic reconstruction of their dbt warehouse (18 tables, 865 columns). Ground truth comes from a three-provider model committee with column-linked result matching, and answers are scored by a cross-provider LLM jury that was audited for self-bias. Contamination probes show no memorization, against Spider as a positive control. Across 29 models, Claude Fable 5.1 leads at 76.6% correctness, and open-weight models take 5 of the top 10 spots. DeepSeek v4 Flash runs the full suite for $1 versus $52 for Fable 5 while losing only 6.9 points.

  • Inside OpenAI’s in-house data agent

    OpenAI mediumAdept

    OpenAI built an internal GPT-5.2-powered data agent that answers natural-language analytics questions over a platform of 600+ PB and 70k datasets, available via Slack, web, IDEs, Codex CLI and ChatGPT through MCP. Its accuracy rests on six layers of context: table usage and lineage, human annotations, Codex-derived code-level table definitions, institutional knowledge from Slack/Docs/Notion, a user-correctable memory, and live warehouse queries. A daily offline pipeline normalizes and embeds this context for RAG retrieval, keeping latency predictable across tens of thousands of tables. Quality is protected with Evals API test sets that compare generated SQL output against golden queries.

The quest for software engineering knowledge.

Look:
Layout: