InterpretCC: Conditional Computation for Inherently Interpretable Neural Networks

Vinitra Swamy, Julian Blackwell, Jibril Frej, Martin Jaggi, Tanja Käser · OpenReview

Abstract

Interpretability for neural networks is a trade-off between three key requirements: 1) faithfulness of the explanation (i.e., how perfectly it explains the prediction), 2) understandability of the explanation by humans, and 3) model performance. Most existing methods compromise one or more of these requirements; e.g., post-hoc approaches provide limited faithfulness, automatically identified feature masks compromise understandability, and intrinsically interpretable methods such as decision trees limit model performance. These shortcomings are unacceptable for sensitive applications such as education and healthcare, which require trustworthy explanations, actionable interpretations, and accurate predictions. In this work, we present InterpretCC (interpretable conditional computation), a family of interpretable-by-design neural networks that guarantee human-centric interpretability, while maintaining comparable performance to state-of-the-art models by adaptively and sparsely activating features before prediction. We extend this idea into an interpretable, global mixture-of-experts (MoE) model that allows humans to specify topics of interest, discretely separates the feature space for each data point into topical subnetworks, and adaptively and sparsely activates these topical subnetworks for prediction. We apply variations of the InterpretCC architecture for text, time series and tabular data across several real-world benchmarks, demonstrating comparable performance with non-interpretable baselines, outperforming interpretable-by-design baselines, and showing higher actionability and usefulness according to a user study.

Introduction

Deep learning models are notoriously opaque, creating a "human-centeredness gap" in high-stakes fields like education and healthcare. While post-hoc tools like LIME or SHAP offer explanations after a prediction is made, these are often approximations that may not faithfully represent the model's internal logic. Conversely, intrinsically interpretable models like decision trees often lack the predictive power of complex neural networks.

InterpretCC bridges this gap by using conditional computation to sparsely activate only the most relevant features or concepts for a given prediction. By design, it provides faithful, sparse explanations that are significantly more actionable for practitioners than traditional methods.

Comparison of InterpretCC with existing interpretability methods across key dimensions.

Methods: Interpretable Conditional Computation

The core of the InterpretCC framework is the use of a discriminator network to generate a sparse mask before prediction occurs. This ensures that the predictive model is physically incapable of using features not included in the explanation, guaranteeing 100% faithfulness. The architecture comes in two primary flavors:

  1. Feature Gating (FG): The discriminator generates a sparse mask over raw input features. Only selected features pass to the predictive model.
  2. Group Routing (GR): A global Mixture of Experts (MoE) approach where features are pre-assigned to human-understandable groups (e.g., "Student Regularity"). The model adaptively chooses which topical subnetworks (experts) to activate for a specific data point.

To enable training via standard backpropagation, InterpretCC utilizes the Gumbel Softmax trick. This provides a differentiable approximation of discrete "keep or drop" decisions, allowing the model to learn optimal feature selection while enforcing sparsity through penalties.

The two architectural variants of InterpretCC: Feature Gating (left) and Group Routing (right).

Experimental Evaluation

The authors evaluated InterpretCC across eight diverse datasets, including time series (MOOC clickstream data), text (AG News, SST), and tabular data (Healthcare).

Key Results

  • Predictive Performance: InterpretCC matched or exceeded the accuracy of non-interpretable "black-box" baselines in 15 out of 16 experimental comparisons. It consistently outperformed other interpretable-by-design models like SENN and NAM.
  • Faithfulness and Sparsity: Because gating happens before prediction, the explanations are guaranteed to be faithful. In education datasets, the model maintained high accuracy while activating only ~10% of available features.
  • Human-Centric Utility: A user study involving 56 professional teachers found that InterpretCC's explanations were rated significantly higher than those from NAM or SENN in terms of usefulness, trustworthiness, and actionability.
  • LLMs as Feature Groupers: For Group Routing, the authors demonstrated that GPT-4 could effectively group raw features into high-level pedagogical concepts, performing as well as groups defined by human experts.

Discussion and Future Work

InterpretCC demonstrates that sparsity can be a feature rather than a limitation. By incentivizing the model to be "lazy" and use the minimum necessary signal, the resulting explanations become concise enough for human processing.

While the routing path is transparent, the discriminator network itself remains a standard neural network. Future research may focus on making this gating logic more transparent. Additionally, while currently focused on text and tabular data, extending InterpretCC to computer vision would require new strategies for grouping features, such as segment-based routing.

Summary updated

BibTeX
@inproceedings{swamy2025interpretcc,
  author = {Vinitra Swamy and Julian Blackwell and Jibril Frej and Martin Jaggi and Tanja Käser},
  title = {{InterpretCC: Conditional Computation for Inherently Interpretable Neural Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=wDcunIOAOk},
}
Figure