EMNLP 2026 Main

CORE-T
COherent REtrieval of Tables
for Text-to-SQL

Retrieving compact, relevant, and join-coherent table sets from pooled open-book collections.

1 UKP Lab, TU Darmstadt and ATHENE 2 Arizona State University 3 University of Pennsylvania 4 Oracle AI

TL;DR

Dense retrieval finds relevant tables but also many distractors. CORE-T enriches tables offline, selects a coherent subset with one LLM call, and restores strongly compatible tables. It improves table-selection F1 by up to 22.7 points and multi-table execution accuracy by up to 24.4 points over dense retrieval, while outperforming join-aware and agentic baselines in nearly every available comparison.

Realistic text-to-SQL workflows often require joining multiple tables. As a result, accurately retrieving the relevant set of tables becomes a key bottleneck for end-to-end performance. We study an open-book setting where queries must be answered over large, heterogeneous table collections pooled from many sources, without clean scoping signals such as database identifiers. Here, dense retrieval achieves high recall but returns many distractors, while join-aware alternatives often rely on extra assumptions and/or incur high inference overhead. We propose CORE-T, a scalable, training-free framework that enriches tables with LLM-generated purpose metadata and pre-computes a lightweight table-compatibility cache. At inference time, dense retrieval returns top-K candidates; a single LLM call selects a coherent, joinable subset, and a two-step additive adjustment stage restores strongly compatible tables. Across BIRD, SPIDER, MMQA, and BEAVER, CORE-T improves over dense retrieval by up to 22.7 points in table-selection F1 while returning up to 40% fewer tables, and by up to 24.4 points in multi-table execution accuracy, and uses 1.64-4.20 times fewer total selection tokens than LLM-intensive baselines.

Why open-book retrieval is hard

Without a database identifier, retrieval must disambiguate similar tables and preserve the complete join path.

Closed-book setting

Database ID known
User querySearch starts with scope
One known schema Retrieval stays inside the correct database
Remove the scoping signal

Open-book setting

Database ID unavailable
Same queryMust discover its scope
Pooled collection Relevant Distractor Bridge Similar name Relevant Other source
Disambiguate similar tables
Preserve bridge tables
Remove distractors
Compact, relevant, join-coherent table set

How CORE-T works

Offline

Build semantic and relational evidence once, then reuse it for every question.

Semantic track
Table snapshotHeaders plus five sampled rows
Purpose enrichmentAn LLM describes the role of each table
Dense indexSnapshot and purpose are embedded together
Structural track
Column pairsCandidate links across table pairs
Compatibility scoreHeaders, values, uniqueness, and subset evidence
Compatibility cacheStrong table-to-table links stored for reuse
Reusable evidence Purpose-enriched index Compatibility cache
Online

Convert one user question into a compact, join-ready schema with a single selection call.

User queryThe natural-language information need
1. RetrieveFetch a high-recall top-K candidate pool
2. SelectOne LLM call chooses a relevant, coherent seed set
3. AdjustRecover strong neighbors, then add only positive-gain tables
Compact join-coherent table set for SQL generation

Retrieval designed for coherent sets

Compact online inference

One LLM selection call replaces iterative or multi-draft inference, while the adjustment stage provides targeted recall recovery.

Pooled multi-database evaluation

Experiments span BIRD, SPIDER, MMQA, and BEAVER in open-book settings with table retrieval and end-to-end SQL execution metrics.

Four open-book benchmarks

Tables are pooled across databases or schemas and database identifiers are removed.

BIRD75tables
1,534 queries
SPIDER81tables
1,034 queries
MMQA710tables
1,105 queries
BEAVER463tables
209 queries

MMQA uses a stratified one-third subset. BEAVER is already open-book; the other corpora are pooled to approximate integrated multi-source analytics.

Results across every baseline

Complete main-paper results for table selection, downstream SQL execution, and selection efficiency.

Table 2. Table selection

Average number of returned tables, precision, F1, and perfect recall. All methods use UAE-Large-V1 for dense retrieval.

Method BIRD (n=1,534, gold avg.=1.95) SPIDER (n=1,034, gold avg.=1.51) MMQA (n=1,105, gold avg.=2.20) BEAVER (n=209, gold avg.=4.44)
Avg.PF1PR Avg.PF1PR Avg.PF1PR Avg.PF1PR
Llama-3.1-8B-Instruct selector
DR@55.034.949.483.05.029.443.995.65.030.842.650.35.033.936.513.9
ReAct4.843.155.686.14.539.752.292.86.129.640.453.18.49.312.28.1
JAR@55.035.550.186.05.029.644.296.7--------
REAR5.036.151.088.35.028.242.190.85.028.439.247.85.033.635.58.1
ARM5.340.453.590.9------------
CORE-T4.150.062.390.04.240.253.896.65.138.449.261.35.139.339.515.3
Qwen-2.5-7B-Instruct selector
DR@55.035.249.884.25.029.644.196.45.031.143.051.05.034.837.314.8
ReAct3.365.671.681.32.767.675.593.44.942.150.455.48.221.025.316.3
JAR@55.035.550.186.05.029.544.196.3--------
REAR5.036.151.088.35.028.242.190.85.028.439.247.85.033.635.58.1
ARM3.559.268.384.6------------
CORE-T3.163.172.387.03.054.466.894.94.148.356.459.45.342.843.017.7
Best scoreSecond-best scoreAvg. average tables returned, lower is betterP precisionPR perfect recall
17 / 19query-level F1 comparisons

On query-level table-selection F1, with Qwen-2.5-7B-Instruct as selector, CORE-T is significantly better in 17 of 19 dataset-baseline comparisons, tied with ReAct on BIRD, and significantly lower only against ReAct on SPIDER.

Table 3. End-to-end query execution accuracy

Execution accuracy with Llama-3.1-8B-Instruct as table selector, reported for multi-table queries, all queries, and the perfect-recall subset.

Method BIRD (n=1,534) SPIDER (n=1,034) MMQA (n=1,105) BEAVER (n=209)
EXMTEXallEXPR EXMTEXallEXPR EXMTEXallEXPR EXMTEXallEXPR
Llama-3.2-3B SQL generator
DR@53.34.03.910.013.913.92.12.11.80.50.50.0
ReAct9.910.810.412.420.020.02.52.52.20.00.00.0
JAR@57.88.38.110.914.414.4------
REAR9.610.09.826.429.629.38.48.36.91.01.00.0
ARM4.95.15.0---------
CORE-T15.716.616.234.434.534.118.918.815.80.50.50.5
Oracle24.827.827.845.158.958.945.445.445.41.51.91.9
Gemma-3-4B SQL generator
DR@514.620.019.038.851.551.118.918.916.85.35.31.0
ReAct15.321.220.540.151.851.518.017.915.23.43.30.5
JAR@518.323.022.241.451.451.3------
REAR15.920.119.635.345.144.716.116.112.94.94.80.5
ARM16.622.321.7---------
CORE-T16.621.921.143.854.253.822.822.820.83.93.81.0
Oracle24.730.430.453.865.765.747.647.547.54.44.84.8
GPT-4o-mini SQL generator
DR@534.640.037.753.265.464.731.631.727.85.35.31.9
ReAct38.142.540.950.563.763.433.233.128.73.43.30.5
JAR@536.841.640.455.366.065.7------
REAR38.442.340.652.362.361.728.929.025.24.44.30.5
ARM37.942.341.5---------
CORE-T38.643.041.656.966.766.235.835.833.35.35.71.9
Oracle47.850.750.764.571.871.865.865.765.76.87.27.2
Best non-oracle scoreSecond-best non-oracle scoreEXMT multi-table queriesEXall all queriesEXPR queries with perfect table recall

Table 4. Selection efficiency

Selection-step tokens in millions with UAE-Large-V1 embeddings and Llama-3.1-8B-Instruct as selector. Factors are relative to CORE-T.

Method BIRD SPIDER MMQA BEAVER
Input MOutput MTotal M Input MOutput MTotal M Input MOutput MTotal M Input MOutput MTotal M
ARM51.74.79x0.730.43x52.44.20x---------
ReAct43.54.03x1.070.63x44.53.57x24.24.99x0.740.65x24.94.16x26.64.65x0.840.68x27.53.95x2.61.25x1.215.05x3.831.64x
CORE-T10.81.0x1.711.0x12.51.0x4.81.0x1.141.0x5.991.0x5.71.0x1.231.0x6.961.0x2.11.0x0.241.0x2.331.0x
Cell color relative cost vs. CORE-TAt or below CORE-TModerate overheadHigh overhead

Takeaway. CORE-T provides the strongest overall precision-recall and efficiency trade-off: it dominates the dense and join-aware baselines wherever they are available, usually outperforms the agentic alternative, and never produces a significant downstream execution loss.

Remaining challenge. BEAVER's anonymized schemas and many empty tables make it a demanding stress test. CORE-T leads in F1 and perfect recall, but absolute execution accuracy remains low even with oracle tables.

Getting started

The repository exposes each offline and online stage as a standalone Python script.

01 Create the environment
# Python 3.12 with uv
uv python install 3.12
uv venv .venv
source .venv/bin/activate
uv pip install -r requirements.txt
02 Prepare tables and caches
python offline_preprocessing/table_preprocessor.py \
  --dataset bird \
  --llm-model "huggingface:Qwen/Qwen2.5-7B-Instruct" \
  --embedding-model "fireworks:WhereIsAI/UAE-Large-V1"

python offline_preprocessing/metadata_generator.py \
  --dataset bird \
  --llm-model "huggingface:Qwen/Qwen2.5-7B-Instruct" \
  --embedding-model "fireworks:WhereIsAI/UAE-Large-V1"

python offline_preprocessing/compatibility_calculator.py \
  --dataset bird \
  --llm-model "huggingface:Qwen/Qwen2.5-7B-Instruct" \
  --embedding-model "fireworks:WhereIsAI/UAE-Large-V1"
03 Retrieve, select, and adjust
python dense_retriever.py \
  --dataset bird --top-k 10 \
  --llm-model "huggingface:Qwen/Qwen2.5-7B-Instruct" \
  --embedding-model "fireworks:WhereIsAI/UAE-Large-V1"

python table_selector.py \
  --dataset bird --top-k 10 \
  --llm-model "huggingface:Qwen/Qwen2.5-7B-Instruct" \
  --embedding-model "fireworks:WhereIsAI/UAE-Large-V1"

python table_augmentor.py \
  --dataset bird --top-k 10 \
  --llm-model "huggingface:Qwen/Qwen2.5-7B-Instruct" \
  --embedding-model "fireworks:WhereIsAI/UAE-Large-V1"

Model provider IDs and API credentials are configured through command-line options and a local .env file. See the repository README for complete commands, downloads, SQL generation, and evaluation.

Citation

If you use CORE-T, please cite the current arXiv version.

@misc{soliman2026core-t,
    title         = {CORE-T: COherent REtrieval of Tables for Text-to-SQL},
    author        = {Hassan Soliman and Vivek Gupta and Dan Roth and Iryna Gurevych},
    year          = {2026},
    eprint        = {2601.13111},
    archivePrefix = {arXiv},
    primaryClass  = {cs.CL},
    url           = {https://arxiv.org/abs/2601.13111}
}