High resolution weakly supervised localization architectures for medical images

Konpat Preechakul, Sira Sriswasdi, Boonserm Kijsirikul, Ekapol ChuangsuwanicharXiv 2020

TL;DR

PYLON (Pyramid Localization Network) is a novel architecture designed to significantly improve the resolution and accuracy of weakly supervised localization in medical imaging. By identifying and removing architectural components that destroy spatial information—specifically Global Average Pooling and Group Normalization—the authors achieve a 37% improvement in point localization accuracy on chest X-rays using only image-level labels.

What Problem Does This Paper Address?

In medical AI, we often want to know where a model is looking to trust its diagnosis. The standard tool for this is the Class-Activation Map (CAM), which highlights regions of interest. However, most medical datasets only provide image-level labels (e.g., "Pneumonia present") rather than expensive pixel-level masks. This is "weakly supervised localization" (WSL).

The major bottleneck for CAMs is resolution. A typical classification network might produce a feature map that is only 8x8 pixels for a 256x256 input. For small clinical findings like lung nodules, which can occupy less than 1% of an image, these low-res maps are far too coarse to be useful.

One might assume that simply plugging in a high-resolution decoder from a segmentation model (like a Feature Pyramid Network) would solve this. Surprisingly, the authors found that these advanced architectures often perform worse than simple baselines when trained with only image-level labels. This paper investigates why this happens and proposes a solution.

Methods

The authors identify shift-equivariance as the critical property for accurate WSL. A shift-equivariant network ensures that if an object moves in the input, its representation moves by the same amount in the output feature map.

They pinpoint two main "culprits" that break this property in standard decoders:

  1. Global Average Pooling (GAP): Often used in attention modules within decoders, GAP averages spatial information into a single vector, effectively "destroying" the location data.
  2. Group Normalization (GN): While theoretically shift-equivariant, the authors empirically found that GN causes models to highlight only the borders of objects rather than the objects themselves.

PYLON Architecture: To fix this, the authors designed PYLON, which consists of an encoder (like ResNet-50) and a custom decoder.

  • Pyramid Attention (PA) Module: A modified version of standard attention that removes GAP, relying instead on multi-scale convolutions to capture context without losing spatial resolution.
  • Upsampling (UP) Module: Uses 1x1 convolutions and bilinear upsampling to maintain localization precision.
  • Global Max Pooling: Used only at the very end of the decoder path to convert the high-res feature maps into image-level classification logits.
The PYLON architecture featuring the PA and UP modules

Datasets

The model was evaluated on the NIH Chest X-Ray 14 dataset.

  • Training: Performed using image-level labels for 14 different thoracic diseases across ~80,000 images.
  • Evaluation: The authors used a subset of ~1,000 images that contain ground-truth bounding box annotations to measure how well the model's heatmaps align with actual clinical findings.

Key Insights and Ideas

  • Task Mismatch: Architectures designed for full supervision (segmentation) don't automatically translate to weak supervision. In WSL, the network must "discover" spatial information on its own, making it hypersensitive to layers that blur or aggregate spatial coordinates.
  • The GAP Trap: While GAP is a staple of modern classification heads, its presence inside a decoder path is lethal for localization. PYLON demonstrates that you can achieve high-res results by delegating spatial reasoning to the encoder and keeping the decoder "clean" of spatial aggregators.
  • Normalization Matters: The discovery that Group Normalization hinders WSL is a significant finding. Replacing it with Batch Normalization in a standard FPN improved localization accuracy from 0.08 to 0.52, highlighting how subtle architectural choices impact explainability.

Key Results

PYLON achieved a weighted average point localization accuracy of 0.62, a substantial jump from the 0.45 achieved by a standard ResNet backbone.

Crucially, PYLON excels at localizing small objects. For the "Nodule" class—the smallest and hardest to find—PYLON achieved an accuracy of 0.46, whereas the baseline backbone essentially failed at 0.07.

Fig. 2. Qualitative results for the class Nodule. Backbone and Li 2018 [6] produce low-resolution CAM. FPN produces un- usable CAM highlighting only on the borders. PYLON (ours) produces highest localization accuracy. More qualitative re- sults are available at https://github.com/cmb-chula/pylon.

Importantly, this improved localization does not come at the cost of diagnostic power; PYLON maintains a classification AUROC of 0.82, identical to the backbone model.

Detailed point localization accuracy across different disease classes

Limitations and Future Work

  • The GN Mystery: The authors noted that it is still unclear why Group Normalization specifically hinders localization in this context, as it is theoretically shift-equivariant. This remains an open question for future research.
  • Encoder Dependency: PYLON relies heavily on the quality of the features provided by the encoder. While it works well with ResNet, its performance with more modern or specialized medical encoders hasn't been fully explored.
  • Single Dataset: The results are currently demonstrated on a single (though large) chest X-ray dataset. Testing on other modalities like CT or pathology slides would further validate the architecture's generalizability.

Summary updated

BibTeX
@misc{preechakul2020high,
  author = {Konpat Preechakul and Sira Sriswasdi and Boonserm Kijsirikul and Ekapol Chuangsuwanich},
  title = {{High resolution weakly supervised localization architectures for medical images}},
  year = {2020},
  eprint = {2010.11475},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.11475},
}
Figure