mlsanityData to 14 Oct 2026

Learning Large-Scale Modular Addition with an Auxiliary Modulus

arXiv 2605.07648 ↗First posted 8 May 2026cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Learning parity functions, more general modular addition, is a challenging machine learning task due to its input sensitivity. A recent study substantially scaled modular addition learning in both the number of summands and the modulus. Its key idea is to increase zeros in training sequences, reducing the effective number of summands and thus controlling training difficulty; however, this induces covariate shift between training and test input distributions. This study theoretically and empirically analyzes this side effect and proposes a covariate-shift-free method for modular addition. Specifically, we introduce an auxiliary modulus Kq during training, which reduces wrap-around frequency and problem difficulty while preserving the same input distribution across training and testing. Experiments show strong scalability and sample efficiency: even for large input length N, large modulus q, and small datasets -- where the sparse method fails to learn -- our method achieves equal or better match accuracy and relaxed τ-accuracy. For example, at N=64 and q=974269, our method trained on 100K samples achieves 97.0% τ-accuracy at τ=0.05, while the sparse method achieves only 9.5% with the same data size and 93.9% even when extended to 1M samples.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 24 of its 29 references that are in the map. First posted on arXiv 8 May 2026.

Builds on

24 of 29 references.

References · 24

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  2. 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,611
  3. 2023Progress measures for grokking via mechanistic interpretabilitycited by 839
  4. 2017An Overview of Multi-Task Learning in Deep Neural Networkscited by 803
  5. 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 629
  6. 2022Towards Understanding Grokking: An Effective Theory of Representation Learningcited by 230
  7. 2023The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networkscited by 156
  8. 2023Teaching Arithmetic to Small Transformerscited by 123
  9. 2017Failures of Gradient-Based Deep Learningcited by 80
  10. 2020Learning Parities with Neural Networkscited by 78
  11. 2024Why are Sensitive Functions Hard for Transformers?cited by 74
  12. 2024Transformers Provably Solve Parity Efficiently with Chain of Thoughtcited by 50
12 more
  1. 2022Sub-Task Decomposition Enables Learning in Sequence to Sequence Taskscited by 41
  2. 2024Why Do You Grok? A Theoretical Analysis of Grokking Modular Additioncited by 36
  3. 2024Global Lyapunov functions: a long-standing open problem in mathematics, with symbolic transformerscited by 29
  4. 2023Provable Advantage of Curriculum Learning on Parity Targets with Mixed Inputscited by 22
  5. 2024Grokking Modular Polynomialscited by 18
  6. 2024Towards Empirical Interpretation of Internal Circuits and Properties in Grokked Transformers on Modular Polynomialscited by 14
  7. 2025Uncovering a Universal Abstract Algorithm for Modular Addition in Neural Networkscited by 10
  8. 2023Learning to Compute Gr"obner Basescited by 7
  9. 2024Salsa Fresca: Angular Embeddings and Pre-Training for ML Attacks on Learning With Errorscited by 7
  10. 2025Computational Algebra with Attention: Transformer Oracles for Border Basis Algorithmscited by 7
  11. 2024Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmeticcited by 4
  12. 2025Small Models, Smarter Learning: The Power of Joint Task Trainingcited by 1

Built on by

Not cited yet.