← Latest papers
💬 NLP

FACTS: Table Summarization via Offline Template Generation with Agentic Workflows

The paper introduces FACTS, an agentic workflow that generates reusable offline SQL and Jinja2 templates to enable fast, accurate, and privacy-compliant query-focused table summarization without requiring costly fine-tuning or exposing sensitive data.

Original authors: Ye Yuan, Mohammad Amin Shabani, Siqi Liu

Published 2026-04-20
📖 4 min read☕ Coffee break read

Original authors: Ye Yuan, Mohammad Amin Shabani, Siqi Liu

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a massive library of spreadsheets (tables) filled with sensitive data, like bank transactions or patient records. You want to ask a question like, "Show me the top 3 savers from last year," and get a nice, readable paragraph as an answer.

The problem is that current AI tools are like overworked interns who try to read the entire library to answer a single question. They get confused, make up numbers (hallucinations), read too much private info, and get tired (slow) if you ask the same question about a new year's data.

Enter FACTS (Fast, Accurate, and Privacy-Compliant Table Summarization). Think of FACTS not as an intern, but as a Master Architect and a Quality Control Team working together to build a permanent, reusable machine that answers your questions perfectly.

Here is how FACTS works, broken down into simple steps:

1. The Problem with the Old Way (The "Direct" Approach)

Imagine you ask an AI to summarize a table.

  • The Old Way: You hand the AI the whole spreadsheet (including private names and numbers) and say, "Write a summary."
  • The Risk: The AI might guess wrong numbers, it takes a long time to read the whole sheet, and you've just handed a stranger your private data. If you have 10 years of data, you have to do this 10 times.

2. The FACTS Solution: Building a "Recipe Book"

Instead of asking the AI to read the data every time, FACTS builds a permanent recipe book (called an Offline Template) that works for any spreadsheet that has the same structure (columns), even if the numbers inside change.

This process happens in three stages, supervised by a Quality Control Team (the "LLM Council").

Stage 1: The Blueprint (Schema-Guided Specification)

  • What happens: The AI looks at the structure of your spreadsheet (the column names like "Name," "Balance," "Date") but never sees the actual numbers.
  • The Analogy: Imagine you are giving a chef a menu of ingredients available in the kitchen (the schema) but not the actual food yet. The chef asks clarifying questions: "Do you want only fresh vegetables? Do you want to exclude spicy items?"
  • The Result: The AI creates a set of rules (e.g., "Only look at rows where the category is 'Income'").

Stage 2: The Machine (SQL Generation)

  • What happens: The AI writes a precise computer command (SQL) to fetch the exact data needed based on the rules from Stage 1.
  • The Analogy: The chef now writes a specific instruction for the kitchen robot: "Go to the fridge, grab the top 3 apples by weight, and put them in a bowl."
  • The Safety Check: Before this instruction is finalized, the Quality Control Team (a group of different AIs) checks it. They ask: "Will this command work? Will it crash? Does it grab the right things?" If it's wrong, they fix it until it's perfect.

Stage 3: The Storyteller (Jinja2 Template)

  • What happens: The AI creates a "fill-in-the-blanks" script (a Jinja2 template) that turns the raw numbers from the robot into a human-readable story.
  • The Analogy: The chef takes the bowl of apples and writes a note: "Here are the top 3 apples: [Name 1] weighing [Weight 1], [Name 2] weighing [Weight 2]..."
  • The Safety Check: The Quality Control Team checks one last time to make sure the story matches the apples in the bowl.

3. The Magic: Reusability and Privacy

Once this "Recipe Book" (the Offline Template) is built, it is saved.

  • Privacy: The AI never saw the actual numbers. It only saw the column names (the menu) and wrote the instructions. The actual data stays in your secure database.
  • Speed: Next year, when you have a new spreadsheet with the same columns but different numbers, you don't need to ask the AI to think again. You just hand the new spreadsheet to the Machine you built. It runs the command and fills in the story instantly.
  • Scalability: Whether your spreadsheet has 10 rows or 10 million rows, the machine works just as fast because it only needs to run the command, not read the whole book.

Summary: Why is this a big deal?

  • Fast: It builds a tool once and uses it forever.
  • Accurate: It uses math (SQL) to get the numbers, so it doesn't guess.
  • Private: It never looks at your sensitive data, only the "labels" on the data.
  • Reliable: It uses a team of AIs to double-check its work before giving you the final answer.

In short, FACTS stops asking the AI to "read and guess" and starts teaching it to "build a machine that calculates and tells the truth."

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →