Learning Dynamic Prototypes for Visual Pattern Debiasing

Kongming Liang, Zijin Yin, Min Min, Yan Liu, Zhanyu Ma, Jun Guo

Published in the International Journal of Computer Vision (2024), this research presents a novel framework for addressing one of the most persistent challenges in deep learning: dataset bias. By moving beyond traditional, label-dependent fairness methods, the authors introduce a system that automatically discovers and balances underrepresented visual patterns.

The Challenge of Dataset Bias

Deep learning models are notoriously "data hungry" and prone to inheriting the biases of their training sets. In medical imaging, if a segmentation model is trained on a dataset where 90% of examples share a specific morphology, it will likely underperform on minority subgroups.

Traditionally, "debiasing" requires researchers to manually label sensitive attributes (e.g., demographic data or specific disease subtypes). However, such labels are often unavailable, expensive to produce, or too numerous to track. This paper tackles unsupervised debiasing: enabling a model to learn fairness without prior knowledge of which groups are being marginalized.

Conceptual shift from specific demographic/attribute bias to generalized visual pattern bias.

Visual Pattern as the Root of Bias

A core insight of this work is that demographic bias (such as race or sex) in medical imaging is often a proxy for underlying visual pattern bias. By ensuring a model can robustly represent the full structural diversity of a feature space, researchers can naturally improve fairness across various demographic and clinical subgroups without needing explicit labels for them.

The Dynamic Prototype-based Network

The authors propose a framework consisting of four integrated stages to achieve unsupervised debiasing:

  1. Object Pattern Extraction: To prevent background noise (like healthy tissue) from skewing the model, a coarse segmentation map is used to focus feature embedding strictly on the foreground object.
  2. Dynamic Prototype Discovery: Rather than using fixed categories, the model starts with zero prototypes. It dynamically spawns new "prototypes" to represent unique visual patterns whenever it encounters an image that falls below a similarity threshold $\mu$ compared to existing clusters.
  3. Adaptive Momentum Update: To prevent minority patterns from being "swallowed" by majority data, the authors use a new update rule. It identifies the "hardest negative" (the most similar but incorrect prototype) and explicitly pulls the current prototype away from it, preserving the distinct identity of rare subgroups.
  4. Prototype Inference: During prediction, an attention mechanism queries the library of learned prototypes, using this stored structural knowledge to enhance the features of the current input.

Evaluating Fairness in Medical Imaging

The framework was primarily evaluated on major polyp segmentation benchmarks, including Kvasir-SEG, EndoScene, and the large-scale PICCOLO dataset. To demonstrate generalizability, it was also tested on the ISIC-2017 skin lesion dataset.

Distribution of polyp subtypes and examples of segmentation performance across different visual patterns.

Crucially, the authors used the Paris Classification (a gold standard for polyp morphology) to evaluate fairness. Although the model never saw these labels during training, the goal was to see if the unsupervised prototype discovery could naturally align with these clinical categories.

Key Results and Insights

  • Superior Accuracy: On the PICCOLO dataset, the proposed method achieved a Dice score of 0.860, significantly outperforming state-of-the-art CNNs and Transformers.
  • Consistent Performance: Fairness was measured by the Standard Deviation (SD) of performance across subgroups. On PICCOLO, the SD dropped from 0.193 (U-Net baseline) to 0.060, indicating much more consistent performance across all polyp types.
  • Robustness to Imbalance: The method remained stable even when the "Imbalance Factor" of the dataset was artificially increased, a scenario where traditional debiasing techniques often fail.

Limitations and Future Work

While highly effective against dataset bias (imbalance in visual representation), the authors note that this method may not resolve task bias, where a protected variable is fundamentally entangled with the target task. Future research will explore applying these dynamic prototypes to a wider variety of medical tasks and using them to provide "explainable" feedback to clinicians regarding diagnostic decisions.

Summary updated

BibTeX
@article{liang2024learning,
  author = {Kongming Liang and Zijin Yin and Min Min and Yan Liu and Zhanyu Ma and Jun Guo},
  title = {{Learning Dynamic Prototypes for Visual Pattern Debiasing}},
  journal = {Int. J. Comput. Vis.},
  year = {2024},
  doi = {10.1007/s11263-023-01956-x},
}
Figure