MATSA: Multi-Agent Table Structure Attribution

Puneet Mathur, Alexa Siu, Nedim Lipka, Tong Sun2024

Abstract

Large Language Models (LLMs) have significantly advanced QA tasks through in-context learning but often suffer from hallucinations. Attributing supporting evidence grounded in source documents has been explored for unstructured text in the past. However, tabular data present unique challenges for attribution due to ambiguities (e.g., abbreviations, domain-specific terms), complex header hierarchies, and the difficulty in interpreting individual table cells without row and column context. We introduce a new task, Fine-grained Structured Table Attribution (FAST-Tab), to generate row and column-level attributions supporting LLM-generated answers. We present MATSA, a novel LLM-based Multi-Agent system capable of post-hoc Table Structure Attribution to help users visually interpret factual claims derived from tables. MATSA augments tabular entities with descriptive context about structure, metadata, and numerical trends to semantically retrieve relevant rows and columns corresponding to facts in an answer. Additionally, we propose TabCite, a diverse benchmark designed to evaluate the FAST-Tab task on tables with complex layouts sourced from Wikipedia and business PDF documents. Extensive experiments demonstrate that MATSA significantly outperforms SOTA baselines on TabCite, achieving an 8-13% improvement in F1 score. Qualitative user studies show that MATSA helps increase user trust in Generative AI by providing enhanced explainability for LLM-assisted table QA and enables professionals to be more productive by saving time on fact-checking LLM-generated answers.

Introduction

Large Language Models (LLMs) are increasingly used to query structured data, yet they frequently struggle with "grounding"—the ability to link answers back to specific evidence. While attribution for unstructured text is well-studied, tables present unique hurdles. A single cell is often meaningless without its row and column headers, and real-world tables frequently contain hierarchical structures and domain-specific jargon that confuse standard retrieval models.

To address this, we introduce FAST-Tab (Fine-grained Structured Table Attribution), a task focused on identifying the specific rows and columns that support a factual claim.

Overview of the MATSA framework providing fine-grained citations for table-based QA.

The MATSA Framework

MATSA (Multi-Agent Table Structure Attribution) is a post-hoc system that verifies LLM-generated answers by breaking them into atomic facts and finding the minimal set of supporting table structures.

The multi-agent architecture of MATSA, featuring specialized agents for formatting, augmentation, retrieval, and re-ranking.

The system utilizes five specialized agents to process tables and verify answers:

  1. Table Formatting Agent: Converts raw table images or PDFs into LLM-friendly HTML. It uses a Detection Transformer (DETR) to find table structures and GPT-4V to handle complex layouts.
  2. Description Augmentation Agent: Enriches raw data by generating natural language descriptions for every row and column, including header metadata, numerical trend analysis, and self-referential summaries. This provides the context needed for semantic retrieval.
  3. Answer Decomposition Agent: Breaks a long LLM response into "atomic facts," allowing the system to verify one specific claim at a time.
  4. Semantic Retrieval Agent: Uses embeddings (like LLM2Vec) to find the most likely rows and columns that match the atomic facts.
  5. Sufficiency Re-ranking Agent: Acts as the final judge, using "chain-of-thought" reasoning to select the minimal set of rows and columns required to fully explain the answer.

Evaluation and Results

We introduced TabCite, a benchmark comprising 8.5K table-QA pairs integrated from Wikipedia (ToTTo, FetaQA) and financial reports (AITQA). MATSA significantly outperformed state-of-the-art baselines by 8-13% in F1 score across the benchmark.

Qualitative user studies confirmed the practical value of this approach: 82.38% of users found the attributions to be "completely accurate." Users reported that the granular highlights allowed them to verify answers much faster than manual checking, significantly increasing trust in the AI's output.

Conclusion

MATSA provides a robust solution for table-based hallucination by treating structure as semantic context and utilizing a multi-agent verification pipeline. Future work aims to extend this fine-grained attribution to multi-modal documents, linking answers to both text and related charts.

Summary updated

BibTeX
@misc{mathur2024matsa,
  author = {Puneet Mathur and Alexa Siu and Nedim Lipka and Tong Sun},
  title = {{MATSA: Multi-Agent Table Structure Attribution}},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-demo.26},
}
Figure