arXiv:2609.05937cs.CVSep 2026

Manuscript Offprint

arXiv:2609.05937

Beyond Classification: Structured Supervision Aligns Visual Evidence with Medical Semantics

Hexiang Bai, Hanyang Xu, Xiaoxue Li, Xiaoliang Wu, Shangde Gao, Hongxia Xu, Ke Liu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Hexiang Bai 1^{1}

aquen@zju.edu.cn

Hanyang Xu 1^{1}

hanyangxu@zju.edu.cn

Xiaoxue Li 4^{4}

lixiaoxue@htu.edu.cn

Xiaoliang Wu 5^{5}

xiaoliang.wu@soton.ac.uk

Shangde Gao 2,3∗^{2,3*}

gaosde@zju.edu.cn

Hongxia Xu 3^{3}

Einstein@zju.edu.cn

Ke Liu 1,6∗^{1,6*}

lk2017@zju.edu.cn

1^{1} Zhejiang University

Hangzhou, China

2^{2}The Second Affiliated Hospital

Zhejiang University

Hangzhou, China

3^{3} Transvascular Implantation Devices

Research Institute and State Key

Laboratory of Transvascular

Implantation Devices

Hangzhou, China

4^{4} Henan Normal University

Xinxiang, China

5^{5} University of Southampton

Southampton, United Kingdom

6^{6} School of Software Technology

Zhejiang University

Ningbo, China

Abstract

Vision Transformers (ViTs) have shown immense potential in medical image analysis. However, standard pre-training via global image classification suffers from spatial collapse, where models rely heavily on background shortcuts rather than localising critical foreground lesions. To overcome this limitation and align visual evidence with precise medical semantics, we systematically investigate alternative pre-training paradigms. Specifically, we evaluate three independent forms of structured supervision: topological priors via graph self-supervision, dense pixel-level constraints via segmentation, and cross-modal semantic grounding via image-text pairs. Notably, our empirical analysis reveals that while all three forms of structured supervision successfully alleviate the global pooling bottleneck and steer visual attention towards foreground regions, image-text alignment achieves the most superior performance. By embedding high-dimensional diagnostic logic, the cross-modal approach not only anchors attention on precise visual evidence but also enables profound abstract reasoning. Extensive experiments demonstrate that this semantically enriched pre-training fundamentally enhances the model's feature representation. Consequently, when fine-tuned for downstream clinical classification tasks, our models achieve superior accuracy and yield highly interpretable attention

© 2026. The copyright of this document resides with its authors. It may be distributed unchanged freely in print or electronic forms.

∗^{*}Corresponding authors; primary: Ke Liu.

maps focused on true pathological features, vastly outperforming vanilla classification baselines.

1 Introduction

Vision Transformers (ViTs) have fundamentally reshaped the landscape of medical image analysis, demonstrating formidable representation capabilities [0, 5]. However, unlike natural images where the subjects are typically prominent, medical images are inherently complex: they are characterized by high resolutions, intricate anatomical structures, and extremely small pathological regions (lesions) buried within noisy backgrounds [6, 10, 15]. Consequently, standard pre-training paradigms that rely on global image classification often exhibit suboptimal behavior in clinical scenarios. Driven by the objective to minimize a global loss through the class token ([CLS]), ViTs are prone to 'shortcut learning', which refers to a phenomenon that the model learns to associate background textures, scanner artifacts, or general anatomical shapes with the target label, rather than localising the actual diagnostic foreground [6, 11]. This spatial collapse fundamentally prevents the model from aligning precise visual evidence with medical semantics.

To achieve high accuracy and interpretability in downstream clinical classification, a model must not merely guess the label; it must base its decision on valid visual evidence. We hypothesise that the root cause of spatial collapse in conventional classification pre-training lies in the absence of spatial or structural constraints. When a ViT is optimised solely via global pooling, the patch tokens lack the explicit incentive to capture local topology or dense pathological boundaries. Therefore, to force the attention mechanism to anchor onto foreground lesions, it is imperative to introduce structured supervision during the pre-training phase.

In this paper, we explore three structured pre-training paradigms that introduce spatial or semantic constraints beyond standard classification: graph self-supervision, segmentation co-pretraining, and image-text alignment. Although these approaches stem from entirely different methodological lineages, our empirical analysis reveals a striking commonality. By breaking the flat, global pooling bottleneck of vanilla ViTs, all three forms of structured supervision successfully correct the attention dispersion, steering the model to reliably attend to foreground lesions.

Most importantly, our comparative study uncovers that cross-modal semantic grounding (image-text alignment) significantly outperforms both graph-based and segmentation-based pre-training. While graph and segmentation tasks provide essential structural regularisation, they remain fundamentally constrained within a closed-set visual domain. In contrast, radiology reports or clinical texts embed high-dimensional diagnostic logic and open-vocabulary semantics. By aligning visual patches with these rich textual descriptions, the model inherently learns not only where the lesion is, but what defines it clinically. Consequently, when fine-tuned for downstream classification tasks, the image-text pre-trained ViT achieves superior generalisation accuracy and yields highly interpretable attention maps that precisely highlight true pathological features, vastly outperforming vanilla classification baselines.

Our contributions are summarised as follows:

  • We identify and analyse the spatial collapse phenomenon in standard ViT classification pre-training for medical imaging, demonstrating its failure to capture valid visual evidence.

  • We systematically evaluate three independent structured supervision paradigms (graph, segmentation, and image-text) and empirically prove that they all successfully anchor visual attention onto foreground lesions.

  • We demonstrate that image-text cross-modal pre-training serves as the most effective paradigm. It significantly enhances feature representation, leading to superior accuracy and highly interpretable visual evidence in downstream clinical classification tasks.

References (27)