arXiv:2610.22094cs.CVOct 2026

Manuscript Offprint

arXiv:2610.22094

SCCL-DT: Semantic-Conflict-Aware Contrastive Learning with Dual-Rule Teacher Distillation for Zero-Shot Chest X-Ray Diagnosis

Ting Liu, Haoran Lai, HaobinChen, Ming Liu, S Kevin Zhou

Abstract

Contrastive vision–language pre-training supports zero-shot chest X-ray diagnosis, but standard objectives treat every off-diagonal image–report pair in a batch as a negative. In radiology, recurring findings across patients mean that instance mismatch need not imply semantic incompatibility, creating false-negative supervision that we term a semantic conflict. A training-trace audit shows that pair-observations selected by the online mask used during training are enriched for report-derived finding agreement, although this proxy analysis does not establish clinical equivalence. Fixed thresholds can become miscalibrated as similarity distributions evolve, while soft reweighting leaves residual repulsive gradients. We therefore propose Semantic-Conflict-Aware Contrastive Learning (SCCL), which tracks modality-specific similarity distributions with exponential-moving-average (EMA) statistics, derives adaptive thresholds, and hard-masks flagged candidates before softmax normalization. Inclusive (OR) and consensus (AND) rules define two SCCL teachers, whose bidirectional cross-modal rankings are consolidated through standard distillation into a single deployable student, SCCL-DT. Across five public chest X-ray benchmarks, SCCL-DT achieves a mean zero-shot AUC of 0.850, compared with 0.837 for the strongest evaluated baseline in our comparison. Code will be made publicly available soon.

1. Introduction

Vision–language pre-training (VLP) has emerged as a promising paradigm for zero-shot chest X-ray diagnosis. By aligning radiographs with their free-text reports, VLP models learn joint representations that can be queried with disease prompts at inference without requiring task-specific annotations [12, 27, 37]. Most medical VLP approaches optimize a batch-wise contrastive objective [23, 25]: within a mini-batch of B image–report pairs, matched pairs are treated as positives, whereas all off-diagonal pairs are treated as negatives. This formulation inherits a key assumption from instance-level contrastive learning: every unmatched pair is a valid negative.

a Traced training pair

Figure

A report cues

bibasilar atelectasis

pulmonary edema

bilateral effusions

Figure

B report cues

basal atelectasis

pulmonary edema

bilateral effusions

Training-time masking decision

Image-image

similarity ✓

OR

Report-Report

similarity ✓

→ Marked

Post-hoc proxy check

Exact match of CheXpert present-label sets

b In-batch proxy-label matches

Figure

Batch size B

Batch size B

c Online-mask enrichment

Figure

Flagged subset

Epoch window

Figure 1. Motivation and label-based analysis of candidate semantic conflicts. (a) Online inclusive masking excludes an off-diagonal candidate from the negative set when either its image–image or report–report similarity exceeds the adaptive threshold. (b) Anchor-level probability and expected count of cross-patient matches with identical present-label sets. (c) Exact present-label-set agreement for flagged versus all eligible pair-observations, overall and across training windows.

This assumption is particularly fragile in radiology, where reports from different patients frequently describe overlapping findings using similar or interchangeable expressions. As illustrated in Figure 1(a), the two batch items underlying an unmatched image–report candidate may share the same report-derived finding set. At a mini-batch size of 256, an exact corpus-level calculation under uniform random batching estimates that 66.8% of pathology-positive anchors would encounter at least one cross-patient batch mate with an identical CheXpert present-label set, with 2.78 such matches per anchor on average (Figure 1(b)). A related enrichment appears in the recorded online masking decisions. Within the trace prefix ending at the best checkpoint, the inclusive rule used in the trace—which masks an off-diagonal pair when either the corresponding image–image or report–report similarity exceeds its modality-specific adaptive threshold—flags pair-observations with 3.96% exact present-label-set agreement, compared with 1.83% across all eligible pair-observations. Here, eligibility requires different patients and at least one positive label among the 12 pathology findings in each report; exact agreement is then evaluated over all 14 labels. The resulting 2.16×2.16\times enrichment remains above one throughout five consecutive training windows (Figure 1(c)). Although exact CheXpert present-label-set agreement does not establish clinical equivalence, its enrichment among flagged pair-observations suggests that this subset may contain a higher proportion of semantically compatible pairs. Consequently, semantically compatible pairs may still receive negative contrastive targets, giving rise to false-negative supervision. Such false negatives are known to degrade generic contrastive learning [5, 7]. We refer to this mismatch between semantic compatibility and the assigned contrastive target as a semantic conflict.

Prior work has attempted to mitigate false negatives by incorporating external clinical knowledge [19, 30], mining additional positive pairs from report- or study-level semantics [20, 21, 33], or softly reweighting suspected false negatives during optimization [15, 18]. Despite their effectiveness, two gaps remain. Detection: rules based on single-modality evidence or fixed, globally normalized similarity thresholds can become miscalibrated as modality-specific similarity distributions shift during representation learning. Optimization: additional positive mining may promote partial semantic compatibility to full equivalence, whereas soft reweighting still allows suspected false negatives to exert residual repulsive gradients unless their weights become exactly zero. An effective solution must therefore identify semantic conflicts adaptively and prevent them from being pushed apart without indiscriminately relabeling them as positives.

To address both gaps, we propose Semantic-Conflict-Aware Contrastive Learning (SCCL), which dynamically flags potential semantic-conflict candidates using evidence from both modalities and removes them through adaptive hard masking. For detection, SCCL maintains separate exponential-moving-average (EMA) statistics for intra-batch image–image and report–report similarities, allowing each threshold to track its modality-specific distribution as training evolves. Flagged candidates are excluded from contrastive normalization, eliminating their probability mass and repulsive gradients rather than treating them as additional positives. To account for uncertainty in the modality-specific intra-modal cues, we instantiate two rule-specific teachers: an inclusive (OR) teacher that accepts evidence from either modality to increase candidate coverage, and a consensus (AND) teacher that requires agreement between both modality-specific cues for more conservative selection. Standard distillation then consolidates the two teachers' cross-modal rankings into the single deployable student SCCL-DT. SCCL thus adapts candidate selection to evolving similarity distributions while explicitly preventing flagged candidates from being optimized as negatives.

Our contributions are:

• We propose SCCL, a contrastive framework that adaptively hard-masks similarity-flagged off-diagonal candidates using per-modality EMA thresholds, without adding trainable parameters to the masking module.

• We instantiate SCCL with inclusive and consensus rule-specific teachers and use standard distillation to consolidate their cross-modal rankings into SCCL-DT, a single deployable student.

• On five public chest X-ray benchmarks (Open-I, PadChest, ChestX-ray14, CheXpert, and ChestXDet10), SCCL-DT reaches a mean zero-shot AUC of 0.850, the highest among the compared methods, at single-model inference cost.

References (38)