Tabularis Formatus: Predictive Formatting for Tables

Mukul Singh, José Cambronero, Sumit Gulwani, Vu Le, Gust VerbruggenarXiv 2025

Abstract

Spreadsheet manipulation software are widely used for data management and analysis of tabular data, yet the creation of conditional formatting (CF) rules remains a complex task requiring technical knowledge and experience with specific platforms. In this paper we present TaFo, a neuro-symbolic approach to generating CF suggestions for tables, addressing common challenges such as user unawareness, difficulty in rule creation, and inadequate user interfaces. TaFo takes inspiration from component based synthesis systems and extends them with semantic knowledge of language models and a diversity preserving rule ranking. Unlike previous methods focused on structural formatting, TaFo uniquely incorporates value-based formatting, automatically learning both the rule trigger and the associated visual formatting properties for CF rules. By removing the dependency on user specification used by existing techniques in the form of formatted examples or natural language instruction, TaFo makes formatting completely predictive and automated for the user. To evaluate TaFo, we use a corpus of 1.8 Million public workbooks with CF and manual formatting. Our results show that TaFo generates more accurate, diverse and complete formatting suggestions than current systems and outperforms these by 15.6%--26.5% on matching user added ground truth rules in tables.

Introduction

Conditional formatting (CF) is a powerful tool for data visualization, yet it remains a "high-effort" feature for most users. Discovery and syntax represent the two primary hurdles: users often do not know which insights in their data are worth highlighting (e.g., identifying rows where "Budget" exceeds "Cost"), nor do they know how to write the underlying formulas or navigate complex UI menus to apply the formatting.

Existing research has focused on "Programming by Example" or "Natural Language to CF," both of which require the user to have a clear goal in mind. TaFo (Tabularis Formatus) addresses the "zero-intent" scenario, where the system proactively suggests useful formatting rules based solely on the table's content and headers, automating the visualization process entirely.

The TaFo Framework

TaFo uses a neuro-symbolic approach to bridge the gap between raw data and human semantics. The system architecture consists of several integrated components designed to generate, rank, and style formatting rules.

Overview of the TaFo neuro-symbolic pipeline.

Candidate Generation

  • Symbolic Generator: This component extracts static properties such as averages, counts, and duplicates. It enumerates potential rules using a library of predicates. While precise, it lacks "common sense" regarding column relationships (e.g., it does not inherently know that "Price" and "Tax" are related).
  • Neural Generator (LLM): To provide semantic intuition, TaFo utilizes a Large Language Model (GPT-4) with a "Program-of-Thought" prompt. The LLM analyzes headers and sample values to suggest semantic "building blocks"—such as the relationship [@Budget] - [@Cost]—which are then refined by the symbolic engine.

Execution-Based Ranking and Grounding

To avoid overwhelming users with repetitive suggestions, TaFo executes candidate rules on the table and clusters them based on their output. It selects the highest-ranked rule from each unique "visual result" cluster to ensure diversity. Finally, the Format Learner mines a massive corpus to determine how similar tables are styled, performing "shade grounding" to match the specific color palette already present in the user’s workbook.

Neural Reasoning and Prompting

A key innovation in TaFo is the multi-step reasoning approach used to generate neural candidates. By priming the model as an expert and providing task-specific instructions and examples, the system can identify complex relationships that purely symbolic systems miss.

Multi-step prompt structure used to generate neural candidates for conditionals.

Experimental Evaluation

The researchers utilized a massive corpus of 1.8 million public Excel workbooks to derive two primary benchmarks: a CF Benchmark (105,000 tasks with existing ground truth rules) and a Manual Formatting Benchmark (100,000 tasks where users manually colored cells).

Key Results

  • Superior Accuracy: TaFo outperformed all baselines, including GPT-4 and specialized models like FormaT5, by 15.6% to 26.5% in matching ground-truth user rules.
  • High Automation Potential: The system successfully automated 55% of manual column formatting tasks with just three suggestions.
  • Efficiency: TaFo achieves over 40% accuracy even when it only has access to 10% of the rows in a table, making it viable for large datasets where only a data "viewport" is available.
  • End-to-End Performance: In a full "rule + color" match test, TaFo reached 50% accuracy with just three suggestions, significantly higher than GPT-4 (~35%).

Conclusion and Future Work

TaFo demonstrates that combining the semantic reasoning of LLMs with the validation of symbolic engines allows for highly effective predictive formatting. While challenges remain regarding complex numeric constants and API latency, the authors suggest this framework could be extended to other spreadsheet tasks, such as automated data cleaning, transformation, or proactive chart generation.

Summary updated

BibTeX
@misc{singh2025tabularis,
  author = {Mukul Singh and José Cambronero and Sumit Gulwani and Vu Le and Gust Verbruggen},
  title = {{Tabularis Formatus: Predictive Formatting for Tables}},
  year = {2025},
  eprint = {2508.11121},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.11121},
}
Figure