Abstract
Edge devices, with their widely varying capabilities, support a diverse range of edge AI models. This raises the question: how does an edge model differ from a high-accuracy (base) model for the same task? We introduce XDELTA, a novel explainable AI tool that explains differences between a high-accuracy base model and a computationally efficient but lower-accuracy edge model. To achieve this, we propose a learning-based approach to characterize the model difference, named the DELTA network, which complements the feature representation capability of the edge network in a compact form. To construct DELTA, we propose a sparsity optimization framework that extracts the essence of the base model to ensure compactness and sufficient feature representation capability of DELTA, and implement a negative correlation learning approach to ensure it complements the edge model. We conduct a comprehensive evaluation to test XDELTA's ability to explain model discrepancies, using over 1.2 million images and 24 models, and assessing real-world deployments with six participants. XDELTA excels in explaining differences between base and edge models (arbitrary pairs as well as compressed base models) through geometric and concept-level analysis, proving effective in real-world applications.
Introduction
In the ecosystem of mobile and IoT devices, "edge models"—compact neural networks optimized for speed and low power—are ubiquitous. These models are frequently derived from massive, high-accuracy "base models" through techniques like pruning or compression. While it is well-established that edge models exhibit lower accuracy, the specific reasons why they fail on particular instances remain largely opaque.
Existing Explainable AI (XAI) tools, such as Grad-CAM, are designed to explain a single model's decision-making process. However, they struggle to characterize the relative disparity between two models. They do not identify the specific features or concepts that an edge model "forgets" or fails to capture during the compression process. XDELTA addresses this gap by identifying geometric and semantic differences in how base and edge models perceive visual data.
Methodology: The DELTA Network
The core innovation of XDELTA is the DELTA network, a compact model specifically engineered to represent the "difference" between base and edge models. The construction of this network follows a three-step process:
- Structured Subgraph Extraction: A novel optimization framework extracts a subset of weights (a subgraph) from the base model. This ensures the DELTA network remains compact while retaining the essential feature-representation capabilities that the edge model lacks.
- DELTA Feature Construction: A "Y-shaped" architecture fuses features from the edge model with those from the extracted subgraph. This combined representation aims to approximate the performance of the original base model.
- Negative Correlation Learning: To prevent redundancy, the DELTA network is trained using a loss function that encourages negative correlation with the edge model. This forces the DELTA network to specialize in regions and concepts that the edge model ignores.
Experimental Setup
The framework was evaluated using a massive dataset and a diverse set of architectures:
- Datasets: ImageNet-1K (1.2M images), CIFAR10, MIT Indoor Scenes, and COCO.
- Models: 24 distinct models, including ResNet50/18, VGG16, ShuffleNetV2, SqueezeNet, and AlexNet.
- Real-World Evaluation: A custom dataset of 421 images from six participants using mobile devices (e.g., Google Pixel 2XL) in various indoor environments.
Key Insights and Results
Geometric and Semantic Failure Patterns
XDELTA categorizes model failures into seven distinct geometric types. For instance, research revealed that models like ShuffleNetV2 often attend to "noisy" background regions. The DELTA model "rectifies" this by refocusing on local object features. Semantically, aggressive compression leads to the loss of specific concepts (e.g., animal body parts) while broader shapes (e.g., general silhouettes) are retained.
Performance Recovery
When the compact DELTA model is integrated with an edge model, the combined system's accuracy increases significantly—by 9.74% to 17.37%—effectively bridging the gap to the base model. Notably, XDELTA outperformed standard Knowledge Distillation (KD), suggesting that explicitly modeling the difference is more effective than mimicking the teacher model.
Human-Centric Explanations
By feeding DELTA activation maps into a Large Language Model (GPT-4o), XDELTA generates natural language explanations. In real-world tests, it successfully identified that SqueezeNet's failures in indoor scenes were primarily due to an inability to recognize small object components, such as chair arms or table legs.
Limitations and Future Directions
While effective, XDELTA currently focuses on Convolutional Neural Networks (CNNs). Future work will explore extending this framework to Vision Transformers (ViTs). Additionally, the system's reliance on external LLMs for semantic explanations and the high computational cost of the initial subgraph extraction phase are areas for further optimization.
Summary updated