mlsanityData to 14 Oct 2026

Learning Class Difficulty via Dynamic Focal Attention for Histopathology Segmentation

arXiv 2604.13479 ↗First posted 15 Apr 2026eess.IV cs.CVcited by 0

Not on the map. Why?

Abstract (arXiv)

Frequency-based loss reweighting, the standard remedy for imbalanced histopathology segmentation, implicitly assumes that rare classes are difficult. Yet difficulty also arises from morphological variability, boundary ambiguity, and contextual similarity, all largely orthogonal to class frequency. We propose Dynamic Focal Attention (DFA), a simple, efficient mechanism that learns class-specific difficulty directly within the cross-attention of query-based mask decoders. DFA adds a learnable per-class bias to the attention logits, reweighting representations before prediction rather than gradients after it. Initialised from a centred log-frequency prior to prevent gradient starvation and then optimised end-to-end, the bias adapts to difficulty signals as they emerge during training, unifying frequency- and difficulty-aware reweighting in a single attention-bias framework. On three benchmarks (BCSS, BDSA, CRAG), DFA consistently improves Dice and IoU, matching or exceeding a two-stage difficulty-aware baseline without a separate estimator or extra training stage. This shows that encoding difficulty at the representation level is a principled alternative to conventional loss reweighting.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 17 of its 24 references that are in the map. First posted on arXiv 15 Apr 2026.

Builds on

17 of 24 references.

References · 17

  1. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  2. 2023Segment Anythingcited by 8,234
  3. 2020End-to-End Object Detection with Transformerscited by 7,414
  4. 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,422
  5. 2021Masked-attention Mask Transformer for Universal Image Segmentationcited by 2,351
  6. 2019Class-Balanced Loss Based on Effective Number of Samplescited by 1,245
  7. 2021Per-Pixel Classification is Not All You Need for Semantic Segmentationcited by 1,152
  8. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
  9. 2020Data Efficient and Weakly Supervised Computational Pathology on Whole Slide Imagescited by 745
  10. 2020Long-tail learning via logit adjustmentcited by 618
  11. 2016Training Region-based Object Detectors with Online Hard Example Miningcited by 579
  12. 2017A systematic study of the class imbalance problem in convolutional neural networkscited by 513
5 more
  1. 2018HoVer-Net: Simultaneous Segmentation and Classification of Nuclei in Multi-Tissue Histology Imagescited by 388
  2. 2021Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medical image segmentationcited by 88
  3. 2018MILD-Net: Minimal Information Loss Dilated Network for Gland Instance Segmentation in Colon Histology Imagescited by 87
  4. 2023CoNIC Challenge: Pushing the Frontiers of Nuclear Detection, Segmentation, Classification and Countingcited by 33
  5. 2023SAM-Path: A Segment Anything Model for Semantic Segmentation in Digital Pathologycited by 26

Built on by

Not cited yet.