Schema-Driven Information Extraction from Heterogeneous Tables

Fan Bai, Junmo Kang, Gabriel Stanovsky, Dayne Freitag, Alan Ritter · DOI

TL;DR

This paper introduces "Schema-Driven Information Extraction," a novel task that leverages Large Language Models (LLMs) to extract structured data from diverse, complex tables using only a human-authored schema. Their method, INSTRUCTE, achieves competitive performance without task-specific labels, demonstrating the potential for cost-efficient and flexible table data extraction.

What Problem Does This Paper Address?

Scientific literature and the web are rife with valuable data locked away in tables. These tables are often visually designed and lack structured formats, making automated extraction difficult. Existing methods typically require custom pipelines for each table type or domain, demanding significant effort and domain-specific labeled data. This limits their scalability and applicability to new extraction tasks. The authors aim to bridge this gap by exploring how LLMs can efficiently extract information from heterogeneous tables with minimal supervision, relying solely on a schema to guide the process.

Methods

The core of the paper is the Schema-Driven Information Extraction task. This involves providing an LLM with:

  1. An Input Table: This can include the table's source code and potentially surrounding contextual text.
  2. An Extraction Schema: A human-defined schema (in JSON format) that outlines the desired attributes and their data types for the extracted records.

The LLM's goal is to output structured JSON records conforming to this schema. To achieve this, they developed INSTRUCTE, an instruction-tuned LLM-based method. Key aspects of INSTRUCTE include:

  • Prompt Formulation: A structured prompt combining the input table, extraction schema, task-specific instructions (e.g., traversal order), and an initial record to guide the LLM.
  • Cell Detector: A rule-based method to identify numeric cells within tables, crucial for extracting specific data points.
  • Error Recovery Strategy: An iterative process to detect and correct deviations from the instructed cell traversal order, improving extraction accuracy and reducing inference costs.

Datasets

The authors introduce the SCHEMA-TO-JSON benchmark, a collection of tables from four diverse domains:

  • arXiv Machine Learning Tables: Manually annotated tables from ML papers, focusing on numeric cells categorized as Results, Hyperparameters, or Data Statistics.
  • PubMed Chemistry Tables: Newly annotated tables describing chemical compound properties.
  • DISCOMAT: An existing dataset of glass composition tables.
  • SWDE (Structured Web Data Extraction): An existing dataset of HTML webpages with structured attributes.

Key Insights and Ideas

  • Schema as the Sole Supervision: The most significant insight is that a well-defined schema, without any labeled examples, is sufficient for LLMs to perform accurate table extraction across diverse domains and formats.
  • LLMs Excel at Schema Alignment: Code-specific LLMs, like code-davinci-002 and CodeLlama-instruct, show particularly strong performance, likely due to their inherent ability to process and generate structured code-like outputs (JSON).
  • Error Recovery is Crucial: The iterative error recovery strategy significantly improves performance by ensuring the LLM adheres to the instructed traversal order, preventing partial extractions.
  • Caption Nuance Matters: Surprisingly, table captions don't always improve performance and can sometimes confuse models, especially if they lack specificity. This highlights the subtle ways LLMs interpret context.
  • Knowledge Distillation for Efficiency: The paper demonstrates that compact, distilled models can achieve comparable performance to larger API-based models, paving the way for cost-effective deployment.

Key Results

  • Competitive Performance: INSTRUCTE, using API-based LLMs like GPT-4, achieved F₁ scores ranging from 74.2 to 96.1 on the SCHEMA-TO-JSON benchmark, comparable to fully supervised methods.
  • Domain and Format Generalization: The method demonstrated strong performance across ML (LaTeX), Chemistry (XML), DISCOMAT (CSV), and SWDE (HTML) domains.
  • Code LLMs Outperform: code-davinci-002 and CodeLlama-instruct-13B showed superior performance compared to other open-source models of similar size.
  • Error Recovery Efficiency: The error recovery strategy provided similar performance to cell-by-cell prompting but at a fraction of the API cost.
  • Leaderboard Extraction Success: INSTRUCTE, when applied to leaderboard extraction, achieved competitive results against a specialized supervised system (AXCELL), and a combined approach (INSTRUCTE+) outperformed AXCELL.

Limitations and Future Work

  • Prompt Sensitivity: INSTRUCTE's performance can be sensitive to prompt phrasing, suggesting a need for automatic prompt optimization.
  • Interpreting Model Biases: The opaque nature of LLM pre-training makes it difficult to fully analyze domain-specific performance variations.
  • Navigating Dataset Nuances: The model's reliance on general task descriptions can make it challenging to handle dataset-specific edge cases effectively.
  • API Dependency: Reliance on specific API-based LLMs may change, necessitating research into more accessible open-source alternatives.
  • Multi-modal Integration: Further research is needed to enhance multi-modal models for robust table image processing.
  • Automatic Schema Generation: Future work could explore automatically generating extraction schemas to further reduce human effort.

Summary updated

BibTeX
@inproceedings{bai2024schema,
  author = {Fan Bai and Junmo Kang and Gabriel Stanovsky and Dayne Freitag and Alan Ritter},
  title = {{Schema-Driven Information Extraction from Heterogeneous Tables}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.600},
}
Figure