NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On the Decision Boundaries of Neural Networks: A Tropical Geometry Perspective

Motasem Alfarra, Adel Bibi, Hasan Hammoud, Mohamed Gaafar, Bernard Ghanem · DOI

TL;DR

This paper introduces tropical geometry as a novel framework to understand and characterize the decision boundaries of neural networks with ReLU activations. By reformulating decision boundaries as geometric objects (polytopes and zonotopes), the authors provide new perspectives on the lottery ticket hypothesis, network pruning, and adversarial attacks, offering a more interpretable and geometrically grounded approach to these critical areas.

What Problem Does This Paper Address?

Deep neural networks (DNNs) have achieved remarkable success, but their inner workings, particularly the nature of their decision boundaries, remain largely a "black box." Understanding these boundaries is crucial for tasks like interpreting network behavior, improving robustness against adversarial attacks, and developing efficient network architectures through pruning. While previous work has explored the complexity of linear regions or the smoothness of decision boundaries, a unified geometric framework for characterizing these boundaries, especially for networks with piecewise linear activations like ReLU, has been lacking. This paper aims to bridge this gap by leveraging tropical geometry, a relatively new branch of algebraic geometry, to provide a precise geometric interpretation of DNN decision boundaries.

Methods

The core of this work lies in applying tropical geometry to analyze the decision boundaries of neural networks with (Affine, ReLU, Affine) architecture. The authors establish a connection between the decision boundaries of such networks and tropical hypersurfaces, which are geometric objects derived from tropical polynomials. Specifically, they show that the decision boundaries are contained within a tropical hypersurface, and the underlying geometric structure (the dual subdivision polytope) can be represented as the convex hull of two zonotopes. These zonotopes are directly parameterized by the network's weights.

This geometric characterization then enables novel approaches to:

  • Lottery Ticket Hypothesis: The authors propose viewing the lottery ticket hypothesis through the lens of preserving the orientation of the decision boundaries polytope under pruning and retraining.
  • Network Pruning: A new optimization problem is formulated to prune network parameters by preserving the geometric structure of the decision boundaries polytope. This involves minimizing the difference between the original and pruned network's dual subdivision.
  • Adversarial Attacks: The paper presents a "dual view" of adversarial attacks, where instead of perturbing inputs, network parameters are perturbed to shift the decision boundaries. Tropical geometry provides a means to geometrically construct these parameter perturbations.

Datasets

The paper uses several standard datasets for training and evaluating their methods:

  • SVHN (Street View House Numbers)
  • CIFAR10
  • CIFAR100
  • MNIST (for adversarial attacks)

They also mention using synthesized datasets for toy network experiments.

Key Insights and Ideas

  • Decision Boundaries as Geometric Objects: The most significant insight is the formalization of DNN decision boundaries as geometric structures (subsets of tropical hypersurfaces and related to polytopes/zonotopes). This provides a powerful new lens for analysis.
  • Tropical Geometry as a Unifying Framework: Tropical geometry offers a principled way to connect the algebraic structure of neural networks (weights, activations) to their geometric decision-making processes.
  • Lottery Ticket Hypothesis Reimagined: The paper suggests that the lottery ticket hypothesis might be explained by the preservation of the orientation of the decision boundaries polytope, not just the accuracy. Different initializations can lead to different polytopes with similar accuracy.
  • Geometric Pruning: Pruning can be viewed as preserving the essential geometric structure of the decision boundaries polytope, rather than just minimizing parameter values. This leads to a more principled pruning strategy.
  • Dual View of Adversarial Attacks: Shifting the focus from input perturbation to parameter perturbation for adversarial attacks offers a new perspective and a geometrically guided method for generating attacks.

Key Results

  • Theoretical Characterization: The paper provides a theoretical framework (Theorem 2) that precisely relates the decision boundaries of a simple (Affine, ReLU, Affine) network to the convex hull of two zonotopes.
  • Lottery Ticket Hypothesis Support: Experiments suggest that the "lottery ticket" initialization preserves the orientation of the decision boundaries polytope, while other initializations lead to significant deviations.
  • Effective Network Pruning: The proposed tropical pruning method achieves high pruning rates (up to 90%) with marginal drops in accuracy on datasets like SVHN, CIFAR10, and CIFAR100, often outperforming other methods.
  • Tropical Adversarial Attacks: The proposed method demonstrates the ability to construct adversarial examples by perturbing network parameters, leading to misclassifications. Experiments on MNIST show successful attacks with small perturbations.

Limitations and Future Work

  • Theoretical Focus on Shallow Networks: The core theoretical results are derived for a specific shallow network architecture (Affine, ReLU, Affine). While extensions to deeper networks are proposed heuristically, a formal tropical geometric characterization for deeper or more complex architectures is an open area.
  • Computational Complexity: While the tropical geometry framework offers new insights, the computation of zonotopes and their properties can still be computationally intensive, especially for very large networks.
  • Comparison to State-of-the-Art: The authors emphasize that their adversarial attack method is not primarily aimed at outperforming existing state-of-the-art attacks but rather at providing a novel geometric perspective.
  • Future Work: The authors suggest extending their work to convolutional neural networks (CNNs) and graph convolutional networks (GCNs). Further exploration of the geometric interpretation of other neural network properties and the development of more efficient algorithms for tropical geometric computations are also promising directions.

Summary updated

BibTeX
@article{alfarra2020decision,
  author = {Motasem Alfarra and Adel Bibi and Hasan Hammoud and Mohamed Gaafar and Bernard Ghanem},
  title = {{On the Decision Boundaries of Neural Networks: A Tropical Geometry Perspective}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2020},
  doi = {10.1109/tpami.2022.3201490},
}
Figure