← All publications

1 MIN READ

workshop · 2024 · Published

AGE for breast density

Can attention replace a segmentation network?

Paper
Attention-Guided Erasing: A Novel Augmentation Method for Enhancing Downstream Breast Density Classification
Authors
Adarsh Bhandary Panambur · Hui Yu · Sheethal Bhat · Prathmesh Madhu · Siming Bayer · Andreas Maier
Venue
Bildverarbeitung für die Medizin (BVM) 2024, Erlangen, 13–18
FIG 1 / METHOD
Input mammogram → DINO-pretrained ViT → six attention heads → six binary masks → selected mask → erased image. No segmentation labels anywhere in the chain. My figure — from the paper and my PhD thesis ↗
20,000 Mammograms VinDr-Mammo · 5,000 patients
0.5910 Macro F1 Baseline without erasing: 0.5594
0.0847 → 0.2158 Density A F1 The rarest class: 100 images total
05× Runs per setting

IN ONE SENTENCE

Summary

Replace the supervised tissue-segmentation step in breast density classification with one attention head from a model that was never given a label.

Why segment before you classify?

The standard density pipeline trains one network to remove background and pectoralis muscle, then a second to classify. That first network needs radiologist annotations or hand-tuned image processing, which is exactly what a new cohort will not have.

The question was whether a self-supervised model already knows enough about where breast tissue is to skip that step.

One attention head, thresholded into a mask.

A DeiT-small ViT is pretrained with DINO on the VinDr-Mammo training split — no labels. Of its six final-layer attention heads, the one whose activation covers only a small number of pixels turns out to track dense tissue; it is thresholded into a binary mask.

During fine-tuning, everything outside that mask is erased with probability P. The classifier is pushed towards the tissue and away from the background, without anyone drawing a contour.

  1. 01VinDr-Mammo
  2. 02DINO pretraining
  3. 03Attention head
  4. 04Binary mask
  5. 05Erase background
  6. 064-class density model

A heavily imbalanced screening cohort.

VinDr-Mammo: 20,000 full-field digital mammograms from 5,000 patients at two Hanoi hospitals, BI-RADS density annotated by consensus of three radiologists. Density C dominates with 15,292 of the 20,000 images; density A has just 100.

AGE was compared against no erasing and against random erasing at four probabilities, five runs each, on the original 4,000-image test split.

100 Density A images Of 20,000 total
15,292 Density C images The majority class
4,000 Test images Original released split
04 Erasing probabilities P = 0.2 / 0.4 / 0.6 / 0.8

Random erasing gets worse with more erasing. Guided erasing does not.

AGE reached mean macro F1 0.5910 at P=0.6, ahead of no erasing (0.5594), random erasing (0.5691) and the published ResNet-34 and EfficientNet-B2 single-view baselines (0.504 and 0.5525).

The mechanism shows in the probability sweep: random erasing decays as you erase more, because it starts removing tissue. AGE stays above the baseline throughout — it only ever removes background.

Macro F10.5594 → 0.5910

No erasing → AGE at P = 0.6

Density A F10.0847 → 0.2158

Rarest class, 100 images

Density C F10.8672 → 0.8610

Majority class — slightly worse

Mean macro F1 (standard deviation) on the VinDr-Mammo test set, n = 4,000, over 5 runs.
MethodP = 0.2P = 0.4P = 0.6P = 0.8
Random erasing0.56910.56170.55220.5503
Attention-guided erasing0.57740.57310.59100.5747

No-erasing baseline: 0.5594. Published single-view baselines on the same split: ResNet-34 0.504, EfficientNet-B2 0.5525. Two-tailed unpaired t-test, p < 0.0001.

It became the method the rest of the work is built on.

Removing the annotated segmentation stage is what makes density assessment portable to a cohort that has labels but no masks.

This paper is the origin of the attention-guided erasing line: the journal follow-up tested it across five tasks and three modalities, and found both where it generalizes and where it stops.

LIMITATION

What this does not show

One dataset, one task. The overall gain comes from the rare density classes, while the two majority classes moved marginally in the wrong direction — a trade-off worth knowing before deploying it.

READ IT YOURSELF

Paper · DOI · Code · Citation

Paper ↗DOI ↗arXiv ↗
View original abstract + citation

Abstract

Automatic BI-RADS breast density classification is particularly relevant in populations with a high prevalence of extremely dense breasts. Conventional deep-learning pipelines typically use a separate network to segment background tissue or the pectoralis muscle before classification, which requires high-quality annotations. This paper introduces Attention-Guided Erasing (AGE): a Vision Transformer is pretrained with DINO on the target mammography cohort, the self-attention map of a selected head is thresholded into a binary mask, and the region outside that mask is erased with a given probability during downstream transfer learning. On the VinDr-Mammo test set AGE reaches a mean macro F1-score of 0.5910, outperforming no-erasing and random-erasing baselines.

Citation

A. Bhandary Panambur, H. Yu, S. Bhat, P. Madhu, S. Bayer, A. Maier. Attention-Guided Erasing: A Novel Augmentation Method for Enhancing Downstream Breast Density Classification. Bildverarbeitung für die Medizin (BVM) 2024, pp. 13–18. doi:10.1007/978-3-658-44037-4_8