NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Understanding Deep Architectures by Visual Summaries

Marco Carletti, Marco Godi, Maedeh Aghaei, Francesco Giuliari, Marco CristaniarXiv 2018

TL;DR

This paper introduces a framework for creating "visual summaries" that reveal what a deep neural network has learned about an entire object class, rather than just a single image. By clustering "crisp" salient regions across multiple images, the authors demonstrate that better-performing networks recognize a wider variety of semantic parts and that these discovered parts can be used to further boost classification accuracy.

What Problem Does This Paper Address?

Deep learning models are often criticized as "black boxes." While visualization techniques like saliency maps help us see which pixels a network focuses on for a single image, they don't tell us if the network has a consistent, general understanding of an object class.

For example, does a network classify a "robin" because it consistently looks for a red breast, a specific head shape, and thin legs across all robin photos? Or is it just picking up on random textures? Existing methods fail to capture this class-level "big picture," making it hard to diagnose why a model might fail on new data or why one architecture outperforms another.

Methods

The authors propose a two-phase pipeline: Mask Extraction and Clustering.

  1. Mask Extraction (Phase 1): The researchers build upon existing perturbation-based methods that find which parts of an image, if blurred, cause the network to lose confidence. Their key innovation is adding a sparsity regularizer to the optimization process. This transforms standard, blurry heatmaps into "crisp" binary masks that clearly delineate important regions.

    Figure 3: Qualitative analysis of the masks. First row, original image from different Imagenet classes. Second line, heatmaps computed with the method proposed by [4]. Third line, crisp masks computed with our optimization procedure. Best in colors.
  2. Clustering (Phase 2): Once they have these crisp regions, they need to find commonalities across different images of the same class. They use "object proposals" to extract candidate parts and a "proposal flow" algorithm to match similar parts (like wheels on different trucks) even if they are in different positions or poses. Finally, they use Affinity Propagation to group these regions into "visual summaries"—clusters representing distinct semantic parts the network has learned to recognize.

Datasets

The study focuses on 18 classes from ImageNet, specifically chosen because they are adjacent in a dense semantic space (e.g., different types of birds or vehicles). This allows for a more nuanced comparison of how the network distinguishes between similar categories. The final performance boosting experiments were evaluated on the full ImageNet validation set.

Key Insights and Ideas

  • "Crispness" Matters: The authors empirically show that their binary, sharp masks are more effective at "confusing" the classifier than traditional smooth heatmaps. This suggests that the network's decision-making is driven by specific, well-defined regions rather than a vague global texture.
  • Summaries = Semantics: Through user studies and automatic tagging, the authors proved that these clusters aren't just random noise; they correspond to human-understandable parts like "beak," "wing," or "mudguard."
  • Complexity Correlates with "Vocabulary": A fascinating finding is that more advanced architectures (like ResNet) produce a higher number of valid visual summaries than simpler ones (like AlexNet). Essentially, "smarter" networks have a larger "vocabulary" of parts they use to identify an object.
  • Interpretability as a Tool for Improvement: Beyond just explaining the model, these summaries can be used for "summary-driven specialization." By training simple linear SVMs on the discovered parts, the authors could "boost" the original network's performance.

Key Results

  • Mask Effectiveness: The proposed crisp masks achieved a classification drop of 99.96% when perturbed, outperforming the state-of-the-art smooth mask method (99.74%).
  • Architecture Comparison: The average number of summaries found per class increased with model accuracy: AlexNet (5 summaries), VGG16 (5.5), GoogleNet (6), and ResNet50 (6.33).
  • Semantic Coherency: As shown in the chart below, the "Jaccard distance" (a measure of dissimilarity) was significantly lower for tags within the visual summaries than for random samples of the class, meaning the summaries are semantically consistent.
Figure 4: Coherency in terms of average Jac- card distance (y-axis) among the tags found with the automatic tagger, within the sum- maries (blue = µS), and within a random sample of the class (red = µR). Lower is bet- ter. The class labels come with the number of summaries found.
  • Accuracy Boost: Using the visual summaries to specialize an AlexNet classifier led to a 1.08% increase in top-1 accuracy across all 1000 ImageNet classes.

Limitations and Future Work

The authors note that the "proposal flow" matching algorithm can struggle with extreme pose variations—for instance, it might fail to cluster a car facing left with one facing right. Furthermore, the current approach is a post-processing step. The authors suggest that a promising future direction would be to "inject" this summary-based analysis directly into the early training phases of a deep network to guide it toward learning more robust semantic features from the start.

Summary updated

Abstract

In deep learning, visualization techniques extract the salient patterns exploited by deep networks for image classification, focusing on single images; no effort has been spent in investigating whether these patterns are systematically related to precise semantic entities over multiple images belonging to a same class, thus failing to capture the very understanding of the image class the network has realized. This paper goes in this direction, presenting a visualization framework which produces a group of clusters or summaries, each one formed by crisp salient image regions focusing on a particular part that the network has exploited with high regularity to decide for a given class. The approach is based on a sparse optimization step providing sharp image saliency masks that are clustered together by means of a semantic flow similarity measure. The summaries communicate clearly what a network has exploited of a particular image class, and this is proved through automatic image tagging and with a user study. Beyond the deep network understanding, summaries are also useful for many quantitative reasons: their number is correlated with ability of a network to classify (more summaries, better performances), and they can be used to improve the classification accuracy of a network through summary-driven specializations.
BibTeX
@misc{carletti2018understanding,
  author = {Marco Carletti and Marco Godi and Maedeh Aghaei and Francesco Giuliari and Marco Cristani},
  title = {{Understanding Deep Architectures by Visual Summaries}},
  year = {2018},
  eprint = {1801.09103},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1801.09103},
}

Loading related content...

Figure