DCMM-Transformer: Degree-Corrected Mixed-Membership Attention for Medical Imaging
Huimin Cheng, Xiaowei Yu, Shushan Wu, Luyang Fang, Chao Cao, Jing Zhang, Tianming Liu, Dajiang Zhu, Wenxuan Zhong, Ping Ma
TL;DR
DCMM-Transformer addresses the challenge that standard Vision Transformers overlook latent anatomical groupings in medical images by injecting a differentiable, DCMM-based additive bias into self-attention. The method learns soft community memberships and degree centrality from queries to construct a connection-probability matrix that biases attention, preserving gradient flow while guiding the model toward anatomically coherent patch interactions. Empirically, it delivers state-of-the-art performance across five medical imaging datasets and yields attention maps that align with clinically meaningful regions, improving interpretability. The approach offers a practical, scalable way to leverage structural priors in medical imaging, with broad implications for diagnosis and prognosis across modalities.
Abstract
Medical images exhibit latent anatomical groupings, such as organs, tissues, and pathological regions, that standard Vision Transformers (ViTs) fail to exploit. While recent work like SBM-Transformer attempts to incorporate such structures through stochastic binary masking, they suffer from non-differentiability, training instability, and the inability to model complex community structure. We present DCMM-Transformer, a novel ViT architecture for medical image analysis that incorporates a Degree-Corrected Mixed-Membership (DCMM) model as an additive bias in self-attention. Unlike prior approaches that rely on multiplicative masking and binary sampling, our method introduces community structure and degree heterogeneity in a fully differentiable and interpretable manner. Comprehensive experiments across diverse medical imaging datasets, including brain, chest, breast, and ocular modalities, demonstrate the superior performance and generalizability of the proposed approach. Furthermore, the learned group structure and structured attention modulation substantially enhance interpretability by yielding attention maps that are anatomically meaningful and semantically coherent.
