FaNe: Towards Fine-Grained Cross-Modal Contrast with False-Negative Reduction and Text-Conditioned Sparse Attention
Peng Zhang, Zhihui Lai, Wenting Chen, Xu Wu, Heng Kong
TL;DR
FaNe addresses false negatives and coarse cross-modal alignment in medical vision–language pre-training by integrating semantic-aware positive mining, text-conditioned sparse attention pooling, and hard-negative intra-modal contrastive learning. The semantic class division with adaptive normalization identifies latent positives and organizes negatives, while multi-positive global alignment supports many-to-many pairings with a sigmoid-based loss $L_{mp}$. Fine-grained alignment leverages a sparse attention mask to ground sentence-level cues to image regions, with local losses $L_{t2i}$ and $L_{i2t}$ forming $L_{tc}$, complemented by the sparsity regularizer $L_{spa}$. A hard-negative intra-modal loss $L_{hn}$ further strengthens intra-modal discrimination. Pre-trained on MIMIC-CXR v2, FaNe yields state-of-the-art results across five medical benchmarks for classification, detection, and segmentation, demonstrating robust, fine-grained, cross-modal understanding in clinical imaging tasks.
Abstract
Medical vision-language pre-training (VLP) offers significant potential for advancing medical image understanding by leveraging paired image-report data. However, existing methods are limited by Fa}lse Negatives (FaNe) induced by semantically similar texts and insufficient fine-grained cross-modal alignment. To address these limitations, we propose FaNe, a semantic-enhanced VLP framework. To mitigate false negatives, we introduce a semantic-aware positive pair mining strategy based on text-text similarity with adaptive normalization. Furthermore, we design a text-conditioned sparse attention pooling module to enable fine-grained image-text alignment through localized visual representations guided by textual cues. To strengthen intra-modal discrimination, we develop a hard-negative aware contrastive loss that adaptively reweights semantically similar negatives. Extensive experiments on five downstream medical imaging benchmarks demonstrate that FaNe achieves state-of-the-art performance across image classification, object detection, and semantic segmentation, validating the effectiveness of our framework.
