Skip to content

Code for AACL 2022 paper Seeking Diverse Reasoning Logic: Controlled Equation Expression Generation for Solving Math Word Problems.

Notifications You must be signed in to change notification settings

yiyunya/CTRL-MWP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Seeking Diverse Reasoning Logic: Controlled Equation Expression Generation for Solving Math Word Problems.

Shen Y.*, Liu Q.*, Mao Z., Wan Z., Cheng F., Kurohashi S. (2022)

This paper has been accepted for publication in AACL-IJCNLP 2022.

The arxiv preprint could be found here.

To solve Math Word Problems, human students leverage diverse reasoning logic that reaches different possible equation solutions. However, the mainstream sequence-to-sequence approach of automatic solvers aims to decode a fixed solution equation supervised by human annotation. In this paper, we propose a controlled equation generation solver by leveraging a set of control codes to guide the model to consider certain reasoning logic and decode the corresponding equations expressions transformed from the human reference. The empirical results suggest that our method universally improves the performance on single-unknown (Math23K) and multiple-unknown (DRAW1K, HMWP) benchmarks, with substantial improvements up to 13.2% accuracy on the challenging multiple-unknown datasets.

Data

All data used for this paper could be found in /Math23K/data folder and /Multi/data folder.

The diverse expression data is created in-run for Math23K, and is generated seperately for Multiple Unknown datasets via mtokens.py for DRAW1K and mtokens_chinese.py for HMWP.

Code

Math23K Reproduction

For reproducing Math23K results, go to the /Math23K folder and please run:

python main.py

DRAW1K Reproduction

For reproducing DRAW1K results, go to the /Multi folder and please run:

python main_draw.py

HMWP Reproduction

For reproducing HMWP results, go to the /Multi folder and please run:

python main_hmwp.py

Citation

If you find this repo useful, please cite the following paper:

@inproceedings{shen-etal-2022-seeking,
    title = "Seeking Diverse Reasoning Logic: Controlled Equation Expression Generation for Solving Math Word Problems",
    author = "Shen, Yibin  and
      Liu, Qianying  and
      Mao, Zhuoyuan  and
      Wan, Zhen  and
      Cheng, Fei  and
      Kurohashi, Sadao",
    booktitle = "Proceedings of the 2nd Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 12th International Joint Conference on Natural Language Processing (Volume 2: Short Papers)",
    month = nov,
    year = "2022",
    address = "Online only",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2022.aacl-short.32",
    pages = "254--260",
    abstract = "To solve Math Word Problems, human students leverage diverse reasoning logic that reaches different possible equation solutions. However, the mainstream sequence-to-sequence approach of automatic solvers aims to decode a fixed solution equation supervised by human annotation. In this paper, we propose a controlled equation generation solver by leveraging a set of control codes to guide the model to consider certain reasoning logic and decode the corresponding equations expressions transformed from the human reference. The empirical results suggest that our method universally improves the performance on single-unknown (Math23K) and multiple-unknown (DRAW1K, HMWP) benchmarks, with substantial improvements up to 13.2{\%} accuracy on the challenging multiple-unknown datasets.",
}

About

Code for AACL 2022 paper Seeking Diverse Reasoning Logic: Controlled Equation Expression Generation for Solving Math Word Problems.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages