Lune

NeurIPS2025Top-tier venue

Interpreting Arithmetic Reasoning in Large Language Models using Game-Theoretic Interactions

Leilei Wen, Liwei Zheng, Hongda Li, Lijun Sun, Zhihua Wei, Wen Shen

2025Year
1Citations

Abstract

In recent years, large language models (LLMs) have made significant advancements in arithmetic reasoning. However, the internal mechanism of how LLMs solve arithmetic problems remains unclear. In this paper, we propose explaining arithmetic reasoning in LLMs using game-theoretic interactions. Specifically, we disentangle the output score of the LLM into numerous interactions between the input words. We quantify different types of interactions encoded by LLMs during forward propagation to explore the internal mechanism of LLMs for solving arithmetic problems. We find that (1) the internal mechanism of LLMs for solving simple one-operator arithmetic problems is their capability to encode operand-operator interactions and high-order interactions from input samples. Additionally, we find that LLMs with weak one-operator arithmetic capabilities focus more on background interactions.

(2) The internal mechanism of LLMs for solving relatively complex two-operator arithmetic problems is their capability to encode operator interactions and operand interactions from input samples. (3) We explain the task-specific nature of the LoRA method from the perspective of interactions. * Corresponding author. 2 Note that each interaction is equivalently encoded by the entire DNN, rather than by a specific neuron. 39th Conference on Neural Information Processing Systems (NeurIPS 2025).

operand ๐ผ plus =-1.29 ๐œ™ ๐’™ = ๐‘†โІ๐‘ ๐ผ ๐‘† + background interactions ๐ผ What,plus =1.09 ๐ผ plus,is b =1.07 ๐ผ 2 =-2.08 ๐ผ 2,7 =2.27 ๐ผ 2,plus =1.77 ๐ผ plus,7 =1.18 ๐ผ What,is a =-0.72 ๐ผ What,Answer,is b =-0.29 ๐ผ 2,7,is b =-0.50 ๐ผ 2,plus,7 =-0.70

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

Builds on20

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines