TableGPT-R1: Advancing Tabular Reasoning Through Reinforcement Learning

Saisai Yang, Qingyi Huang, Jing Yuan, Liangyu Zha, Kai Tang, Yuhang Yang, Ning Wang, Yucheng Wei, Liyao Li, Wentao Ye, Hao Chen, Tao Zhang, Junlin Zhou, Haobo Wang, Gang Chen, Junbo ZhaoarXiv 2025 · OpenReview

Abstract

Tabular data serves as the backbone of modern data analysis and scientific research. While Large Language Models (LLMs) fine-tuned via Supervised Fine-Tuning (SFT) have significantly improved natural language interaction with such structured data, they often fall short in handling the complex, multi-step reasoning and robust code execution required for real-world table tasks. Reinforcement Learning (RL) offers a promising avenue to enhance these capabilities, yet its application in the tabular domain faces three critical hurdles: the scarcity of high-quality agentic trajectories, the extreme heterogeneity of feedback signals, and the risk of catastrophic forgetting of general knowledge. To overcome these challenges, we introduce TableGPT-R1, a specialized tabular model built on a systematic RL framework. Our approach integrates a comprehensive data engineering pipeline, a task-adaptive reward system, and a multi-stage training framework that progressively stabilizes reasoning before specializing in table-specific tasks. Extensive evaluations demonstrate that TableGPT-R1 achieves state-of-the-art performance on authoritative benchmarks while retaining robust general capabilities.

Introduction

While modern LLMs excel at natural language processing, they frequently struggle with tabular data. Tables are structured environments that require a "closed-loop" approach involving planning, coding, and execution. Current models face three primary obstacles in this domain: a lack of step-by-step "agentic trajectories" in existing datasets, the difficulty of providing consistent feedback across diverse tasks (from binary SQL correctness to subjective data interpretation), and the tendency of specialized models to lose general reasoning abilities—a phenomenon known as catastrophic forgetting.

TableGPT-R1 addresses these issues by introducing a novel Reinforcement Learning (RL) framework designed to master complex tabular reasoning while maintaining general-purpose intelligence.

Methodology: The Agentic-RL Framework

TableGPT-R1 (built on the Qwen3-8B backbone) utilizes a systematic RL framework to bridge the gap between general reasoning and specialized tabular analysis. The training process follows a rigorous multi-stage curriculum:

  1. SFT Warm-up: Aligning the model to the required agentic output format.
  2. Stage 1 (General Reasoning): Stabilizing reasoning capabilities using broad-domain data to prevent forgetting.
  3. Stage 2 (Table-Agentic Specialization): Focusing on structured table tasks and tool-use trajectories.
  4. Stage 3 (Hard Sample Refinement): Fine-tuning on the most difficult and borderline cases to push performance boundaries.
The systematic RL framework of TableGPT-R1, featuring a multi-stage training curriculum and a task-adaptive reward system.

Task-Adaptive Reward System

To handle the heterogeneity of tabular tasks, we implemented a dual-track reward system. For deterministic tasks like SQL generation or mathematics, the model uses Rule-Based rewards based on execution correctness. For open-ended interpretation tasks, a Criteria-Injected Reward Model (CIRM) acts as an LLM judge, evaluating responses against specific pre-defined criteria. Additionally, process-level rewards provide "nudges" for correct function calls, stabilizing long-horizon training.

Data Engineering and Agentic Behavior

A key innovation in TableGPT-R1 is its Agentic Data Engineering. The researchers synthesized high-quality trajectories where the model must "Think" (plan), "Call Tools" (write Python/SQL), and "Observe" (process feedback). A significant finding was that training the model to load data from a file path (e.g., using pd.read_csv()) rather than providing a static snippet in the prompt encouraged more robust autonomous behavior and improved accuracy.

Experimental Results

TableGPT-R1 demonstrates a significant leap over its predecessors and many larger models. It achieved an average improvement of 11.32% over TableGPT2-7B. Most notably, on the RealHitBench—a challenging benchmark for hierarchical tables—TableGPT-R1-8B outperformed the much larger GPT-4o, particularly in Chart Generation with a +31.17% gain.

Performance comparison of TableGPT-R1 against baselines on table-specific (left) and general reasoning (right) benchmarks.

Crucially, the model avoided catastrophic forgetting. By including general reasoning data in the first stage of RL, the model actually improved its general performance (+1.01% average gain), maintaining high scores on benchmarks like HumanEval (95.73) and GSM8K (95.60).

Conclusion

TableGPT-R1 proves that vertical specialization in tabular reasoning does not have to come at the cost of general intelligence. Through a combination of agentic data engineering and a task-adaptive reward system, it sets a new standard for open-source tabular models. Future work will focus on expanding these capabilities to multi-modal tables (images/PDFs) and scaling the framework to interact with ultra-large databases.

Summary updated

BibTeX
@misc{yang2025tablegpt,
  author = {Saisai Yang and Qingyi Huang and Jing Yuan and Liangyu Zha and Kai Tang and Yuhang Yang and Ning Wang and Yucheng Wei and Liyao Li and Wentao Ye and Hao Chen and Tao Zhang and Junlin Zhou and Haobo Wang and Gang Chen and Junbo Zhao},
  title = {{TableGPT-R1: Advancing Tabular Reasoning Through Reinforcement Learning}},
  year = {2025},
  eprint = {2512.20312},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.20312},
}
Figure