ACL 2024findings5 citations

Exploring Reversal Mathematical Reasoning Ability for Large Language Models

Pei Guo, WangJie You, Juntao Li, Yan Bowen, Min Zhang

Abstract

Large language models (LLMs) have presented remarkable capabilities in the wide range of natural language understanding and reasoning tasks. Despite their success, a few works indicate that LLMs suffer from the “reversal curse”, in which LLMs can’t employ the inverted structure “B is A” when they are trained based on “A is B”. To explore the effect of the “reversal curse” for LLMs on complex mathematical reasoning tasks, we present two reversal datasets upon GSM8K and MathQA and verify that LLMs also struggle to solve reversal mathematical problems. We analyze the potential reason and attribute it to the insufficient modeling of the relationship between reasoning steps caused by the left-to-right objective. Consequently, based on the characteristics of multi-step reasoning, we design a novel training method to improve the general and reversal reasoning abilities. Finally, we conduct experiments on four mathematical datasets, and the results demonstrate that our method significantly improves the general reasoning capacities and alleviates the reversal problem. Our datasets and codes are available at https: //github.com/AllForward/ReversalMath.

BibTeX
@inproceedings{guo-etal-2024-exploring,
    title = "Exploring Reversal Mathematical Reasoning Ability for Large Language Models",
    author = "Guo, Pei  and
      You, WangJie  and
      Li, Juntao  and
      Bowen, Yan  and
      Zhang, Min",
    editor = "Ku, Lun-Wei  and
      Martins, Andre  and
      Srikumar, Vivek",
    booktitle = "Findings of the Association for Computational Linguistics: ACL 2024",
    month = aug,
    year = "2024",
    address = "Bangkok, Thailand",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2024.findings-acl.811/",
    doi = "10.18653/v1/2024.findings-acl.811",
    pages = "13671--13685"
}
Exploring Reversal Mathematical Reasoning Ability for Large Language Models · ACL 2024