Abstract
Generating natural language from structured tables often results in "hallucinations," where neural models invent facts not present in the source data. This paper introduces $T\ell T$ (Table-to-Logic-to-Text), a framework that utilizes intermediate, executable Logical Forms (LFs) to anchor generation in the table's actual data. By automatically parsing tables into LFs before text realization, $T\ell T$ achieves a 67% relative improvement in factual fidelity over standard end-to-end baselines, demonstrating that structured reasoning is a powerful bottleneck against model hallucination.
Introduction
Generating natural language descriptions from structured data, such as tables, is a cornerstone of data-to-text NLP. While modern neural models excel at producing fluent, human-like prose, they suffer from a critical lack of fidelity. These models frequently misinterpret numerical data or invent non-existent relationships—a phenomenon known as hallucination.
Previous research indicated that using human-authored "Logical Forms" (LFs)—tree-structured graphs representing the mathematical and logical operations behind a statement—could lead to near-perfect fidelity. However, the manual creation of LFs is not scalable. This work investigates whether automatically generated LFs can provide similar fidelity benefits without the need for human intervention.
Methodology
The authors propose a two-stage pipeline called $T\ell T$ (Table-to-Logic-to-Text), which decomposes the generation task into semantic parsing and surface realization.
The $T\ell T$ Pipeline
- Table2Logic (The Parser): This module converts a table, its caption, and a set of pre-selected table values (Content Selection) into a Logical Form. It employs a BERT-based encoder and an LSTM decoder with four specialized pointer networks designed to handle grammar rules, table columns, specific values, and indices.
- Logic2Text (The Realizator): This module takes the generated LF and the original table to produce the final natural language statement, utilizing a fine-tuned GPT-2 model.
Logical Forms as Factual Anchors
The Logical Form acts as a "bottleneck" that forces the model to commit to a specific mathematical or logical operation (e.g., calculating an average or filtering rows) before writing the text. This structure significantly reduces the "creative license" that leads to hallucinations.
False Candidate Rejection (FCR)
A key innovation in the $T\ell T$ system is the False Candidate Rejection (FCR) policy. Because LFs are executable code, the system can run the generated logic against the table data. If the logic evaluates to "False" (e.g., the model claims an average is 50 when the table data results in 40), the candidate is discarded before reaching the text generation stage, effectively pruning hallucinations at the source.
Experimental Results
The study utilized the Logic2Text dataset, containing over 10,000 examples of open-domain tables paired with human-written statements and "gold" Logical Forms.
Fidelity and the "Correctness Paradox"
In human evaluations, the $T\ell T$ system achieved 75% fidelity, a massive leap from the 44.9% achieved by standard Table-to-Text baselines. Interestingly, the Table2Logic module only matched human "gold" LFs 46% of the time. However, the resulting text was still found to be faithful 75% of the time. This suggests a "correctness paradox": there are many valid ways to logically describe a table, and a model may choose a different logical path than a human while still remaining factually accurate.
The Impact of Content Selection
The authors found that while knowing what to talk about (Content Selection) provides a 24-point boost in fidelity, the addition of logical structuring (the LF) provides an even larger 30-point boost. This confirms that the logical bottleneck is the primary driver of factual accuracy.
Conclusion and Future Work
While $T\ell T$ significantly closes the fidelity gap, challenges remain. The system currently relies on manual content selection to isolate the effects of LFs; fully autonomous systems will need to master the difficult task of selecting relevant data points themselves. Furthermore, the realization stage still occasionally makes arithmetic comparative errors (e.g., confusing "greater" with "smaller"). Future work will focus on integrating this logical pipeline with larger language models (LLMs) to improve the fluency and verbalization of complex logical operations.
Summary updated