A Computational Tropical Geometry Framework for Neural Networks
cs.LG, math.AG
Submitted: 2024-05-30
Updated: 2026-09-17
Code: https://github.com/Paul-Lez/tropicalnn
License: http://creativecommons.org/licenses/by/4.0/
The gist: We propose a computational tropical geometry framework for the symbolic analysis of neural networks with tropical activations.
Terminology
Abstract
We propose a computational tropical geometry framework for the symbolic analysis of neural networks with tropical activations. The number of linear regions of a neural network has been actively studied as a measure of the expressivity of a given architecture. To study these, we work in the setting of tropical geometry---a combinatorial and polyhedral variant of algebraic geometry---where there are known connections between tropical rational maps and feedforward neural networks. We expand this connection by developing concrete computational tools for studying the linear regions of neural networks. We present an algorithm, together with a proof of correctness, which computes the linear regions of a neural network as explicit unions of polyhedra. We further relate the computation of the number of linear regions of a tropical expression to the number of monomials that appear in it, and show how tropical expressions can often be pruned to remove redundant monomials. We introduce the Hoffman constant of a neural network's tropical expression, a geometric quantity that controls the distance from any point in the input space to the farthest linear region. We provide the open source Julia library TropicalNN.jl, which is built on top of the OSCAR computer algebra system and implements the algorithms mentioned above to analyze neural networks symbolically using their tropical representations. We present a set of proof-of-concept computational examples to demonstrate how our tropical geometric theory can be applied to reveal insights on the expressivity of a network architecture.
Sources
- Understanding Deep Neural Networks with Rectified Linear Units
- The Real Tropical Geometry of Neural Networks
- Geometric Deep Learning: Grids, Groups, Graphs, Geodesics, and Gauges
- A Tropical Approach to Neural Networks with Piecewise Linear Activations
- On the number of response regions of deep feed forward networks with piece-wise linear activations
- Tropical Decision Boundaries for Neural Networks Are Robust Against Adversarial Attacks
- An algorithm to compute the Hoffman constant of a system of linear constraints
- Equivalence and invariance of the chi and Hoffman constants of a matrix
- Survey of Expressivity in Deep Neural Networks
- Empirical Bounds on Linear Regions of Deep Rectifier Networks
- Tropical neural networks and its applications to classifying phylogenetic trees
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: Local-Consistency Optimisation for Bayesian Neural Networks
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks