Int2Int: a framework for mathematics with transformers

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, atthis https URL.
View on arXiv@article{charton2025_2502.17513, title={ Int2Int: a framework for mathematics with transformers }, author={ François Charton }, journal={arXiv preprint arXiv:2502.17513}, year={ 2025 } }
Comments on this paper