TRANSMISSION // 2510.05962v2
Can AI follow arithmetic when the rules change?
Source published
A changing-rules arithmetic benchmark probes whether language models can infer unfamiliar rules or merely fall back on familiar math.

Public math tests can reward familiarity as well as reasoning. MatheMagic changes the arithmetic rules from test to test, then checks whether language models can infer or apply those rules. The results show a gap between the two abilities—but the benchmark tests arithmetic, not mathematical reasoning in general.
A model may answer a familiar arithmetic question correctly because it has learned the underlying method—or because it has seen a similar question before. That makes public math benchmarks vulnerable to memorization and overfitting. A new preprint introduces MatheMagic, a way to test what happens when familiar arithmetic expressions are given unfamiliar rules.
The central idea is simple: keep the calculations recognizable, but change what their symbols or numbers mean. In one example, the plus sign can be made to mean multiplication. Other transformations swap digits, reverse their order, add a constant to the result, or change the number base. A model must then use the rule in its prompt rather than rely on ordinary arithmetic.
Two ways to meet an unfamiliar rule
The researchers built the tasks from calculation expressions extracted from GSM8K, a widely used collection of grade-school math problems. They defined nine transformations and used random seeds to choose expressions and transformation settings. This makes it possible to recreate a test with the same seed, or generate a different test with a new one.
The benchmark separates two tasks. In deduction, the prompt explains the new rule, and the model must apply it. In induction, the model sees examples of the rule but must work out what the rule is. This distinction matters: an incorrect answer in the induction task could mean the model inferred the wrong rule, applied a rule incorrectly, or simply reverted to ordinary arithmetic.
For their experiments, the authors generated five seeded test sets, each with 405 problems, and evaluated several open and commercial language models. They varied the number of examples shown in the prompt, from none to hundreds, and compared performance across different seeds and prompt phrasings. Answers were checked automatically against reference results. The paper also describes a separate verification step for some induction answers: a generated program checked whether an alternative rule in the model’s explanation fit the examples and its answer. The authors caution that this gives an approximate lower bound on such valid alternatives, not an exact count.
Applying rules was easier than discovering them
Across the tested models, performance was generally better when the rule was stated explicitly than when it had to be inferred from examples. More examples often helped, but not consistently: some models plateaued or declined, and the pattern varied by model and transformation. The authors’ analysis suggests that induction failures can involve both difficulty identifying the intended rule and a tendency to fall back on standard arithmetic. With more examples, some responses shifted from ordinary-arithmetic answers to different errors, consistent with models attempting—but not always succeeding—to use the new procedure.
Some transformations were harder than others. The paper highlights tasks requiring more involved procedures, such as changing number bases, as difficult even when the rule was supplied. It also reports that models sometimes returned answers matching standard arithmetic when that answer was wrong under the altered rule. A control task using arbitrary new symbols, rather than symbols with familiar arithmetic meanings, was easier for the tested models. This supports the authors’ interpretation that overriding learned associations with familiar operators is part of the challenge in this setup.
Math-adapted models were not automatically more flexible on these unfamiliar rules: in the authors’ comparison, the tested Qwen math-tuned models did not improve with examples in the way the general-purpose version did. Fine-tuning experiments also showed a gap between performance on familiar training patterns and transfer to new examples or transformations. Gains did not consistently carry over beyond the patterns seen during training.
What the test can—and cannot—show
MatheMagic is designed to reduce the value of memorizing a fixed test set: the underlying questions are generated at test time from seeded choices, while answers remain automatically checkable. But it does not establish that a model has—or lacks—general mathematical reasoning. The source expressions come from GSM8K, and the benchmark focuses on arithmetic, mostly with single-operation expressions. The authors explicitly leave open whether the results extend to algebra, word problems, proofs, or other domains.
The study also does not report a human performance benchmark, so it cannot tell readers how people would compare under the same conditions. Nor does a test involving counterfactual arithmetic directly measure everyday mathematical competence. Its narrower contribution is diagnostic: it separates applying a supplied rule from inferring one, and exposes cases where familiar arithmetic habits interfere with a new instruction.
The paper is an arXiv preprint, so its findings should be treated as provisional rather than as settled consensus. The benchmark and experiments offer a tool and evidence about the models tested; further work would be needed to establish how broadly the conclusions apply.
- MatheMagic
- language models
- AI evaluation
- arithmetic reasoning
- benchmark memorization
- inductive reasoning
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
AI agents can guess labels without finding the rule
Supporting evidence: Both studies report a gap between handling observed examples and recovering a hidden rule: MatheMagic finds that models apply explicitly stated arithmetic rules more successfully than they infer rules from examples, while ZendoWorld reports that accurate scene labeling does not ensure rule recovery. This supports the bounded point that example-level performance need not demonstrate induction; the tasks and evaluation settings differ, so the results are not directly comparable.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2510.05962v2 — Original paper
Excerpt reference:
static/papers/2510.05962v2.md:78-159
Basis: Paper text
Source file SHA-256:ccbacf4329a67b637194fc0d1f661c140ff3daca87f91e5d4e90f4e3c57a3ca52607.08233v2 — Original paper
Excerpt reference:
static/papers/2607.08233v2.md:81-141
Basis: Paper text
Source file SHA-256:da704cbdbf2a2073b2dbe4f3aaa30c2a135d89a70efd1eaacbc1331c4ac75e652607.08233v2 — Original paper
Excerpt reference:
static/papers/2607.08233v2.md:914-955
Basis: Paper text
Source file SHA-256:da704cbdbf2a2073b2dbe4f3aaa30c2a135d89a70efd1eaacbc1331c4ac75e65
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
When a flawed AI checker teaches the wrong lesson
Source published
Shared keywords: arithmetic reasoning, language models
When AI reasoning fails, useful clues may remain hidden
Source published
Shared keywords: language models
Teaching AI to write better parallel code
Source published
Shared keywords: ai evaluation
Can AI Build and Improve Business Agents?
Source published
Shared keywords: ai evaluation
Robot safety looks different outside the chat window
Source published
Shared keywords: ai evaluation