Papers › SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers
SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers
Enze Xie, Wenhai Wang, Zhiding Yu, Anima Anandkumar, Jose M. Alvarez, Ping Luo
We present SegFormer, a simple, efficient yet powerful semantic segmentation framework which unifies Transformers with lightweight multilayer perception (MLP) decoders. SegFormer has two appealing features: 1) SegFormer comprises a novel hierarchically structured Transformer encoder which outputs multiscale features. It does not need positional encoding, thereby avoiding the interpolation of positional codes which leads to decreased performance when the testing resolution differs from training. 2) SegFormer avoids complex decoders. The proposed MLP decoder aggregates information from different layers, and thus combining both local attention and global attention to render powerful representations. We show that this simple and lightweight design is the key to efficient segmentation on Transformers. We scale our approach up to obtain a series of models from SegFormer-B0 to SegFormer-B5, reaching significantly better performance and efficiency than previous counterparts. For example, SegFormer-B4 achieves 50.3% mIoU on ADE20K with 64M parameters, being 5x smaller and 2.2% better than the previous best method. Our best model, SegFormer-B5, achieves 84.0% mIoU on Cityscapes validation set and shows excellent zero-shot robustness on Cityscapes-C. Code will be released at: github.com/NVlabs/SegFormer.
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="2105.15203")
Code
Syntology Ran 48 of 86 code samples harvested from 11 repositories linked to this paper; 38 have no recorded run. Of those that ran: 1 ran · violated contract; 2 ran · our draft was wrong; 1 ran · fixture could not drive it; 44 ran with no contract checked.
By repository: community (archive-listed): 83 samples from 10 repositories, 45 ran; community: 2 samples from 1 repository, 2 ran; 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.
28 repositories listed; official and paper-mentioned ones first.
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
86 samples harvested; 48 ran; 0 honoured the contract we drafted; 38 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.
Licence: 15 of the 86 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 11 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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.
c26b3dcb83805d8b · report
0730c486d30ba0ad · report
985e0029300d8b09 · report
8e948e9bc7b5fc17 · report
4817e9583fbf6b3c · report
ccadeb436e01c85c · report
4b04a139b83d832e · report
8085cbc641b30993 · report
10e1daaea8547fb9 · report
542396928de7e36a · report
5049266ef99b4d26 · report
7ff5661a4c26fcb7 · report
4e9019271c54ae21 · report
1cca7df806bbd21f · report
a3c01f13dc01b670 · report
ff4bb124dc115d63 · report
46464f58f54aa5a0 · report
635ca5ddeb4973f7 · report
31c432acc4aa0d25 · report
79ded40dd7812caf · report
748000c608a20c77 · report
21d890715e16872d · report
c1cec60a6c890710 · report
bc90afe01ade811b · report
6caaf2219052f191 · report
d8c46d51ed5de622 · report
68f9e28fcc23bfc1 · report
ce46b8418261110a · report
89979e961601b054 · report
6afe61dba51eef77 · report
df798977d45ef10d · report
d1541cb3c3105894 · report
a669df2cd07c07bb · report
47e89f4fa09782a6 · report
cb0ea0c51176639b · report
e03be3562fa16493 · report
88d68650d669bb11 · report
072e0940fa122b3f · report
049c52930f551191 · report
e27103cbb1fca337 · report
8acf036b36a65cd2 · report
49d6368d9a869361 · report
aa74cd62302ed7c8 · report
39403bf2697d1720 · report
de9345b90f9f1c07 · report
c1b48d941aafb38e · report
d3ae12f830ae7473 · report
1bfaa1f3894b09c5 · report
e5084c52a530491b · report
d47ffdc9c58366e1 · report
51b3f94442e3e993 · report
d2ba4808c201185e · report
0872c74a03511111 · report
d4b6a3c4e865a3cf · report
41a9c09a3f658a00 · report
e440e08cb0e8c48a · report
b83489fb3cb1ed11 · report
c42717f8aa0ef841 · report
177a4abf40724f6e · report
0355ab2cd3f47412 · report
615dd6b5188585cd · report
384604872a30dccd · report
882f145326210430 · report
e33cebee6724c045 · report
dbbc38f85ae9361f · report
3756f8840c9ca583 · report
1301e7bceb1a009d · report
2344612e05e368a4 · report
55b8c7ef424d2298 · report
feddee05281a3f44 · report
4581a201b7093062 · report
247223d98d751eff · report
039303a649214f32 · report
7259ad6db5a66899 · report
95daffa5faab5036 · report
ac368bd91abe1f93 · report
d2ab609def2d3e40 · report
4fb2c2bdfa4534bd · report
5cb938e6605fcde4 · report
11277e8612b345a3 · report
744dc51a3ef15686 · report
b9e87a3f669811b6 · report
a99f170ebd682af5 · report
68389231090ed0d4 · report
771525e476e6dcb2 · report
1f7c550e65142ef8 · report
Tasks
Results from the paper archive 2025-07-28
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
Introduced by this paper: Mix-FFN, SegFormer
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