Elamur Research⌕
☰
home / papers / 2024 / Evaluating Mathematical Reasoning Beyond Accuracy

Evaluating Mathematical Reasoning Beyond Accuracy

Paper · 2024 · Shijie Xia, Xuefeng Li, Yixin Liu et al.

Summary

Most benchmarks for LLM math reasoning check only whether the final answer is right. This can hide flawed logic or wasted steps inside a solution. The authors propose REASONEVAL, which scores every step of a solution on two dimensions:

  • Validity: the step contains no calculation or logical error.
  • Redundancy: the step is correct but does not move the solution forward.

Each step is classified as positive, neutral or negative. Step scores are then combined into solution-level scores using min (for validity) and max (for redundancy). The evaluators are LLMs such as Llama2 and Mistral variants, fine-tuned with a classification head on the human step labels in PRM800K.

The authors test the evaluators on a new meta-evaluation set, MR-MATH. The strongest setups, which pair math-capable base models with high-quality labels, clearly beat baseline methods and generalize well. Applying REASONEVAL to math-specialized LLMs shows that higher answer accuracy on hard problems does not always mean better reasoning. Used as a data filter, it can also shrink SFT data while keeping accuracy and improving step quality. The best evaluator and the evaluation scripts are open-sourced.

Key points

  • The training data is PRM800K, with about 800K step-level human labels on roughly 75K GPT-4 solutions to MATH problems.
  • MR-MATH contains Abel and WizardMath solutions labeled by undergraduates with strong math backgrounds: 83 have erroneous steps and 76 do not.
  • Model scale matters for the evaluated math LLMs' false positive rate. LLaMA13B-PRM800K scores 40.6% versus 21.8% for LLaMA70B-PRM800K, despite identical training data. RLHF helps only for stronger models.
  • For data selection, the authors filtered 10K MMIQC responses with REASONEVAL (WizardMath-7B-V1.1) and fine-tuned mistral-7b on the result:
    • The subset kept 56.7% of the data.
    • MATH accuracy was 22.0, versus 22.2 for the full set and 20.0 for a random subset of equal size.
    • Validity rose from 65.2 to 67.8.
    • Average solution length fell from about 723 to 701 tokens.
  • The code and models are available at github.com/GAIR-NLP/ReasonEval.

Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.

 Institutions

Cite

Cite as Shijie Xia, Xuefeng Li, Yixin Liu, Tongshuang Wu and Pengfei Liu. 2024. Evaluating Mathematical Reasoning Beyond Accuracy. arXiv:2404.05692.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.2404.05692 · arXiv 2404.05692

@misc{xia2024evaluating,
  title = {{Evaluating Mathematical Reasoning Beyond Accuracy}},
  author = {Shijie Xia, Xuefeng Li, Yixin Liu, Tongshuang Wu and Pengfei Liu},
  year = {2024},
  doi = {10.48550/arxiv.2404.05692},
  eprint = {2404.05692},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2404.05692}
}

References

25 references, 13 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

  1. Azerbayev, Z.; Schoelkopf, H.; Paster, K.; Dos Santos, M.; McAleer, S. M.; Jiang, A. Q.; Deng, J.; Biderman, S.; and Welleck, S. 2023. Llemma: An Open Language Model for Mathematics. In The Twelfth International Conference on Learning Representations.
  2. Chern, E.; Zou, H.; Li, X.; Hu, J.; Feng, K.; Li, J.; and Liu, P. 2023. Generative AI for Math: Abel. https://github.com/ GAIR-NLP/abel. ↗
  3. Clinciu, M.-A.; Eshghi, A.; and Hastie, H. 2021. A Study of Automatic Metrics for the Evaluation of Natural Language Explanations. In Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume, 2376–2387. Online: Association for Computati… find
  4. Cobbe, K.; Kosaraju, V.; Bavarian, M.; Chen, M.; Jun, H.; Kaiser, L.; Plappert, M.; Tworek, J.; Hilton, J.; Nakano, R.; et al. 2021. Training verifiers to solve math word problems. ArXiv preprint, abs/2110.14168.
  5. Dai, J.; Pan, X.; Sun, R.; Ji, J.; Xu, X.; Liu, M.; Wang, Y.; and Yang, Y. 2023. Safe RLHF: Safe Reinforcement Learning from Human Feedback. In The Twelfth International Conference on Learning Representations.
  6. Golovneva, O.; Chen, M. P.; Poff, S.; Corredor, M.; Zettlemoyer, L.; Fazel-Zarandi, M.; and Celikyilmaz, A. 2022. ROSCOE: A Suite of Metrics for Scoring Step-by-Step Reasoning. In The Eleventh International Conference on Learning Representations.
  7. Hao, S.; Gu, Y.; Luo, H.; Liu, T.; Shao, X.; Wang, X.; Xie, S.; Ma, H.; Samavedhi, A.; Gao, Q.; Wang, Z.; and Hu, Z. 2024. LLM Reasoners: New Evaluation, Library, and Analysis of Step-by-Step Reasoning with Large Language Models. arXiv:2404.05221. — [arXiv:2404.05221](https://arxiv.org/abs/2404.05221) find
  8. Hendrycks, D.; Burns, C.; Kadavath, S.; Arora, A.; Basart, S.; Tang, E.; Song, D.; and Steinhardt, J. 2021. Measuring Mathematical Problem Solving With the MATH Dataset. In Thirty-fifth Conference on Neural Information Processing Systems Datasets and Benchmarks Track (Round 2). Jiang, A. Q.; Sablayr…
  9. Lewkowycz, A.; Andreassen, A.; Dohan, D.; Dyer, E.; Michalewski, H.; Ramasesh, V.; Slone, A.; Anil, C.; Schlag, I.; Gutman-Solo, T.; et al. 2022. Solving quantitative reasoning problems with language models. Advances in Neural Information Processing Systems, 35: 3843–3857.
  10. Lightman, H.; Kosaraju, V.; Burda, Y.; Edwards, H.; Baker, B.; Lee, T.; Leike, J.; Schulman, J.; Sutskever, I.; and Cobbe, K. 2023. Let’s Verify Step by Step. In The Twelfth International Conference on Learning Representations.
  11. Liu, H.; and Yao, A. C.-C. 2024. Augmenting math word problems via iterative question composing. ArXiv preprint, abs/2401.09003. find
  12. Loshchilov, I.; and Hutter, F. 2019. Decoupled Weight Decay Regularization. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. find
  13. OpenReview.net. Lu, P.; Qiu, L.; Yu, W.; Welleck, S.; and Chang, K.-W. 2023. A Survey of Deep Learning for Mathematical Reasoning. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 14605– 14631. find
  14. Luo, H.; Sun, Q.; Xu, C.; Zhao, P.; Lou, J.; Tao, C.; Geng, X.; Lin, Q.; Chen, S.; and Zhang, D. 2023. Wizardmath: Empowering mathematical reasoning for large language models via reinforced evol-instruct. ArXiv preprint, abs/2308.09583.
  15. Ma, Q.; Zhou, H.; Liu, T.; Yuan, J.; Liu, P.; You, Y.; and Yang, H. 2023. Let’s reward step by step: Step-Level reward model as the Navigators for Reasoning. ArXiv preprint, abs/2310.10080. find
  16. OpenAI, R. 2023. GPT-4 technical report. arXiv, 2303– 08774.
  17. Prasad, A.; Saha, S.; Zhou, X.; and Bansal, M. 2023. Re-CEval: Evaluating Reasoning Chains via Correctness and Informativeness. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, 10066– 10086. find
  18. Saparov, A.; and He, H. 2022. Language Models Are Greedy Reasoners: A Systematic Formal Analysis of Chain-of-Thought. In The Eleventh International Conference on Learning Representations.
  19. Sawada, T.; Paleka, D.; Havrilla, A.; Tadepalli, P.; Vidas, P.; Kranias, A.; Nay, J. J.; Gupta, K.; and Komatsuzaki, A. 2023. Arb: Advanced reasoning benchmark for large language models. ArXiv preprint, abs/2307.13692. find
  20. Touvron, H.; Martin, L.; Stone, K.; Albert, P.; Almahairi, A.; Babaei, Y.; Bashlykov, N.; Batra, S.; Bhargava, P.; Bhosale, S.; et al. 2023. Llama 2: Open foundation and fine-tuned chat models. ArXiv preprint, abs/2307.09288. Tyen, G.; Mansoor, H.; Chen, P.; Mak, T.; and Cărbune, V. 2023. LLMs cann… find
  21. Uesato, J.; Kushman, N.; Kumar, R.; Song, F.; Siegel, N.; Wang, L.; Creswell, A.; Irving, G.; and Higgins, I. 2022. Solving math word problems with process-and outcome-based feedback. ArXiv preprint, abs/2211.14275.
  22. Wang, P.; Li, L.; Shao, Z.; Xu, R.; Dai, D.; Li, Y.; Chen, D.; Wu, Y.; and Sui, Z. 2023. Math-Shepherd: A Label-Free Step-by-Step Verifier for LLMs in Mathematical Reasoning. ArXiv preprint, abs/2312.08935.
  23. Yu, L.; Jiang, W.; Shi, H.; Jincheng, Y.; Liu, Z.; Zhang, Y.; Kwok, J.; Li, Z.; Weller, A.; and Liu, W. 2023. MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Models. In The Twelfth International Conference on Learning Representations.
  24. Zeng, Z.; Chen, P.; Liu, S.; Jiang, H.; and Jia, J. 2024. MR-GSM8K: A Meta-Reasoning Revolution in Large Language Model Evaluation. arXiv:2312.17080. find
  25. Zhang, M.; Wang, Z.; Yang, Z.; Feng, W.; and Lan, A. 2023. Interpretable Math Word Problem Solution Generation via Step-by-step Planning. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 6858–6877. find

Updated

↑ back to top

This page in Markdown → https://md.research.elamur.ai/free/en/papers/xia-2024-evaluating-mathematical-reasoning-accuracy/