Int2Int: A framework for mathematics with transformers

Read full text
Authors: François Charton
Cited by: 0

Abstract

This paper documents Int2Int, an open source code base for using transformers on problems of mathematical research, with a focus on number theory and other problems involving integers. Int2Int is a complete PyTorch implementation of a transformer architecture, together with training and evaluation loops, and classes and functions to represent, generate and decode common mathematical objects. Ancillary code for data preparation, and Jupyter Notebooks for visualizing experimental results are also provided. This document presents the main features of Int2Int, serves as its user manual, and provides guidelines on how to extend it. Int2Int is released under the MIT licence, at https://github.com/f-charton/Int2Int.

Fields of Study & Subjects

Numerical Methods and Algorithms Mathematical and Theoretical Analysis Neural Networks and Applications

Publication details

Journal / source
Advances in Theoretical and Mathematical Physics
Volume
29
Issue
8
Pages
2201–2224
Publication date
1 January 2026
Language
EN