Introduction
In the ongoing effort to demystify "black-box" neural networks, researchers frequently rely on instance-wise feature selection. The objective is straightforward: identify which specific features—such as individual pixels in an image—are most responsible for a model's prediction on a given input.
To achieve this efficiently at test time, many approaches use "amortized" methods, which train a secondary "selector" network to quickly pick out important features. However, these methods suffer from a subtle but critical flaw known as encoding. When a feature is "turned off" by replacing it with a constant value (like zero), the selector network can learn to cheat. It uses the geometric shape of the mask itself to signal the target class to the predictor. Consequently, the model achieves high predictive accuracy but yields unfaithful, misleading explanations.
To resolve this, recent research introduces LEX (Latent Variable as Explanation), a probabilistic framework that treats model interpretability as a formal statistical inference problem. By unifying popular methods under a single maximum-likelihood objective, LEX demonstrates that "multiple imputation" is the key to preventing models from cheating, thereby producing genuinely faithful explanations.
The LEX Framework
LEX is designed as a modular, self-interpretable probabilistic model that grounds heuristic explainability techniques in rigorous statistical theory. The framework consists of three distinct components:
- The Selector ($g_\gamma$): A neural network that outputs a probability distribution over masks ($z$), effectively deciding which features to retain.
- The Imputer ($p_\iota$): A mechanism to handle the features that the selector turns off. Instead of relying on constant values (zero-imputation), the imputer uses multiple imputation—sampling realistic values for missing data from a generative model, such as a Gaussian Mixture Model (GMM) or a Variational Autoencoder (VAE).
- The Predictor ($f_\theta$): The core classifier that makes a prediction based on the combination of selected features and imputed values.
The primary innovation of LEX is casting this entire pipeline as a Maximum Likelihood Estimation (MLE) problem. This perspective reveals that existing methods like L2X, Invase, and REAL-X are actually specific, often simplified, instances of the broader LEX framework. To navigate the difficult optimization of discrete masks, the authors employ Importance Weighted Variational Inference (IWAE) to establish a tight lower bound on the log-likelihood.
Key Insights: Why Multiple Imputation Matters
Framing explainability as MLE highlights the inherent dangers of constant imputation. Zero-imputation is merely a rough approximation; if a predictor sees a specific mask silhouette every time it processes a "cat" image, it will learn to classify based on the mask rather than the underlying pixels.
Multiple imputation acts as a powerful regularizer. By filling missing areas with realistic samples (e.g., via a Mixture of Logistics or a GMM), the predictor can no longer rely on the mask's shape. It is forced to extract genuine information from the features the selector chose to keep. While cheating models might boast higher raw accuracy, LEX with multiple imputation delivers a vastly superior False Discovery Rate (FDR), ensuring the highlighted features are genuinely relevant to the task.
Experimental Validation
The authors evaluated LEX across several benchmarks, including standard synthetic datasets (S1, S2, S3), a real-world face dataset (CelebA Smile), and a newly introduced "Switching Panels" benchmark (SP-MNIST and SP-FashionMNIST). In the Switching Panels task, the model is presented with two side-by-side images but told to classify only one, making the target panel the ground-truth explanation.
Key Results: * Superior Feature Selection: On the Switching Panels dataset, LEX with multiple imputation significantly outperformed constant-imputation methods (like REAL-X and L2X), successfully ignoring distractor panels while maintaining high accuracy. * Robustness: Methods relying on constant imputation are highly sensitive to the chosen constant (e.g., -1 vs. 0 vs. 1), which drastically alters explanation quality. LEX proved far more stable. * Visual Clarity: In CelebA experiments, LEX generated clean, focused saliency maps around the mouth area (the most informative feature for detecting a smile), whereas constant-imputation methods produced noisy, scattered maps.
Limitations and Future Directions
While LEX offers a robust theoretical foundation for feature selection, it comes with trade-offs. Training LEX is computationally intensive, requiring the sampling of multiple masks and imputations (via IWAE) to secure a reliable gradient estimate. Furthermore, the quality of the explanation is inherently tied to the quality of the generative imputer; a poor GMM or VAE will degrade the results.
Finally, the current iteration of LEX treats pixels somewhat independently. Future work could integrate "connected masks" to encourage the selector to choose continuous spatial regions rather than isolated pixels, paving the way for even more intuitive and human-readable explanations.
Summary updated