[Paper Review] B-cos Networks: Alignment is All We Need for Interpretability
This paper introduces B-cos Networks, a method that enhances deep neural network interpretability by replacing standard linear transforms with a novel B-cos transform that enforces weight-input alignment during training. The B-cos transform enables faithful, human-interpretable explanations via a single linear summary of the entire network, achieving high-quality visual explanations while maintaining competitive ImageNet performance across multiple architectures like ResNet, VGG, and DenseNet.
We present a new direction for increasing the interpretability of deep neural networks (DNNs) by promoting weight-input alignment during training. For this, we propose to replace the linear transforms in DNNs by our B-cos transform. As we show, a sequence (network) of such transforms induces a single linear transform that faithfully summarises the full model computations. Moreover, the B-cos transform introduces alignment pressure on the weights during optimisation. As a result, those induced linear transforms become highly interpretable and align with task-relevant features. Importantly, the B-cos transform is designed to be compatible with existing architectures and we show that it can easily be integrated into common models such as VGGs, ResNets, InceptionNets, and DenseNets, whilst maintaining similar performance on ImageNet. The resulting explanations are of high visual quality and perform well under quantitative metrics for interpretability. Code available at https://www.github.com/moboehle/B-cos.
Motivation & Objective
- To address the challenge of making deep neural networks inherently interpretable without sacrificing performance.
- To develop a method that produces model-faithful, human-interpretable explanations by structurally constraining weight updates during training.
- To enable high-quality visual explanations for both final outputs and intermediate neurons using a single, unified linear summary.
- To ensure compatibility with existing deep learning architectures such as ResNet, VGG, InceptionNet, and DenseNet.
- To demonstrate that interpretability and model accuracy can coexist through structural design rather than post-hoc explanation methods.
Proposed method
- The B-cos transform replaces standard linear layers by normalizing weights and applying an input-dependent scaling factor, promoting alignment between learned weights and task-relevant input patterns.
- The transform ensures that any sequence of B-cos layers can be summarized by a single linear transform, W₁→L(x), which faithfully reflects the full model computation for a given input.
- The method introduces alignment pressure during optimization by making the transform input-dependent, encouraging weights to align with salient input features.
- Explanations are generated via backpropagation-based saliency maps using the induced linear transform W₁→L(x), visualizing the contribution of each input pixel to the final prediction.
- The B-cos transform is designed as a drop-in replacement for fully connected and convolutional layers, requiring minimal architectural changes.
- The parameter B in the B-cos transform allows fine-grained control over the degree of weight-input alignment, enabling tuning of interpretability.
Experimental results
Research questions
- RQ1Can a structural modification to linear layers improve the interpretability of deep neural networks without degrading performance?
- RQ2Can a single linear transform summarize the entire computation of a deep network while remaining faithful and interpretable?
- RQ3Does enforcing weight-input alignment during training lead to more meaningful and visually coherent explanations?
- RQ4Can the B-cos transform be seamlessly integrated into diverse architectures like ResNet, VGG, and DenseNet while preserving accuracy?
- RQ5How does the B-cos method compare to post-hoc explanation techniques in terms of faithfulness and visual quality?
Key findings
- B-cos Networks achieve competitive ImageNet top-1 accuracy (within 1-2% of baseline models) while providing highly interpretable, visually coherent explanations.
- The induced linear transform W₁→L(x) faithfully summarizes the entire network’s computation, enabling explanation of both final outputs and intermediate layer neurons.
- Explanations for individual neurons in layer 87 of a DenseNet-121 show high specificity, with neurons reliably highlighting semantic concepts such as faces, eyes, wheels, and even watermarks.
- The model’s uncertainty in predictions is visually explainable: difference maps (Δ-explanations) reveal shared and opposing evidence between top two predicted classes.
- The B-cos transform increases training and inference time by up to 60% due to normalization and scaling, but this overhead is expected to decrease with optimized implementation.
- The method outperforms existing post-hoc explanation techniques in both quantitative metrics and qualitative inspection across all tested architectures.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.