Table of Contents
Fetching ...

Towards Combinatorial Interpretability of Neural Computation

Micah Adler, Dan Alistarh, Nir Shavit

TL;DR

The paper introduces combinatorial interpretability as a fundamentally different lens for neural computation, focusing on sign-based weight structures and the feature channel coding (FCC) hypothesis to reveal exact, static mechanisms by which networks compute Boolean functions. By decomposing weight matrices and analyzing feature codes, the authors demonstrate that gradient-descent trained networks develop identifiable FCCs, enabling direct extraction of the circuit and decoding its computations without activations or auxiliary autoencoders. They quantify how coding capacity governs scaling laws, show robust patterns across DNFs, CNFs, and a one-dimensional vision task, and propose a cascading disentanglement framework to extend the analysis to deeper networks. The approach offers a principled, mechanistic path to understand neural computation and provides potential foundations for both artificial and biological circuits, with implications for scalability, sparsity, and interpretability research. Overall, FCC advances a rigorous, code-centric view of neural computation that complements geometry-based perspectives and supplies concrete tools for static, weight-based mechanistic interpretation.

Abstract

We introduce combinatorial interpretability, a methodology for understanding neural computation by analyzing the combinatorial structures in the sign-based categorization of a network's weights and biases. We demonstrate its power through feature channel coding, a theory that explains how neural networks compute Boolean expressions and potentially underlies other categories of neural network computation. According to this theory, features are computed via feature channels: unique cross-neuron encodings shared among the inputs the feature operates on. Because different feature channels share neurons, the neurons are polysemantic and the channels interfere with one another, making the computation appear inscrutable. We show how to decipher these computations by analyzing a network's feature channel coding, offering complete mechanistic interpretations of several small neural networks that were trained with gradient descent. Crucially, this is achieved via static combinatorial analysis of the weight matrices, without examining activations or training new autoencoding networks. Feature channel coding reframes the superposition hypothesis, shifting the focus from neuron activation directionality in high-dimensional space to the combinatorial structure of codes. It also allows us for the first time to exactly quantify and explain the relationship between a network's parameter size and its computational capacity (i.e. the set of features it can compute with low error), a relationship that is implicitly at the core of many modern scaling laws. Though our initial studies of feature channel coding are restricted to Boolean functions, we believe they provide a rich, controlled, and informative research space, and that the path we propose for combinatorial interpretation of neural computation can provide a basis for understanding both artificial and biological neural circuits.

Towards Combinatorial Interpretability of Neural Computation

TL;DR

The paper introduces combinatorial interpretability as a fundamentally different lens for neural computation, focusing on sign-based weight structures and the feature channel coding (FCC) hypothesis to reveal exact, static mechanisms by which networks compute Boolean functions. By decomposing weight matrices and analyzing feature codes, the authors demonstrate that gradient-descent trained networks develop identifiable FCCs, enabling direct extraction of the circuit and decoding its computations without activations or auxiliary autoencoders. They quantify how coding capacity governs scaling laws, show robust patterns across DNFs, CNFs, and a one-dimensional vision task, and propose a cascading disentanglement framework to extend the analysis to deeper networks. The approach offers a principled, mechanistic path to understand neural computation and provides potential foundations for both artificial and biological circuits, with implications for scalability, sparsity, and interpretability research. Overall, FCC advances a rigorous, code-centric view of neural computation that complements geometry-based perspectives and supplies concrete tools for static, weight-based mechanistic interpretation.

Abstract

We introduce combinatorial interpretability, a methodology for understanding neural computation by analyzing the combinatorial structures in the sign-based categorization of a network's weights and biases. We demonstrate its power through feature channel coding, a theory that explains how neural networks compute Boolean expressions and potentially underlies other categories of neural network computation. According to this theory, features are computed via feature channels: unique cross-neuron encodings shared among the inputs the feature operates on. Because different feature channels share neurons, the neurons are polysemantic and the channels interfere with one another, making the computation appear inscrutable. We show how to decipher these computations by analyzing a network's feature channel coding, offering complete mechanistic interpretations of several small neural networks that were trained with gradient descent. Crucially, this is achieved via static combinatorial analysis of the weight matrices, without examining activations or training new autoencoding networks. Feature channel coding reframes the superposition hypothesis, shifting the focus from neuron activation directionality in high-dimensional space to the combinatorial structure of codes. It also allows us for the first time to exactly quantify and explain the relationship between a network's parameter size and its computational capacity (i.e. the set of features it can compute with low error), a relationship that is implicitly at the core of many modern scaling laws. Though our initial studies of feature channel coding are restricted to Boolean functions, we believe they provide a rich, controlled, and informative research space, and that the path we propose for combinatorial interpretation of neural computation can provide a basis for understanding both artificial and biological neural circuits.

Paper Structure

This paper contains 26 sections, 9 equations, 24 figures, 4 tables.

Figures (24)

  • Figure 1: A neural network that computes $(x_3 \land x_6)$, $(x_2 \land x_4)$, and $(x_7 \land x_9)$ using Feature Channel Coding for each AND adler2024.
  • Figure 2: All weights and biases for a neural network trained on the Boolean formula $(x_3 \land x_{11}) \lor (x_9 \land x_{13}) \lor (x_2 \land x_6) \lor (x_0 \land x_4) \lor (x_5 \land x_{12}) \lor (x_7 \land x_{15}) \lor (x_8 \land x_{10}) \lor (x_1 \land x_{14})$
  • Figure 3: Results on our algorithm to recreate a Boolean formula from its Layer 1 weight matrix.
  • Figure 4: Onset of training error as number of clauses increases.
  • Figure 5: Fraction of positive Layer 2 weights and negative Layer 1 bias.
  • ...and 19 more figures