Retrieve-and-Verify: A Table Context Selection Framework for Accurate Column Annotations

Zhihao Ding, Yongkang Sun, Jieming Shi · DOI

Abstract

Column Type Annotation (CTA) and Column Property Annotation (CPA) are essential tasks for interpreting relational tables in data science. However, as tables increase in width, existing Transformer-based models often encounter a "performance cliff," where the inclusion of irrelevant or noisy columns degrades annotation accuracy. This paper introduces REVEAL, a framework designed to optimize table context selection. By employing a retrieve-and-verify strategy, REVEAL identifies a compact, diverse, and highly relevant subset of context columns. Experimental results across six major benchmarks demonstrate that REVEAL and its extension, REVEAL+, outperform state-of-the-art models and large language models (LLMs), particularly on wide tables with dozens or hundreds of columns.

Introduction

Relational tables are ubiquitous in data science, yet they frequently lack structured metadata, such as headers or explicit relationships. To address this, researchers utilize Column Type Annotation (CTA) and Column Property Annotation (CPA) to automatically infer semantic types and relationships. While modern models like Doduo and TURL have improved performance on small tables, they struggle with "wide" tables common in real-world datasets. The core challenge lies in the serialization of entire tables: as the number of columns increases, the signal-to-noise ratio drops, leading to a significant decline in model performance.

The Performance Cliff in Wide Tables

Research indicates that model accuracy typically peaks when a target column is accompanied by 8–12 context columns. Beyond this threshold, additional columns often act as "noise." For instance, when determining if a numeric column represents PRICE, a nearby CURRENCY column provides vital context, whereas a distant DESCRIPTION column may distract the model. This phenomenon, termed the "performance cliff," is particularly pronounced in Large Language Models (LLMs), which are highly susceptible to distraction by irrelevant context tokens.

The REVEAL Framework

To mitigate the impact of noisy context, the authors propose two iterations of their framework:

1. REVEAL: Efficient Unsupervised Retrieval

REVEAL focuses on selecting a compact set of context columns using Maximal Marginal Relevance (MMR). This approach balances two critical factors:

  • Relevance: How similar the context column is to the target column.
  • Diversity: Ensuring the selected columns provide new information rather than redundant data (e.g., avoiding multiple identical ID columns).

To further improve processing, REVEAL utilizes role embeddings. These embeddings explicitly distinguish between "Target" and "Context" tokens within the Transformer architecture, ensuring the model prioritizes the target column during inference.

2. REVEAL+: High-Accuracy Verification

REVEAL+ introduces a second stage to refine the selection process:

  • Verification Model: A lightweight Multi-Layer Perceptron (MLP) acts as a judge, scoring the helpfulness of specific column subsets for a given prediction.
  • Top-Down Inference: To manage the exponential complexity of testing all column combinations, REVEAL+ employs a greedy top-down strategy. It starts with the full set of retrieved columns and iteratively prunes the least helpful ones until the verification score stabilizes.

Experimental Evaluation

The framework was evaluated on six diverse benchmarks, including GitTables (DB and SC), SOTAB (CTA and CPA), and WikiTables (CTA and CPA). These datasets range from narrow Wikipedia tables to massive GitHub-sourced tables containing up to 193 columns.

Key Findings

  • Diversity Over Similarity: The study found that simply picking the most similar columns is often suboptimal. A diverse set of context columns—such as pairing a numeric target with a text-based category column—provides the semantic hints necessary for accurate classification.
  • LLM Comparison: While LLMs like TableLlama and Qwen-Plus are powerful, REVEAL’s specialized architecture consistently outperformed them, suggesting that table structure requires domain-specific handling that general-purpose LLMs may lack.

Results and Impact

REVEAL+ achieved the highest average rank (1.08) across all tested datasets. Notably, on the GitTablesDB dataset, it improved Macro-F1 by 4.64% over the best-performing baseline (Qwen-Plus 5-shot).

Beyond accuracy, the framework demonstrates significant efficiency. By processing a smaller total number of tokens, REVEAL+ is faster than heavy-duty baselines like RECA or Sato. The top-down search strategy specifically provided a 6x speedup compared to exhaustive subset searching, making it viable for large-scale data processing pipelines.

Conclusion

The Retrieve-and-Verify framework proves that in the context of table understanding, "less is more." By selectively filtering context, REVEAL and REVEAL+ overcome the limitations of wide tables and provide a robust, efficient solution for column annotation. Future work may explore closing the loop between retrieval and verification, potentially training the retrieval step directly on verification scores to further streamline the pipeline.

Summary updated

BibTeX
@article{ding2025retrieve,
  author = {Zhihao Ding and Yongkang Sun and Jieming Shi},
  title = {{Retrieve-and-Verify: A Table Context Selection Framework for Accurate Column Annotations}},
  journal = {Proc. ACM Manag. Data},
  year = {2025},
  doi = {10.1145/3769823},
}
Figure