TablePilot: Recommending Human-Preferred Tabular Data Analysis with Large Language Models

Deyin Yi, Yihao Liu, Lang Cao, Mengyu Zhou, Haoyu Dong, Shi Han, Dongmei ZhangarXiv 2025

Abstract

Tabular data analysis is crucial in many scenarios, yet efficiently identifying the most relevant data analysis queries and results for a new table remains a significant challenge. The complexity of tabular data, diverse analytical operations, and the demand for high-quality analysis make the process tedious. To address these challenges, we present TablePilot, a pioneering tabular data analysis framework leveraging large language models (LLMs) to autonomously generate comprehensive analytical results. The framework incorporates key designs in analysis preparation and optimization to enhance accuracy. Additionally, we propose Rec-Align, a novel method to further improve recommendation quality and better align with human preferences. Experiments on DART, a dataset designed for comprehensive tabular data analysis recommendation, demonstrate the effectiveness of our framework. Based on GPT-4o, the tuned TablePilot achieves 77.0% top-5 recommendation recall.

Introduction

While tabular data is the backbone of modern business, analyzing it remains a significant bottleneck. Even for professional analysts, the "blank page" problem is real: when presented with a new, complex table, determining which questions to ask and which statistical tests to run is tedious and error-prone. Existing recommendation systems often focus on single operations or rely on historical user profiles that may not exist for new datasets. There is a significant need for a "zero-turn" system that can look at a raw table and immediately suggest a diverse set of accurate, insightful, and human-preferred analyses.

The TablePilot Framework

TablePilot addresses these challenges by transforming a raw table into a ranked list of analytical insights through a structured four-step pipeline.

The TablePilot architecture consists of four main steps: Analysis Preparation, Module-based Analysis, Analysis Optimization, and Analysis Ranking.
  1. Analysis Preparation: To handle massive tables, the system uses a "table sampler" to extract representative rows and a "table explanation" component to generate metadata, including themes, column definitions, and relationships.
  2. Module-based Analysis: TablePilot employs three specialized agents: Basic Analysis (filtering/sorting), Data Visualization (charting), and Statistics Modeling (forecasting/regression).
  3. Analysis Optimization: This "self-correction" phase executes the generated code, catches errors, and utilizes multimodal (vision) capabilities to inspect generated charts. If visual issues like overlapping labels are detected, the system rewrites the code to fix them.
  4. Analysis Ranking (Rec-Align): To ensure results are useful and not just technically correct, the authors introduced Rec-Align. This method uses Direct Preference Optimization (DPO) to fine-tune the ranking model based on human preferences, prioritizing non-trivial and business-relevant insights.

Key Insights and Innovations

A core innovation of TablePilot is the recommendation of "query-code-result" triplets. By providing the natural language query, executable code, and final result together, the insight becomes immediately actionable. Furthermore, the use of vision-language feedback loops allows the LLM to act as a visual critic, optimizing chart legibility in ways pure text models cannot. Finally, the modular approach prevents "mode collapse," ensuring a diverse range of analytical suggestions rather than defaulting to simple counts.

Experimental Evaluation

The researchers introduced the DART (Data Analysis Recommendation for Tables) benchmark, containing 300 real-world tables, to evaluate the framework.

Performance comparison of different models and methods on the DART dataset across Basic Analysis, Data Visualization, and Statistics Modeling categories.

As shown in the evaluation results, TablePilot significantly outperforms baseline models. Using GPT-4o as a backbone, the tuned TablePilot achieved a 77.0% Recall@5, indicating that the most preferred analysis was within the top five suggestions in the vast majority of cases. Additionally, the optimization step pushed code execution success rates to nearly 100%. In blind human evaluations, TablePilot’s suggestions received an average rating of 4.11/5, compared to 3.10/5 for the vanilla LLM baseline, excelling in practicality and insightfulness.

Conclusion

TablePilot demonstrates that LLMs can autonomously bridge the gap between raw data and actionable insights. By aligning recommendations with human preferences through Rec-Align and incorporating multimodal feedback, the framework provides a robust solution to the "blank page" problem in data analysis. Future work will focus on improving computational efficiency and exploring multi-agent interactions for more complex, multi-step analytical tasks.

Summary updated

BibTeX
@misc{yi2025tablepilot,
  author = {Deyin Yi and Yihao Liu and Lang Cao and Mengyu Zhou and Haoyu Dong and Shi Han and Dongmei Zhang},
  title = {{TablePilot: Recommending Human-Preferred Tabular Data Analysis with Large Language Models}},
  year = {2025},
  eprint = {2503.13262},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.13262},
}
Figure