auto-fpt: Automating Free Probability Theory Calculations for Machine Learning Theory

Arjun Subramonian, Elvis Dohmatob
4/14/2025
1 citation
cs.LGcs.MS

Official code: ArjunSubramonian/auto-fpt (3 stars, Python, MIT, last commit 2025-04-24).

Abstract

A large part of modern machine learning theory often involves computing the high-dimensional expected trace of a rational expression of large rectangular random matrices. To symbolically compute such quantities using free probability theory, we introduce auto-fpt, a lightweight Python and SymPy-based tool that can automatically produce a reduced system of fixed-point equations which can be solved for the quantities of interest, and effectively constitutes a theory.

Show full abstract

We overview the algorithmic ideas underlying auto-fpt and its applications to various interesting problems, such as the high-dimensional error of linearized feed-forward neural networks, recovering well-known results. We hope that auto-fpt streamlines the majority of calculations involved in high-dimensional analysis, while helping the machine learning community reproduce known and uncover new phenomena.

View on arXivView PDF

Code Implementations(1)

MIT

Automating Free Probability Theory (FPT) Computations for Machine Learning Theory

34PythonApr 3, 20251 years agoMIT

Similar Papers

Cite this paper

@article{subramonian2025autofpt,
  title  = {auto-fpt: Automating Free Probability Theory Calculations for Machine Learning Theory},
  author = {Arjun Subramonian and Elvis Dohmatob},
  year   = {2025},
  eprint = {2504.10754},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.10754v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.10754.svg)](https://codeofpaper.com/paper/2504.10754)

Discussion