To understand why a machine learning model made a specific prediction, traditional feature attribution methods ask a simple counterfactual question: What happens if we remove this feature? To simulate this removal, algorithms like LIME or SHAP replace a feature with a fixed baseline value, such as zero or the dataset average.
However, this approach introduces a fundamental flaw known as baseline bias. Replacing a pixel with black or a medical measurement with zero often creates highly unrealistic, out-of-distribution data points. When the model encounters these artificial inputs, its internal representations warp, and its prediction confidence drops—not necessarily because the removed feature was important, but because the new input looks completely bizarre.
To solve this, a growing body of research flips the problem on its head. Instead of making large, destructive changes to remove features, what if we find the absolute smallest, most efficient change required to alter the model's prediction? This is the core intuition behind repurposing adversarial attacks as a framework for model interpretability. By probing how a model responds to infinitesimal or bounded perturbations, we can map the local geometry of its decision boundary and uncover exactly which features it prioritizes.
Probing the Decision Boundary
An adversarial attack is typically viewed as a security threat: an optimization process designed to find a tiny, human-imperceptible nudge that tricks a model into misclassification. But from an interpretability perspective, an adversarial attack is actually a highly efficient search algorithm for finding the path of least resistance to a model's decision boundary.
As shown by Arash Rahnama et al. in An Adversarial Approach for Explaining the Predictions of Deep Neural Networks, the regions where an attacker would prioritize changes to flip a prediction correspond directly to the features the model values most for its original classification. By analyzing these required modifications, their framework maps feature importance faster and more stably than traditional local surrogate methods.
Traditional Attribution (Feature Removal):
Input Data ───> [Replace with Zero/Mean] ───> Out-of-Distribution Artifacts ───> Distorted Explanation
Adversarial Attribution (Boundary Probing):
Input Data ───> [Find Minimal Perturbation] ───> Stays Near Data Manifold ───> True Feature Sensitivity
This boundary-probing mechanism is highly versatile and applies across diverse data modalities:
- Unsupervised Clustering: In genomic modeling, Yang Young Lu et al. developed a framework in ACE: Explaining cluster from an adversarial perspective that identifies explanatory gene panels. Instead of running independent statistical tests, it calculates the smallest modification needed to shift a cell's profile from one cluster to another, successfully capturing complex, non-linear gene dependencies.
- 3D Point Clouds: In computer vision, the authors of Explaining 3D Point Cloud Semantic Segmentation Models Through Adversarial Attacks used minimal perturbations to audit black-box segmentation models. They discovered a hidden vulnerability: the models were drastically more sensitive to tiny changes in the green color channel than to the actual 3D geometric structure of the objects.
- Graph Neural Networks: For relational data, Hanjun Dai et al. demonstrated in Adversarial Attack on Graph Structured Data that targeted structural attacks—such as dropping or adding a single edge—can serve as diagnostic tools to highlight the specific local neighborhoods a model over-relies on for its predictions.
Eliminating Baseline Bias
Why is probing adversarial sensitivity mathematically cleaner than removing features? The answer lies in keeping the evaluation local and on the data manifold.
In Evaluations and Methods for Explanation through Robustness Analysis, Cheng-Yu Hsieh et al. proved that measuring a model's sensitivity to infinitesimal adversarial perturbations within specific feature subsets provides a more reliable indicator of importance than large-scale feature removal. Because the perturbations are tiny, they do not push the input into unrealistic regions of the feature space, ensuring that the identified features are truly necessary and sufficient for the prediction.
Furthermore, traditional baselines fail completely when a feature's importance is defined by its absence or its low intensity. If a model makes a decision because a certain value is zero, changing that zero to a baseline zero reveals nothing. To bypass this, Greg Ver Steeg et al. introduced a framework in Influence Decompositions For Neural Network Attribution that applies bounded adversarial perturbations to input subsets. This mechanism guarantees that low-intensity signals are not overlooked, allowing for a rigorous decomposition of higher-order feature interactions.
Repurposing Vulnerability as an Audit Tool
If adversarial sensitivity reveals what a model cares about, then a model's security flaws can be directly repurposed as auditing tools for real-world deployment.
For example, in healthcare, deep predictive models are often deployed to monitor patient risk. In Identify Susceptible Locations in Medical Records via Adversarial Attacks on Deep Predictive Models, Mengying Sun et al. used sparse adversarial perturbations to pinpoint "susceptible locations" in Electronic Health Records. By identifying the exact clinical measurements that most easily flip a model's diagnosis, they provided clinicians with a targeted roadmap of which patient variables require the highest measurement precision and closest real-world monitoring.
Similarly, this sensitivity can form a human-in-the-loop defense layer for tabular data. In Detecting Potential Local Adversarial Examples for Human-Interpretable Defense, Marcin Detyniecki et al. used local surrogate models to flag features to which a classifier is highly sensitive at a specific data point. Because these high-sensitivity features represent the most probable targets for malicious manipulation, the system automatically surfaces them to human experts for manual verification.
This duality is deeply tied to cooperative game theory. In Explainable and Transferable Adversarial Attack for ML-Based Network Intrusion Detectors, Hangsheng Zhang et al. utilized Shapley values to isolate "non-robust features"—variables that are simultaneously highly influential to a decision and highly sensitive to modification. Targeting these specific features allows practitioners to understand why attacks transfer across different model architectures, while exposing the critical points of failure in network security.
Saliency-Guided Optimization
Beyond generating explanations for humans, adversarial feature attribution can directly guide model optimization and training pipelines.
In hardware-efficient machine learning, models are often compressed via mixed-precision quantization, where different layers or features are allocated different bit-widths. Treating all features equally leads to suboptimal performance. To address this, Lianbo Ma et al. developed a framework called SAMPQ in SAMPQ: Saliency-aware Mixed-Precision Quantization. SAMPQ probes a network's sensitivity to input perturbations by maximizing prediction differences, generating an adversarial saliency map that highlights critical input regions. The system then dynamically preserves higher bit-widths for those highly sensitive regions, maximizing both accuracy and efficiency.
A similar principle applies to time-series forecasting in volatile environments like finance. In ASAT: Adaptively scaled adversarial training in time series, Zhiyuan Zhang et al. implemented a dimension-wise adversarial sensitivity indicator. By tracking which temporal dimensions are most influential to the model's predictions, their framework adaptively scales adversarial training perturbations, yielding models that are both more robust and inherently more interpretable.
Ultimately, open-source libraries like secml, introduced by Ambra Demontis et al. in secml: A Python Library for Secure and Explainable Machine Learning, formalize this tight coupling between security and explainability. By integrating feature-attribution methods directly into adversarial testing frameworks, practitioners can visualize exactly why specific perturbations lead to misclassification. This unified perspective demonstrates that a model's adversarial fragility and its underlying decision-making logic are not separate phenomena—they are two sides of the same coin.
Key Foundational Work
Detecting Potential Local Adversarial Examples for Human-Interpretable Defense (2018) — contributed 3 concept elements to this direction.
secml: A Python Library for Secure and Explainable Machine Learning (2019) — contributed 2 concept elements to this direction.
TSViz: Demystification of Deep Learning Models for Time-Series Analysis (2019) — contributed 1 concept elements to this direction.