Interpretability Beyond Classification Output: Semantic Bottleneck Networks

Max Maria Losch, Mario Fritz, Bernt SchielearXiv 2019

Abstract

Deep learning models, while highly effective, often operate as "black boxes," making their internal decision-making processes opaque to human users. This paper introduces Semantic Bottleneck Networks (SBNs), an architectural modification that forces models to pass information through a layer of human-understandable concepts before reaching a final prediction. By constraining the network to use intermediate semantic representations—such as materials and object parts—engineers can debug failures and audit the logic behind specific outputs. Our results demonstrate that SBNs achieve interpretability with minimal loss in performance, maintaining competitive accuracy on complex tasks like urban scene segmentation.

Introduction: The Black Box Problem

Modern deep learning systems excel at high-dimensional tasks like image segmentation, yet they remain notoriously difficult to interpret. In traditional architectures, intermediate representations consist of abstract numerical arrays that lack inherent meaning to humans. This opacity poses significant risks in safety-critical applications, such as autonomous driving. If a model misidentifies a traffic hazard, engineers often cannot determine whether the error stemmed from a lighting artifact, a misrecognized texture, or a structural misunderstanding of the scene.

To address this, we propose Semantic Bottleneck Networks (SBNs). The goal is to create systems that are "inherently interpretable," where the logic driving a prediction is transparent and inspectable by design rather than through post-hoc approximations.

Methodology

The core innovation of an SBN is the Semantic Bottleneck (SB) layer. Instead of allowing a direct path from input features to output labels, the network is forced to "explain" the scene in terms of human-defined concepts (e.g., "metal," "wheel," "torso") before making a final classification.

The SBN architecture inserts a semantic bottleneck between traditional convolutional blocks, forcing the model to represent data as human-understandable concepts.

Training Pipeline

The implementation follows a three-stage process:

  1. Backbone Initialization: A high-performing base model (such as PSPNet) is selected to provide robust feature extraction.
  2. Concept Mapping: A specialized function is trained to map abstract features from the network's midpoint onto a set of semantic concepts. This stage requires additional supervision from datasets annotated with parts and materials.
  3. Head Finetuning: The early layers and the bottleneck are "frozen." The final layers (the "head") are then retrained to make predictions based exclusively on the activations of the semantic concepts.
Stage 3 of the training process involves finetuning the final layers (B') on the target domain while keeping the semantic bottleneck and early layers fixed.

Experimental Setup and Datasets

We evaluated SBNs using two primary data sources:

  • Cityscapes: A benchmark for urban street scene segmentation, focusing on categories like roads, pedestrians, and vehicles.
  • Broden+: A comprehensive collection of pixel-level annotations for thousands of concepts. For our bottleneck, we distilled these into a task-relevant set of 70 concepts, including materials (plastic, fabric) and object parts (head, door).

Key Insights

Dimensionality and Meaning

A significant finding of this research is that network layers can be drastically compressed if the remaining dimensions carry high semantic value. We reduced a layer from over 4,000 abstract features to just 70 semantic concepts and recovered nearly all the original performance of the unconstrained "black box" model.

Counterfactual Debugging

Because the bottleneck is human-readable, we can perform "counterfactual" interventions. By manually zeroing out specific activations in the bottleneck—such as those representing "building"—we can observe the network's output shift in real-time (e.g., flipping a prediction from "building" to "sky"). This confirms that the network is genuinely utilizing the intended semantic evidence to reach its conclusions.

Analyzing Failure Modes

SBNs allow for a new level of error analysis. By clustering failure cases, we discovered that many misclassifications are due to "semantic misinterpretation." For instance, a model might misidentify an orange traffic cone as a person because the cone's color activates the "skin" concept in the bottleneck. This level of insight is impossible to achieve with standard architectures.

Results

  • Performance Retention: The SBN achieved a Mean Intersection over Union (mIoU) of 76.2%, comparing favorably to the vanilla baseline of 78.5%. This indicates that interpretability does not require a massive sacrifice in accuracy.
  • Confidence Prediction: Using bottleneck activations, we could predict model confidence with high precision. For 76.3% of pixels, the model achieved 99% accuracy when its internal semantic evidence was clear.
  • Auditability: The system allows for direct audits of AI logic via concept activation maps, showing exactly which parts or materials contributed to a specific segmentation mask.

Limitations and Future Work

While SBNs offer a path forward for interpretable AI, several challenges remain. The current "vocabulary" of the bottleneck is manually selected; future research should explore automated methods for discovering optimal concepts. Additionally, the placement of the bottleneck is critical; if placed too late in the pipeline, the model may suffer from "vanishing evidence," where fine-grained details necessary for accurate segmentation are lost. Finally, the requirement for extra labeled data (like Broden+) remains a hurdle for applying this method to niche domains where such annotations are scarce.

Summary updated

BibTeX
@misc{losch2019interpretability,
  author = {Max Maria Losch and Mario Fritz and Bernt Schiele},
  title = {{Interpretability Beyond Classification Output: Semantic Bottleneck Networks}},
  year = {2019},
  eprint = {1907.10882},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.10882},
}
Figure