Dilated Convolution with Learnable Spacings makes visual models more aligned with humans: a Grad-CAM study

Rabih Chamas, Ismail Khalfaoui Hassani, Timothée MasquelierarXiv 2024 · DOI

Introduction

Deep learning models are often criticized as "black boxes." While they achieve incredible accuracy, their internal reasoning often relies on textures or background elements that humans ignore. Explainability methods like Grad-CAM attempt to visualize model focus, but they often fail on modern architectures. This paper explores whether Dilated Convolution with Learnable Spacings (DCLS) can bridge the gap between human and machine vision.

Methodology

Dilated Convolution with Learnable Spacings (DCLS)

Standard convolutions operate on local pixel patches, while dilated convolutions expand the receptive field by skipping pixels in a rigid grid. DCLS advances this by allowing the network to learn the optimal positions of these skips during training via backpropagation. This flexibility allows models to develop more nuanced visual context and potentially more "natural" reasoning patterns.

Threshold-Grad-CAM

The researchers identified a technical failure in standard Grad-CAM when applied to modern hybrid architectures like ConvFormer. Standard Grad-CAM applies the ReLU function after summing activation maps, which can lead to signal cancellation and noisy heatmaps. Threshold-Grad-CAM addresses this by applying ReLU to each map before summation, normalizing the result, and introducing a 0.3 threshold to filter out low-level noise and highlight critical regions.

Experimental Results

The study evaluated models using the ImageNet-1k dataset for accuracy and the ClickMe dataset—which contains human-generated attention heatmaps—to measure "human-likeness" via Spearman correlation.

Qualitative Alignment

Visual evidence suggests that DCLS-equipped models focus on object features more similar to those identified by humans. As shown in the comparison below, DCLS models produce heatmaps that are more concentrated on the primary subject compared to standard ConvNext baselines.

Visual comparison of attention heatmaps across different models and human ground truth (ClickMe).

Quantitative Interpretability Gains

DCLS improved interpretability scores in 7 out of 8 tested models. As shown in the scatter plot below, most architectures shifted toward higher alignment scores when DCLS was integrated, with points consistently appearing above the diagonal line of parity.

Comparison of interpretability scores with and without DCLS across various model architectures.

For instance, the alignment score for ConvNeXt-Tiny increased from 0.6696 to 0.7561. Furthermore, Threshold-Grad-CAM successfully recovered meaningful heatmaps for models like CAFormer, where standard tools previously produced random noise, raising its score from 0.1719 to 0.5571.

Discussion and Limitations

The study found a positive correlation between model size and interpretability, suggesting that increased capacity allows for more robust conceptual representations. However, DCLS did not improve scores for FastViT, likely due to conflicts with its specific reparameterization techniques used during inference. Future work should explore "black-box" evaluation methods like RISE to further validate these human-alignment findings without relying on internal gradients.

Conclusion

DCLS not only enhances classification accuracy but also significantly improves the interpretability of visual models. By allowing networks to learn their own spatial dependencies, DCLS fosters a decision-making process that is more aligned with human visual strategies, making AI systems more transparent and potentially more robust.

Summary updated

BibTeX
@misc{chamas2024dilated,
  author = {Rabih Chamas and Ismail Khalfaoui Hassani and Timothée Masquelier},
  title = {{Dilated Convolution with Learnable Spacings makes visual models more aligned with humans: a Grad-CAM study}},
  year = {2024},
  eprint = {2408.03164},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.03164},
}
Figure