Skip to main content
QUICK REVIEW

[Paper Review] Interpreting Neural Networks through the Polytope Lens

Sid Black, Lee Sharkey|arXiv (Cornell University)|Nov 22, 2022
Explainable Artificial Intelligence (XAI)Computer Science5 citations
TL;DR

This paper introduces the 'polytope lens' as a new framework for mechanistic interpretability of neural networks, arguing that piecewise-linear activation functions partition activation space into discrete polytopes—geometric regions that serve as more fundamental units than neurons or directions. The authors show polytopes can identify monosemantic regions and reflect semantic boundaries, offering a more robust abstraction for understanding nonlinear representations.

ABSTRACT

Mechanistic interpretability aims to explain what a neural network has learned at a nuts-and-bolts level. What are the fundamental primitives of neural network representations? Previous mechanistic descriptions have used individual neurons or their linear combinations to understand the representations a network has learned. But there are clues that neurons and their linear combinations are not the correct fundamental units of description: directions cannot describe how neural networks use nonlinearities to structure their representations. Moreover, many instances of individual neurons and their combinations are polysemantic (i.e. they have multiple unrelated meanings). Polysemanticity makes interpreting the network in terms of neurons or directions challenging since we can no longer assign a specific feature to a neural unit. In order to find a basic unit of description that does not suffer from these problems, we zoom in beyond just directions to study the way that piecewise linear activation functions (such as ReLU) partition the activation space into numerous discrete polytopes. We call this perspective the polytope lens. The polytope lens makes concrete predictions about the behavior of neural networks, which we evaluate through experiments on both convolutional image classifiers and language models. Specifically, we show that polytopes can be used to identify monosemantic regions of activation space (while directions are not in general monosemantic) and that the density of polytope boundaries reflect semantic boundaries. We also outline a vision for what mechanistic interpretability might look like through the polytope lens.

Motivation & Objective

  • To address the limitations of neurons and directions as fundamental units in mechanistic interpretability, particularly polysemanticity and failure to account for nonlinearity.
  • To propose polytopes—regions defined by piecewise-linear activation functions—as a more principled, geometric basis for describing neural network representations.
  • To evaluate whether polytopes can identify monosemantic activation regions where neurons or directions fail.
  • To investigate whether polytope boundaries align with semantic boundaries in both vision and language models.
  • To lay the foundation for a less 'leaky' abstraction in mechanistic interpretability by focusing on the nonlinear structure of activation space.

Proposed method

  • Model neural networks as max-affine spline operators (MASOs), which mathematically describe how ReLU-based networks partition activation space into polytopes.
  • Define polytopes as the regions bounded by hyperplanes from ReLU nonlinearities, where each region corresponds to a specific linear transformation.
  • Use activation interpolation between inputs to compute polytope density and visualize how boundaries shift with semantic content.
  • Apply scaling and visualization techniques to activation vectors to map polytope boundaries and assess their alignment with semantic changes.
  • Identify monosemantic regions by analyzing where activation vectors remain within a single polytope across diverse inputs.
  • Compare polytope-based interpretations with traditional neuron/direction-based methods to evaluate robustness and semantic coherence.

Experimental results

Research questions

  • RQ1Can polytopes serve as more reliable and monosemantic units of representation than individual neurons or linear directions in neural networks?
  • RQ2Do polytope boundaries in activation space correspond to meaningful semantic boundaries between different input concepts?
  • RQ3How does the density of polytope boundaries relate to semantic transitions in input data, such as image or text interpolations?
  • RQ4To what extent do polytopes enable a more accurate and less ambiguous mechanistic interpretation of neural network behavior compared to linear feature directions?
  • RQ5Can the polytope lens reveal structural properties of superposition and interference in high-dimensional representations?

Key findings

  • Polytopes can identify monosemantic regions in activation space where individual neurons or directions are polysemantic, demonstrating that polytopes provide a more coherent unit of interpretation.
  • Polytope boundaries reflect semantic boundaries in both image classifiers and language models, as shown by interpolation experiments where boundary density increases at semantic transitions.
  • The polytope lens reveals that directions are not globally interpretable: a direction may be monosemantic in one region but polysemantic in another, depending on the activation polytope.
  • The method successfully identifies interpretable, monosemantic features in both vision and language models, with examples showing that polytopes capture feature boundaries more precisely than linear directions.
  • The framework predicts that feature-directions are on- or off-distribution depending on which polytope the activation lies in, offering a geometric criterion for distributional generalization.
  • The polytope lens provides a more robust abstraction than neurons or directions by accounting for the nonlinear structure of activation space, reducing interpretability illusions caused by superposition and polysemanticity.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.