Abstract
Deep learning models are notoriously difficult to interpret at a macro level, often operating as "black boxes." This paper introduces the Quadratic Programming Enhanced Model (QPM), a framework that utilizes discrete optimization to represent every image class through a simple, binary combination of exactly five visual features. By enforcing sparsity and binarization, QPM achieves state-of-the-art accuracy for interpretable models while providing clear, contrastive explanations of how the model distinguishes between different classes, even on large-scale datasets like ImageNet-1K.
Introduction
As AI is increasingly deployed in high-stakes environments such as medicine and autonomous driving, understanding the rationale behind model decisions is critical. While many current methods offer local interpretability (explaining a single specific prediction via heatmaps), providing global interpretability (explaining the model's general behavior across all data) remains a significant challenge.
Existing interpretable-by-design models often fall short by using hundreds of features, overwhelming human working memory, which typically handles only 7 ± 2 concepts at once. Furthermore, many models rely on continuous weights or vary the number of features per class, complicating side-by-side comparisons. QPM addresses these issues by forcing the model to be extremely compact, binary, and consistent in its class representations.
Methodology
The QPM training pipeline consists of three primary stages designed to move from a dense, uninterpretable state to a sparse, human-understandable one:
- Dense Model Pre-training: A standard black-box model (e.g., ResNet50) is trained using a "Feature Diversity Loss" to encourage the network to learn a wide variety of spatially distinct visual features.
- Discrete Optimization: The core innovation involves formulating a binary Quadratic Programming (QP) problem to select a small subset of features (e.g., 50 out of 2048) and assign exactly five to each class. The solver optimizes for feature-class similarity and minimizes redundancy (feature-feature similarity).
- Fine-Tuning: The feature extractor is fine-tuned with the sparse, binary assignment matrix locked in place. This forces the network to adapt features into shared, general concepts (like "pointy beak") rather than class-specific memorization.
Key Insights and Contrastive Reasoning
By restricting class representations to a binary assignment of exactly five features, QPM enables intuitive contrastive reasoning. If a Rottweiler and a Doberman share four out of five features, a human can instantly identify the single differentiating factor (e.g., head shape or ear type).
This bottleneck prevents the emergence of uninterpretable "class detectors" and forces the network to learn reusable visual concepts. Interestingly, QPM naturally learns human-like taxonomies without explicit supervision; for example, it successfully differentiated two nearly identical bird species by focusing on a single biological differentiator: eye color.
Results and Performance
QPM demonstrates that global interpretability does not require massive sacrifices in accuracy:
- CUB-2011: Achieved 85.1% accuracy using only 50 total features (5 per class).
- ImageNet-1K: Achieved 74.2% accuracy, remarkably close to the uninterpretable ResNet50 baseline of 76.1%.
- Interpretability Metrics: QPM drastically outperformed baselines in Contrastiveness (99.1% on ImageNet) and Class-Independence, proving that features represent shared concepts rather than single-class memorization.
Discussion and Limitations
While QPM sets a new standard for global interpretability, it currently only utilizes positive binary assignments. Incorporating negative reasoning (e.g., "Class X never has feature C") could lead to even more compact representations. Additionally, while features are usually locally consistent, fully aligning them with single human concepts (avoiding polysemantic features) remains an ongoing challenge in deep learning research. Despite these areas for growth, QPM proves that discrete optimization is a powerful tool for making complex vision models transparent and accountable.
Summary updated