FACTS: Table Summarization via Offline Template Generation with Agentic Workflows
Ye Yuan, Mohammad Amin Shabani, Siqi Liu
TL;DR
FACTS introduces offline template generation for query-focused table summarization by coupling executable SQL queries with Jinja2 templates, all validated through an ensemble LLM Council. The framework yields reusable templates that generalize across tables with the same schema while keeping raw data private, enabling fast and scalable summaries without compromising accuracy. Empirical results on FeTaQA, QTSumm, and QFMTS show FACTS outperforming strong baselines across multiple metrics, with ablations confirming the value of iterative council-based validation. The approach advances practical, privacy-conscious, multi-table reasoning for real-world data analysis tasks.
Abstract
Query-focused table summarization requires generating natural language summaries of tabular data conditioned on a user query, enabling users to access insights beyond fact retrieval. Existing approaches face key limitations: table-to-text models require costly fine-tuning and struggle with complex reasoning, prompt-based LLM methods suffer from token-limit and efficiency issues while exposing sensitive data, and prior agentic pipelines often rely on decomposition, planning, or manual templates that lack robustness and scalability. To mitigate these issues, we introduce an agentic workflow, FACTS, a Fast, Accurate, and Privacy-Compliant Table Summarization approach via Offline Template Generation. FACTS produces offline templates, consisting of SQL queries and Jinja2 templates, which can be rendered into natural language summaries and are reusable across multiple tables sharing the same schema. It enables fast summarization through reusable offline templates, accurate outputs with executable SQL queries, and privacy compliance by sending only table schemas to LLMs. Evaluations on widely-used benchmarks show that FACTS consistently outperforms baseline methods, establishing it as a practical solution for real-world query-focused table summarization.
