Semantically Interpretable Activation Maps: what-where-how explanations within CNNs

Diego Marcos, Sylvain Lobry, Devis Tuia

Introduction

Convolutional Neural Networks (CNNs) are often viewed as "black boxes," achieving high accuracy but offering little insight into their decision-making processes. Existing interpretability methods typically provide either localization (where the model looked) or external explanations that may not faithfully represent the model's internal logic. This paper introduces Semantically Interpretable Activation Maps (SIAM), an architecture that addresses these limitations by embedding human-understandable explanations directly into the network's structure.

Architecture and Methods

The core of the SIAM approach is a two-level hierarchical architecture designed for the subjective task of landscape scenicness estimation. By forcing the network to identify specific features before making a final prediction, the researchers create a system that is both high-performing and inherently transparent.

Architecture of the SIAM model, featuring an interpretable bottleneck of attribute maps.
  1. Attribute Predictor ($f$): A ResNet-50 backbone is modified to output a set of attribute maps, each corresponding to a predefined semantic category (e.g., "Trees," "Water," "Roads").
  2. Interpretable Bottleneck: The model is constrained to pass all information through these maps, ensuring that the final prediction is based solely on identified semantic features. There are no "hidden" shortcuts to the final answer.
  3. Linear Combiner ($g$): The final scenicness score is a linear combination of these maps, weighted by learned spatial templates. This allows the model to account for where an attribute appears in the frame.
  4. Joint Training: The network is trained simultaneously on attribute recognition (using the SUN dataset) and scenicness estimation (using the ScenicOrNot dataset). This multi-task learning ensures the maps remain semantically meaningful while serving the final goal.

Datasets

The researchers utilized two primary datasets to train and validate the model:

  • ScenicOrNot (SoN): A large-scale dataset containing ~200,000 outdoor images from the UK, each with crowdsourced scenicness ratings ranging from 1 to 10.
  • SUN Attributes: A dataset used to train the intermediate attribute layer on 33 relevant categories, such as "rugged," "horizon," "clouds," and "man-made."
  • Validation Set: A small, custom-annotated set of 90 images was manually labeled with the 33 SUN attributes to verify the accuracy of the model's internal attribute detections.

Key Insights and Results

The SIAM model demonstrates that interpretability does not require a significant sacrifice in performance. It achieved a Root Mean Square Error (RMSE) of 1.01, only slightly higher than the 0.987 achieved by a standard "black box" ResNet-50 baseline.

Decomposition of a scenicness prediction into contributing semantic attributes, showing the 'what-where-how' explanation.
  • Faithfulness by Design: Because the final score is a simple linear sum of the attribute maps, the explanation is 100% faithful to the model's logic. If an attribute map is empty, that feature did not contribute to the score.
  • What-Where-How Explanations: The model provides a clear breakdown of which attributes were detected (what), their location in the image (where), and their positive or negative weight toward the final score (how).
  • Spatial Aesthetics: The learned templates reveal that the location of an attribute matters; for instance, "farming" contributes positively in the foreground but can have a negative impact if it dominates the upper portion of an image.
  • Model Debugging: The transparency allows for easy identification of errors. In one case, the model underestimated a scene's beauty because it misidentified a reflection as a "road," an attribute associated with lower scenicness.

Conclusion

SIAM offers a path toward transparent deep learning by forcing models to "explain" themselves through a bottleneck of human-understandable attributes. While currently limited by a fixed vocabulary of 33 attributes and relatively coarse localization, it provides a robust framework for building inherently interpretable CNNs without substantial performance loss. Future work may involve automatic attribute discovery and the integration of pixel-level segmentation for finer spatial precision.

Summary updated

BibTeX
@inproceedings{marcos2019semantically,
  author = {Diego Marcos and Sylvain Lobry and Devis Tuia},
  title = {{Semantically Interpretable Activation Maps: what-where-how explanations within CNNs}},
  booktitle = {Workshops @ ICCV},
  year = {2019},
  doi = {10.1109/iccvw.2019.00518},
}
Figure