LLM Parameters for Math Across Languages: Shared or Separate?

Behzad Shomali, Luisa Victor, Tim Selbach, Ali Hamza Bashir, David Berghaus, Joachim Köhler, Mehdi Ali, Markus Frey

TL;DR

This paper investigates whether multilingual Large Language Models (LLMs) rely on a single universal "math engine" or separate language-specific circuits to solve mathematical problems. By localizing math-associated parameters across different languages, the authors reveal that LLMs use a hybrid approach: a partially shared core mechanism in the intermediate layers, combined with language-specific specialization in deeper layers, with English commanding the largest and most resilient parameter footprint.

What Problem Does This Paper Address?

While state-of-the-art LLMs show remarkable capabilities in mathematical reasoning, their performance is notoriously uneven across different languages. An English prompt might yield a perfect step-by-step solution, whereas the exact same problem translated into Hindi or French might result in a bizarre calculation error.

This raises a fundamental mechanistic question: How do multilingual LLMs organize mathematical knowledge across languages? Do they map all languages to a single, language-invariant internal math circuit, or do they maintain completely separate, disjoint sub-networks for each language? Understanding this internal topology is crucial for mitigating the "curse of multilinguality" and building more equitable, robust global AI systems.

Methods

The authors tackle this by extending a framework called MathNeurosurgery. The process unfolds in three main stages:

  1. Parameter Identification: They pass math datasets ($D_{\text{math}}$) and non-math datasets ($D_{\text{non-math}}$) through the models and track forward-pass statistics. Specifically, they calculate an importance score for each weight based on the product of the weight magnitude and its activation norm. Parameters that are highly active during math tasks but quiet during general language tasks are isolated as "math-specific."
  2. Overlap Quantification: To see how much these math circuits overlap between languages (e.g., English vs. Hindi), they compute the Jaccard coefficient—a similarity metric measuring the intersection over the union of the two parameter sets.
  3. Causal Interventions: To prove these parameters actually cause the math behavior, they perform weight manipulations: pruning (setting weights to zero) to see if math performance selectively degrades, and scaling (multiplying weights by a factor) to see if performance improves.

Datasets

  • GSM8K: Used as the core mathematical reasoning dataset ($D_{\text{math}}$).
  • MMLU & RACE: Used as general language understanding datasets ($D_{\text{non-math}}$). Crucially, the authors filtered out quantitative subjects (like abstract algebra, physics, and chemistry) from MMLU to prevent general STEM knowledge from confounding the math-specific parameter extraction.
  • Translations: Since these benchmarks are natively English, the authors translated them into German, French, and Hindi using the facebook/nllb-200-3.3B model, using placeholder preprocessing to keep mathematical expressions intact.

Key Insights and Ideas

  • The Intermediate Core: Cross-lingual parameter overlap isn't uniform. It peaks sharply in the intermediate layers of the models and drops off in the early and deep layers. This suggests that early layers handle surface-level linguistic features (script, tokenization), intermediate layers map concepts to a shared multilingual math substrate, and deep layers diverge into language-specific generation paths.
  • English Dominance: English consistently produces the largest set of math-relevant parameters across almost all layers. The model essentially builds a more distributed, redundant, and resilient internal circuit for English math problem-solving compared to lower-resource languages.
  • The Script Barrier: High-resource languages that share an alphabet (like French and German) exhibit the highest parameter overlap. Hindi, which uses the Devanagari script, shows significantly lower overlap with English, indicating that structural differences in tokenization force the model to use more disjoint parameter subsets.
  • Arithmetic vs. Logic: Interestingly, scaling up math-specific weights doesn't make the model more logically sound; instead, it primarily fixes arithmetic execution errors (e.g., correcting a basic addition mistake while keeping the underlying reasoning steps identical).

Key Results

  • Performance Correlation: The number of isolated math parameters directly ranks with language performance. English has the most, followed closely by German and French, with Hindi trailing significantly behind.
  • Circuit Overlap: Global Jaccard similarities sit well above the random baseline, confirming a shared core. For Llama 1B, the German-French pair shows the highest overlap (~0.38), while English-Hindi shows the lowest (~0.12).
Math-specific parameter counts and global Jaccard similarities for Llama 1B.
  • Collective Property: When the authors pruned random fractions of the math-specific parameters, performance degraded in a remarkably linear fashion. This proves that mathematical capability is a collective property distributed across the isolated network, rather than being driven by a few critical "genius" neurons.
The linear effect of pruning fractions of isolated math parameters on model performance.

Limitations and Future Work

While insightful, the authors note a few key limitations:

  1. Translation Fluency: Automated translation via NLLB, though manually sampled and verified, might still introduce subtle translation artifacts or unnatural phrasing that affects model activation.
  2. Reasoning Scope: The study focuses entirely on word-based math problems (GSM8K). Whether symbolic math, code generation, or formal logic follow this same "shared intermediate core" topology remains an open question.
  3. Language and Model Scale: The evaluation was restricted to a handful of languages (mostly Indo-European) and specific model families (Llama and Qwen). Expanding this mechanistic analysis to more diverse language families (e.g., Arabic, Chinese) is a vital next step.

Summary updated

BibTeX
@inproceedings{shomali2026llm,
  author = {Behzad Shomali and Luisa Victor and Tim Selbach and Ali Hamza Bashir and David Berghaus and Joachim Köhler and Mehdi Ali and Markus Frey},
  title = {{LLM Parameters for Math Across Languages: Shared or Separate?}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-srw.107},
}
Figure