Wiki-TabNER: Advancing Table Interpretation Through Named Entity Recognition

Aneta Koleva, Martin Ringsquandl, Ahmed Hatem, Thomas A. Runkler, Volker TresparXiv 2024 · OpenReview

Abstract

Web tables contain a large amount of valuable knowledge and have inspired tabular language models aimed at tackling table interpretation (TI) tasks. In this paper, we analyse a widely used benchmark dataset for evaluation of TI tasks, particularly focusing on the entity linking task. Our analysis reveals that this dataset is overly simplified, potentially reducing its effectiveness for thorough evaluation and failing to accurately represent tables as they appear in the real-world. To overcome this drawback, we construct and annotate a new more challenging dataset. In addition to introducing the new dataset, we also introduce a novel problem aimed at addressing the entity linking task: named entity recognition within cells. Finally, we propose a prompting framework for evaluating the newly developed large language models (LLMs) on this novel TI task. We conduct experiments on prompting LLMs under various settings, where we use both random and similarity-based selection to choose the examples presented to the models. Our ablation study helps us gain insights into the impact of the few-shot examples. Additionally, we perform qualitative analysis to gain insights into the challenges encountered by the models and to understand the limitations of the proposed dataset.

1. Introduction: The Complexity Gap in Table Interpretation

Table Interpretation (TI) is the process of enabling machines to understand the semantics of structured data, involving tasks such as Entity Linking (EL) and Column Type Annotation (CTA). However, existing benchmarks like T2D and TURL often rely on "cleaned" versions of tables where each cell is reduced to a single entity mention.

In reality, web tables—particularly those on Wikipedia—are far more complex. A single cell might contain multiple distinct entities and connecting text (e.g., "Santa Maria (del Buen Ayre) by Gotan Project"). If a model assumes a "one cell = one entity" rule, it fails to capture the rich information density of real-world data. To bridge this gap, we propose integrating Named Entity Recognition (NER) directly into the table interpretation pipeline.

Comparison between a real-world Wikipedia table (left), the NER-annotated version (middle), and the oversimplified version used in traditional benchmarks (right).

2. The Wiki-TabNER Dataset

We introduce Wiki-TabNER, a new dataset comprising 61,235 Wikipedia tables with 408,781 distinct annotated entities. Unlike previous benchmarks, Wiki-TabNER focuses on complex tables where cells frequently contain multiple entities. While datasets like TURL average approximately 1.5 tokens per cell, Wiki-TabNER averages 4.6 tokens, reflecting its significantly higher information density.

Entities in the dataset were mapped to DBpedia and Yago semantic types and aggregated into seven broad categories: Activity, Organization, ArchitecturalStructure, Event, Place, Person, and Work.

Distribution of entity mentions across the seven broad semantic categories in the Wiki-TabNER dataset.

3. Methodology

We evaluated several Large Language Models (LLMs), including GPT-4, GPT-3.5-turbo, and Llama2-7b, using a specialized prompting framework. We tested three main strategies to understand how models adapt to tabular NER:

  • Zero-shot: Prompting the model without any prior examples.
  • Random k-shot: Providing 1 or 3 random example tables in the prompt.
  • Similarity-based k-shot: Using BERT embeddings to select example tables that are contextually or structurally similar to the target table.

4. Key Results and Insights

Our experiments demonstrate that similarity-based prompting is a critical factor for success. For instance, GPT-4’s F1-score jumped from 0.46 with random 3-shot prompting to 0.74 when using similarity-based examples.

Other key findings include:

  • Model Performance: GPT-4 and GPT-3.5-turbo achieved the highest performance (F1-scores of 0.73–0.74). GPT-instruct showed strong zero-shot capabilities but was surpassed by GPT-4 in few-shot settings.
  • The Open-Source Gap: The Llama2-7b model struggled significantly with the tabular format, reaching a top F1-score of only 0.38.
  • Classification Challenges: "Person" was the easiest category for models to identify, while "Activity" was the most difficult, often being confused with "Event."
  • Hallucination of Specificity: Qualitatively, LLMs often provided more granular types than requested (e.g., labeling a "Race team" instead of the required "Organization"). While technically accurate, these were marked as errors against the fixed 7-class schema.

5. Conclusion and Future Work

Wiki-TabNER highlights the limitations of current TI benchmarks and provides a more realistic arena for evaluating NER in tables. Future work will focus on refining the category schema to handle multi-label classification and more fine-grained hierarchies. Additionally, we plan to extend this work to evaluate full Entity Linking on this complex, multi-entity data.

Summary updated

BibTeX
@misc{koleva2024wiki,
  author = {Aneta Koleva and Martin Ringsquandl and Ahmed Hatem and Thomas A. Runkler and Volker Tresp},
  title = {{Wiki-TabNER: Advancing Table Interpretation Through Named Entity Recognition}},
  year = {2024},
  eprint = {2403.04577},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.04577},
}
Figure