Introduction
Generating structured tables from unstructured text is a cornerstone of automated data analysis. However, most existing research treats this as a "format transformation" task—rearranging explicitly stated values into a grid. In practice, table generation often requires information integration: the ability to read long documents, identify scattered events, and aggregate them into summary statistics.
To address this, we introduce LIVESUM, a benchmark requiring complex integration, and propose $T^3$ (Text-Tuple-Table). $T^3$ is a three-stage pipeline that decomposes the generation process into tuple extraction, code-based integration, and table formatting, significantly outperforming standard Large Language Model (LLM) prompting.
The Information Integration Gap
Current text-to-table research suffers from two primary gaps:
- Dataset Gap: Benchmarks like ROTOWIRE often feature a 1:1 mapping between text and table. Models can succeed by simply copying numbers, a phenomenon the authors call "replication bias."
- Methodology Gap: LLMs struggle with long-context reasoning and arithmetic. When asked to generate a summary table directly from a large block of text, they often hallucinate or miscalculate.
The $T^3$ Framework
The $T^3$ pipeline moves away from monolithic generation in favor of a modular approach that leverages the specific strengths of LLMs and deterministic logic:
- Text-to-Tuple (Extraction): The LLM identifies key events and represents them as structured triples (e.g.,
(Player, Team, Event)). This leverages the LLM's strength in natural language understanding and information extraction. - Information Integration (Aggregation): To solve the "LLM math" problem, $T^3$ employs Code Generation. The LLM writes a Python script to process the extracted tuples. This ensures that the aggregation logic (e.g., counting fouls or shots) is deterministic and accurate.
- Tuple-to-Table (Generation): The aggregated results are formatted into the final structured table (Markdown or CSV) by the LLM.
Benchmarking with LIVESUM
The authors introduce LIVESUM, a dataset of 3,771 pairs of real-time football match commentaries (averaging 1,256 words) and their corresponding summary statistics. Unlike previous datasets, LIVESUM requires models to track eight event types (Goals, Shots, Fouls, etc.) across a long narrative.
The study also evaluates $T^3$ on STRUC-BENCH (complex structured data) and WIKI40B (open-domain scenarios) to ensure generalization beyond sports data.
Key Insights
- Replication Bias: Fine-tuning on traditional datasets can be counterproductive. Models learn to "look for numbers" to copy rather than learning how to reason about and aggregate events.
- Event Difficulty: While "Easy" events like Goals are clearly stated, "Hard" events like Shots or Fouls occur frequently and are described with high linguistic variety, making them the true test of integration ability.
- Code as Reasoning: By using code for integration, $T^3$ bypasses the stochastic nature of LLM arithmetic. If the extraction is correct, the final count is guaranteed to be accurate.
Results
The $T^3$ pipeline demonstrates substantial improvements across various LLMs, including GPT-4 and Claude 3 Opus:
- Accuracy: On LIVESUM, Claude 3 Opus saw its error rate drop from 48.33% (zero-shot) to 14.04% using $T^3$.
- Precision: For GPT-4, the Root Mean Squared Error (RMSE) improved from 2.27 to 0.93, indicating much higher reliability in numerical output.
- Generalization: $T^3$ consistently outperformed state-of-the-art methods on STRUC-BENCH and WIKI40B, proving its utility in "wild" scenarios.
Limitations and Future Directions
The primary bottleneck of $T^3$ is the Extraction Phase. Approximately 78% of errors originate from the LLM failing to extract a tuple correctly from complex sentences. Furthermore, while $T^3$ handles long texts better than direct generation, extremely long documents still pose a challenge for the initial extraction step. Future work will focus on improving extraction robustness and exploring few-shot learning within these long-context constraints.
Summary updated