A Tropical Approach to Neural Networks with Piecewise Linear Activations

Vasileios Charisopoulos, Petros MaragosarXiv 2018

This research provides a fascinating mathematical bridge between the world of deep learning and tropical geometry. By treating neural networks as algebraic objects, the authors offer new ways to measure and bound the complexity of the functions these networks can learn.

The Expressivity Problem

A central question in deep learning theory is: How "expressive" is a neural network? For networks using piecewise linear (PWL) activations—the industry standard—the function the network computes is essentially a patchwork of different linear pieces. The number of these "linear regions" is a common proxy for a model's complexity and its ability to approximate complicated data.

However, counting these regions is difficult. Previous theoretical bounds were often loose, and exact counting is computationally prohibitive. The authors aim to provide a more elegant mathematical framework to understand these regions and a practical way to count them.

Methods: Tropical Algebra

The paper relies on Tropical Algebra (also known as max-plus algebra), where the standard operations of addition and multiplication are replaced by $\max$ and $+$.

Comparison of standard linear arithmetic and tropical (max, +) arithmetic.

By leveraging this mapping, the authors demonstrate that a layer of neurons with ReLU or Maxout activations can be written as a "tropical signomial." This allows them to establish a duality between these tropical polynomials and Newton Polytopes (convex shapes in high-dimensional space). Specifically, the number of linear regions in a network layer corresponds to the number of vertices on the "upper hull" of a specific polytope.

Key Insights and Geometric Duality

The most profound insight is that the architecture of a modern neural network is not just like a tropical polynomial; it is one. This allows researchers to use decades of discrete geometry research to study AI.

Partitioning of the input space into linear regions defined by tropical polynomials.

As shown in the figure above, the input space is partitioned into regions where different terms of the tropical polynomial dominate. The authors identify that ReLU layers correspond to a special class of polytopes called zonotopes (Minkowski sums of line segments). Because zonotopes are centrally symmetric, their upper and lower hulls are identical, which simplifies the math significantly.

Key Results

  • Refined Bounds: For a ReLU layer with $n$ inputs and $m$ outputs, the authors refine the upper bound for linear regions to: $$\min \left( 2^m, \sum_{j=0}^n \binom{m}{j} \right)$$ This confirms and mathematically grounds previous observations in the field.

  • Convolutional Layer Bounds: They provide a specific corollary for convolutional layers, showing how filter size ($k$), padding ($p$), and image size ($d$) interact to limit the number of linear regions.

  • Efficient Estimation: To avoid the "curse of dimensionality," they propose a randomized sampling algorithm. By sampling random vectors and finding which vertices they "hit," they can estimate the number of linear regions much faster than traditional methods.

Limitations and Future Work

The success of their sampling algorithm depends on a parameter $\eta$ related to the "solid angles" of the polytope's vertices. If a vertex is very "sharp," the random sampler is unlikely to find it. Furthermore, while the paper hints at deep networks, the primary rigorous results are for single layers. Extending the "tropicalization" to the composition of many layers remains a complex challenge because the composition of tropical polynomials is more difficult to visualize geometrically.

Summary updated

BibTeX
@misc{charisopoulos2018tropical,
  author = {Vasileios Charisopoulos and Petros Maragos},
  title = {{A Tropical Approach to Neural Networks with Piecewise Linear Activations}},
  year = {2018},
  eprint = {1805.08749},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.08749},
}
Figure