AffineLens: Capturing the Continuous Piecewise Affine Functions of Neural Networks
Not on the map. Why?
Abstract (arXiv)
Piecewise affine neural networks (PANNs) provide a principled geometric perspective on neural network expressivity by characterizing the input--output map as a continuous piecewise affine (CPA) function whose complexity is governed by the number, arrangement, and shapes of its affine regions. However, existing interpretability and expressivity analyses often rely on indirect proxies (e.g., activation statistics or theoretical upper bounds) and rarely offer practical, accurate tools for enumerating and visualizing the induced region partition under realistic architectures and bounded input domains. In this work, we present AffineLens, a unified framework for computing the hyperplane arrangements and polyhedral structures underlying PANNs. Given a calibrated (bounded) input polytope, AffineLens identifies the subset of neuron-induced hyperplanes that intersect the domain, enumerates the resulting affine sub-regions in a layer-wise manner, and returns provably non-empty maximal CPA regions together with interior representatives. The framework further provides visualizations of region partitioning and decision boundaries, enabling qualitative inspection alongside quantitative region counts. By exploiting the affine restriction property of CPA networks under fixed activation patterns, AffineLens supports a broad class of modern components, including batch normalization, pooling, residual connections, multilayer perceptrons, and convolutional layers. Finally, we use AffineLens to perform a systematic empirical study of architectural expressivity, comparing networks through region complexity metrics and revealing how design choices influence the geometry of learned functions.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 27 of its 47 references that are in the map. First posted on arXiv 7 May 2026.
Builds on
27 of 47 references.
References · 27
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 7,005
- 2014On the Number of Linear Regions of Deep Neural Networkscited by 381
- 2019Deep ReLU Networks Have Surprisingly Few Activation Patternscited by 161
- 2019Reverse-Engineering Deep ReLU Networkscited by 83
- 2021Towards Lower Bounds on the Depth of ReLU Neural Networkscited by 56
- 2019The Geometry of Deep Networks: Power Diagram Subdivisioncited by 53
- 2020Empirical Studies on the Properties of Linear Regions in Deep Neural Networkscited by 36
- 2023Lower Bounds on the Depth of Integral ReLU Neural Networks via Lattice Polytopescited by 36
- 2020On transversality of bent hyperplane arrangements and the topological expressiveness of ReLU neural networkscited by 35
- 2023SplineCam: Exact Visualization and Characterization of Deep Network Geometry and Decision Boundariescited by 31
- 2022Improved Bounds on Neural Complexity for Representing Piecewise Linear Functionscited by 26
15 more
- 2022On the Number of Regions of Piecewise Linear Neural Networkscited by 21
- 2025On the Expressiveness of Rational ReLU Neural Networks With Bounded Depthcited by 18
- 2021Deep ReLU Networks Preserve Expected Lengthcited by 17
- 2021On the Expected Complexity of Maxout Networkscited by 15
- 2023Polyhedral Complex Extraction from ReLU Networks using Edge Subdivisioncited by 14
- 2022Effects of Data Geometry in Early Deep Learningcited by 12
- 2023Exact Count of Boundary Pieces of ReLU Classifiers: Towards the Proper Complexity Measure for Classificationcited by 11
- 2022Lower and Upper Bounds for Numbers of Linear Regions of Graph Convolutional Networkscited by 9
- 2024On the Local Complexity of Linear Regions in Deep ReLU Networkscited by 9
- 2022Piecewise Linear Neural Networks and Deep Learningcited by 7
- 2022Understanding the Evolution of Linear Regions in Deep Reinforcement Learningcited by 7
- 2024Fast and Exact Enumeration of Deep Networks Partitions Regionscited by 5
- 2023Compelling ReLU Networks to Exhibit Exponentially Many Linear Regions at Initialization and During Trainingcited by 4
- 2025Time to Spike? Understanding the Representational Power of Spiking Neural Networks in Discrete Timecited by 4
- 2023The Evolution of the Interplay Between Input Distributions and Linear Regions in Networkscited by 3
Built on by
Citing papers per year: 2026: 1.
1 paper.