Abstract
Large language models (LLMs) have shown remarkable ability on controllable text generation. However, the potential of LLMs in generating text from structured tables remains largely under-explored. In this paper, we study the capabilities of LLMs for table-to-text generation tasks, particularly aiming to investigate their performance in generating natural language statements that can be logically entailed by a provided table. First, we investigate how LLMs compare to state-of-the-art table-to-text fine-tuned models, and demonstrate that LLMs can generate statements with higher faithfulness compared with previous state-of-the-art fine-tuned models. Given this finding, we next explore whether LLMs can serve as faithfulness-level automated evaluation metrics. Through human evaluation, we show that evaluation metrics adopted from LLMs correlates better with human judgments compared with existing faithfulness-level metrics. Finally, we demonstrate that LLMs using chain-of-thought prompting can generate high-fidelity natural language feedback for other table-to-text models' generations, provide insights for future work regarding the distillation of text generation capabilities from LLMs to smaller models.
Introduction
Tabular data is a cornerstone of modern information storage, yet it remains difficult for humans to parse and interpret quickly. The field of table-to-text generation seeks to bridge this gap by creating human-readable narratives from structured data. Traditional approaches often rely on task-specific models that struggle with complex logical reasoning—such as identifying superlatives or performing counts across rows. Furthermore, ensuring the faithfulness of these narratives to the source table is a persistent challenge; standard metrics like BLEU or ROUGE often fail to capture factual inaccuracies.
This research investigates whether Large Language Models (LLMs) can address these limitations. The authors demonstrate that high-performing models like GPT-4 can act as a "triple threat": effectively generating natural language insights, evaluating the factual consistency of generated text, and providing corrective feedback to improve smaller, specialized models.
Methodology: The Triple Role of LLMs
The study evaluates a range of LLMs—including GPT-4, GPT-3.5, LLaMA-2, and Vicuna—using In-Context Learning (ICL). Instead of extensive fine-tuning, the models are provided with zero-to-few-shot examples and specific prompting strategies to fulfill three primary roles:
- Generation (RQ1): Models are tasked with generating text directly or through Chain-of-Thought (CoT) reasoning, where the model "thinks step-by-step" about the table before producing an output.
- Evaluation (RQ2): LLMs serve as automated metrics to judge if a statement is logically supported by a table. This is achieved through CoT prompting to ensure the evaluation itself is reasoned.
- Feedback Provision (RQ3): LLMs generate detailed explanations of errors, corrective instructions, and edited versions of flawed statements to assist in the improvement of weaker models.
Datasets and Benchmarks
The researchers utilized four distinct datasets to test various aspects of tabular reasoning:
- LOGICNLG: A standard benchmark for generating logically consistent sentences.
- LOTNLG (New): A controlled version of LOGICNLG designed to test specific reasoning types like counting or superlative identification.
- FeTaQA: A dataset focused on free-form table question answering.
- F2WTQ (New): A challenging query-based dataset derived from Wikipedia tables that requires human-like reasoning rather than simple fact retrieval.
Key Results and Insights
The Superiority of GPT-4
GPT-4 emerged as the gold standard for table-to-text tasks. On the LOGICNLG dataset, it achieved a human-evaluated faithfulness score of 0.92, significantly outperforming the previous state-of-the-art fine-tuned model, LOFT, which scored 0.81. In query-based reasoning on the F2WTQ dataset, GPT-4 reached an accuracy of 68.4%, while the best open-source alternative, LLaMA2-70b-chat, trailed at 43.2%.
The "Faithfulness Gap"
A significant performance chasm exists between proprietary models and open-source models. While models like Vicuna and LLaMA-2 are fluent, they frequently "hallucinate" facts not present in the table, highlighting a need for better pre-training or instruction-tuning for structured data.
LLMs as Evaluators and Teachers
The study found that using GPT-4 with CoT reasoning (a metric termed CoT-4-Acc) aligns much more closely with human judgment than traditional metrics. It achieved a Pearson correlation of .816, surpassing the previous standard, TAPEX-Acc (.804). Furthermore, when GPT-4 provided corrective feedback to a weaker model like GPT-2, the faithfulness of the output improved dramatically, with TAPEX-Acc scores jumping from 43.8 to 82.0.
Conclusion and Future Work
While LLMs show immense promise as table-to-text "triple threats," several challenges remain. Large tables often exceed the context windows of current models, necessitating truncation that can lead to information loss. Additionally, the high cost and latency of proprietary models like GPT-4 make them difficult to use as real-time evaluators. Future research should focus on closing the gap between open-source and proprietary models, improving table-encoding methods to reduce prompt sensitivity, and exploring more efficient ways to distill the reasoning capabilities of large models into smaller, task-specific ones.
Summary updated