# Machine learning modularity

arXiv: https://arxiv.org/abs/2601.01779 · HTML: https://mlsanity.com/paper/2601.01779/

## Key facts

- No citing papers in the map yet (data through 14 Oct 2026).
- Builds on 13 of its 91 references that are in the map.
- First posted on arXiv 5 Jan 2026.

## Builds on (most cited first, 13 of 13)

- [Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer](https://mlsanity.com/paper/1910.10683/) (2019)
- [Scaling Instruction-Finetuned Language Models](https://mlsanity.com/paper/2210.11416/) (2022)
- [HuggingFace's Transformers: State-of-the-art Natural Language Processing](https://mlsanity.com/paper/1910.03771/) (2019)
- [Deep Learning for Symbolic Mathematics](https://mlsanity.com/paper/1912.01412/) (2019)
- [Neural Network Approximations for Calabi-Yau Metrics](https://mlsanity.com/paper/2012.15821/) (2020)
- [Machine learning Calabi-Yau metrics](https://mlsanity.com/paper/1910.08605/) (2019)
- [Transforming the Bootstrap: Using Transformers to Compute Scattering Amplitudes in Planar N = 4 Super Yang-Mills Theory](https://mlsanity.com/paper/2405.06107/) (2024)
- [Simplifying Polylogarithms with Machine Learning](https://mlsanity.com/paper/2206.04115/) (2022)
- [Gravitational Duals from Equations of State](https://mlsanity.com/paper/2403.14763/) (2024)
- [AdS/Deep-Learning made easy: simple examples](https://mlsanity.com/paper/2011.13726/) (2020)
- [Learning the Simplicity of Scattering Amplitudes](https://mlsanity.com/paper/2408.04720/) (2024)
- [Refining Integration-by-Parts Reduction of Feynman Integrals with Machine Learning](https://mlsanity.com/paper/2502.05121/) (2025)
- [Learning the Inverse Ryu--Takayanagi Formula with Transformers](https://mlsanity.com/paper/2511.06387/) (2025)

## Abstract (arXiv)

Based on a transformer based sequence-to-sequence architecture combined with a dynamic batching algorithm, this work introduces a machine learning framework for automatically simplifying complex expressions involving multiple elliptic Gamma functions, including the q-θ function and the elliptic Gamma function. The model learns to apply algebraic identities, particularly the SL(2,mathbbZ) and SL(3,mathbbZ) modular transformations, to reduce heavily scrambled expressions to their canonical forms. Experimental results show that the model achieves over 99% accuracy on in-distribution tests and maintains robust performance (exceeding 90% accuracy) under significant extrapolation, such as with deeper scrambling depths. This demonstrates that the model has internalized the underlying algebraic rules of modular transformations rather than merely memorizing training patterns. Our work presents the first successful application of machine learning to perform symbolic simplification using modular identities, offering a new automated tool for computations with special functions in quantum field theory and the string theory.
