GitHub·Code·Apache-2.0

tongjingqi/MathTrap

In this work, we investigate the compositionality of large language models (LLMs) in mathematical reasoning. Specifically, we construct a new dataset MATHTRAP‡ by introducing carefully designed logical traps into the problem descriptions of MATH and GSM8K.

60 stars·Updated Feb 2026
mathreasoning
Open on GitHub

Authors

Repository owner

Linked papers

Code

Exploring the Compositional Deficiency of Large Language Models in Mathematical Reasoning Through Trap Problems

emnlp · 2024

Why Lacuna links this resource
Repository names this paper

# MathTrap: Exploring the Compositional Deficiency of Large Language Models in Mathematical Reasoning [![Code License](https://img.shields.io/badge/Code%20License-Apache_2.0-green.svg)](CODE_LICENSE) [![Python 3.9+](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/release/python-390/) ## Paper For detailed explanations and results of our research, please refer to our paper: > **Exploring the Compositional Deficiency of Large Language Models in Mathematical Rea

README:focal_exact_title·Open evidence