Text-to-Table: A New Way of Information Extraction

Xueqing Wu, Jiacheng Zhang, Hang LiACL 2022

Introduction

Information Extraction (IE) has long been a cornerstone of natural language processing, yet traditional methods often struggle with the structural complexity of real-world data. Researchers have recently introduced Text-to-Table, a novel framework that treats IE as a sequence-to-sequence (seq2seq) translation task. By transforming unstructured text directly into structured tables, this approach bypasses the need for rigid, manually defined schemas and handles complex many-to-many relationships with high precision.

The Challenge of Structured Extraction

Traditional IE pipelines typically rely on a series of sub-tasks, such as Named Entity Recognition (NER) and Relation Extraction (RE), to fill predefined templates. While effective for simple facts, this paradigm faces two major hurdles:

  1. Schema Rigidity: Experts must explicitly define categories (e.g., "Person," "Date") before extraction, limiting flexibility.
  2. Structural Complexity: Capturing the dense, multi-dimensional data found in documents like sports reports or financial statements is difficult with simple entity-relation triplets.
An example of the Text-to-Table task: extracting team and player statistics from a basketball game report.

The Text-to-Table framework addresses these gaps by learning to generate table structures directly from the text, effectively treating the table as a specialized language.

The Text-to-Table Framework

The core innovation of this research is formalizing table extraction as a seq2seq problem. A table is represented as a flat sequence of tokens, utilizing special markers to maintain structural integrity. For instance, <s> is used to separate individual cells, while <n> denotes the start of a new row.

Linearization of a table into a sequence of tokens for the seq2seq model.

To enhance the performance of standard models like BART, the authors introduced two key technical components:

  • Table Constraint (TC): This decoding-time constraint ensures that every generated row contains the same number of cells as the first row, preventing structural "drift" during long generations.
  • Table Relation Embeddings (TRE): By modifying the Transformer's self-attention mechanism, TRE allows the model to maintain awareness of row and column headers for any given cell, improving the alignment between data and its structural context.

Experimental Results and Insights

The researchers evaluated the model on four diverse datasets: Rotowire (sports statistics), E2E (restaurant descriptions), WikiTableText (Wikipedia tables), and WikiBio (biography infoboxes).

The results demonstrate that treating IE as translation is highly effective. On the challenging Rotowire dataset, the Text-to-Table method achieved an F1 score of 83.36% for team tables and 82.53% for player tables, significantly outperforming traditional NER and RE baselines. Furthermore, the implementation of the Table Constraint reduced the structural error rate to 0.00%, compared to 7.4% in vanilla models.

Conclusion and Future Directions

The Text-to-Table framework represents a significant shift toward data-driven, flexible information extraction. By learning "implicit schemas" from training data, the model can adapt to various domains without manual intervention. Future work will focus on improving the model's reasoning capabilities—such as calculating values not explicitly stated in the text—and expanding its ability to handle even larger and more redundant document sets.

Summary updated

BibTeX
@inproceedings{wu2022text,
  author = {Xueqing Wu and Jiacheng Zhang and Hang Li},
  title = {{Text-to-Table: A New Way of Information Extraction}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.180},
}
Figure