Papers › ScaleFormer: Revisiting the Transformer-based Backbones from a Scale-wise Perspective...

ScaleFormer: Revisiting the Transformer-based Backbones from a Scale-wise Perspective for Medical Image Segmentation

29 Jul 2022arXiv:2207.14552archive 2025-07-28

Huimin Huang, Shiao Xie1, Lanfen Lin, Yutaro Iwamoto, Xianhua Han, Yen-Wei Chen, Ruofeng Tong

Recently, a variety of vision transformers have been developed as their capability of modeling long-range dependency. In current transformer-based backbones for medical image segmentation, convolutional layers were replaced with pure transformers, or transformers were added to the deepest encoder to learn global context. However, there are mainly two challenges in a scale-wise perspective: (1) intra-scale problem: the existing methods lacked in extracting local-global cues in each scale, which may impact the signal propagation of small objects; (2) inter-scale problem: the existing methods failed to explore distinctive information from multiple scales, which may hinder the representation learning from objects with widely variable size, shape and location. To address these limitations, we propose a novel backbone, namely ScaleFormer, with two appealing designs: (1) A scale-wise intra-scale transformer is designed to couple the CNN-based local features with the transformer-based global cues in each scale, where the row-wise and column-wise global dependencies can be extracted by a lightweight Dual-Axis MSA. (2) A simple and effective spatial-aware inter-scale transformer is designed to interact among consensual regions in multiple scales, which can highlight the cross-scale dependency and resolve the complex scale variations. Experimental results on different benchmarks demonstrate that our Scale-Former outperforms the current state-of-the-art methods. The code is publicly available at: https://github.com/ZJUGiveLab/ScaleFormer.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2207.14552")

Code

Syntology Ran 12 of 17 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 12 ran with no contract checked.

By repository: official repository: 17 samples from 1 repository, 12 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

zjugivelab/scaleformer officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 12 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

12ran
5unverified

Licence: 17 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from ZJUGiveLab/ScaleFormer. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Conv2dReLU ZJUGiveLab/ScaleFormer/networks/ScaleFormer.py official repository ran fingerprinted no licence file found · pointer only · b32997d863417867 · report
ConvBNReLU ZJUGiveLab/ScaleFormer/networks/ScaleFormer.py official repository ran fingerprinted no licence file found · pointer only · 5b7ed766c1872be5 · report
DWCONV ZJUGiveLab/ScaleFormer/networks/ScaleFormer.py official repository ran fingerprinted no licence file found · pointer only · f3ffe41a2bb9750f · report
DecoderBlock ZJUGiveLab/ScaleFormer/networks/ScaleFormer.py official repository ran fingerprinted no licence file found · pointer only · 824ad75d27fd24b2 · report
DoubleConv ZJUGiveLab/ScaleFormer/networks/ScaleFormer.py official repository ran fingerprinted no licence file found · pointer only · f797d98272125478 · report
Dual_axis ZJUGiveLab/ScaleFormer/networks/ScaleFormer.py official repository ran no licence file found · pointer only · 82acbff60eba40ee · report
FFN_MultiLN ZJUGiveLab/ScaleFormer/networks/ScaleFormer.py official repository ran no licence file found · pointer only · 38be558bda45b6d4 · report
InterTransBlock ZJUGiveLab/ScaleFormer/networks/ScaleFormer.py official repository ran no licence file found · pointer only · 79c975e1e840ee7a · report
MLP ZJUGiveLab/ScaleFormer/networks/ScaleFormer.py official repository ran no licence file found · pointer only · 82b09a53b9ae6618 · report
MultiScaleAtten ZJUGiveLab/ScaleFormer/networks/ScaleFormer.py official repository ran no licence file found · pointer only · a5d7b0385917c845 · report
SegmentationHead ZJUGiveLab/ScaleFormer/networks/ScaleFormer.py official repository ran fingerprinted no licence file found · pointer only · 2a297e1ad30636e4 · report
UEncoder ZJUGiveLab/ScaleFormer/networks/ScaleFormer.py official repository ran no licence file found · pointer only · 441206dd814e13bc · report
IntraTransBlock ZJUGiveLab/ScaleFormer/networks/ScaleFormer.py official repository unverified no licence file found · pointer only · 39fe15611e255e98 · report
ParallEncoder ZJUGiveLab/ScaleFormer/networks/ScaleFormer.py official repository unverified no licence file found · pointer only · 77851c6793e41f9f · report
ScaleFormer ZJUGiveLab/ScaleFormer/networks/ScaleFormer.py official repository unverified no licence file found · pointer only · 20ac81fcaad0de8b · report
SpatialAwareTrans ZJUGiveLab/ScaleFormer/networks/ScaleFormer.py official repository unverified no licence file found · pointer only · 1dafad4d64fa61ca · report
TransEncoder ZJUGiveLab/ScaleFormer/networks/ScaleFormer.py official repository unverified no licence file found · pointer only · 7a059da3c2fc9d89 · report

Tasks

Image SegmentationMedical Image SegmentationRepresentation LearningSemantic Segmentation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections