SplineCam: Exact Visualization and Characterization of Deep Network Geometry and Decision Boundaries
Ahmed Imtiaz Humayun, Randall Balestriero, Guha Balakrishnan, Richard Baraniuk
TL;DR
SplineCam tackles the challenge of exactly visualizing and characterizing the geometry of deep networks with CPWL activations by providing a provably exact, sampling-free method to enumerate input-space partitions and the network's decision boundary. Grounded in a MASO/CPA formulation, it expresses layer mappings as region-wise affine transforms with unique per-region derivatives $\boldsymbol{q}^\ell_\omega$, and derives an algorithm that builds a hyperplane intersection graph to enumerate regions and back-project layer hyperplanes, yielding the boundary $\cup_{\omega\in\Omega} \{ \text{proj}_{\omega}(h_1^L) \cap \omega \}$. The approach enables visualization, partition statistics, and boundary sampling for architecture comparison, generalization analysis, and INR/SDF studies. Empirically, it reveals how architecture (e.g., CNN vs MLP), data augmentation, and positional encoding affect partition density and decision boundaries, with applications to implicit neural representations and signed distance functions, offering a tool for boundary-aware initialization and diagnostics.
Abstract
Current Deep Network (DN) visualization and interpretability methods rely heavily on data space visualizations such as scoring which dimensions of the data are responsible for their associated prediction or generating new data features or samples that best match a given DN unit or representation. In this paper, we go one step further by developing the first provably exact method for computing the geometry of a DN's mapping - including its decision boundary - over a specified region of the data space. By leveraging the theory of Continuous Piece-Wise Linear (CPWL) spline DNs, SplineCam exactly computes a DNs geometry without resorting to approximations such as sampling or architecture simplification. SplineCam applies to any DN architecture based on CPWL nonlinearities, including (leaky-)ReLU, absolute value, maxout, and max-pooling and can also be applied to regression DNs such as implicit neural representations. Beyond decision boundary visualization and characterization, SplineCam enables one to compare architectures, measure generalizability and sample from the decision boundary on or off the manifold. Project Website: bit.ly/splinecam.
