TL;DR
This paper presents the first systematic study of instruction optimization for verifying natural language claims against tabular data using the DSPy framework. By evaluating various prompting strategies and discrete prompt optimizers across multiple LLM families, the authors demonstrate that automated prompt tuning consistently boosts verification accuracy. Crucially, they find that different optimizers excel depending on the paradigm: MiPROv2 stabilizes Chain-of-Thought (CoT) reasoning, while SIMBA significantly improves tool-augmented ReAct agents by injecting smart heuristics and curbing redundant tool calls.
What Problem Does This Paper Address?
Tabular fact verification—determining whether a textual claim is supported or refuted by structured data—is a notoriously tricky NLP task. It demands a mix of structural table understanding, text reasoning, and precise numerical comparison. While large language models (LLMs) are highly capable, they are notoriously sensitive to prompt engineering.
Discrete instruction optimization frameworks (like DSPy) offer a lightweight, gradient-free way to automatically tune prompts. However, we still lack a systematic understanding of how these automated optimizers interact with different prompting styles (text-only vs. code/tool-assisted), model architectures, and parameter scales when dealing with structured tables. This paper fills that gap.
Methods
The authors evaluate a matrix of four prompting techniques and three DSPy instruction optimizers across three model families (Qwen3, Gemma3, and GPT-4o).
Prompting Techniques:
- Direct Prediction: The model outputs the final verdict directly.
- Chain-of-Thought (CoT): The model generates step-by-step textual reasoning before answering.
- ReAct: The model interleaves thoughts with executable SQL queries to extract data from the table.
- CodeAct: The model writes and executes free-form Python code directly to parse tables and perform math.
DSPy Optimizers (Restricted to instruction-only tuning):
- COPRO: Uses a beam-search-like approach to iteratively refine prompts based on training scores.
- MiPROv2: Uses Bayesian optimization to efficiently navigate and find high-performing prompt instructions.
- SIMBA: An introspective optimizer that analyzes successful vs. unsuccessful execution traces to generate explicit, contrastive heuristic rules that are appended to the prompt.
Datasets
The benchmarks span various domains and complexities, using a mix of binary and three-class (Supports, Refutes, Not Enough Info) labels:
- TabFact: A massive dataset based on Wikipedia tables (binary classification).
- PubHealthTab: Noisy, complex tables tracking public health claims.
- SciTab: Highly specialized tables from scientific publications in ML and NLP.
- MMSci: A multimodal scientific dataset where table images were converted to text to test out-of-domain generalization.
To optimize the instructions, the authors built a balanced, hybrid training set of just 100 instances sampled across TabFact, SciTab, and PubHealthTab. Dataset statistics are detailed below:
Key Insights and Ideas
- Optimizer-Method Alignment: There is no "one-size-fits-all" optimizer. MiPROv2 works best for text-only CoT because it generates clean, high-level guiding principles. Conversely, SIMBA shines in tool-augmented settings (ReAct/CodeAct) because its self-reflection loop naturally produces highly detailed, programmatic rules.
- Behavioral Shift (Less Tool Use, More Direct Thinking): For ReAct agents, optimization completely altered tool-calling behavior. SIMBA drastically reduced SQL tool invocation frequency (e.g., from 90% down to 35.4% for Qwen3-32B) while increasing reasoning length. It effectively taught the model to read simple tables directly rather than wasting execution steps on trivial queries.
- Automated Heuristic Discovery: SIMBA successfully injected domain-specific guardrails into prompts without human intervention. For instance, it added explicit instructions warning the model not to confuse "specificity" with "sensitivity" metrics, and to strictly cross-check element orders for ordinal claims.
- The Scale Factor: Larger models (e.g., 27B, 32B, and GPT-4o) benefit substantially more from instruction optimization than smaller models (8B/12B), particularly in complex tool-use environments where smaller models struggle to follow intricate instructions.
Key Results
Instruction optimization yielded consistent performance gains across almost all configurations.
- Qwen3 Performance: For Qwen3-32B, MiPROv2 secured the highest CoT scores on SciTab (68.8% F1) and TabFact (88.5% F1), while SIMBA provided massive boosts for ReAct on SciTab (boosting F1 from 60.1% to 65.9%).
- Gemma3 Performance: Gemma3 models responded even more positively across the board, with SIMBA driving CodeAct performance on SciTab up to a leading 69.3% F1.
- GPT-4o vs. Human Baselines: While GPT-4o had a high baseline, SIMBA-optimized ReAct prompts consistently outperformed "ReActable" (a baseline framework using human-engineered prompts), proving that algorithmic prompt generation can beat expert human design.
- Conservative Predictions: Qualitative analysis via confusion matrices showed that optimized prompts make models more conservative, significantly increasing "Refute" predictions to minimize false positives on tricky claims.
Limitations and Future Work
The authors note several limitations in their current setup:
- Model Scope: The evaluation is restricted to Qwen3, Gemma3, and GPT-4o; results might vary on other architectures.
- Simplified Tool Environment: The ReAct setup only utilized a single SQL tool, which doesn't capture the challenges of multi-tool selection and routing.
- Seed Prompt Sensitivity: All experiments started from the same basic seed prompt. The impact of starting with highly optimized or highly degraded human prompts remains unexplored.
Future directions include scaling these optimizers to multi-tool agent environments and exploring more advanced prompt evolution algorithms like GEPA.
Summary updated