Interpretable Mesomorphic Networks for Tabular Data

Arlind Kadra, Sebastian Pineda Arango, Josif Grabocka

In domains like healthcare and finance, understanding why a machine learning model made a specific prediction is often just as important as the prediction itself. However, practitioners usually face a frustrating dilemma: they must choose between highly interpretable models (like linear regression or decision trees) that lack the predictive power to capture complex interactions, or highly accurate deep neural networks that function as opaque "black boxes."

To explain deep models, the industry relies heavily on post-hoc tools like SHAP or LIME. Unfortunately, these are computationally expensive approximations that require thousands of model runs per explanation and can sometimes yield inconsistent results.

To bridge this gap, researchers have introduced Interpretable Mesomorphic Networks (IMN)—a novel architecture that is both deep and accurate, yet inherently linear and explainable at the point of prediction.

The Mesomorphic Architecture

In chemistry, "mesomorphic" refers to an intermediate state of matter, such as a liquid crystal that exhibits properties of both solids and liquids. Similarly, an IMN is both deep and linear.

The core architecture consists of a two-part system:

  1. The Hypernetwork: A deep, non-interpretable backbone (specifically a TabResNet) processes the input data point. However, instead of predicting the target class directly, it predicts the weights ($w$) and bias ($b$) for a linear model.
  2. The Linear Model: This instance-specific linear model then performs the final classification or regression using the simple formula: $f(x) = w(x)^T x + b(x)$.
The IMN architecture uses a TabResNet backbone to generate instance-specific interpretable weights for a linear model.

Because the final step is a straightforward linear combination, the weights $w$ generated by the hypernetwork serve as direct, exact feature importance scores for that specific data point. The model is trained end-to-end using standard supervised loss, supplemented by an L1 penalty on the generated weights to encourage sparsity and clearer explanations.

Key Insights: Local Linearity, Global Complexity

The genius of the IMN lies in its ability to offer the "free lunch" of explainability. Unlike SHAP, which requires many perturbations of the input to estimate importance, IMN produces the exact explanation in a single forward pass.

While the model is strictly linear for any single data point, the deep hypernetwork allows the "slope" of that linearity to change smoothly across the entire feature space. This enables the model to fit highly non-linear global decision boundaries while remaining simple and interpretable at the local level.

IMNs can capture complex, non-linear global decision boundaries (left) while maintaining strict, interpretable linearity for any local prediction (right).

Furthermore, the hypernetwork naturally learns to generate similar linear models for similar data points. This neighborhood consistency means the explanation for one patient is likely to be valid for a "neighboring" patient with similar symptoms.

Experimental Results

The researchers evaluated IMN across a massive battery of tests, including the AutoML Benchmark (35 diverse tabular datasets), XAI-Bench (for explanation quality), and real-world datasets like Adult Census Income.

  • Predictive Power: IMN achieved the best average rank across the 35 AutoML datasets among interpretable models. It performed comparably to state-of-the-art black-box models like CatBoost and TabResNet, and significantly outperformed other "interpretable-by-design" neural nets like NAM and TabNet.
  • Explanation Quality: On the XAI-Bench, IMN matched or exceeded the "faithfulness" and "monotonicity" of Kernel SHAP, proving that its exact weights accurately reflect the model's internal logic.
  • Inference Speed: IMN is exceptionally fast. It proved to be 64x faster at inference than TabNet and orders of magnitude faster than SHAP. On the "Christine" dataset, for instance, IMN generated explanations in 0.02 seconds, whereas SHAP took over an hour.

Limitations and Future Directions

While IMNs offer a powerful new tool for tabular data, the authors acknowledge that the per-instance model is currently strictly linear. While excellent for simplicity, some highly complex local interactions might be better served by other structures.

Future iterations of the hypernetwork could be evolved to generate other interpretable structures, such as instance-specific mini-decision trees or local Support Vector Machines (SVMs). Additionally, while the focus of this paper is tabular data, a successful proof-of-concept on CIFAR-10 suggests this "mesomorphic" approach could eventually be adapted to make computer vision models more transparent.

Summary updated

BibTeX
@inproceedings{kadra2024interpretable,
  author = {Arlind Kadra and Sebastian Pineda Arango and Josif Grabocka},
  title = {{Interpretable Mesomorphic Networks for Tabular Data}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=PmLty7tODm},
}
Figure