Abstract
This paper formalizes AI interpretability as inference equivariance, bridging the gap between informal intuition and rigorous mathematical frameworks. By defining interpretability through commutative diagrams between model logic and human understanding, the authors establish a blueprint for models that are interpretable by construction. The work is accompanied by PyC, an open-source library designed to support these foundational principles.
Introduction
The field of eXplainable AI (XAI) has seen rapid growth, yet it remains hampered by the lack of a foundational, mathematical definition of interpretability. Most current approaches are post-hoc, attempting to explain "black-box" models after they are built. This often leads to misleading explanations that do not reflect the model's true internal reasoning. This paper proposes a shift from informal intuition to a rigorous engineering framework by defining interpretability as inference equivariance. By formalizing the target, the authors aim to turn interpretability into a well-posed design problem.
Interpretability as Inference Equivariance
The core of the proposed framework is the formalization of interpretability through a commutative diagram. A model is considered interpretable if, given the same input, the model’s internal path to a result and a human’s mental path to a result reach the same conclusion. This requires a "translation" function, $\tau$, that maps machine-learned features to human-understandable concepts.
To make this alignment mathematically tractable, the authors leverage the Manifold Hypothesis. High-dimensional data, such as raw pixels in an image, are compressed into a small set of "lossless" latent variables called concepts. This compression ensures that the machine's internal representation is both invariant to irrelevant noise (e.g., slight rotations of a digit) and equivariant with respect to meaningful conceptual changes (e.g., changing the color of an object).
Designing Interpretable Architectures
Based on this theoretical foundation, the authors propose a modular blueprint for building models that are interpretable by construction. This architecture moves away from monolithic black boxes toward a structured pipeline:
- Compression Module: Maps raw data to a concept space while discarding irrelevant information (invariance) and preserving useful features (equivariance).
- Alignment Mechanism: Ensures that the machine's learned concepts correspond directly to human labels, preventing the model from relying on "reasoning shortcuts."
- Compositional Process: A sparse, symbolic-like decision mechanism that predicts the final output based solely on these aligned concepts.
This modularity is supported by the PyC library, an open-source tool built on PyTorch. PyC provides native support for "interpretable data structures," allowing researchers to implement this equivariance blueprint directly into their model training workflows.
Key Theoretical Insights
A significant contribution of this work is Theorem 1 (Bounded Verification). The authors mathematically prove that verifying a model's interpretability is only computationally feasible (tractable) if the task is conditionally interpretable given a lossless, low-dimensional latent space. This provides a formal justification for the "bottleneck" layers often used in interpretable modeling; without such a bottleneck, the number of possible states to verify would exceed the number of atoms in the universe.
Furthermore, the paper highlights that interpretability is a spectrum rather than a binary property. A model's "soundness" depends on the translation between machine and human spaces preserving "concept closure." If the machine's definition of a concept (e.g., "red") diverges from the human's, the resulting explanation is effectively a hallucination. Sparsity is also identified as a strict requirement for verification, as humans can only process a limited number of concepts ($K \ll D$) at once.
Conclusion and Future Directions
While this framework provides a solid mathematical foundation, several challenges remain. Human cognition is fluid and difficult to model as a static function $h$. Additionally, preventing models from finding "reasoning shortcuts" remains an ongoing alignment challenge. Future work will focus on scaling these principles to the massive, fluid latent spaces of Large Language Models (LLMs) and better accounting for the inherent inconsistencies in human reasoning.
Summary updated