Dataground at SemEval-2025 Task 8: Small LLMs and Preference Optimization for Tabular QA

Giuseppe Attardi, Andrea Nelson Mauro, Daniele Sartiano


Abstract
We present our submission to SemEval 2025 Task 8: Question Answering on Tabular Data, which challenges participants to develop systems capable of answering natural language questions on real-world tabular datasets. Our approach aims at generating Pandas code that can be run on such datasets to produce the desired answer. The approach consists in fine-tuning a Small Language Model (SLM) through Preference Optimization on both positive and negative examples generated by a teacher model.A base SLM is first elicited to produce the code to compute the answer to a question through a Chain of Thought (CoT) prompt. We performed extensive testing on the DataBench development set, exploring a variety of prompts, eventually settling on a detailed instruction prompt, followed by two-shot examples. Due to hardware constraints, the base model was an SLM with ${leq}$ 8 billion parameters.We then fine-tuned the model through Odds Ratio Preference Optimization (ORPO) using as training data the code produced by a teacher model on the DataBench training set. The teacher model was GPT-4o, whose code was labeled preferred, while the code generated by the base model was rejected. This increased the accuracy on the development set from 71% to 85%.Our method demonstrated robust performance in answering complex questions across diverse datasets, highlighting the effectiveness of combining small LLMs with supervised fine-tuning and automated code execution for tabular question answering.
Anthology ID:
2025.semeval-1.173
Volume:
Proceedings of the 19th International Workshop on Semantic Evaluation (SemEval-2025)
Month:
July
Year:
2025
Address:
Vienna, Austria
Editors:
Sara Rosenthal, Aiala Rosá, Debanjan Ghosh, Marcos Zampieri
Venues:
SemEval | WS
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
1306–1312
Language:
URL:
https://preview.aclanthology.org/transition-to-people-yaml/2025.semeval-1.173/
DOI:
Bibkey:
Cite (ACL):
Giuseppe Attardi, Andrea Nelson Mauro, and Daniele Sartiano. 2025. Dataground at SemEval-2025 Task 8: Small LLMs and Preference Optimization for Tabular QA. In Proceedings of the 19th International Workshop on Semantic Evaluation (SemEval-2025), pages 1306–1312, Vienna, Austria. Association for Computational Linguistics.
Cite (Informal):
Dataground at SemEval-2025 Task 8: Small LLMs and Preference Optimization for Tabular QA (Attardi et al., SemEval 2025)
Copy Citation:
PDF:
https://preview.aclanthology.org/transition-to-people-yaml/2025.semeval-1.173.pdf