32
0

FormulaReasoning: A Dataset for Formula-Based Numerical Reasoning

Abstract

The application of formulas (e.g., physics formulas) is a fundamental ability of humans when solving numerical reasoning problems. Existing numerical reasoning datasets seldom explicitly indicate the formulas employed in reasoning, as their questions rely on implicit commonsense mathematical knowledge. In contrast, in this paper, we introduce FormulaReasoning, a new dataset specifically designed for formula-based numerical reasoning. Each of the 4,751 questions in our dataset requires numerical calculation with external physics formulas, making it a more challenging benchmark for evaluating large language models (LLMs). We offer normalized fine-grained annotations for the questions, available in English and Chinese, including formula structures, parameter names, symbols, numerical values, and units, derived from extensive manual effort with LLM assistance for guaranteed quality. We also provide a consolidated formula database to serve as an external knowledge base accompanying the dataset. We employ FormulaReasoning to evaluate LLMs with 7B to over 100B parameters, and explore retrieval-augmented generation with the formula database. Our evaluation also covers supervised methods that break down the reasoning process into formula generation, parameter extraction, and numerical calculation, as well as direct preference optimization methods based on derived preference data.

View on arXiv
@article{li2025_2402.12692,
  title={ FormulaReasoning: A Dataset for Formula-Based Numerical Reasoning },
  author={ Xiao Li and Bolin Zhu and Kaiwen Shi and Sichen Liu and Yin Zhu and Yiwei Liu and Gong Cheng },
  journal={arXiv preprint arXiv:2402.12692},
  year={ 2025 }
}
Comments on this paper