[Paper Review] Replacing Multi-Step Assembly of Data Preparation Pipelines with One-Step LLM Pipeline Generation for Table QA
The paper introduces Operation-R1, a framework that trains lightweight LLMs to generate data preparation pipelines for table QA in a single inference step, using RLVR with self-supervised rewards and robustness mechanisms.
Table Question Answering (TQA) aims to answer natural language questions over structured tables. Large Language Models (LLMs) enable promising solutions to this problem, with operator-centric solutions that generate table manipulation pipelines in a multi-step manner offering state-of-the-art performance. However, these solutions rely on multiple LLM calls, resulting in prohibitive latencies and computational costs. We propose Operation-R1, the first framework that trains lightweight LLMs (e.g., Qwen-4B/1.7B) via a novel variant of reinforcement learning with verifiable rewards to produce high-quality data-preparation pipelines for TQA in a single inference step. To train such an LLM, we first introduce a self-supervised rewarding mechanism to automatically obtain fine-grained pipeline-wise supervision signals for LLM training. We also propose variance-aware group resampling to mitigate training instability. To further enhance robustness of pipeline generation, we develop two complementary mechanisms: operation merge, which filters spurious operations through multi-candidate consensus, and adaptive rollback, which offers runtime protection against information loss in data transformation. Experiments on two benchmark datasets show that, with the same LLM backbone, Operation-R1 achieves average absolute accuracy gains of 9.55 and 6.08 percentage points over multi-step preparation baselines, with 79\% table compression and a 2.2$ imes$ reduction in monetary cost.
Motivation & Objective
- Motivate the need to replace multi-step, latency-heavy data-preparation pipelines in Table QA with a single-inference LLM solution.
- Develop a lightweight LLM training framework that can produce effective data-preparation pipelines tailored to each question–table pair.
- Propose verifiable, fine-grained supervision and stability mechanisms to train the pipeline generator.
- Ensure robustness during preprocessing via consensus and adaptive rollback mechanisms.
Proposed method
- Frame data preparation as a QA-oriented pipeline generation problem.
- Use RL with Verifiable Rewards (RLVR) and ORPO (Operation-wise Group Relative Policy Optimization) to train lightweight LLMs.
- Introduce a self-supervised, cell-focused QA reward to provide fine-grained feedback for each operation.
- Apply variance-aware group resampling to stabilize training with fine-grained rewards.
- Implement Operation Merge to ensemble multiple candidate pipelines via an operation trie and voting.
- In online inference, generate multiple pipelines, then select the most supported via voting and execute structured and semantic operators accordingly.
- Incorporate Adaptive Rollback to recover from information loss by reverting to earlier table states when necessary.
Experimental results
Research questions
- RQ1Can a lightweight LLM be trained to generate high-quality data-preparation pipelines for TQA in a single inference step?
- RQ2How can we provide reliable, fine-grained, and low-cost supervision signals for pipeline generation without ground-truth pipelines?
- RQ3What mechanisms improve robustness and stability of one-step pipeline generation in diverse QA scenarios?
- RQ4Does the proposed pipeline generation improve QA accuracy while reducing table size and computational cost compared to multi-step baselines?
Key findings
- Operation-R1 achieves average absolute accuracy gains of 9.62 percentage points on WikiTQ and 6.05 percentage points on TabFact over non-preprocessed baselines.
- On average, the approach reduces table size by 79%.
- Operation-R1 requires only a single lightweight model inference, reducing monetary cost by about 2.2x.
- Across benchmarks, Operation-R1 improves TQA effectiveness while maintaining robustness via Operation Merge and Adaptive Rollback.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.