Papers › Factorizer: A Scalable Interpretable Approach to Context Modeling for Medical Image...

Factorizer: A Scalable Interpretable Approach to Context Modeling for Medical Image Segmentation

24 Feb 2022arXiv:2202.12295archive 2025-07-28

Pooya Ashtari, Diana M. Sima, Lieven De Lathauwer, Dominique Sappey-Marinier, Frederik Maes, Sabine Van Huffel

Convolutional Neural Networks (CNNs) with U-shaped architectures have dominated medical image segmentation, which is crucial for various clinical purposes. However, the inherent locality of convolution makes CNNs fail to fully exploit global context, essential for better recognition of some structures, e.g., brain lesions. Transformers have recently proven promising performance on vision tasks, including semantic segmentation, mainly due to their capability of modeling long-range dependencies. Nevertheless, the quadratic complexity of attention makes existing Transformer-based models use self-attention layers only after somehow reducing the image resolution, which limits the ability to capture global contexts present at higher resolutions. Therefore, this work introduces a family of models, dubbed Factorizer, which leverages the power of low-rank matrix factorization for constructing an end-to-end segmentation model. Specifically, we propose a linearly scalable approach to context modeling, formulating Nonnegative Matrix Factorization (NMF) as a differentiable layer integrated into a U-shaped architecture. The shifted window technique is also utilized in combination with NMF to effectively aggregate local information. Factorizers compete favorably with CNNs and Transformers in terms of accuracy, scalability, and interpretability, achieving state-of-the-art results on the BraTS dataset for brain tumor segmentation and ISLES'22 dataset for stroke lesion segmentation. Highly meaningful NMF components give an additional interpretability advantage to Factorizers over CNNs and Transformers. Moreover, our ablation studies reveal a distinctive feature of Factorizers that enables a significant speed-up in inference for a trained Factorizer without any extra steps and without sacrificing much accuracy. The code and models are publicly available at https://github.com/pashtari/factorizer.

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="2202.12295")

Code

Syntology Ran 0 of 9 code samples harvested from 2 repositories linked to this paper; 9 have no recorded run.

By repository: official repository: 6 samples from 1 repository, 0 ran; community (archive-listed): 3 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

pashtari/factorizer officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
pashtari/factorizer-isles22 mentioned on GitHubpytorchApache-2.0 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

9 samples harvested; 0 ran; 0 honoured the contract we drafted; 9 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.

9unverified

Licence: 0 of the 9 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

as_tuple pashtari/factorizer/factorizer/utils/helpers.py official repository unverified Apache-2.0 (permissive) · 24e2396af6c66483 · report
cumprod pashtari/factorizer/factorizer/utils/helpers.py official repository unverified Apache-2.0 (permissive) · d86465a1b223f49e · report
dot pashtari/factorizer/factorizer/factorization/operations.py official repository unverified Apache-2.0 (permissive) · 3e17f6f793146b26 · report
has_args pashtari/factorizer/factorizer/utils/helpers.py official repository unverified Apache-2.0 (permissive) · 926f3dc0c5340ee3 · report
norm2 pashtari/factorizer/factorizer/factorization/operations.py official repository unverified Apache-2.0 (permissive) · 76ce63dfb0219599 · report
softmax pashtari/factorizer/factorizer/factorization/operations.py official repository unverified Apache-2.0 (permissive) · c2b903446314fbd0 · report
get_constructor pashtari/factorizer-isles22/registry.py community (archive-listed) unverified Apache-2.0 (permissive) · eb29008bb9a2fda8 · report
lambda_constructor pashtari/factorizer-isles22/registry.py community (archive-listed) unverified Apache-2.0 (permissive) · 2ea7b3dee835c8ea · report
read_config pashtari/factorizer-isles22/registry.py community (archive-listed) unverified Apache-2.0 (permissive) · 9749c7d11f81401a · report

Tasks

Brain Tumor SegmentationImage SegmentationLesion SegmentationMedical Image SegmentationSegmentationSemantic SegmentationTumor Segmentation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Convolution

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