Conducting contamination-free evaluation of mathematical capabilities can be difficult for two reasons: models may memorize a test set once it is made public, and mathematical benchmarks are prone to overfitting due to having limited diversity of symbols and rules, coupled with closed-ended answers. We propose to leverage these shortcomings as useful features to construct a dynamic, counterfactual benchmark--to both reveal overfitting and measure reasoning over arithmetic. We demonstrate this via MatheMagic, which generates arithmetic test instances with the interpretations of numbers and operators altered, yet has automatically verifiable answers. Instances are randomly seeded and constructed at test time to evaluate a model's induction or deduction ability, offering stability, extensibility, comparability, and robustness to overfitting. Our experiments find that models solve deduction more easily than induction, but they revert to standard arithmetic. Further, math-adapted models are less flexible at following unfamiliar arithmetic rules, and fine-tuning on induction tasks generalizes poorly.
翻译:暂无翻译