Mixture of interpretable linear models explains deep neural network decisions

REALM: Regime-Switching, Explainable, and Activation-Induced Linear Models

Machine LearningArtificial Intelligence

Summary

Deep neural networks make decisions by splitting input data into many parts, each using a simple method. The authors created REALM, a technique that finds these parts based on the network’s internal activity and fits easy-to-understand linear models to each part. To keep the explanation clear, they simplify the network and use a separate system to explain how data is assigned to each part. Their method balances detailed accuracy and stability in explanations, working well on different types of data.

What this means in practice

Authors

Xiaoran Cheng, Sen Na, Jia Li

Abstract

Deep ReLU networks are piecewise-affine mappings that partition the input space into cells, each characterized by a distinct activation pattern. This structure motivates fitting a local linear model within each cell to preserve predictive accuracy while improving interpretability. The challenge is to identify regimes that are stable, data-adaptive, and easy to explain. We propose REALM, a mixture of linear models whose regimes are induced by neural activation patterns. Because the number of activation cells in a deep neural network (DNN) can grow rapidly with depth, we first distill a deep teacher into a wide, shallow student network (WSSN), then binarize and cluster its hidden-layer activations to define the regimes and fit a linear model within each regime. Since the regimes are discovered from internal structure, the router does not carry the predictive burden. To make regime assignment interpretable, we train a multiclass logistic regression, the explanatory gate, to reproduce the regime assignments. The two-level structure is interpretable at both stages in terms of raw tabular or learned convolutional features: the gate identifies features that determine regime assignments, while the linear models identify features that drive predictions within each regime. We analyze an idealized setting that illustrates a trade-off between partition complexity and stability: as the number of regimes grows, finer partitions can improve approximation but may reduce regime-assignment stability. Experiments on tabular and image datasets show that REALM achieves competitive predictive performance relative to other DNN-guided mixture surrogates and inherently interpretable models while producing stable regime-level explanations.