TL;DR
TropNNC is a data-agnostic framework for structured neural network compression that leverages tropical geometry to prune neurons and filters. By treating network layers as tropical polynomials and approximating their corresponding geometric "zonotopes," it achieves performance competitive with state-of-the-art data-driven methods while providing the tightest theoretical compression bounds to date.
What Problem Does This Paper Address?
Deploying deep neural networks on resource-constrained edge devices is a constant struggle between model performance and hardware limits. While unstructured pruning (removing individual weights) can significantly shrink a model, it often results in sparse matrices that are difficult to accelerate on standard hardware. Structured pruning (removing entire neurons or convolutional channels) is more hardware-friendly but typically requires large training datasets and expensive fine-tuning to maintain accuracy.
Existing "data-free" pruning methods often lack a solid theoretical foundation or fail to generalize well to convolutional layers. TropNNC addresses this gap by using tropical geometry to provide a mathematically rigorous, data-independent way to identify and merge redundant components in ReLU-based networks.
Methods
The core idea of TropNNC is the mathematical equivalence between ReLU-activated neural networks and tropical rational functions.
The Geometry of a Layer
In tropical algebra, a ReLU layer can be viewed as a tropical polynomial. Geometrically, this polynomial corresponds to a zonotope—a convex polytope formed by the Minkowski sum of line segments (generators). Each generator represents a neuron's weights and bias.
Compression as Approximation
Pruning then becomes a geometric problem: how do we approximate a zonotope with many generators using one with fewer generators? TropNNC uses an iterative approach:
- Clustering: It uses K-Means to group similar neurons/channels based on their weight directions.
- Representative Selection: Unlike previous work that used the cluster mean, TropNNC uses the cluster sum. This better preserves the "volume" and functional properties of the original zonotope.
- Iterative Refinement: For multi-output layers, the authors propose a "simultaneous zonotope approximation" algorithm. It uses an alternating minimization scheme to fine-tune the weights of the remaining neurons to minimize the Hausdorff distance between the original and compressed geometric shapes.
Datasets
The authors evaluated TropNNC across a variety of standard benchmarks:
- MNIST & Fashion-MNIST: Used for initial validation on MLPs and simple CNNs.
- CIFAR-10 & CIFAR-100: Used to test deeper architectures like AlexNet and VGG.
- ImageNet: Used to evaluate the non-uniform variant of the algorithm on ResNet18.
Key Insights and Ideas
- Weights as Geometry: The "aha" moment is that weights aren't just parameters; they define the boundaries of a geometric object. If two neurons point in a similar direction, they contribute to the same "face" of the zonotope and are redundant.
- Data-Agnosticism: Because the geometry is baked into the weights, TropNNC doesn't need a single training image to decide what to prune. This makes it ideal for scenarios where data privacy is a concern or data is unavailable.
- The Importance of the "Outer" Hull: The authors found that prioritizing the approximation of the "upper hull" of the zonotope (the parts corresponding to the unbounded regions of the ReLU function) is critical for maintaining performance. They introduced a heuristic to drop bias terms during clustering to focus on these influential regions.
- Theoretical Tightness: By using the standard Hausdorff distance rather than discrete versions, the authors proved the tightest functional approximation bounds currently known in the field of tropical neural network analysis.
Key Results
TropNNC consistently outperforms previous tropical geometric methods and matches strong data-driven baselines like ThiNet.
- VGG on CIFAR-10: TropNNC maintained significantly higher accuracy than the data-free CUP baseline at high pruning rates. For instance, at a specific threshold, TropNNC achieved ~91.7% accuracy compared to CUP’s ~16% for a similar FLOP reduction.
- MNIST/Fashion-MNIST: TropNNC outperformed "Neural Path K-Means" across all pruning ratios, showing better robustness as more neurons were removed.
- Iterative vs. Non-Iterative: The iterative refinement (Algorithm 3) provided a clear performance boost, especially in complex multi-output scenarios.
Limitations and Future Work
- ReLU Only: The current mathematical framework relies on the piecewise linearity of ReLU. Extending this to other activations like GELU or Swish remains an open challenge.
- Architecture Sensitivity: While TropNNC excels on VGG-style architectures, the benefits were more modest on ResNet18. The authors suggest that the complex connectivity of ResNets (like skip connections) might require further optimization of the geometric approximation.
- Layer Dependency: The method currently relies on consecutive convolutional or linear layers. Future work could explore how to handle more varied architectural blocks.
In summary, TropNNC demonstrates that tropical geometry isn't just a theoretical curiosity—it's a powerful tool for practical, data-free model compression.
Summary updated