1 MIN READ
workshop · 2024 · PublishedAGE for breast density
Can attention replace a segmentation network?
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.01 / THE QUESTION
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.
02 / THE IDEA
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.
- 01VinDr-Mammo
- 02DINO pretraining
- 03Attention head
- 04Binary mask
- 05Erase background
- 064-class density model
03 / WHAT WE TESTED
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.
04 / MAIN RESULT
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.
No erasing → AGE at P = 0.6
Rarest class, 100 images
Majority class — slightly worse
| Method | P = 0.2 | P = 0.4 | P = 0.6 | P = 0.8 |
|---|---|---|---|---|
| Random erasing | 0.5691 | 0.5617 | 0.5522 | 0.5503 |
| Attention-guided erasing | 0.5774 | 0.5731 | 0.5910 | 0.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.
05 / WHY IT MATTERS
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
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