VQ-Seg: Vector-Quantized Token Perturbation for Semi-Supervised Medical Image Segmentation
Sicheng Yang, Zhaohu Xing, Lei Zhu
TL;DR
This work tackles the instability of dropout-based perturbations in semi-supervised medical image segmentation by introducing VQ-Seg, which performs controlled perturbations in a discrete vector-quantized (VQ) space via a Quantized Perturbation Module (QPM). A dual-branch architecture shares a Post-VQ feature space for simultaneous image reconstruction and segmentation, while a Post-VQ Feature Adapter (PFA) aligns these quantized features with semantic priors from a frozen foundation model (DINOv2) through patch-wise contrastive learning. The method is validated on a large Lung Cancer CT dataset (828 scans) and the ACDC MRI dataset, achieving state-of-the-art performance under low-label regimes and demonstrating robustness through extensive ablations on codebook size, perturbation strength, and foundation-model influence. The approach reduces information loss from quantization and provides a stable, interpretable regularization mechanism with practical impact for semi-supervised medical image analysis, albeit with additional computational overhead from FM integration and discrete-space constraints.
Abstract
Consistency learning with feature perturbation is a widely used strategy in semi-supervised medical image segmentation. However, many existing perturbation methods rely on dropout, and thus require a careful manual tuning of the dropout rate, which is a sensitive hyperparameter and often difficult to optimize and may lead to suboptimal regularization. To overcome this limitation, we propose VQ-Seg, the first approach to employ vector quantization (VQ) to discretize the feature space and introduce a novel and controllable Quantized Perturbation Module (QPM) that replaces dropout. Our QPM perturbs discrete representations by shuffling the spatial locations of codebook indices, enabling effective and controllable regularization. To mitigate potential information loss caused by quantization, we design a dual-branch architecture where the post-quantization feature space is shared by both image reconstruction and segmentation tasks. Moreover, we introduce a Post-VQ Feature Adapter (PFA) to incorporate guidance from a foundation model (FM), supplementing the high-level semantic information lost during quantization. Furthermore, we collect a large-scale Lung Cancer (LC) dataset comprising 828 CT scans annotated for central-type lung carcinoma. Extensive experiments on the LC dataset and other public benchmarks demonstrate the effectiveness of our method, which outperforms state-of-the-art approaches. Code available at: https://github.com/script-Yang/VQ-Seg.
