arXiv:2610.13012cs.CVOct 2026

Manuscript Offprint

arXiv:2610.13012

Learning Features, Not Layouts: Feature-Axis Attention as a Transfer Prior for Medical Imaging

Aon Safdar, Mohamed Saadeldin

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

Aon Safdar ID^{ID} and Mohamed Saadeldin ID^{ID}

University College Dublin, Ireland

aon.safdar@ucdconnect.ie, mohamed.saadeldin@ucd.ie

Abstract. Natural-image-pretrained foundation models are increasingly adapted to medical imaging, yet transfer remains unreliable under domain shift, modality heterogeneity, and label scarcity. We trace part of this fragility to an overlooked design choice. Standard vision transformers place all global modeling on self-attention over spatial tokens, an object-layout prior well suited to natural scenes but not to medical images, where the discriminative signal lies in feature correlations and texture that recur across scanners while layout does not. We ask whether the axis of global attention, spatial versus feature, is itself a lever for transferable medical representations. Existing channel-aware hybrids confound this question, adding channel attention to a spatially-mixed backbone and leaving the axes coupled and the feature axis unmeasurable in isolation. We design FAD-ViT, a backbone that strictly decouples the two axes, making feature-axis attention the primary global operator and the attention axis a controlled variable. Evaluating comprehensively across 23 classification, segmentation, and low-data tasks under matched tokenization, capacity, and protocol, we find that shifting global attention from the spatial to the feature axis leaves from-scratch performance essentially unchanged, yet markedly strengthens transfer. Identical ImageNet pretraining yields up to roughly three times the transfer gain, with consistent improvements on every held-out segmentation task at up to a quarter the parameter count and far lower compute than standard and channel-attention baselines. The advantage is largest where texture rather than geometry is discriminative, tracking greater reuse of pretrained features. The axis of global attention is thus a design lever for medical transfer, and making it channel-primary is a simple, cheap, and principled choice.

Keywords: Vision Transformers · Feature-Axis Attention · Medical Image Analysis · Transfer Learning

1 Introduction

Foundation-model pipelines increasingly dominate medical image analysis: a strong encoder pretrained on large-scale natural images is adapted to downstream clinical tasks [12,18][12,18]. Despite advances in parameter-efficient adaptation

Code and configurations are available at https://github.com/aonsafdar/FAD-ViT.

A. Safdar and M. Saadeldin

Figure

Fig. 1: Overview of the studied block. Spatial Feature Extraction (SFE) preserves the 2D grid with depthwise convolution; Feature Self-Attention (FSA) transposes tokens (B×N×C→B×C×N)(B \times N \times C \to B \times C \times N) and attends over feature tokens. Global interaction thus scales with width C rather than token count N.

and decoder design [9, 19], transfer remains inconsistent under domain shift, acquisition heterogeneity, limited supervision, and dense prediction [2]. Most transferred encoders inherit the standard vision transformer (ViT) [8], in which global modeling is dominated by self-attention over spatial tokens while feature/channel interaction is left to a mostly static feed-forward network. This bias suits natural-image pretraining, where object shape and layout are discriminative, but is less appropriate for medical transfer, where pathology often manifests as subtle feature correlations rather than dominant shape cues and exact spatial layout varies across devices, protocols, and anatomy.

The root of this mismatch is that spatial self-attention is asked to do two distinct jobs with one operator: extract local spatial structure and mix information globally. It is well matched to neither, carrying only a weak locality prior and costing O(N2)\mathcal{O}(N^{2}) in the token count. Hybrid and hierarchical backbones [16,22,23] add locality and efficiency but keep spatial attention as the primary global operator, and even channel-aware models that make the feature axis dynamic [7,10] graft it onto a pipeline still built for spatial mixing, changing only the mixing axis while inheriting spatial tokenization, projections, and locality modules. A different design separates the two jobs outright: extract with cheap depthwise convolution and mix globally with attention over channel tokens, so that each token summarizes the whole image and global interaction becomes an input-dependent reweighting of features at linear spatial cost. The consequences of this channel-primary design for medical transfer are unstudied, and are the subject of this paper: whether making global interaction channel-primary changes how well a backbone carries pretrained structure into heterogeneous medical domains, and if so, why.

What FAD-ViT is. FAD-ViT is not a spatial backbone with channel attention added as a branch; it is a strictly axis-decoupled, channel-primary backbone that separates the two conflated jobs onto purpose-matched operators. Depthwise convolution extracts local structure and keeps the 2D grid intact through depth, while single-head self-attention over channel tokens, each a feature-map descriptor summarizing the whole image, performs global mixing at O(C2N)\mathcal{O}(C^{2}N) cost, linear in the token count N, rather than the O(N2C)\mathcal{O}(N^{2}C) of spatial attention. Because even a pointwise (1×1)(1\times1) projection mixes channels, Q/K/V are formed by depthwise-only projections, leaving channels unmixed before the attention that correlates them; this strict separation, which prior channel-aware models forgo (Sec. 2), is what lets us treat the global axis as an isolable variable. Channel-primary mixing is already global at linear spatial cost, so the design needs no windowing, local-interaction, dual-axis, or gating module, and defers a short spatial-attention tail to the lowest resolution where it is cheap.

Contribution and scope. Our contribution is a controlled account of why a strictly decoupled, channel-primary design is the right prior for medical transfer, and a characterization of how it behaves across modalities, tasks, and label budgets. Concretely:

– We show that strict axis decoupling with channel-primary mixing acts as a transfer prior for medical imaging: it converts natural-image pretraining into substantially larger downstream gains than a spatial-axis backbone of identical capacity, because pretraining on the channel axis deposits inter-feature correlations (texture, intensity, co-activation) that survive medical domain shift, whereas spatial-layout priors do not (Sec. 6).

– We characterize FAD-ViT across 23 medical tasks, classification, segmentation, and low-data probing, under one matched protocol, and against the coupled channel designs XCiT and DaViT, showing that the decoupled design transfers competitively or better at a fraction of their parameters (Secs. 5 and 5.3).

– We isolate the axis with matched from-scratch versus pretrained comparisons and representation-reuse analyses, well-posed only because the axes are cleanly separated here and not entangled as in prior channel-aware backbones (Secs. 6.2 and 6.3).

References (30)