From Robustness to Explainability and Back Again

Xuanxiang Huang, João Marques-SilvaarXiv 2023 · DOI

Introduction

In high-stakes domains such as autonomous aviation and medical diagnostics, the opacity of Deep Neural Networks (DNNs) presents a significant barrier to deployment. While popular post-hoc explanation methods like SHAP or LIME offer intuitive insights, they lack the mathematical rigor required for safety-critical applications. Formal eXplainable AI (XAI) aims to fill this gap by providing logic-based, provably correct explanations for model decisions. However, formal XAI has historically faced a "scalability wall," struggling to process networks with more than a few dozen neurons. This paper introduces a novel framework that overcomes this limitation by establishing a formal bridge between explainability and adversarial robustness.

The Scalability Barrier in Formal XAI

Formal explanations are typically categorized into two types: Abductive Explanations (AXp), which identify a minimal set of features sufficient to trigger a specific prediction ("Why?"), and Contrastive Explanations (CXp), which identify the minimal changes needed to alter a prediction ("Why not?").

Traditionally, computing these explanations required exhaustive logical reasoning over the entire input space, a task that becomes computationally intractable as network depth and width increase. Conversely, the field of adversarial robustness—the study of a model's sensitivity to small input perturbations—has produced highly optimized verification tools (e.g., Marabou) capable of analyzing much larger architectures. The authors pose a pivotal question: Can the efficiency of robustness verification be leveraged to solve the scalability crisis in formal XAI?

Methodology: Distance-Restricted Explanations

The core contribution of this work is the concept of Distance-Restricted Explanations. Rather than seeking global explanations across the entire valid input range, the authors focus on a local neighborhood defined by a distance $\epsilon$ and a norm $l_p$. This approach aligns formal XAI with the practical reality of how humans interpret local decisions (e.g., "Given this specific image, which pixels were decisive?").

Reducing Explainability to Robustness

The researchers prove that finding an Abductive Explanation can be reduced to a series of robustness queries. In this framework, an explanation is essentially a proof that no adversarial examples exist within a specific subset of features. To operationalize this, they propose three primary algorithms:

  1. FindAXpDel: A deletion-based linear search that systematically tests which features can be relaxed without allowing an adversarial perturbation to exist within distance $\epsilon$.
  2. FindAXpQxp: An optimized search based on the "QuickXplain" algorithm, particularly effective when the final explanation involves only a small fraction of the total features.
  3. FindCXpDel: A corresponding algorithm for identifying contrastive explanations.

Crucially, the authors demonstrate that the mathematical duality between AXp and CXp—where one is the hitting set of the other—remains intact in the distance-restricted setting. This allows for the efficient enumeration of multiple alternative explanations.

Experimental Validation

The proposed method was evaluated using the ACAS Xu dataset, a standard benchmark for neural network verification in aircraft collision avoidance systems. The researchers utilized Marabou, a state-of-the-art SMT-based robustness tool, as the underlying "oracle" to answer the robustness queries generated by their algorithms.

Key Results

  • Significant Scaling: The framework successfully computed formal explanations for DNNs containing 300 ReLU units across six hidden layers. This represents a 10x to 15x improvement in scale compared to previous state-of-the-art formal XAI methods, which typically capped out at approximately 20 ReLU units.
  • Algorithmic Efficiency: Using the linear search algorithm on the ACAS Xu model (which features 5 input variables), the system required exactly five calls to the robustness oracle to yield a complete explanation.
  • The Cost of Distance: Experiments indicated that as the distance $\epsilon$ increases (e.g., from 0.05 to 0.1), the time required to compute explanations grows. This confirms the intuitive link between the two domains: a larger search space for adversarial examples naturally necessitates more intensive verification.

Discussion and Future Directions

By reframing explainability as a search problem for robustness tools, this research ensures that formal XAI will continue to improve in lockstep with the field of neural network verification. As verifiers become faster and more efficient, the ability to explain complex models will grow "for free."

However, challenges remain. The method is currently dependent on the performance of the underlying oracle; if a robustness tool times out, the resulting explanation may be "weak" (correct, but not minimally sized). Furthermore, while 300 ReLUs is a major milestone, it remains far below the scale of modern foundation models. Future work may explore probabilistic robustness tools to trade absolute certainty for increased speed, potentially bringing formal-style rigor to industry-scale computer vision and natural language processing models.

Summary updated

BibTeX
@misc{huang2023from,
  author = {Xuanxiang Huang and João Marques-Silva},
  title = {{From Robustness to Explainability and Back Again}},
  year = {2023},
  eprint = {2306.03048},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.03048},
}
Figure