Papers › mmFormer: Multimodal Medical Transformer for Incomplete Multimodal Learning of Brain...

mmFormer: Multimodal Medical Transformer for Incomplete Multimodal Learning of Brain Tumor Segmentation

6 Jun 2022arXiv:2206.02425archive 2025-07-28

Yao Zhang, Nanjun He, Jiawei Yang, Yuexiang Li, Dong Wei, Yawen Huang, Yang Zhang, Zhiqiang He, Yefeng Zheng

Accurate brain tumor segmentation from Magnetic Resonance Imaging (MRI) is desirable to joint learning of multimodal images. However, in clinical practice, it is not always possible to acquire a complete set of MRIs, and the problem of missing modalities causes severe performance degradation in existing multimodal segmentation methods. In this work, we present the first attempt to exploit the Transformer for multimodal brain tumor segmentation that is robust to any combinatorial subset of available modalities. Concretely, we propose a novel multimodal Medical Transformer (mmFormer) for incomplete multimodal learning with three main components: the hybrid modality-specific encoders that bridge a convolutional encoder and an intra-modal Transformer for both local and global context modeling within each modality; an inter-modal Transformer to build and align the long-range correlations across modalities for modality-invariant features with global semantics corresponding to tumor region; a decoder that performs a progressive up-sampling and fusion with the modality-invariant features to generate robust segmentation. Besides, auxiliary regularizers are introduced in both encoder and decoder to further enhance the model's robustness to incomplete modalities. We conduct extensive experiments on the public BraTS 2018 dataset for brain tumor segmentation. The results demonstrate that the proposed mmFormer outperforms the state-of-the-art methods for incomplete multimodal brain tumor segmentation on almost all subsets of incomplete modalities, especially by an average 19.07% improvement of Dice on tumor segmentation with only one available modality. The code is available at https://github.com/YaoZhang93/mmFormer.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 17 code samples harvested from 1 repository linked to this paper: 13 ran (of which 0 constructed an object rather than computing a result; 10 with no instrument failure: 1 honoured, 1 violated, 8 with no contract checked; 3 where Syntology's instrument failed) · 4 unverified. Where Syntology's instrument failed: 2 where our contract draft was wrong; 1 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: official repository: 17 samples from 1 repository, 13 ran (10 with no instrument failure; 3 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

yaozhang93/mmformer officialmentioned in papermentioned on GitHubpytorchApache-2.0Syntology: 17 samples, 13 ran (3 instrument-failed) · 4 unverified 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: 13 ran (of which 0 constructed an object rather than computing a result; 10 with no instrument failure: 1 honoured, 1 violated, 8 with no contract checked; 3 where Syntology's instrument failed) · 4 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

1ran · honoured contract
1ran · violated contract
2ran · our draft was wrong
1ran; the contract check could not run
8ran
4unverified

Licence: 1 of the 17 samples is pointer only, meaning Syntology does not serve that copy's text. For that sample, this paper's copy is under a permissive licence and cleared, but the stored copy of the same code that Syntology serves is not; the licence label's tooltip gives Syntology's recorded reason. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from yaozhang93/mmformer. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

yaozhang93/mmformer official repository 17 samples, 13 ran (3 instrument-failed) · 4 unverified
crop in 99 papers
census: 5 implementations from 5 papers, 4 distinct outputs across 4 buckets, one shared input per bucket
mmformer/preprocess.py ran; the contract check could not run (RAISES) Apache-2.0 (permissive) · fb26dcccfaf8fbc6 · report fixture: signature vol:ndarray/3/float · returned tuple · level recorded 2026-09-24
dice_loss in 193 papers
census: 10 implementations from 16 papers, 7 distinct outputs across 4 buckets, one shared input per bucket
mmformer/utils/criterions.py ran Apache-2.0 (permissive) · 38db2c032df3a024 · report fixture: signature output:Tensor/5/float, target:Tensor/5/int, num_cls:int/0/int, eps:float/0/float · returned Tensor · level recorded 2026-09-24
get_params in 53 papers mmformer/utils/lr_scheduler.py ran · our draft was wrong Apache-2.0 (permissive) · d51dae9ac1ba0359 · report fixture: signature model:callable/0/? · returned tuple · level recorded 2026-09-24
get_temperature mmformer/utils/lr_scheduler.py ran · honoured contract fingerprinted Apache-2.0 (permissive) · 2675ee5f110411e2 · report fixture: signature epoch:int/0/int · returned int · level recorded 2026-09-24
normalization in 70 papers
census: 4 implementations from 6 papers, 4 distinct outputs across 3 buckets, one shared input per bucket
mmformer/layers.py ran · our draft was wrong Apache-2.0 (permissive) here; the stored copy is pointer only · 376f134d99d8ed75 · report fixture: signature planes:int/0/int, norm:str/0/str · returned BatchNorm3d · level recorded 2026-09-22
normalize in 638 papers
census: 70 implementations from 82 papers, 51 distinct outputs across 11 buckets, one shared input per bucket
mmformer/preprocess.py ran · violated contract Apache-2.0 (permissive) · 8ee9fb4494c15e91 · report fixture: signature vol:Tensor/4/float · returned Tensor · level recorded 2026-09-24
parse in 85 papers mmformer/utils/parser.py ran Apache-2.0 (permissive) · 8d95807841fa86b8 · report fixture: signature d:dict/0/? · returned AttrDict · level recorded 2026-09-24
softmax_loss mmformer/utils/criterions.py ran Apache-2.0 (permissive) · 2c61eefd5b210b68 · report fixture: signature output:Tensor/5/float, target:Tensor/5/int, num_cls:int/0/int · returned Tensor · level recorded 2026-09-24
softmax_output_dice_class4 mmformer/predict.py ran Apache-2.0 (permissive) · 8383a6e515ab6db5 · report fixture: signature output:Tensor/4/int, target:Tensor/4/int · returned tuple · level recorded 2026-09-24
softmax_output_dice_class5 mmformer/predict.py ran Apache-2.0 (permissive) · 4eb48bd860232e60 · report fixture: signature output:Tensor/4/float, target:Tensor/4/float · returned tuple · level recorded 2026-09-24
softmax_weighted_loss mmformer/utils/criterions.py ran Apache-2.0 (permissive) · 3a9b5bc021c9bc18 · report fixture: signature output:Tensor/5/float, target:Tensor/5/float, num_cls:int/0/int · returned Tensor · level recorded 2026-09-24
str2bool in 533 papers mmformer/utils/str2bool.py ran Apache-2.0 (permissive) · 85878f80ff4c36c4 · report fixture: signature v:str/0/str · returned bool · level recorded 2026-09-24
sup_128 mmformer/preprocess.py ran fingerprinted Apache-2.0 (permissive) · 3153dadb37e140a0 · report fixture: signature xmin:int/0/int, xmax:int/0/int · returned tuple · level recorded 2026-09-24
Js_div mmformer/utils/lr_scheduler.py unverified Apache-2.0 (permissive) · c3f09a933debc8e4 · report
generate_snapshot mmformer/utils/generate.py unverified Apache-2.0 (permissive) · c765d38192a487f3 · report
load in 392 papers mmformer/utils/parser.py unverified Apache-2.0 (permissive) · c6d51b5a28f37da9 · report
test_softmax mmformer/predict.py unverified Apache-2.0 (permissive) · ab7b9d7dda87dca9 · report

Tasks

Brain Tumor SegmentationDecoderSegmentationSemantic SegmentationTumor Segmentation

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Semantic Segmentation NYU Depth v2 mmFormer Mean IoU 48.45% #77 of 121 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

ALIGNAbsolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

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