Table of Contents
Fetching ...

Analyzing Neural Network Robustness Using Graph Curvature

Shuhang Tan, Jayson Sia, Paul Bogdan, Radoslav Ivanov

TL;DR

This work reframes neural network robustness as a graph-curvature problem by introducing neural data graphs and neural Ricci curvature ($\mathrm{NRC}$). $\mathrm{NRC}$ is computed as Ollivier-Ricci curvature on graphs constructed from NN edges, with edge weights reflecting both network parameters and input-driven data flow; bottleneck edges correspond to negative curvature and potential robustness vulnerabilities. Empirical results on MNIST show that more $\varepsilon$-robust examples have fewer negative-$\mathrm{NRC}$ edges, suggesting a graph-based path to robustness and a direction for training regularization that minimizes problematic edges. Overall, the paper provides a concrete framework for identifying and potentially mitigating robustness bottlenecks via graph-based curvature, offering an alternative to optimization-heavy robustness methods and guiding future work on multi-dataset evaluation and penalty-based robust training.

Abstract

This paper presents a new look at the neural network (NN) robustness problem, from the point of view of graph theory analysis, specifically graph curvature. Graph curvature (e.g., Ricci curvature) has been used to analyze system dynamics and identify bottlenecks in many domains, including road traffic analysis and internet routing. We define the notion of neural Ricci curvature and use it to identify bottleneck NN edges that are heavily used to ``transport data" to the NN outputs. We provide an evaluation on MNIST that illustrates that such edges indeed occur more frequently for inputs where NNs are less robust. These results will serve as the basis for an alternative method of robust training, by minimizing the number of bottleneck edges.

Analyzing Neural Network Robustness Using Graph Curvature

TL;DR

This work reframes neural network robustness as a graph-curvature problem by introducing neural data graphs and neural Ricci curvature (). is computed as Ollivier-Ricci curvature on graphs constructed from NN edges, with edge weights reflecting both network parameters and input-driven data flow; bottleneck edges correspond to negative curvature and potential robustness vulnerabilities. Empirical results on MNIST show that more -robust examples have fewer negative- edges, suggesting a graph-based path to robustness and a direction for training regularization that minimizes problematic edges. Overall, the paper provides a concrete framework for identifying and potentially mitigating robustness bottlenecks via graph-based curvature, offering an alternative to optimization-heavy robustness methods and guiding future work on multi-dataset evaluation and penalty-based robust training.

Abstract

This paper presents a new look at the neural network (NN) robustness problem, from the point of view of graph theory analysis, specifically graph curvature. Graph curvature (e.g., Ricci curvature) has been used to analyze system dynamics and identify bottlenecks in many domains, including road traffic analysis and internet routing. We define the notion of neural Ricci curvature and use it to identify bottleneck NN edges that are heavily used to ``transport data" to the NN outputs. We provide an evaluation on MNIST that illustrates that such edges indeed occur more frequently for inputs where NNs are less robust. These results will serve as the basis for an alternative method of robust training, by minimizing the number of bottleneck edges.

Paper Structure

This paper contains 6 sections, 4 equations, 3 figures, 2 tables, 1 algorithm.

Figures (3)

  • Figure 1: CDF plots of 10 test examples each for two levels of $\varepsilon$, for the three two-layer NN setups. Note that the 0.03-robust examples are chosen such that they are 0.05-nonrobust.
  • Figure 2: AUC results, averaged over 70 test examples per label and per $\varepsilon$, for the three two-layer NN setups. Values of 0 mean that no robust examples could be found for that value of $\varepsilon$.
  • Figure : Mixed-Sign Weights Normalization

Theorems & Definitions (4)

  • Definition 1: Ollivier-Ricci Curvature ollivier2009ricci
  • Definition 2: Neural Graph
  • Definition 3: Neural Data Graph
  • Definition 4: Neural Ricci Curvature