↓ Skip to main content

Information Bottleneck: visual, interpretable explanations for classification models

·772 words·4 mins
Yenjia Chen
Author
Yenjia Chen
Deep learning, medical AI, data science, and mathematics.

Information Bottleneck Attribution visualized on an image of monkeys

In 2023, when everyone is focused on LLMs, here is an image visualization method that has received little attention but works well. For image classification, many people use visualization to explain what a model bases its decision on. The method in this article builds on one idea, the Information Bottleneck, to create an alternative to gradient-based methods such as Grad-CAM. The paper shows that it comes with some theoretical guarantees and can easily be applied to all kinds of model architectures. This article aims for an intuitive understanding rather than a detailed derivation.

Introduction
#

Restricting the Flow: Information Bottlenecks for Attribution, published at ICLR 2020, is the paper we will discuss. Work on visualization and interpretability often runs into a few hard problems, for example:

  1. Methods are hard to apply to unusual, custom model architectures.
  2. Some methods are slow and inefficient (Occlusion Sensitivity, for instance).
  3. Gradient-based methods are sensitive to model parameters and tend to include unimportant regions.

To get precise results, the authors bring in the Information Bottleneck. Backed by information theory, it guarantees that regions of an image judged irrelevant are not necessary for the model’s prediction.

What is the Information Bottleneck?
#

The Information Bottleneck objective: max I[Y;Z] − βI[X,Z]
Information Bottleneck

The Information Bottleneck is this one expression, first proposed in 2000, where I denotes mutual information. Put simply, the goal is to maximize the mutual information between Y and Z while minimizing (hence the minus sign) the mutual information between X and Z. β is a manually tuned parameter.

X passes through the first part of the network, which removes irrelevant features, to give Z; Z passes through the second part, which extracts informative features, to give the prediction Y

That may still not make clear what X, Y and Z mean here, so let’s map the idea onto a familiar model. The blue boxes are one complete model (ResNet50, say), split into a front and a back half. X is the input, Z is the intermediate result after X passes through the front half, that is, the features, and Y is the output. Back to the expression: minimizing the information between X and Z means filtering out as much unimportant information as possible (such as an image’s background) and keeping the important information Z, which is the idea of feature extraction. The remaining features must still classify well, so we also maximize the information between Y and Z, which is what an ordinary classification model already does.

You might notice that the whole process resembles compression and decompression. When compressing, we want a high compression ratio without losing too much of the file (for lossy compression).

Architecture
#

The Per-Sample Bottleneck: a mask controls where noise is added to the model’s intermediate features
Per-Sample Bottleneck

The paper proposes two architectures. Since they share the main idea, I’ll introduce the first one, the Per-Sample Bottleneck. First, the model is split into two parts, “net-” and “-work” in the figure. R is the features obtained after the input passes through the front half. α is a trainable mask. λ is the result of applying the sigmoid function to α, and ε is noise drawn from a Gaussian distribution. Z is a weighted average of R and the noise, weighted by λ according to the mask.

The core idea is to add noise to the features, using the mask to control which positions are replaced with noise, and then feed the noisy features into the back half to get the output. We learn the mask with the Information Bottleneck objective, so that it finds which positions can be replaced with noise without affecting the final prediction. Finally, α gives us the heatmap for the image.

Results
#

Visual comparison of Information Bottleneck Attribution with Grad-CAM and other methods
Figure 8 from reference 1

Information Bottleneck Attribution compared with Grad-CAM on medical images
Figure 4 from reference 2

Besides the paper’s own results, I’ve added results on medical images. Overall, compared with the familiar Grad-CAM, Grad-CAM more often highlights unimportant regions and its results tend to blur together, and the same problem appears in the medical imaging examples. Still, neither visualization methods nor models are perfect, so use them with care.

Conclusion
#

This article introduced the paper as simply and intuitively as possible, covering:

  1. The Information Bottleneck
  2. How the Information Bottleneck can be applied to visualization

The idea can be applied to other problems and needs too, such as the compression mentioned above. The authors of this paper approached it from visualization and the structure of classification models, designed a method around the concept, and achieved good results.

References
#

  1. Karl Schulz, Leon Sixt, Federico Tombari, & Tim Landgraf (2020). Restricting the Flow: Information Bottlenecks for Attribution. In International Conference on Learning Representations.
  2. Demir, Ugur, et al. “Information bottleneck attribution for visual explanations of diagnosis and prognosis.” Machine Learning in Medical Imaging: 12th International Workshop, MLMI 2021, Held in Conjunction with MICCAI 2021, Strasbourg, France, September 27, 2021, Proceedings 12. Springer International Publishing, 2021.
  3. Naftali Tishby, Fernando C Pereira, and William Bialek. The information bottleneck method. arXiv preprint physics/0004057, 2000.