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

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

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

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 representing these boundaries as geometric objects (polytopes and zonotopes), the authors offer new perspectives on the lottery ticket hypothesis, network pruning, and adversarial attacks, demonstrating improved performance in pruning and a new geometric approach to adversarial attacks.

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 somewhat elusive. Understanding these boundaries is crucial for tasks like ensuring network robustness, efficient pruning, and generating effective adversarial attacks. Existing methods often struggle to provide a clear geometric interpretation of these complex decision surfaces, especially for networks with piecewise linear activations like ReLU. This paper aims to bridge this gap by leveraging tropical geometry, a branch of algebraic geometry, to provide a rigorous geometric characterization of DNN decision boundaries.

Methods

The core of this work lies in applying tropical geometry to analyze DNNs. Specifically, the authors focus on networks with an (Affine, ReLU, Affine) architecture. They establish that the decision boundaries of such networks can be characterized as a subset of a "tropical hypersurface," which is intimately related to a "decision boundaries polytope." This polytope is further shown to be the convex hull of two "zonotopes," whose generators are directly derived from the network's parameters (weights and biases).

Key methodological contributions include:

  • Geometric Characterization: Deriving a precise geometric representation of decision boundaries using tropical geometry, specifically as the convex hull of two zonotopes.
  • Tropical Lottery Ticket Hypothesis: Reinterpreting the lottery ticket hypothesis through the lens of preserving the orientation of the decision boundaries polytope during pruning.
  • Tropical Pruning: Developing a novel optimization-based approach for network pruning that directly aims to preserve the geometric structure of the decision boundaries polytope.
  • Tropical Adversarial Attacks: Formulating a "dual view" of adversarial attacks, where instead of perturbing inputs, network parameters are perturbed to shift decision boundaries, enabling targeted attacks.

Datasets

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

  • SVHN (Street View House Numbers)
  • CIFAR10
  • CIFAR100
  • MNIST
  • Synthesized Binary Datasets (used for illustrative purposes and toy network experiments)

Key Insights and Ideas

  • Decision Boundaries as Geometric Objects: The most significant insight is the successful mapping of complex DNN decision boundaries to well-defined geometric structures like polytopes and zonotopes using tropical geometry. This provides a powerful new lens for analysis.
  • Tropical Geometry as a Unifying Framework: Tropical geometry offers a consistent mathematical language to connect seemingly disparate concepts like network structure, decision boundaries, and optimization objectives.
  • Lottery Ticket Hypothesis Explained Geometrically: The paper suggests that the lottery ticket hypothesis might work because certain pruning strategies, particularly those using the original initialization, preserve the geometric orientation of the decision boundaries polytope, thus maintaining performance.
  • Pruning by Preserving Geometry: The proposed tropical pruning method directly optimizes for the preservation of the decision boundaries polytope, offering a more principled approach than magnitude-based pruning.
  • Dual View of Adversarial Attacks: Shifting the focus from input perturbation to parameter perturbation for adversarial attacks provides a new perspective and a geometrically grounded method for constructing attacks.

Key Results

  • Network Pruning: The tropical pruning method achieved up to 90% pruning rates on AlexNet and VGG16 across SVHN, CIFAR10, and CIFAR100 datasets with marginal drops in accuracy. In many cases, it outperformed other pruning methods in terms of Area Under the Curve (AUC) for pruning-accuracy plots.
  • Lottery Ticket Hypothesis: Experiments showed that using the original initialization for pruned networks preserved the orientation of the decision boundaries polytope, unlike other initializations which led to significant deviations and reduced accuracy.
  • Adversarial Attacks: The proposed tropical adversarial attack method successfully caused misclassifications on MNIST images, demonstrating the effectiveness of perturbing network parameters to shift decision boundaries. The method showed improved attack success rates and reduced robust accuracy compared to some baseline approaches.

Limitations and Future Work

  • Theoretical Focus: While the theoretical results are primarily derived for shallow (Affine, ReLU, Affine) networks, the paper proposes a heuristic extension to deeper networks.
  • Computational Complexity: Constructing and enumerating zonotope vertices can be computationally intensive, although the paper presents methods to make this more efficient.
  • Comparison with 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 this framework to convolutional neural networks (CNNs) and graph convolutional networks (GCNs). Further exploration of the geometric interpretation of other network properties and optimization objectives is also a promising direction.

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 Deep Neural Networks: A Tropical Geometry Perspective}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2020},
  doi = {10.1109/tpami.2022.3201490},
}
Figure