Table-r1: Self-supervised and Reinforcement Learning for Program-based Table Reasoning in Small Language Models

Rihui Jin, Zheyu Xin, Xing Xie, Zuoyi Li, Guilin Qi +4 more
6/6/2025
cs.LGcs.CL

No confident code implementation found for this paper.

Abstract

Table reasoning (TR) requires structured reasoning over semi-structured tabular data and remains challenging, particularly for small language models (SLMs, e.g., LLaMA-8B) due to their limited capacity compared to large LMs (LLMs, e.g., GPT-4o). To narrow this gap, we explore program-based TR (P-TR), which circumvents key limitations of text-based TR (T-TR), notably in numerical reasoning, by generating executable programs. However, applying P-TR to SLMs introduces two challenges: (i) vulnerability to heterogeneity in table layouts, and (ii) inconsistency in reasoning due to limited code generation capability. We propose Table-r1, a two-stage P-TR method designed for SLMs. Stage 1 introduces an innovative self-supervised learning task, Layout Transformation Inference, to improve tabular layout generalization from a programmatic view. Stage 2 adopts a mix-paradigm variant of Group Relative Policy Optimization, enhancing P-TR consistency while allowing dynamic fallback to T-TR when needed. Experiments on four TR benchmarks demonstrate that Table-r1 outperforms all SLM-based methods, achieving at least a 15% accuracy improvement over the base model (LLaMA-8B) across all datasets and reaching performance competitive with LLMs.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{jin2025tabler,
  title  = {Table-r1: Self-supervised and Reinforcement Learning for Program-based Table Reasoning in Small Language Models},
  author = {Rihui Jin and Zheyu Xin and Xing Xie and Zuoyi Li and Guilin Qi and Yongrui Chen and Xinbang Dai and Tongtong Wu and Gholamreza Haffari},
  year   = {2025},
  eprint = {2506.06137},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.06137v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.06137.svg)](https://codeofpaper.com/paper/2506.06137)

Discussion