Compositionality Unlocks Deep Interpretable Models

Thomas Dooms, Ward Gauderis, Geraint A. Wiggins, José OramasarXiv 2025 · DOI

Deep learning has long been criticized as a "black box." While we can measure a model's accuracy, understanding why it makes a specific decision often involves post-hoc approximations that might not reflect the model's true inner workings. A new approach by Thomas Dooms and colleagues introduces the $χ$-net (CHI-net), an architecture designed to be "intrinsically interpretable" by borrowing the rigorous mathematical structure of tensor networks.

Bridging Tensor Networks and Neural Nets

The field of mechanistic interpretability aims to reverse-engineer neural networks into understandable algorithms. However, most modern networks are inherently non-decomposable, leading researchers to rely on "post-hoc" explanations—essentially guessing what a layer does after it's already trained. The authors argue this often leads to "streetlight interpretability," where we only find what we are looking for, rather than what the model actually uses.

The challenge is to create a model that is as expressive and efficient as a standard Deep Neural Network (DNN) but possesses the clear, decomposable structure of a Tensor Network. Tensor networks are mathematically transparent but usually limited to linear relations; DNNs are powerful but opaque. The $χ$-net aims to bridge this gap by treating the network as a structured mathematical object.

The $χ$-net Architecture

The core innovation is the $χ$-net architecture, which replaces standard non-linearities like ReLU or Sigmoid with a "non-linear cloning operator." This allows the network to be mathematically unrolled into a multilinear map. Each layer is parameterized as a "bilinear layer" using a transposed Khatri-Rao product of two matrices ($A$ and $B$).

The non-linear cloning operator allows for mathematical unrolling of the network into parallel branches.

By using category theory and string diagrams, the authors show that non-linear neural networks can be analyzed as tree tensor networks. This structure allows for "formal" interpretability rooted in linear algebra, where the model's weights themselves—rather than just its activations—become the primary objects of study.

Equivalence between the compact $χ$-net (left) and its unrolled tree tensor network representation (right).

The ODT Algorithm

To analyze and simplify these models, the researchers introduced the ODT (Orthogonalisation, Diagonalisation, and Truncation) algorithm. This is a novel three-step process inspired by Hierarchical Singular Value Decomposition (HSVD):

  1. Orthogonalisation: Makes the internal "cores" of the network orthonormal without changing behavior.
  2. Diagonalisation: Computes projection matrices for each "bond" (hidden dimension) to find the most important directions in the weight space.
  3. Truncation: Removes the least important dimensions (low-rank approximation), effectively compressing the model while maintaining performance.

Key Results and Insights

The researchers evaluated their model on the SVHN (Street View House Numbers) dataset, a real-world variant of MNIST that requires complex feature detection.

  • Competitive Accuracy: A 3-layer $χ$-net achieved 85.4% accuracy on SVHN, coming very close to a standard ReLU baseline (87.3%). For comparison, a purely linear model only achieves 23%.
  • Massive Compression: The ODT algorithm could remove 70% of the model's dimensions with zero drop in accuracy. Even at 90% removal, the drop in accuracy was minimal. This reveals that these models possess a linear low-rank "backbone" alongside a long tail of spurious correlations.
  • Visual Atoms: When the learned weights (atoms) are reshaped into images, they represent clear "proto-digits" and edge detectors, showing that the model's internal representation aligns with human-recognizable features.

Conclusion

The $χ$-net demonstrates that compositionality and rigorous mathematical structure can lead to models that are both performant and mechanistically interpretable. While this preliminary work focused on relatively small models, it provides a roadmap for scaling these principles to massive architectures like Transformers. By making the "black box" transparent by design, we move closer to building AI systems that are not only accurate but also truly understandable.

Summary updated

BibTeX
@misc{dooms2025compositionality,
  author = {Thomas Dooms and Ward Gauderis and Geraint A. Wiggins and José Oramas},
  title = {{Compositionality Unlocks Deep Interpretable Models}},
  year = {2025},
  eprint = {2504.02667},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.02667},
}
Figure