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

D. Yi, Yihao Liu, Lang Cao, Mengyu Zhou, Haoyu Dong, Shi Han, Dongmei Zhang2025

Abstract

Deyin Yi, Yihao Liu, Lang Cao, Mengyu Zhou, Haoyu Dong, Shi Han, Dongmei Zhang. Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 6: Industry Track).

2025.

Introduction

Tabular data serves as the foundation for modern industrial decision-making. However, extracting meaningful insights from a novel dataset presents a significant "cold start" challenge. Even for experienced analysts, determining the optimal sequence of operations—such as filtering, visualization, or statistical modeling—is a tedious and error-prone process.

Existing recommendation systems often struggle with two primary limitations: they either depend on historical user behavior data, which is unavailable for new tables, or they focus on isolated, simplistic operations that fail to capture the complexity of real-world analytical workflows. Furthermore, standard Large Language Models (LLMs) frequently suffer from long-context hallucinations or suggest technically accurate but analytically trivial operations. TablePilot is designed to address these issues by providing "zero-turn" recommendations that are accurate, diverse, and aligned with human preferences.

The TablePilot Framework

TablePilot employs a modular four-stage architecture to transform raw tables into actionable insights.

The four-stage architecture of TablePilot, including analysis preparation, module-based analysis, optimization, and ranking.
  1. Analysis Preparation: To manage large datasets efficiently, the system utilizes a "Table Sampler" to extract representative rows and a "Table Explanation" component to generate metadata regarding the table's theme and internal column relationships.
  2. Module-based Analysis: Rather than relying on a single monolithic prompt, TablePilot distributes tasks across three specialized modules: Basic Analysis (pandas-based operations), Data Visualization (matplotlib/seaborn), and Statistics Modeling (regression and forecasting).
  3. Analysis Optimization: This stage involves a refinement loop that includes Multimodal Revision. The LLM evaluates generated charts visually to identify issues like overlapping labels and subsequently rewrites the code for improved clarity.
  4. Analysis Ranking (Rec-Align): The framework introduces Rec-Align, a training strategy combining Supervised Fine-Tuning (SFT) and Direct Preference Optimization (DPO). This process teaches the model to prioritize "insightful" and "meaningful" queries over trivial ones.

The DART Dataset

To facilitate training and evaluation, the authors introduced the DART (Data Analysis Recommendation for Tables) benchmark. DART consists of 300 diverse, real-world tables. Each table is paired with high-quality <query, code, result> triplets across three analysis categories: Basic (~36%), Visualization (~41%), and Statistics (~23%). DART serves as a rigorous tool for evaluating "zero-turn" table analysis capabilities.

Experimental Results

Evaluation on the DART dataset demonstrates that TablePilot significantly outperforms baseline LLM approaches across multiple metrics.

Performance and Execution

Using GPT-4o, the tuned TablePilot achieved a 77.0% top-5 recommendation recall. Furthermore, the fine-tuning process improved the code execution rate to nearly 100%, ensuring that suggested Python code is robust and functional.

Human Alignment

In blind evaluations conducted by professional data analysts, the tuned TablePilot received a mean score of 4.11/5, a substantial improvement over the 3.10/5 baseline.

Human rating distribution comparing the baseline LLM approach with TablePilot (Vanilla and Tuned).

The implementation of DPO led to a 6.8% gain in Recall@3, confirming that explicitly modeling human preferences is more effective than prompt engineering alone.

Key Insights

A critical finding was the "Meaningless Regression Trap," where LLMs often suggest redundant analyses (e.g., predicting a total from its constituent parts). Rec-Align effectively trains the model to penalize these technically correct but useless results. Additionally, the "Multimodal Revision" step proved essential for improving the aesthetic and interpretative quality of visualizations by treating chart generation as an iterative, visually-informed process.

Conclusion and Future Work

While TablePilot represents a significant step forward in automated data analysis, its multi-stage LLM pipeline can be computationally intensive. Future research will explore the use of smaller, distilled models to improve efficiency. Additionally, extending the framework from "zero-turn" recommendations to interactive, multi-turn conversational analysis remains a key objective.

Summary updated

BibTeX
@misc{yi2025tablepilot,
  author = {D. 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},
  doi = {10.18653/v1/2025.acl-industry.28},
}
Figure