AffineLens: Capturing the Continuous Piecewise Affine Functions of Neural Networks
Yi Wei, Xuan Qi, Furao Shen, Jian Zhao, Vittorio Murino, Cigdem Beyan

TL;DR
AffineLens offers a practical method to analyze and visualize the geometric structure of piecewise affine neural networks, enhancing interpretability and understanding of their expressivity.
Contribution
It introduces AffineLens, a unified framework for computing and visualizing the hyperplane arrangements and regions of PANNs, supporting modern neural network components.
Findings
Enables enumeration of affine sub-regions within bounded input domains.
Supports visualization of decision boundaries and region partitioning.
Facilitates empirical analysis of how architecture affects network expressivity.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
