arXiv:2610.12004cs.LGOct 2026

Manuscript Offprint

arXiv:2610.12004

The Polytopal Neural Network

A. Emilie J. Wedenborg, Anders V. Nørskov, Teresa Dorszewski, Kristoffer Wickstrøm, Morten Mørup

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Understanding how deep neural networks process information remains a central challenge. Existing interpretability methods often compromise structural fidelity, rely on prespecified corpora, or explain models post-hoc. We propose Polytopal Neural Networks (PNNs), a framework that extracts distinct layer-wise aspects by enforcing a polytope-based structure that is used directly in subsequent information processing. We scale our approach using learned corpus representations and an amortized simplex inference procedure and highlight how the framework also gives a direct route to vector quantized (VQ) training. In PNNs, observations are explicitly described by their alignment with layer-specific aspects. Empirical results show that imposing polytopal constraints on neural network representations preserves meaningful structures in the latent space with minimal degradation in performance, favorable compressed representations when compared to VQ representations in unsupervised learning, while also providing a performant new approach to VQ deep learning training. Our findings suggest that deep networks can enforce interpretable polytope-based representations, offering a principled path toward more transparent AI systems with minimal performance compromise.

1 INTRODUCTION

The increasing deployment of deep learning systems in scientific, industrial, and societal contexts has intensified the demand for methods that make their internal computations transparent and trustworthy [Longo

Morten Mørup

Technical University of Denmark

Figure

Figure 1: Two PathMNIST test images traced through two PNN layers (K = 10). Each layer passes a convex combination of archetypes to the next layer. Numbers denote mixture weights; each archetype is illustrated by its two nearest training images.

et al., 2024]. Yet, many existing approaches fail to explain how neural networks structure and transform information across layers. A substantial body of explainable AI (XAI) research has focused on post-hoc analyses of input-output behavior, including saliency-based attribution methods and activation visualizations [Bach et al., 2015, Selvaraju et al., 2017, Uendes et al., 2025]. Although such techniques can identify influential input regions, they offer limited insight into the internal mechanisms directing the representation learning within the network. This limitation is especially noticeable given consistent empirical evidence that deep networks develop structured, hierarchical representations, where early layers encode low-level attributes such as color and texture, while deeper layers assemble these primitives into higher-order concepts and object-level abstractions [Bau et al., 2017, Dorszewski et al., 2025, Vielhaben et al., 2024]. Despite their central role in learning and inference, these latent representations remain largely unconstrained and difficult to interpret, restricting their usefulness.

for mechanistic understanding, model validation, and scientific discovery.

We introduce Polytopal Neural Networks (PNNs), a class of architectures in which latent representations are explicitly constrained to lie on a polytope by use of simplex constraints (i.e., imposing non-negativity and sum-to-one constraints). This induces a structured, interpretable latent geometry in which each representation is expressed as a convex combination of learned archetypes defining the corners of the polytope (Figure 1). Crucially, this constraint is enforced during training and shapes the network's internal computations, rather than serving as a post-hoc explanation mechanism [Wedenborg et al., 2026]. PNNs are related to corpus-based explanation methods that express predictions as mixtures of exemplars [Crabbe et al., 2021]. However, these approaches rely on a fixed, user-defined corpus and aim to explain individual predictions after training. In contrast, PNNs learn the archetypal corpus end-to-end and enforce simplex constraints directly on the latent space, ensuring that predictions are intrinsically consistent with the interpretable polytope representations imposed at every layer.

We use interpretability to mean the extent to which a model's internal representations and computations can be understood in terms of identifiable components and their contributions. An explanation is intrinsic when those components are part of the computation producing the output, rather than estimated afterward. It is local when it describes an individual input and global when it describes structure shared across inputs. PNNs provide intrinsic local explanations through each input's mixture weights over archetypes, and global structure through the shared archetypes that define each layer's polytope. This guarantees a faithful description of the constrained representations.

PNN's use of archetypes as reference profiles is motivated by geometric accounts of cognition based on similarity and betweenness [Gärdenfors and Williams, 2001], and by evidence that contrastive categorization can favor extreme, idealized representatives along distinguishing dimensions [Davis and Love, 2010]. This framing connects the PNN to classical Archetypal Analysis (AA) [Cutler and Breiman, 1994, Mørup and Hansen, 2012], which models data as mixtures of extremal points lying on the convex hull. AA based models are well known for their interpretability, as both the archetypes and the mixture coefficients allow intuitive explanations. Integrating AA constraints into deep architectures, PNNs bridge the gap between interpretable, prototype-based modeling and high-capacity representation learning, ensuring the results remain strictly grounded in the original data.

The proposed framework also relates to vector quantization (VQ) methods, most notably vector quantized variational autoencoders (VQ-VAEs) [van den Oord et al., 2017], which replaces continuous latent manifolds with finite representations to promote compression, disentanglement, and efficient generative modeling. Both VQ-VAE and PNNs reduce latent complexity by constraining representations to a limited set of learned components. However, their mechanisms differ: VQ-VAE relies on hard nearest-neighbor assignments, exponential moving average (EMA) updates, and auxiliary optimization heuristics such as the straight-through estimator and commitment losses [van den Oord et al., 2017], whereas PNNs employ continuous convex combinations of archetypes, avoiding discrete assignment operations while preserving a compact and interpretable latent structure.

In summary, PNNs combine the strengths of Archetypal Analysis, Vector Quantization, and deep representation learning. Each layer decomposes activations into convex mixtures of learned archetypes, forming a sequence of sequential polytopes that jointly explain and reconstruct the model's internal representations. This polytopal structure enforces geometric consistency and provides an intrinsic explanation of each prediction through archetypal coefficients.

Specifically, our main contributions are:

(i) Polytopal representation learning. A layer-wise framework that constrains latent features to lie within learned polytopes, with AA constrained representations enforced exactly at every constrained layer.

(ii) Integrated interpretability. The coordinates used to explain a representation are also the coordinates that the next layer receives.

(iii) Scalable inference. A batched learning framework with (a) a compact corpus learned jointly with the network and updated from mini-batches and (b) amortized simplex inference.

(iv) A direct optimization route for VQ. Replacing the simplex with one-hot coordinates reduces the PNN to a VQ model whose codebook is grounded in the corpus and is trained without EMA updates, a commitment loss, or a straight-through estimator.

References (49)