Abstract
Generating natural language descriptions from structured tables requires both linguistic fluency and logical reasoning. While modern language models excel at the former, they often struggle with the latter, leading to factual hallucinations. We present PLOG, a framework that introduces an intermediate "table-to-logic" pretraining stage. By learning to generate formal logical forms before natural language, models develop a robust internal representation for reasoning. Our results on benchmarks like LOGICNLG and the new CONTLOG dataset show significant improvements in factual accuracy and logical fidelity.
Introduction
Table-to-text generation involves summarizing structured data, such as sports statistics or financial reports. This task requires content planning (deciding what to say) and surface realization (writing fluently). While Large Language Models (LLMs) are highly fluent, they frequently fail at logical reasoning—for instance, incorrectly identifying the "maximum" value in a column despite the data being present. This stems from the ambiguity of natural language and the scarcity of high-quality, logically annotated datasets.
The PLOG Framework
The authors propose a two-stage pipeline to decouple reasoning from writing. Instead of training a model to map tables directly to English, PLOG first learns to generate a formal, unambiguous logical form (a Lisp-like program).
The model is first pretrained on Task (a), generating formal logic from tables. This logic serves as an intermediate language that eliminates the ambiguity inherent in natural text. Following this, the model is finetuned on Task (b), where it applies its learned reasoning skills to generate natural language descriptions guided by specific table highlights.
Execution-Guided Sampling
A major challenge in training logical models is the lack of labeled data. PLOG addresses this through Execution-Guided Sampling, a method to automatically generate large-scale synthetic training pairs.
As shown in the instantiation process, abstract templates (e.g., "Is X the maximum of column Y?") are populated with random values from a table. A programmatic executor then verifies if the resulting statement is true. If verified, the pair is added to the training set. This technique allowed the creation of nearly 1 million synthetic examples at zero manual annotation cost.
Numerical Pre-computation and Model Insights
To further assist with mathematical operations, the input tables are augmented with pre-calculated ranks (1st, 2nd, etc.) and aggregations (sums, averages). Interestingly, the choice of base model matters: T5 proved significantly better at mastering the syntax of logical forms compared to BART, which suffered from high parsing error rates. However, even "noisy" pretraining on logic improved BART's final natural language output, suggesting that the underlying reasoning signal is beneficial regardless of syntactic perfection.
Results and Evaluation
PLOG consistently outperforms standard baselines across multiple metrics. On the LOGICNLG benchmark, PLOG (T5-large) improved factual accuracy (measured by TAPEX-Acc) from 65.5% to 75.9%. On the authors' new CONTLOG dataset—a refined version of LOGIC2TEXT designed for cleaner evaluation—accuracy reached 85.9% compared to the baseline's 70.3%. Human evaluations confirmed that PLOG is particularly effective at handling complex logic types, such as superlatives and ordinals.
Conclusion and Future Work
PLOG demonstrates that forcing models to master formal logic as an intermediate step significantly reduces hallucinations in table-to-text tasks. While the current framework is limited by fixed logic schemas and context window constraints for long tables, it provides a scalable path toward more factually reliable structured data summarization. Future work may explore grammar-guided decoding to ensure syntactically correct logic generation across all model architectures.
Summary updated