Elamur Research

Segmenter: Transformer for Semantic Segmentation

Paper · 2021 · Robin Strudel, Ricardo Alexandrino Garcia, Ivan Laptev A et al.

Summary

A small piece of an image can be difficult to identify on its own. Its color and texture may fit several categories, while the surrounding scene makes the answer clearer. Semantic segmentation turns that problem into a dense prediction task: assign a category to every pixel, while keeping the labels consistent across objects and preserving their boundaries. Segmenter investigates whether a transformer, whose attention mechanism can connect distant parts of an image from the beginning of processing, offers a better foundation for this task than an architecture built around local convolutions. The paper presents an image encoder and a mask decoder that use transformers without convolutional layers.

The encoder comes from the Vision Transformer, or ViT. It divides an image into patches, converts each patch into a vector, adds information about its position, and processes the resulting sequence with self-attention. Rather than using the sequence to produce an image classification, Segmenter retains the representation associated with every patch. These representations already contain information gathered from other image regions. A decoder then turns them into category scores, which are enlarged to the original image dimensions. The authors compare a simple linear decoder with a mask transformer. The latter introduces learned vectors associated with semantic categories, lets those vectors interact with the image patches, and constructs a mask for each category from their resulting similarities.

The findings support both the encoder and the more expressive decoder. Even the linear version performs strongly, showing that much of the useful segmentation information is already available in the contextualized patch representations. The mask transformer improves the results further. On the ADE20K validation set, the best reported configuration, Seg-L-Mask/16, reaches 53.63% mean intersection over union, or mIoU. This metric measures overlap between predicted and annotated regions and averages the result across categories. The corresponding best result on Pascal Context validation is 59.04% mIoU. On Cityscapes validation, Seg-L-Mask/16 obtains 81.3% mIoU, which the authors describe as competitive with the leading approaches. The paper therefore reports its strongest comparative claims for ADE20K and Pascal Context, instead of claiming the same advantage on every benchmark.

The broader lesson concerns the interaction between context, spatial detail, and transferred knowledge. Larger encoders improve segmentation, and smaller patches help recover boundaries and small structures. Smaller patches also create longer sequences, making attention more expensive in memory and computation. Image classification pretraining is essential to the reported performance, and the quality of that pretraining affects the eventual segmentation result. The qualitative comparisons reveal a complementary tradeoff: Segmenter frequently assigns more coherent labels across large or partly occluded objects, while DeepLabv3+ can draw sharper boundaries between nearby people. Segmenter establishes a strong transformer approach to semantic segmentation, with a clear route from image patches to category masks, while leaving fine detail, computational cost, and broader segmentation tasks as continuing challenges.

Interesting ideas

Context before classification. Segmenter gives each patch access to information from elsewhere in the image before asking it to support a category decision. This helps because a local appearance can be ambiguous even when its role in the scene is clear. The reusable principle is to enrich an item with relevant context before applying the final classifier. In another dense prediction task, this suggests separating the question of what an item looks like locally from the question of what its surroundings imply. The paper’s linear decoder is especially informative here: strong results with a simple output mapping indicate that an effective representation can reduce the burden on the final prediction stage.

A simple decoder as a diagnostic. The authors do not begin and end with an elaborate prediction head. They retain a linear mapping from patch representations to category scores as a baseline. This makes it easier to see what the encoder has learned and what the mask transformer adds. Elsewhere, the same experimental habit can distinguish improvements in representation quality from improvements in the machinery that reads those representations. A sophisticated decoder may be useful, but its value becomes much clearer when a straightforward alternative receives the same encoder output and follows the same route back to the required prediction resolution.

Category vectors that respond to the input. In the mask transformer, a category has a learned embedding, but that embedding is processed together with the current image. The vector used to produce a category mask can therefore change with the scene. This provides a concrete way to make the classifier sensitive to the example being classified. The general idea could apply wherever a fixed category inventory must be matched against context-dependent evidence. Its attraction is structural: the system can preserve an explicit association between a vector and a category while allowing the evidence for that category to adapt during processing.

Resolution as an experimental variable. Patch size controls how finely the image is represented before attention begins. Coarser patches shorten the sequence and support faster processing; finer patches preserve more spatial distinctions and improve segmentation detail. The useful borrowing is the decision to study this representation choice alongside encoder size. An engineer choosing a deployment configuration should consider what information disappears before the main network sees it. Increasing representational capacity and increasing input detail address different weaknesses, and the paper shows why both deserve controlled comparisons.

Pretraining quality as part of the explanation. Segmenter’s performance depends on more than the architecture used during segmentation. The authors compare alternative image classification initializations and find that a better pretraining procedure carries through to ADE20K. This makes the history of the transferred encoder part of the experimental setup. The idea applies to any system built through fine-tuning: the starting weights, their training data, and their regularization can materially influence the downstream result. A comparison that changes those ingredients should acknowledge them rather than assigning every gain to the new task-specific component.

Inspect behavior at several scales. The paper combines aggregate accuracy with object-size comparisons, attention visualizations, and examples of successful and failed boundaries. Each view answers a different question. Overall overlap describes performance across the benchmark; object-size analysis exposes where gains occur; qualitative inspection shows the shape of errors that a single score can hide. This is a useful approach to evaluation and benchmarks more broadly. A system can improve its main metric while retaining a recognizable weakness, and examining that weakness can suggest a more precise next experiment than simply enlarging the system again.

Deep dive: Segmenter: Transformer for Semantic Segmentation

How Segmenter turns image patches into semantic masks, why global attention helps, and how its decoder and training choices work. · about 80 minutes to read

How Mova uses it

For Mova, a small transparent language system implemented in Rust, Segmenter is most useful as a source of design questions. The connection is conceptual: Segmenter assigns semantic categories to image locations, whereas a language system works with linguistic input and its representations. No implementation of Segmenter within Mova is established here. The concrete possibilities concern how contextual evidence might be organized, how category decisions might be exposed, and how a simple baseline could keep a more elaborate component accountable.

One possible borrowing is the separation between context building and category assignment. A language element can have several plausible interpretations when considered alone. A system could first gather relevant information from the surrounding text, then make an explicit decision about that element. Segmenter makes this separation visible through its encoder and decoder. For Mova, an analogous design would need to specify what the items are, what context they can consult, and which linguistic categories they are expected to predict. Image patches do not supply those answers. The value of the analogy is that it turns a vague appeal to context into a sequence of inspectable operations.

The linear decoder suggests a particularly practical starting point. Before adding a complex mechanism for choosing labels, Mova could ask how well a direct mapping performs on the representations it already has. That would establish whether the main weakness lies in the evidence being represented or in the decision rule applied afterwards. If a more elaborate contextual component improves the result, its contribution could then be compared against a clear baseline. This would fit a transparent system because the extra machinery would have an explicit purpose and a measurable effect.

The learned category embeddings offer another possible direction. A linguistic category could be associated with a representation that is compared against representations of text spans or tokens. Segmenter adds an important qualification to this idea: the category representation participates in processing the current input before the final comparison. A possible Mova experiment could therefore distinguish fixed category representations from representations adjusted using the current passage. That is a proposed experiment, not an existing Mova feature or a demonstrated consequence of the segmentation results.

Transparency would still require more than displaying attention or similarity scores. Segmenter’s attention maps help illustrate which image regions interact, and its category-vector projection reveals suggestive groupings. Those observations do not make every prediction self-explanatory. If Mova borrowed comparable mechanisms, useful inspection would connect the input evidence, the intermediate representations, and the final category decision. It would also retain examples where the method fails. The transferable discipline is to make contextual processing testable and visible, while keeping a firm distinction between an architectural idea and evidence that it improves a language task.

The problem and its context

A pixel label depends on more than a pixel

Semantic segmentation asks for an image description at the level of individual pixels. Each location must receive a category label corresponding to the object or region represented there. This differs from deciding what an image contains overall. An image classification can identify a scene or an object without specifying its extent. Segmentation must also locate the category throughout the image and distinguish it from neighboring categories.

That requirement creates a tension between semantic understanding and spatial precision. A system needs enough context to identify an object, but it also needs enough detail to place its edges accurately. Information that helps recognize a broad region may be spatially coarse. Information that preserves a narrow boundary may be locally ambiguous. A successful segmentation architecture has to bring those forms of evidence together.

The paper motivates the task through applications including robotics, autonomous driving, image editing, and medical imaging. It also describes a virtual try-on setting in which the boundaries of people and clothing matter. These examples clarify why a plausible overall interpretation is insufficient. A category can be correct in broad terms while its predicted region is poorly shaped or includes pixels belonging to something else.

The authors identify several sources of difficulty. Members of the same category can vary substantially in appearance. Surrounding context also changes, so an object cannot always be recognized through a familiar background. Occlusion hides parts of an object, and limited image resolution can remove the details that would otherwise distinguish categories. These problems make local evidence unreliable in ways that differ across images.

Context can resolve some of that uncertainty. A patch that is difficult to recognize by itself may become understandable once related image regions are taken into account. The relevant region may be close by, but it may also lie farther away. Segmenter treats access to that wider evidence as an architectural concern: the network should be able to connect image locations throughout its processing, instead of depending entirely on local operations to carry information across the scene.

This does not imply that every location should always use the entire image equally. The paper’s attention analysis instead suggests that useful context varies with the input. A patch belonging to a small object may concentrate on nearby evidence, while a patch on a large object may gather information across a wider area. The architectural objective is to make those interactions available and learn how to use them.

The convolutional encoder and decoder

The dominant approach described by the authors is an encoder–decoder architecture based on convolutional networks. The encoder transforms the image into feature maps that are smaller in spatial extent and richer in semantic information. The decoder enlarges those features into a map of category scores. Each output location then supports a pixel-level decision.

A convolution applies learned filters over local neighborhoods. Stacking such operations allows information to travel farther through the network, and the paper acknowledges the strong results achieved by fully convolutional networks. Its criticism concerns how global context becomes available. The first operations are local, and long-range information must be assembled through later processing or additional mechanisms.

That is especially relevant for segmentation because the same local appearance may need different labels in different scenes. If the evidence needed to resolve a patch lies far away, the architecture must create a route through which that information can influence the patch’s representation. The authors argue that convolutional designs require considerable architectural support to do this effectively.

Earlier encoder–decoder approaches also address the loss of spatial detail caused by reducing feature-map resolution. The paper describes methods that combine high-level features with lower-level features during decoding. The high-level representations contribute semantic information, while the lower-level representations help recover object contours. This is an important part of the background: the field had already recognized that identifying a region and tracing its boundary require complementary information.

The comparison with Segmenter therefore concerns a well-developed family of techniques. The paper does not present convolutional segmentation as a simple or unsuccessful baseline. It presents it as a successful framework whose local starting point has encouraged a series of mechanisms for enlarging context and recovering detail.

The final qualitative comparisons preserve that distinction. Segmenter often improves consistency across an object, but the convolutional comparator can produce better boundaries. This makes the architectural question more precise. The issue is how to combine broad scene understanding with accurate localization, rather than whether local image processing has any value.

How earlier methods enlarged context

The paper describes dilated, or atrous, convolutions as one way to enlarge the area available to convolutional features. These operations extend the reach of a filter without simply treating every nearby image location in the same dense pattern. Within the authors’ account, their role is to increase receptive fields and support segmentation features that incorporate a broader region.

Spatial pyramid pooling addresses context through aggregation at multiple scales. A scene contains meaningful structure at different spatial extents, and pooling over different regions provides several views of that structure. The DeepLab family uses these ideas to improve the information available to the segmentation network.

DeepLabv3+ is presented as an effective encoder–decoder design that brings together such developments. It serves as an important comparator because it represents a mature convolutional approach to the same contextual problem. Segmenter is therefore being evaluated against systems that already incorporate deliberate solutions for large receptive fields and multi-scale information.

The related-work discussion also describes methods that place attention mechanisms above convolutional feature maps. These approaches replace or supplement coarse aggregation with more selective interactions. Depending on the method, attention can operate over spatial positions, channels, or point-wise relationships. The common purpose is to capture dependencies that are difficult to express through local filtering alone.

The authors’ objection is that these approaches retain a convolutional backbone. Attention can improve later aggregation, but the initial representation still comes from local operations. Segmenter instead makes global interaction available throughout the encoder and, with its mask transformer, during decoding as well.

This is an architectural argument supported by comparative evidence, rather than a proof that every convolutional design must fail on contextual reasoning. The paper’s experiments examine particular systems on particular benchmarks. Its motivating claim is that direct access to distant evidence is a useful default for segmentation, and that transformers offer a comparatively simple way to provide it.

From sequences of words to sequences of image patches

The transformer background comes from Attention Is All You Need. In the paper’s account, transformers became successful in natural language processing because self-attention can connect tokens across a sequence. The architecture can represent relationships between distant items without requiring that information pass only through a fixed sequence of local neighborhoods.

The authors also note that transformers support parallel processing, which facilitates training with large datasets. Their relevance to vision therefore combines a representational property with a computational one. They offer flexible interactions among input elements, and those interactions can be organized in a way suitable for large-scale training.

Directly treating every raw image pixel as a token would be expensive. The paper emphasizes that global attention has a quadratic computational cost with respect to sequence length. An image contains many spatial positions, and applying unrestricted attention at pixel resolution would make the intended architecture impractical.

Vision Transformer supplies the representation change that makes the approach feasible. It partitions the image into patches and turns each patch into a token. Attention then operates on a shorter sequence whose elements each cover an image region. This preserves the possibility of image-wide interaction while reducing the number of elements participating in it.

Patch construction also introduces a new choice. Larger patches reduce sequence length but combine more spatial information before the transformer begins. Smaller patches preserve finer distinctions at the cost of a longer sequence. For classification, the desired output summarizes the image. For segmentation, every patch must eventually contribute to a spatially detailed prediction, so that initial granularity becomes especially important.

Segmenter extends ViT by retaining the entire sequence of contextualized patch representations for dense prediction. The image is processed as a sequence, but its spatial organization remains relevant. Patch positions are encoded before attention, and the decoder later restores the sequence to a spatial grid.

The immediate transformer alternatives

The paper places Segmenter beside several developments in transformer-based vision. DeiT is relevant because it provides another pretrained transformer encoder. In the authors’ description, it uses token-based distillation with a convolutional teacher and obtains competitive image classification performance from ImageNet-1k training.

That background matters when interpreting Segmenter’s convolution-free design. The segmentation architecture can contain no convolutions while still using an encoder whose training history involved a convolutional teacher. The architecture used for prediction and the procedure used to obtain its starting weights are different aspects of the system.

SETR is described as a concurrent approach that combines a ViT backbone with a conventional convolutional decoder. It shares the move toward sequence-based image encoding, but it makes a different choice about how to turn encoded features into dense predictions. Segmenter’s mask transformer extends transformer processing into that decoding stage.

Swin Transformer takes another route. The paper describes local attention windows whose positions shift across layers, together with a pyramid fully convolutional decoder. This changes how contextual interactions and spatial structure are organized. Segmenter instead uses the ViT-style patch sequence and its associated global interactions.

The mask decoder draws inspiration from End-to-End Object Detection with Transformers, commonly called DETR. The useful connection is the introduction of learned embeddings that participate in processing and help organize outputs. Segmenter associates its learned decoder embeddings with semantic categories.

The authors also connect their decoder to Max-DeepLab and SOLO-v2, which use embeddings in producing instance masks. Their proposed simplification is to process category embeddings and image patch embeddings jointly. Patch-level processing makes that joint sequence manageable, avoiding the particular separation into streams described for Max-DeepLab.

The result is a focused contribution within this context. Segmenter does not introduce self-attention, image patches, or learned output embeddings in isolation. It assembles them into a convolution-free semantic segmentation system and studies how encoder capacity, patch granularity, pretraining, regularization, and decoding influence its behavior.

The method, step by step

Follow the information from image to mask

Segmenter begins with an image and ends with a category decision at each pixel. Between those endpoints, it changes representation several times. The image becomes a sequence of patches. Each patch becomes a vector. The encoder enriches each vector using information from the other patches. The decoder produces category scores at patch locations, and interpolation expands those scores to the original image dimensions.

The distinction between patch-level processing and pixel-level output is central. The transformer does not operate over every output pixel separately. Most of its work occurs on the coarser patch sequence. Pixel-resolution predictions are recovered afterward from the spatial arrangement of patch scores.

The decoder can be simple or contextual. In the linear version, each encoded patch is mapped directly to scores for the available categories. In the mask transformer, patch vectors are processed again alongside learned category vectors. The final scores depend on the relationship between those updated representations.

From image patches to semantic labels

The steps in order.

From image patches to semantic labelsStep 1: Divide the image into patches1. Divide the image into patchesStep 2: Embed patches and add positions2. Embed patches and add positionsStep 3: Encode context with global attention3. Encode context with global attentionStep 4: Decode patch representations into category masks4. Decode patch representations into category masksStep 5: Interpolate scores to image resolution5. Interpolate scores to image resolutionStep 6: Assign each pixel its highest-scoring category6. Assign each pixel its highest-scoring category

The full system is trained end to end with a loss evaluated at pixel locations. That training arrangement connects the final segmentation errors to the encoder and decoder parameters. Though the internal sequence is spatially coarse, the supervision concerns the dense output that the task requires.

The architecture also retains a useful conceptual boundary. The encoder answers how an image region should be represented given the scene. The decoder answers how that representation relates to the segmentation categories. Because the authors compare alternative decoders, they can examine both the strength of the encoded features and the additional benefit of category-conditioned processing.

Define the input and its patch grid

The input image has a height, a width, and a channel dimension. The paper expresses its shape as follows:

x ∈ ℝ^(H × W × C)

Here, x denotes the image. H is its height, W its width, and C the number of channels. The symbol ℝ indicates real-valued entries. The expression describes the organization of the image array before it is converted into a sequence.

The image is partitioned into square patches. P denotes the length of a patch side, so each patch covers a P-by-P spatial region. The paper studies patch sizes of 8 × 8, 16 × 16, and 32 × 32. These settings change the granularity of the representation supplied to the transformer.

The number of patches follows from the image dimensions and patch size:

N = HW / P²

N is the sequence length: the number of image patches. H and W again denote image height and width, while P² is the spatial area of a patch. The expression makes the dependence clear without requiring a particular input image size.

This relationship explains why image resolution and patch size must be considered together. Keeping the patch size fixed while increasing the image dimensions produces a longer sequence. Keeping the image dimensions fixed while choosing smaller patches also produces a longer sequence. Both changes affect how much attention computation is required.

The patch sequence has the following form:

[x₁, …, x_N] ∈ ℝ^(N × P² × C)

The symbol x_j refers to the image content in patch j. N counts the patches, P² describes the spatial positions within each patch, and C gives the channels at each position. The ellipsis indicates the intervening patches in their sequence order.

At this stage, a patch still contains raw image values. It is not yet a semantic category or a contextual representation. The partition provides a regular set of input units. The learned operations that follow must discover which visual properties matter and how information from different units should be combined.

The spatial grid is therefore compressed into a sequence without being discarded entirely. Each sequence element corresponds to a known location in the image. That correspondence will be used both when adding positional information and when restoring the decoder output to a spatial map.

Turn every patch into a vector

Each patch is flattened before entering the transformer. Flattening places its spatial and channel values into a single vector. A learned linear projection then converts that vector into the representation width expected by the encoder.

The projection matrix has the shape:

E ∈ ℝ^(D × (P²C))

E is the learned projection. D is the dimension of an embedded patch, and P²C is the number of input values obtained by flattening a patch across its spatial and channel dimensions. The matrix maps that flattened content into a D-dimensional representation.

Applying the same projection to the patch sequence produces:

x₀ = [Ex₁, …, Ex_N] ∈ ℝ^(N × D)

x₀ denotes the sequence of embedded patches before positional information is added. E is the projection matrix, x_j is a flattened patch, N is the number of patches, and D is the embedding width. Each row of the resulting sequence represents one image region.

Using a shared projection means that the initial transformation is organized consistently across the image. The same learned mapping converts every patch into the encoder’s representation space. Differences between patch vectors initially arise from the image content supplied to that mapping.

The embedding does not need to predict a category immediately. It supplies features that later attention and feed-forward processing can refine. This distinction is useful for understanding why a patch representation may become more informative as it moves through the encoder. Its initial visual evidence is progressively combined with evidence from other locations.

A fixed embedding width also makes patches compatible with the transformer’s shared operations. Once converted, every patch can participate in the same attention mechanism, regardless of whether its image region contains a broad surface, a small object, an occlusion boundary, or several visual elements.

Preserve where the patches came from

Patch appearance alone does not specify its location. Segmenter therefore adds learned positional embeddings to the projected patch vectors. These embeddings provide spatial information before attention begins.

The positional sequence is written as:

pos = [pos₁, …, pos_N] ∈ ℝ^(N × D)

pos denotes the complete sequence of position embeddings. pos_j is the learned vector associated with patch position j. N is the patch count, and D is the common width of patch and position vectors, which allows them to be added.

The encoder input is:

z₀ = x₀ + pos

z₀ is the sequence supplied to the transformer. x₀ contains the embedded visual content, and pos contains the positional information. Their addition gives each token both a representation of its patch and information about where that patch belongs.

This step is important for a dense prediction task. Two image regions can look similar while occupying different relationships to the rest of the scene. Position information allows the network to use spatial organization alongside visual similarity. Later, the patch-to-grid correspondence also ensures that category scores can be placed back at the appropriate image locations.

The authors transfer encoders that were trained at classification resolutions and then use them at segmentation resolutions. Those changes alter the patch grid even though the patch size stays fixed. The original learned positional embeddings therefore cannot simply be used as an unchanged sequence of the same length.

To handle the mismatch, the position embeddings are bilinearly interpolated according to their locations in the original grid. This adapts the positional representation to the new arrangement of patches. It is a transfer mechanism for spatial information, allowing the pretrained encoder to accept a longer sequence without replacing the entire learned position representation.

Build context through repeated attention and refinement

The encoder applies L transformer layers to z₀. Each layer contains a multi-headed self-attention block followed by a point-wise multilayer perceptron, abbreviated MLP. The MLP has a pair of layers. Layer normalization is applied before each block, and a residual connection adds the block input back to its output.

The attention stage of encoder layer i is:

aᵢ₋₁ = MSA(LN(zᵢ₋₁)) + zᵢ₋₁

i identifies the current encoder layer. zᵢ₋₁ is the token sequence entering it. LN denotes layer normalization, and MSA denotes multi-headed self-attention. aᵢ₋₁ is the intermediate sequence after attention and residual addition.

The residual term preserves a direct route for the incoming representation. The attention block contributes an update based on relationships among patches, and that update is added to the existing token vectors. The architecture therefore refines representations instead of requiring each block to replace them completely.

The following MLP stage is:

zᵢ = MLP(LN(aᵢ₋₁)) + aᵢ₋₁

zᵢ is the output sequence from layer i. MLP is the point-wise feed-forward transformation, LN again denotes layer normalization, and aᵢ₋₁ is the intermediate representation produced by the attention stage. The final addition is another residual connection.

The word point-wise matters here. The MLP transforms each token’s feature representation, while attention is the part that explicitly exchanges information among sequence positions. These operations have complementary roles: attention gathers relevant evidence, and the MLP changes how the resulting evidence is represented at each patch.

The same pattern is repeated through the encoder. A patch token can therefore be updated using scene information and then participate in later attention with its new representation. The network is not limited to a single contextual aggregation followed by independent classification.

After the final encoder layer, the sequence has the form:

z_L = [z_L,₁, …, z_L,N] ∈ ℝ^(N × D)

z_L denotes the final encoded sequence, with L identifying the encoder depth. z_L,j is the contextualized representation associated with patch j. N remains the patch count, and D remains the representation width.

The sequence length stays aligned with the patch grid throughout this encoder. Segmenter needs that alignment because its output is spatially dense. Each final token must remain associated with an image region even though the information inside that token can come from across the scene.

Understand what self-attention computes

Self-attention begins by projecting token representations into queries, keys, and values. These are different learned views of the same incoming sequence. A query represents what a token is seeking, a key supports comparison with that query, and a value carries information that can be aggregated.

The paper gives their shapes as:

Q, K, V ∈ ℝ^(N × d)

Q is the query matrix, K the key matrix, and V the value matrix. N is the number of tokens. d is the intermediate representation dimension used in the attention expression.

The attention calculation is:

MSA(Q, K, V) = softmax(QKᵀ / √d)V

MSA denotes the attention operation as written by the authors. Kᵀ is the transpose of K. QKᵀ contains comparisons between queries and keys, √d scales those comparisons, and softmax converts them into weights used to combine the rows of V.

The important structural property is that a patch can compare its query with keys from the full sequence. There is no convolutional neighborhood restricting that comparison to nearby image regions. If the learned similarities support a distant relationship, the attention operation can use the corresponding value in updating the patch representation.

This is what the paper means by access to global context from early layers. The first attention block can connect distant patches even before deep semantic processing has occurred. Later layers can make further connections using representations that already contain contextual information.

Multi-headed attention provides several attention operations within the block. The implementation fixes the head dimension at 64, and the number of heads depends on the token width divided by that head dimension. The point-wise MLP uses a hidden dimension four times the token width. These are shared architectural rules across the encoder variants considered.

Global access should not be confused with uniform averaging. Softmax weights depend on the learned queries and keys, so different patches and attention heads can emphasize different evidence. The paper’s visual analysis illustrates this flexibility through patches associated with objects of different sizes.

Nor should architectural access be confused with guaranteed correct interpretation. Attention supplies a mechanism for exchanging information. Training must still learn which exchanges are useful, and the resulting system can still confuse similar categories or miss small objects. The method’s significance lies in how it organizes the available evidence.

Keep every patch representation for dense prediction

An image classifier ultimately needs an image-level answer. Segmenter instead uses the representations associated with all image patches. Each encoded token contributes to the dense output, and the decoder preserves the connection between sequence position and image position.

This change in output use is a central part of adapting ViT to segmentation. The encoder can remain a general transformer for image patches, while the downstream task changes from summarizing the image to labeling its spatial content. The decoder is responsible for translating the contextualized patch sequence into the required category structure.

The target segmentation score array is:

s ∈ ℝ^(H × W × K)

s denotes the output score map. H and W are the original image dimensions, and K is the number of semantic categories. Each spatial position therefore has a collection of category scores.

K is used for the category count in this expression, whereas the earlier attention equation used K for the key matrix. The meanings follow their local contexts: one is an output dimension, and the other is an attention representation. Keeping that distinction clear prevents the decoder notation from being confused with the attention mechanism.

The decoder initially operates at patch resolution. It does not directly construct an independently predicted vector for every original pixel. Instead, it predicts category evidence on the patch grid and uses interpolation to restore the requested image dimensions.

This design makes the patch representation especially consequential. If the grid is too coarse to distinguish nearby structures, the decoder begins with limited spatial separation between them. Strong contextual representations can improve semantic consistency, but the final enlargement step cannot supply arbitrary fine detail that was never represented distinctly.

Establish the linear decoding baseline

The linear decoder applies a learned point-wise mapping to the encoder output. Each patch vector is converted into a vector of category logits. A logit is an unnormalized score used before turning the category outputs into probabilities.

The resulting sequence has the shape:

z_lin ∈ ℝ^(N × K)

z_lin denotes the patch-level category logits. N is the number of patches, and K is the category count. Each row contains the scores assigned to the categories at one patch position.

The sequence is then restored to its patch grid:

s_lin ∈ ℝ^((H/P) × (W/P) × K)

s_lin is the spatial arrangement of the linear decoder’s outputs. H/P and W/P give the height and width of the patch grid, and K remains the category dimension. This reshape changes the organization of the data rather than adding another learned contextual operation.

Bilinear interpolation enlarges this grid to the original image size. Softmax is applied over the category dimension to obtain the segmentation output. At inference, the selected label at a pixel is the category receiving the largest score after upsampling.

The baseline is deliberately limited in its learned decoding machinery. Once the encoder has produced its final patch representations, the linear mapping does not perform an additional exchange of information among patches. Its strength therefore provides evidence about the usefulness of the encoder output.

This makes it more than a convenience baseline. If the linear version already performs well, then the encoder has organized its contextual information in a form accessible to a straightforward category mapping. If the mask transformer improves on it, that improvement can be associated with the extra decoding process rather than with a completely different input representation.

The same overall spatial route is retained in both versions: patch representations become patch scores, the scores return to a grid, and interpolation produces pixel-resolution outputs. The decoder comparison is therefore grounded in a shared approach to spatial reconstruction.

Introduce explicit category embeddings

The mask transformer adds learned category representations to the decoder input. Each semantic category receives an embedding initialized at random. Its category association is fixed: the embedding is trained to support the mask for that particular category.

The initial category embedding collection is:

cls = [cls₁, …, cls_K] ∈ ℝ^(K × D)

cls denotes the complete collection. cls_k is the embedding associated with category k, K is the number of categories, and D is the embedding dimension. These vectors are learned parameters before being contextualized by the decoder.

The decoder processes these category embeddings together with the patch representations from the encoder. It is implemented using transformer encoder layers, even though its role in the full architecture is decoding. That terminology reflects the type of block used internally instead of the role the component plays in the image-to-segmentation pipeline.

Joint processing allows the category tokens and patch tokens to participate in the same contextual computation. The category representations can respond to the image, and patch representations can be refined in the presence of the category tokens. The final mask scores therefore come from representations that have interacted before being compared.

This is the basis for the authors’ description of dynamic filters. The initial learned category embedding is shared across images, but its decoder output is influenced by the current image sequence. The representation used to identify a category is consequently conditioned on the input.

The distinction from the linear decoder is precise. A linear category mapping applies learned weights directly to the encoder output. The mask transformer first computes updated patch and category vectors through joint attention, then uses their similarity to produce category evidence.

Form masks through normalized similarities

After M decoder layers, the patch outputs and category outputs are used to construct masks. The patch representations are denoted z′_M, and the category representations are denoted c. Both are L2-normalized before their scalar products are computed.

The mask equation is:

Masks(z′_M, c) = z′_M cᵀ

Masks denotes the collection of patch-level category mask scores. z′_M contains the decoder’s patch vectors after M layers. c contains the decoder’s category vectors, and cᵀ is its transpose. Multiplication computes a similarity score for every patch–category pairing.

L2 normalization makes each compared vector have unit length. Under that normalization, the scalar product reflects how closely the vector directions align. The decoder learns representations for which the relevant patch and category vectors receive suitable similarities.

The mask score array has the shape:

Masks(z′_M, c) ∈ ℝ^(N × K)

N is the patch count, and K is the number of categories. Each column can be viewed as a mask sequence for a category, while each row contains the category scores associated with a patch.

The category sequences are reshaped into spatial masks:

s_mask ∈ ℝ^((H/P) × (W/P) × K)

s_mask denotes the patch-grid mask collection. H/P and W/P are the grid dimensions, P is the patch side length, and K counts the semantic categories. As with the linear decoder, the grid is then enlarged by bilinear interpolation to the original image dimensions.

The decoder description includes softmax across categories and also mentions layer normalization in its final processing. Its stated goal is a collection of softly exclusive category masks. That means the category outputs compete at each location instead of behaving as entirely independent masks that can all claim the same pixel without constraint.

The paper expresses that intended normalization as:

∑ₖ₌₁ᴷ sᵢ,ⱼ,ₖ = 1

sᵢ,ⱼ,ₖ is the output associated with image position i, j and category k. The summation runs over the K categories. The equality states that the category values at a spatial position sum to 1.

Softmax provides that form of normalization. The decoder prose is less explicit about how the additionally mentioned layer normalization relates to the final normalized scores. The architectural explanation is clearest when the stages are kept distinct: joint transformer processing produces representations, their similarities produce mask scores, and category normalization supports the final per-pixel competition.

At inference, choosing the highest-scoring category converts the soft output into a discrete semantic map. This gives every pixel a category assignment. The category embeddings organize masks by semantic class, so the system is not separately assigning an independent identity to every object instance.

Distinguish semantic masks from object instances

Semantic segmentation groups pixels by category. Different objects belonging to the same category can contribute to the same category mask. The learned embeddings in Segmenter are therefore category embeddings, with an explicit association between an embedding and a semantic label.

The paper connects this design to approaches that instead use object embeddings for instance-oriented outputs. DETR helps motivate learned output representations, while Max-DeepLab and SOLO-v2 provide related mask-generation ideas. Segmenter adapts those ideas to the semantic category inventory of its task.

The authors emphasize that their patch-level representation makes joint processing of patch and category tokens possible in a comparatively simple decoder. In their description, Max-DeepLab separates pixel and class representations into streams because of computational constraints. Segmenter’s use of patches reduces the sequence burden that would arise from operating directly at pixel granularity.

The paper proposes that replacing category embeddings with object embeddings could extend the approach toward panoptic segmentation. That is an architectural possibility suggested by the shared mask-producing machinery. The experiments discussed here train and evaluate semantic segmentation.

This distinction matters when interpreting the method’s flexibility. A mechanism for producing masks can be reused across tasks, but the meaning of a mask depends on the output organization and supervision. Category-associated masks solve a different labeling problem from masks that must distinguish separate objects belonging to the same category.

Select an encoder size and patch size

The implementation considers encoder variants called Tiny, Small, Base, and Large. The architectural quantities varied are the number of transformer layers and the width of the token representations. These choices change the capacity and computational requirements of the encoder.

The naming convention combines encoder size with patch size. Seg-B/16, for example, identifies the Base encoder with 16 × 16 patches. The name records a representation decision that directly affects the sequence length and spatial granularity.

A dagger indicates an encoder based on DeiT. Thus Seg-B†/16 identifies a DeiT-based Base configuration at that patch size. The distinction is relevant because the pretrained encoders come from different classification training arrangements.

The mask-decoder name adds Mask. Seg-L-Mask/16 therefore identifies the Large encoder, a mask transformer decoder, and the corresponding patch size. Keeping these parts of the name separate helps avoid treating every named configuration as an unrelated architecture.

The standard mask transformer used in the decoder comparisons has 2 layers. Its token width and hidden width match the corresponding encoder settings. This makes the decoder capacity depend on the encoder configuration rather than assigning an unrelated representation scale.

The Cityscapes configuration changes that decoder depth. For Seg-L-Mask/16, the authors use a single decoder layer because the usual setting does not fit in memory at the training resolution of 768 × 768. This is a concrete example of resource constraints altering the final configuration.

Encoder width, encoder depth, patch size, input resolution, and decoder depth therefore form a connected set of choices. A larger encoder is only part of the design space. The spatial representation and the decoder sequence also influence what can be trained within available memory.

Transfer a classification encoder

Segmenter’s encoders begin from image classification pretraining. The ViT initializations use ImageNet-21k, while the DeiT initializations use ImageNet-1k. The decoder is newly initialized for segmentation.

The paper distinguishes the original ViT pretraining procedure from an improved procedure described by Steiner and colleagues. The original procedure used random cropping. The improved procedure combines dropout and stochastic depth with the data augmentations Mixup and RandAugment.

This distinction is not incidental. When the authors fine-tune ViT-B/16 on ADE20K, the original initialization leads to 45.69% mIoU, whereas the improved initialization leads to 48.06% mIoU. The comparison shows that a change made before segmentation training can substantially affect the final segmentation score.

The authors consequently use the improved ViT initializations for the subsequent experiments. They obtain publicly available classification weights through timm and Google research. The paper also identifies an official Segmenter code repository, making the implementation an explicit part of the work.

The classification pretraining resolution is 224, followed by ImageNet-1k fine-tuning at a resolution of 384. ViT-B/8 is the stated exception: its classification fine-tuning resolution is 224. Segmentation training then uses higher resolutions appropriate to the target dataset.

The patch size remains fixed during this transfer. What changes is the image extent covered by the patch grid. The longer segmentation sequence is accommodated through interpolation of the positional embeddings, while the learned visual processing weights are transferred.

Decoder parameters are initialized randomly using a truncated normal distribution. This creates a clear division in training history. The encoder arrives with visual representations learned from classification, while the segmentation decoder must learn how to use those representations for dense category prediction.

Understand why pretraining belongs to the method

Pretraining is sometimes discussed as a background convenience, but Segmenter’s appendix makes it part of the empirical explanation. The authors compare pretrained Seg-S/16 with equivalent randomly initialized versions to examine how much the classification starting point matters.

The randomly initialized weights also use a truncated normal distribution. The comparison considers an SGD procedure with the polynomial learning-rate schedule used for fine-tuning and an AdamW procedure with a cosine schedule. The AdamW setup includes linear warmup for 16K iterations, described as 10% of the training duration.

This matters because a weak optimization choice could otherwise make training from scratch appear worse than it needs to be. By considering alternative procedures, the authors give the random-initialization comparison a more informative basis than simply removing the pretrained weights and leaving every other decision unquestioned.

For the pretrained Seg-S/16 configuration using SGD, the appendix reports 45.37% mIoU on ADE20K validation. The authors characterize its advantage over the best randomly initialized configuration as 32.9%. That figure is their reported comparison, rather than a value derived from unavailable table entries.

The method therefore demonstrates successful adaptation of pretrained visual representations to segmentation. It does not establish that the same architecture reaches its reported performance using only the segmentation training images. The classification data and training procedure are part of the system’s learning history.

This also clarifies what the moderate size of the segmentation datasets means. Dense labels provide the task-specific training signal, but they are used to adapt an encoder that already contains substantial learned visual structure. The segmentation decoder is new, while the image representation has a broader source.

Prepare training images consistently

The training pipeline follows MMSegmentation. It begins with mean subtraction and includes random image resizing and random horizontal flipping. These operations vary the images encountered during training while keeping the segmentation task aligned with the transformed content.

The random resize ratio lies between 0.5 and 2.0. This exposes the system to changes in apparent object size relative to the training crop. Such variation is relevant because the same patch size can cover different semantic extents depending on image scale.

Images are then brought to a fixed training size through cropping or padding. Large images are cropped; small images are padded. The procedure establishes a consistent input extent for a training configuration without requiring every original image to have identical dimensions.

For ADE20K, the usual crop size is 512 × 512. Pascal Context uses 480 × 480, and Cityscapes uses 768 × 768. The largest ADE20K configuration, Seg-L-Mask/16, is trained at 640 × 640 to match the resolution used in the cited Swin Transformer comparison.

These settings influence the transformer sequence. At a fixed patch size, the larger crop gives the encoder more tokens to process. It can also include a different amount of scene context within a training example. Input resolution is therefore part of the representation and computational setup, not merely an image-loading detail.

The augmentations operate on the segmentation training data instead of replacing pretraining. The full procedure combines transferred classification representations with task-specific exposure to resized, flipped, cropped, or padded examples. Keeping those stages distinct helps explain where the learned capabilities may come from.

Learn from pixel-level errors

The training objective is standard per-pixel cross-entropy. At each supervised image location, the system is encouraged to assign probability to the annotated category. The loss is applied after the architecture has produced dense outputs.

The authors do not use category weight rebalancing. This means the stated objective does not add a separate weighting scheme intended to equalize the contributions of the semantic categories. The reported procedure relies on the standard pixel-wise classification loss.

End-to-end training allows errors in the enlarged segmentation map to influence both decoder and encoder parameters. The decoder learns to extract category evidence, and the transferred encoder is adjusted to make its patch representations useful for the dense task.

There is an important interaction between the objective and interpolation. The learned representations and patch scores are optimized through a pathway that includes their expansion to image resolution. The output is evaluated where the category annotations live, even though the central transformer computation occurs over patches.

The training objective also distinguishes Segmenter’s semantic masks from independently supervised binary masks. The class competition at each pixel is part of producing a single semantic assignment. The categories share the output location instead of being evaluated as unrelated claims about the image.

The paper’s straightforward loss is consistent with the broader experimental strategy. It makes the encoder, patch representation, and mask decoder the primary architectural subjects of study, while keeping the dense classification objective conventional.

Set the optimization schedule

The main fine-tuning optimizer is stochastic gradient descent, abbreviated SGD. Weight decay is set to 0. The learning rate decreases according to the polynomial schedule adopted from the DeepLab training tradition.

The schedule is:

γ = γ₀(1 − N_iter / N_total)^0.9

γ is the learning rate at the current iteration. γ₀ is the base learning rate, N_iter is the current iteration count, and N_total is the full training duration in iterations. The exponent 0.9 controls the shape of the decrease.

The schedule links optimization progress to a declining step size. Early training uses a learning rate nearer the base value, and later training uses a smaller value. The same functional form is retained across datasets, while the base rate, duration, and batch size are chosen separately.

On ADE20K, the base learning rate is 10⁻³. Training uses batches of 8 across 160K iterations. This is the principal benchmark used for the architecture and training ablations.

Pascal Context also uses a base learning rate of 10⁻³. Its training duration is 80K iterations, and its batch size is 16. The dataset therefore has its own optimization configuration instead of inheriting every ADE20K setting unchanged.

Cityscapes uses a base learning rate of 10⁻², with 80K training iterations and a batch size of 8. Its larger spatial input also influences memory use, as shown by the reduced mask-decoder depth in the Large configuration.

The authors describe their schedule as similar to DeepLabv3+, with lower learning rates for the relevant datasets and a separate Cityscapes choice. The meaningful point is that Segmenter is fine-tuned through a conventional segmentation training framework. Its central novelty lies in the representation and decoding architecture, rather than a specialized new loss or optimizer.

Regularize the segmentation training

The authors investigate dropout and stochastic depth as alternative forms of regularization. Both introduce randomness during training, but they act at different structural levels. In the paper’s description, dropout removes parts of the information supplied within processing, whereas stochastic depth skips learned blocks during a forward pass.

The controlled comparison uses Seg-S/16 on ADE20K validation. Stochastic depth improves the result, while dropout hurts performance in the tested settings, including when combined with stochastic depth. The authors relate the negative dropout finding to the observation reported for DeiT classification.

The resulting default uses stochastic depth at 0.1 and no dropout. The paper describes that stochastic-depth setting in terms of randomly dropping 10% of layers. It reports a 0.36% mIoU improvement over the unregularized baseline when dropout is 0.

This is a segmentation fine-tuning decision. It does not imply that dropout played no role anywhere in the encoder’s history. The improved classification pretraining procedure includes dropout among its ingredients, while the segmentation experiments settle on a different regularization choice.

That distinction illustrates why training stages should be described separately. A technique can be useful in one data regime or training phase and unhelpful in another. Segmenter’s procedure is the outcome of the reported controlled comparison, rather than a general statement that a regularizer is always beneficial or always harmful.

The use of layer normalization also remains separate from this choice. Layer normalization is built into the transformer block structure. Dropout and stochastic depth are additional training mechanisms whose effects the authors test explicitly.

Produce predictions for images of varying sizes

Training uses fixed spatial extents, but evaluation images need not match those dimensions. Segmenter handles this through sliding-window inference. The window resolution matches the training resolution for the configuration being evaluated.

This preserves the input scale expected by the trained system while allowing it to cover an image of another size. It also avoids treating the entire variable-size image as an unrestricted transformer sequence in every case. The inference procedure is therefore part of the practical route from benchmark images to dense outputs.

For multi-scale evaluation, the authors resize the image using factors of 0.5, 0.75, 1.0, 1.25, 1.5, and 1.75. They also include horizontal flipping and average the resulting predictions. These transformed views provide several evaluations of the same scene under changes in scale and orientation.

Single-scale and multi-scale results should consequently be read as different evaluation conditions. Multi-scale prediction adds computation through repeated views. A result obtained that way cannot be interpreted as the output of the same amount of inference work as a single-scale prediction.

The ablation study uses the linear decoder and single-scale inference unless another condition is stated. This default gives the controlled comparisons a common basis. The headline comparisons should be interpreted with their own evaluation setup rather than merged indiscriminately with those ablation scores.

After score maps are returned to the original image coordinates and dimensions, the largest category score determines the pixel label. This is the final step that turns the continuous mask outputs into the discrete semantic assignment required by the task.

Read the resolution trade-off through the architecture

Patch size changes several parts of the pipeline at once. It controls the spatial unit seen by the encoder, the length of the attention sequence, and the resolution of the score grid before interpolation. Those effects explain why it is such an important variable in the paper.

A coarse patch can contain multiple visual structures. The transformer can understand its relationship to the rest of the scene, but the decoder still begins from a representation associated with that whole patch region. Recovering a narrow boundary from such a grid is harder than recovering it from a finer arrangement of patch representations.

Smaller patches provide more spatially distinct tokens. They allow nearby structures to contribute separate representations and separate patch-level scores. The qualitative examples show why this matters: boundaries become sharper, and thin structures can become detectable when the patch representation is sufficiently fine.

The cost comes from the attention operation. A longer sequence produces more pairwise comparisons, increasing computation and memory demand. The authors therefore treat patch size as a route through an accuracy–runtime tradeoff instead of an improvement that is free to apply.

Crucially, reducing patch size does not itself add learned parameters in the way enlarging the encoder does. It changes how much image structure the same general processing architecture must handle. This makes patch granularity and encoder capacity distinct experimental axes, even though both can improve the output.

The paper’s discussion of a possible ViT-L/8 configuration follows this reasoning. The authors expect that combining their larger encoder with finer patches could perform well, but computational feasibility limits that direction. The architecture explains the expectation; it does not turn an untested configuration into a reported result.

See why the mask decoder can help

The linear decoder assumes that the final encoder vectors can be read through a shared category mapping. That is a strong and useful baseline, but it leaves all context-dependent category adjustment to the encoder.

The mask transformer adds a later opportunity for adaptation. Category vectors and patch vectors interact after the initial image encoding. The representation used to form a category mask can therefore respond to which visual structures are present and how the scene is organized.

The final similarity operation remains simple. Once the joint decoder has produced the vectors, mask construction is a normalized scalar-product comparison. Much of the decoder’s expressive work happens before that comparison, through the contextual processing that shapes the vectors being matched.

This arrangement keeps a recognizable association between output category and learned embedding. It also avoids treating the category vector as a permanently fixed filter at prediction time. The learned initial embedding provides continuity across images, and its contextualized output supplies adaptation to the current image.

The paper’s category-embedding visualization is consistent with those vectors acquiring semantic structure. A projection groups related categories in suggestive ways, including transportation, household objects, and outdoor categories. That observation helps interpret the representation but does not replace the segmentation comparisons as evidence of performance.

The decoder is therefore best understood through both its mechanics and its controlled comparison. Mechanically, it jointly contextualizes patches and categories before similarity-based mask formation. Experimentally, the authors test whether that extra process improves on the same general pipeline with a linear output mapping.

Keep the practical components in view

Segmenter’s conceptual route is compact, but the reproducible method includes more than its attention equations. It depends on a chosen pretrained encoder, a patch size, a training resolution, a decoder configuration, data transformations, and an optimization schedule. Inference adds its own choices about windows and transformed views.

The authors name their code repository and the public sources of pretrained weights. They also identify MMSegmentation as the source of the augmentation pipeline and of comparator implementations used in parts of the analysis. These details locate the architecture within a concrete experimental procedure.

The same care applies to terminology. A convolution-free segmentation architecture describes the operations in Segmenter’s image-to-mask path. It does not erase differences in pretraining data or teacher-based classification training. A transformer decoder describes the role of a component, even when its internal blocks are transformer encoder layers.

Likewise, a pixel-level output does not mean that the full network attends over a pixel sequence. Segmenter obtains that output from patch-level representations and interpolation. Keeping the internal and external resolutions separate makes the method’s strengths and tradeoffs easier to understand.

The complete procedure is therefore a chain of explicit representational decisions. Patches make global attention tractable. Position embeddings preserve spatial organization. The encoder builds contextual visual features. The decoder turns those features into category evidence. Interpolation restores image dimensions, and the pixel-wise training objective teaches the chain to support dense semantic labeling.

Experiments and results

What the evaluation needs to establish

Segmenter’s experiments address several questions that a headline segmentation score cannot answer on its own. Does a transformer encoder provide useful representations for assigning categories throughout an image? How much does the mask transformer contribute beyond a direct linear prediction head? Which choices improve the recognition of broad regions, and which preserve the details needed to separate neighboring objects? The evaluation combines benchmark comparisons with controlled changes to the architecture and training procedure.

The distinction between these questions matters. A strong benchmark result establishes that a complete configuration works under its stated conditions. It does not automatically identify the component responsible for its advantage. Conversely, an ablation can reveal the effect of a particular change without establishing that the resulting configuration is the strongest available system. The paper uses ADE20K extensively for the latter purpose, then evaluates its larger configurations across additional datasets.

The main numerical measure is mean intersection over union, abbreviated mIoU. For a semantic category, intersection over union compares the overlap between its predicted region and its annotated region with the area covered by either. Averaging across categories gives a measure of segmentation quality that reflects the category inventory rather than simply counting all correctly labeled pixels together. The authors report this measure throughout their benchmark evaluation.

An overlap score incorporates both category assignment and spatial extent. Labeling a region with the wrong category reduces overlap, but so does assigning the right category to an incorrectly shaped region. This makes mIoU appropriate for the paper’s central task while also creating an interpretive limitation: the score alone does not reveal whether an improvement came from better recognition, more consistent coverage of an object, or more accurate contours. The additional analyses help separate those possibilities.

The paper’s main comparisons concern validation sets. ADE20K and Cityscapes also have test partitions, whose sizes the authors describe, but the headline comparisons discussed in the experimental text are validation results. Keeping the split attached to each score avoids turning a development-set comparison into a claim about a different evaluation setting.

The datasets represent different segmentation settings

ADE20K supplies the broadest category inventory among the datasets studied. Its training partition contains 20,210 images, with annotations covering 150 semantic classes. Validation uses 2,000 images, while the test partition contains 3,352 images. The authors emphasize the difficulty of its scenes and the fine distinctions in its labels.

This dataset is particularly useful for studying Segmenter’s contextual argument. A segmentation system must distinguish many categories across varied scenes, while maintaining spatially consistent predictions. The authors use ADE20K validation for comparisons involving regularization, encoder capacity, patch granularity, decoder design, and the amount of segmentation training data. It thus provides a benchmark while also serving as the primary experimental setting for developing an understanding of the architecture.

Pascal Context has 4,996 training images and 5,104 validation images. Its annotation inventory includes 59 semantic classes together with a background class. The smaller training partition makes its results relevant to the paper’s transfer-learning claim: the system adapts image classification representations to dense prediction without requiring a segmentation dataset on the scale of the classification data used beforehand.

That claim needs its full context. A modest segmentation dataset does not mean that the visual encoder learned entirely from those images. The experimental procedure transfers substantial prior training. Pascal Context consequently tests adaptation to a particular segmentation task, instead of learning visual representations from a small annotated collection alone.

Cityscapes provides a different scene setting. The collection contains 5,000 images drawn from 50 cities and uses 19 semantic classes. Its training, validation, and test partitions contain 2,975, 500, and 1,525 images, respectively. The experimental setup also uses a larger training resolution than the usual ADE20K and Pascal Context settings.

These datasets should be read as separate evaluations, rather than entries in a single numerical ranking. Their category inventories, image content, and training arrangements differ. A larger mIoU on Cityscapes than on ADE20K does not establish that a configuration has become intrinsically better; it describes performance on another labeling problem. The useful comparison is between systems evaluated under the same dataset and metric conditions.

Across the datasets, the central question remains stable: can contextualized patch representations support accurate dense category assignment? The answer is strongest when the benchmark results are considered alongside the architecture comparisons. The dataset scores establish practical performance, while the controlled studies reveal which representational choices support it.

ADE20K: the strongest headline result

On ADE20K validation, the authors first show that the DeiT-based Base configuration with a linear decoder can match the convolutional comparator DeepLabv3+ ResNeSt-200. This result is important because it comes before adding the proposed mask transformer. It indicates that a relatively simple prediction head can already extract strong segmentation evidence from the transformer encoder’s patch representations.

Introducing the mask decoder produces Seg-B†-Mask/16, which reaches 50.08% mIoU on ADE20K validation. The paper describes this as an improvement of 2% over the corresponding linear configuration and reports that it exceeds the fully convolutional systems in the comparison. The dagger identifies the DeiT initialization, so the result also records an important part of the encoder’s training history.

The largest reported ADE20K configuration, Seg-L-Mask/16, obtains 53.63% mIoU on the validation set. The authors report an advantage of 5.27% mIoU over DeepLabv3+ ResNeSt-200. They also place this result above the compared SETR and Swin-L UperNet systems. The introductory discussion gives the convolutional comparison in the less precise form of 5.3%; the detailed experimental account uses 5.27%.

Selected Segmenter configurations on ADE20K validation, mIoU

The larger reported configuration achieves the stronger headline segmentation result.

Selected Segmenter configurations on ADE20K validation, mIoUSeg-B†-Mask/16: 50.08Seg-B†-Mask/1650.08Seg-L-Mask/16 (this paper): 53.63Seg-L-Mask/16 (this paper)53.63
The numbers
System or settingmIoU %
Seg-B†-Mask/1650.08
Seg-L-Mask/16 (this paper)53.63

This comparison shows the range of the reported complete systems; it does not isolate encoder size as the sole changing variable. The configurations differ in their initialization family, and the largest ADE20K setting uses a training resolution of 640 × 640. The controlled capacity comparisons discussed later provide a more focused way to examine the role of encoder scale.

The resolution choice also matters when assessing the comparison with Swin. The authors select the larger ADE20K training extent to match the resolution used by the cited Swin Transformer setup. That makes input size an explicit experimental consideration. It does not remove every architectural or training difference between the systems, but it prevents the spatial input setting from being treated as an invisible detail.

The result supports a concrete conclusion: a convolution-free segmentation architecture, initialized through image classification training and equipped with the proposed mask decoder, can perform strongly on a difficult dense-labeling benchmark. The experiment does not require the claim that every convolutional operation is disadvantageous. Its evidence concerns the performance of complete, trained systems on the specified evaluation.

The distinction between the linear and mask-decoder results is especially useful here. The encoder already supplies substantial segmentation capability, and the mask transformer adds a further improvement. Segmenter’s success therefore cannot be described accurately as coming only from a powerful output head or only from replacing the encoder. The experiments support contributions from the contextualized representation and from the way categories interact with that representation during decoding.

Pascal Context: an additional test of the decoder

The Pascal Context comparison follows a similar progression. The DeiT-based Base configurations remain competitive with fully convolutional approaches. Moving to the larger encoder with a linear decoder produces a result that the authors describe as exceeding the compared SETR-L system. The proposed decoder then improves the Large configuration further.

For Seg-L-Mask/16, the reported Pascal Context validation result is 59.04% mIoU. The paper attributes an improvement of 2.5% to replacing the corresponding linear decoder with the mask transformer in this setting. It also reports advantages of 2.8% over OCR HRNetV2-W48 and 3.2% over SETR-L MLA.

These are the authors’ stated comparisons. They should be retained in that form rather than used to reconstruct unreported baseline scores. The experimental account gives the final Segmenter result and the reported margins, which are sufficient to describe its position without deriving additional numerical entries.

Pascal Context strengthens the decoder evidence because the benefit is not confined to the main ADE20K development setting. A decoder that improves a configuration on another dataset has broader empirical support than one evaluated only where its details were selected. At the same time, the experiments remain within semantic segmentation: the category embeddings are still associated with a fixed semantic inventory.

The result also illustrates why decoder gains should be attached to their setting. The Pascal Context improvement over the linear version is not the same as the improvement reported for the Large configuration in the ADE20K decoder ablation. There is no reason to expect an architectural addition to contribute an identical amount across different data distributions, category inventories, or evaluation arrangements.

A careful reading therefore avoids reducing the mask transformer to a single universal gain. Its contribution is demonstrated through several comparisons, each with its own conditions. The consistent direction of those comparisons supports its usefulness, while the varying sizes of the gains show that its value depends on the rest of the system and the task.

Cityscapes: competitive performance under a memory constraint

On Cityscapes validation, Seg-L-Mask/16 reaches 81.3% mIoU. The paper characterizes the Cityscapes results as competitive with leading methods. This is a more restrained comparative claim than the state-of-the-art claims made for ADE20K and Pascal Context, and the distinction should be preserved.

The Cityscapes setup exposes a practical constraint that is easy to miss when reading only the score. Its training input has a spatial extent of 768 × 768. With that larger input, the usual mask-decoder depth cannot fit in memory for the Large configuration. The authors therefore use a decoder with a single layer.

This change makes the result informative in another way. Segmenter is presented as a family of configurations whose components can be adjusted to available resources. The Cityscapes evaluation demonstrates that such adjustment is necessary in practice, rather than merely an optional deployment preference.

It also limits direct architectural comparison across datasets. The name Seg-L-Mask/16 identifies the same broad encoder and patch setting, but it does not imply that every internal choice is identical in every experiment. Decoder depth and input resolution must accompany the name when interpreting the complete setup.

The memory issue follows the architecture’s central tradeoff. Larger images at fixed patch size generate longer sequences, and the decoder jointly processes image and category representations. The architecture’s global interactions are useful, but their computational requirements remain consequential even after the image has been reduced to patches.

Cityscapes therefore supports the paper’s claim of applicability across several segmentation benchmarks while also illustrating a boundary of the method. Strong results can coexist with resource-driven changes to the architecture. The score alone would conceal that relationship.

Runtime comparisons describe throughput in a specific setting

The paper evaluates speed alongside segmentation quality. Its timing procedure uses a V100 GPU, fixes image resolution at 512, and selects the largest batch that memory permits for each configuration. This produces a comparison of image throughput under a stated hardware and batching arrangement.

The most explicit throughput figure concerns Seg-B-Mask/32. The authors report 400 images per second and describe it as four times faster than ResNet-50 while offering similar segmentation performance. The result belongs to the coarse-patch end of Segmenter’s design space, where a shorter sequence makes attention less expensive.

The comparison is useful because it shows that the architecture is not restricted to its highest-accuracy, most demanding configurations. Coarser patches offer another operating point. They reduce the granularity of the segmentation representation, but they can make processing substantially faster under the measured conditions.

The paper identifies the /16 configurations as particularly attractive when considering accuracy together with compute time. Seg-B-Mask/16 is highlighted as a useful compromise: it exceeds the compared fully convolutional approaches at similar inference speed, matches SETR-MLA while the authors describe it as twice faster, and compares favorably with Swin-B in both speed and segmentation quality.

Those statements should remain tied to the paper’s measurement procedure. Selecting the maximum feasible batch emphasizes throughput rather than the delay experienced by an isolated image. It also allows each configuration to use a different batch size. This is a reasonable experimental choice for the comparison the authors make, but it answers a more specific question than whether the system is fast in every application.

The fixed timing resolution is equally important. The largest ADE20K training configuration uses a different spatial extent, and Cityscapes uses a larger one again. The throughput plot should not be silently treated as a direct measurement of every full benchmark inference procedure, including sliding windows and transformed views.

Multi-scale evaluation adds repeated image processing and result averaging. Its final segmentation score reflects that additional procedure. A reader choosing an operational setting would need to keep the score, patch size, resolution, batching policy, and inference transformations together. The paper supplies useful evidence about the tradeoff, without reducing it to a hardware-independent speed claim.

Qualitative results reveal what the scores conceal

The visual comparisons describe a recurring contrast. Segmenter frequently keeps labels more consistent across a large object or region, including when parts are obscured. DeepLabv3+ can produce sharper local boundaries. This pattern aligns with the architecture’s emphasis on broad contextual interaction, but it also shows that semantic coherence and geometric precision are distinct achievements.

The paper’s favorable examples include a wedding dress and a helmet worn by an airplane signalman. In these cases, the authors describe more coherent category assignments from Segmenter. The significance is continuity: parts of an object that differ locally in appearance can still receive a consistent semantic interpretation.

Occlusion makes this especially relevant. When an object is interrupted by another structure, labeling its visible pieces consistently requires more than tracing a continuous local texture. Segmenter’s access to distant context provides an architectural route for relating those pieces. The qualitative examples illustrate behavior compatible with that explanation.

Other examples show errors shared by the compared systems. Visually similar categories can be confused: the paper discusses armchairs and couches, cushions and pillows, and several kinds of vegetation. These failures indicate that scene-wide context does not automatically resolve every fine semantic distinction.

The boundary comparisons are equally important. In images containing nearby people, DeepLabv3+ better separates some contours. Segmenter can understand the broad region while drawing an imperfect division within it. This is exactly the kind of weakness that can be obscured when the discussion concentrates only on consistency across large instances.

Small objects remain difficult for both approaches. The authors show failures involving lamps, people, flowers, cars, and signals. These examples qualify any broad claim that global attention solves the segmentation problem. Some errors arise because the relevant structure occupies too little of the representation or is difficult to distinguish at the available spatial detail.

The qualitative evidence is illustrative rather than exhaustive. It does not report how often each failure occurs across the entire validation set. Its role is to make the character of success and failure visible, complementing the overlap metric and the object-size analysis rather than replacing them.

What the ablations show

How to read the controlled comparisons

The main ablation setting is ADE20K validation. Unless the authors specify another arrangement, the prediction head is linear and inference uses a single scale. This shared default makes it easier to attribute a change in the reported score to the experimental variable under study.

The variables cover different parts of the learning pipeline. Some change the encoder’s capacity, some change the spatial representation, and others change training or initialization. The decoder comparison then asks whether additional contextual processing after the encoder improves the masks.

This breadth matters because Segmenter’s performance cannot be explained by architecture alone in the narrow sense of its block diagram. The choice of pretrained weights materially affects the result. So do the amount of task-specific data and the regularization applied during adaptation. The ablations help prevent those ingredients from disappearing behind the transformer label.

They also clarify which conclusions are empirical and which remain expectations. The authors measure benefits from smaller patches in feasible configurations. Their suggestion that a larger encoder with equally fine patches could perform better is a projection from those findings, not another measured point.

Better classification initialization improves segmentation

The comparison between classification initializations is unusually revealing because the downstream architecture remains ViT-B/16. With the original ViT weights, ADE20K fine-tuning produces 45.69% mIoU. With the improved classification training procedure, the reported ADE20K result is 48.06% mIoU.

Classification initialization for ViT-B/16 on ADE20K validation, mIoU

The improved pretraining procedure transfers to a stronger segmentation result.

Classification initialization for ViT-B/16 on ADE20K validation, mIoUOriginal ViT initialization: 45.69Original ViT initialization45.69Improved ViT initialization (this paper): 48.06Improved ViT initialization (this paper)48.06
The numbers
System or settingmIoU %
Original ViT initialization45.69
Improved ViT initialization (this paper)48.06

The changed starting point incorporates a different combination of augmentation and regularization during classification training. The paper describes the improved procedure as using dropout, stochastic depth, Mixup, and RandAugment, whereas the original ViT procedure used random cropping. The downstream difference consequently belongs to a package of pretraining changes, rather than an isolated test of any individual ingredient.

The authors also report an ImageNet top-1 classification improvement of +2% for ViT-B/16 from that improved training procedure. This provides a connection between stronger classification preparation and stronger segmentation adaptation. It does not establish that classification accuracy alone is a complete predictor of dense prediction quality.

The important inference is narrower and more useful: the inherited encoder matters enough that comparisons should identify how it was trained. A segmentation result obtained from stronger initial visual representations should not be attributed entirely to the newly introduced segmentation components.

This finding is also relevant when comparing the paper’s encoder families. ViT and DeiT do not arrive from identical classification histories. Their downstream scores are valid complete-system results, but architecture, pretraining data, and training procedure should remain visible when discussing why they differ.

The subsequent use of improved ViT initializations makes sense within this evidence. The authors choose a stronger starting point for the remaining experiments. That choice raises the quality of the reported systems while reinforcing that transfer learning is part of the method’s demonstrated success.

Pretraining is much more than a small convenience

The appendix asks a more fundamental question: what happens when the encoder begins from random weights instead? The authors test Seg-S/16 with random initialization and compare it with the ImageNet-pretrained configuration.

They consider alternative optimization procedures for training from scratch. One uses SGD with the polynomial schedule employed in fine-tuning. Another uses AdamW with a cosine schedule and a linear warmup of 16K iterations. The warmup is described as occupying 10% of the overall training period.

Trying these alternatives makes the comparison more informative. Random initialization may require different optimization behavior from adaptation of a pretrained encoder. The experiment therefore does more than remove the transferred weights while assuming that every fine-tuning choice must remain appropriate.

The pretrained Seg-S/16 configuration using SGD reaches 45.37% mIoU on ADE20K validation. The authors describe its advantage over the best randomly initialized alternative as 32.9%. The experimental text does not supply all the underlying table entries, so the reported comparison should be retained without constructing additional scores.

This is strong evidence that the segmentation data alone, under the tested training arrangements, does not produce the capability demonstrated by the pretrained system. Dense annotations are valuable, but they do not substitute automatically for the visual representation learned before the segmentation stage.

The result changes the meaning of the paper’s data-efficiency story. Segmenter adapts successfully using segmentation datasets of moderate size. It does not show that those datasets are sufficient for learning the full representation from scratch. The distinction is central to understanding both the achievement and its resource requirements.

It also helps interpret the simplicity of the decoder. A linear head can work well because it reads an encoder that has already undergone extensive visual learning and then task-specific adaptation. The experiment does not imply that an equally simple system with no such preparation would perform similarly.

Stochastic depth helps the tested fine-tuning setup

The regularization study uses Seg-S/16 on ADE20K validation and compares dropout with stochastic depth. The authors report that dropout harms segmentation performance in the tested conditions, whether used alone or combined with stochastic depth. Stochastic depth produces the favorable result.

With stochastic depth set to 0.1 and dropout set to 0, the reported improvement over the unregularized baseline is 0.36% mIoU. The authors explain the stochastic-depth setting as randomly omitting 10% of layers during training. They adopt this arrangement for the subsequent segmentation experiments.

The value of this study lies partly in its specificity. Transformers commonly include layer normalization and may use dropout during training, but that does not make every familiar regularization choice beneficial in segmentation fine-tuning. The authors test the choice in the setting where it will be used.

The result also creates a useful distinction between training stages. Dropout appears among the ingredients of the improved classification pretraining procedure, yet it is excluded from the final segmentation fine-tuning default. These observations can coexist because they concern different stages, data conditions, and experimental comparisons.

The paper relates the negative dropout finding to the DeiT work’s classification observations. That connection supplies context, but the segmentation evidence remains the controlled Seg-S/16 experiment. It should not be expanded into a universal claim about dropout across architectures or tasks.

Stochastic depth’s benefit is likewise conditional. The measured gain supports the adopted default for the tested setup. It does not establish that the same probability is optimal for every encoder size, resolution, or segmentation dataset. The paper’s contribution is a concrete experimental choice, instead of a general regularization law.

Greater encoder capacity improves the representation

The capacity study fixes patch size at 16 and changes the encoder’s token width and depth. This is more controlled than comparing arbitrary named systems whose resolutions, decoders, and initializations may differ.

When the token dimension is doubled between Seg-S/16 and Seg-B/16, the authors report a 2.69% mIoU improvement on ADE20K validation. When the number of layers is doubled between Seg-B/16 and Seg-L/16, the reported improvement is 2.65%.

These comparisons show benefits from different ways of enlarging the encoder. Wider token representations increase the representational space available at each patch, while additional layers allow more stages of contextual interaction and refinement. The experiments support both routes within the studied family.

With its linear decoder, Seg-L/16 reaches 50.71% mIoU on ADE20K validation under single-scale inference. This result is particularly informative because the prediction head remains simple. The larger encoder’s usefulness is visible without depending on the proposed mask transformer.

The authors interpret this as evidence that transformer representations are well suited to segmentation without the specialized components common in fully convolutional systems. That interpretation is supported by the strong linear-decoder result, although the comparison does not isolate every possible architectural cause.

Capacity still has a cost. A larger encoder requires more resources, and the paper’s speed analysis treats accuracy and runtime together. The ablation establishes a favorable direction within the feasible configurations; it does not establish that continuing to enlarge the encoder is always the best use of a fixed computational budget.

That qualification becomes especially important alongside the patch-size study. Capacity and spatial granularity are separate choices. A wider or deeper encoder can reason more effectively about its tokens, but finer patches can preserve distinctions that a coarse tokenization makes difficult to represent.

Smaller patches improve more than the appearance of boundaries

The patch-size experiments hold attention on the initial spatial representation. For the Base configuration, changing patch size from 32 to 16 produces a reported improvement of 5% mIoU on ADE20K validation. This places patch granularity among the consequential design choices, alongside encoder capacity.

Using patches of size 8, Seg-B/8 reaches 49.54% mIoU on ADE20K validation. The paper describes the remaining gap to the Large configuration with patches of size 16 as 1.17%. It also emphasizes that the finer-patch Base configuration uses substantially fewer parameters.

The comparison shows why parameter count alone is an incomplete description of segmentation capability. A configuration can improve through a finer input representation without adding capacity in the same way as a larger encoder. The network receives more spatially distinct elements and can assign separate contextual representations to them.

That does not make smaller patches computationally free. The sequence grows longer, so attention must process more relationships. The paper explicitly associates finer patches with increased runtime and memory demand. It exchanges one resource pressure for another instead of obtaining extra detail without cost.

The visual examples clarify the mechanism. At patch size 32, the predicted map can capture the broad scene arrangement while merging nearby people into a single coarse region. Finer patches improve their contours. A thin streetlight pole becomes recoverable in the illustrated example only at patch size 8.

These observations connect input representation to output geometry. Interpolation can enlarge a grid, but it cannot guarantee that a coarse grid has preserved every distinction needed for a thin structure. Finer patching gives the learned system more opportunities to represent those distinctions before enlargement.

The result is broader than a cosmetic sharpening of masks. If an object is missed or merged because its evidence occupies too little of the patch representation, increasing spatial granularity can improve which structures are recognized as separate regions. The object-size evaluation gives quantitative support to that interpretation.

Object-size analysis locates the benefits

The authors compare segmentation performance across object-size groups on ADE20K validation. This analysis helps distinguish improvements associated with fine spatial detail from those associated with coherent treatment of large regions.

For Seg-B/8 relative to Seg-B/16, the paper reports gains of 1.27% mIoU on small instances and 1.74% on medium instances. The authors identify these groups as the main source of the finer-patch improvement. This is consistent with the qualitative evidence about boundaries and narrow structures.

The comparison with DeepLabv3+ reveals a different emphasis. Segmenter’s strongest advantages over the convolutional comparator occur on large instances. For Seg-L-Mask/16, the paper reports a large-instance improvement of 6.39% mIoU over DeepLabv3+ in the object-size analysis.

These patterns support a differentiated explanation. Finer patches help where the representation needs to distinguish small spatial structures. The broader transformer advantage is especially visible where a large region benefits from consistent semantic treatment across its extent.

The authors also report that DeepLab performs similarly to Seg-B/16 for small and medium instances while the parameter counts are comparable. This prevents the object-size results from being read as uniform dominance. The architecture’s benefits are distributed unevenly across the spatial problem.

Seg-B/8 and Seg-L/16 perform best on the small and medium groups discussed in that comparison, but at greater computational expense. Better detail can therefore be obtained through finer patching or a larger encoder, with different resource implications. The experiments do not identify a universally preferable route independent of the intended setting.

Object-size grouping remains an aggregate analysis. It shows where performance changes are concentrated, but it does not identify the causal history of every improved pixel. Large objects may differ from small ones in several ways beyond area. The analysis is most persuasive when combined with the visual examples and the architecture’s explicit spatial tradeoff.

The mask transformer adds useful adaptation

The decoder study compares the linear head with a mask transformer built from 2 layers. Its token and hidden widths follow those of the encoder. This keeps the proposed decoder closely tied to the representation family being evaluated.

Across the studied configurations, the mask transformer improves on the linear baseline. For Seg-B†/16, the reported gain is 1.6% mIoU on ADE20K validation. The Base configuration at patch size 32 gains 1.1%, and the Large configuration at patch size 16 gains 0.6%.

The differing gains are informative. The stronger encoder with finer spatial representation already supplies highly useful features to the linear decoder. Additional decoding still helps, but the amount of improvement is not fixed. The mask transformer’s contribution depends on what remains unresolved after encoding.

The object-size comparison also shows benefits across spatial groups. The authors report improvements for both small and large objects, with larger-object gains often more pronounced. The stated large-object gains include 1.4% for the Base configuration at patch size 32, 2.1% for the DeiT-based Base configuration at patch size 16, and 1.7% for the Large configuration at patch size 16.

These results are consistent with the proposed dynamic-filter mechanism. Category representations interact with the current image before forming masks, allowing the final comparison to respond to the scene. The decoder can refine how a category is expressed across its image regions instead of applying only a fixed linear mapping to each encoded patch.

The evidence does not isolate every internal source of improvement. The mask transformer adds contextual processing and learned category embeddings together. Without further component-level comparisons, the result establishes the usefulness of the combined decoder rather than assigning an independent numerical contribution to each operation inside it.

Its practical appeal is nonetheless clear. The final mask construction remains a similarity calculation, but the representations being compared have been adapted jointly. The ablation shows that this additional preparation improves the resulting semantic masks under the tested conditions.

The amount of segmentation data still matters

The dataset-size experiment trains Seg-S/16 on increasingly large portions of ADE20K. The authors observe a substantial decline in performance when the training collection falls below 8k images.

This finding qualifies the idea that pretraining solves the data problem. Classification initialization provides a strong starting point, but the encoder and decoder still need enough segmentation examples to adapt effectively. Dense labels are not merely an optional final calibration.

The result also separates architectural flexibility from statistical efficiency. A transformer can make distant interactions available by design, yet learning which interactions support the target category inventory still depends on data. Access to context does not determine how that context should influence every prediction.

The experiment concerns the tested Small configuration and its training arrangement. The paper does not establish the same threshold for every encoder, dataset, or annotation scheme. The 8k observation should therefore remain attached to this ADE20K study.

Nor does the comparison report how performance would change under a different pretraining collection or task-specific augmentation strategy. It answers a focused question: under the chosen procedure, how does reducing the segmentation training data affect the result? The answer is that the system remains sensitive to the amount available.

Together with the random-initialization study, this gives a layered account of data dependence. Prior classification training is essential to the demonstrated performance, and adequate task-specific segmentation data remains important afterwards. The successful transfer uses both sources of learning.

Attention maps illustrate adaptive context

The appendix examines attention maps from Seg-B/8. The authors select patches belonging to small objects, such as a lamp, cow, or car, and patches associated with broader regions, including a bed, grass, or road. They then inspect how attention changes across layers.

The reported pattern is adaptive. Some selected patches concentrate on a relatively local region, while others gather information over a wider area. The span of useful interaction depends on the image content and the extent of the associated object or region.

This observation gives the global-attention claim a more precise meaning. Segmenter does not need to treat every patch as equally relevant. It provides access to the whole sequence, after which learned attention can emphasize a narrower or broader subset.

The cow example illustrates a progression through the network. Earlier attention can identify the particular cow associated with the selected patch, while later attention relates it to other cows. The authors also observe that lower-layer attention depends more strongly on the chosen patch, whereas higher-layer maps become more alike.

That pattern is compatible with a transition from locally specific evidence toward broader semantic organization. It is not, by itself, a proof that the selected attention connections caused the correct label. The maps visualize the system’s internal interaction structure, and their interpretation should remain at that level.

The attention-distance analysis adds a more explicit spatial comparison. The authors display the mean attention distance for each of the 12 heads at successive layers. Some heads already connect distant patches in the first layer, beyond the early receptive fields of the ResNet and ResNeSt comparators.

This supports the architectural claim that broad interaction is available early. The strongest conclusion is about access and learned use in the inspected system. It does not show that distant attention is beneficial for every patch, nor that local processing is unnecessary for accurate boundaries.

Category embeddings acquire suggestive organization

The authors also inspect the category representations learned by the mask transformer. They project the embeddings into 2D using singular value decomposition and observe groups associated with related meanings.

The illustrated groups include transportation categories, household objects, and outdoor categories. This suggests that training for mask prediction organizes the representation space in ways that reflect semantic relationships among the labels.

The finding is relevant because the embeddings are not merely anonymous decoder positions. Each begins with an assigned semantic category and participates in joint processing with image patches. Their learned arrangement can therefore reveal how the segmentation objective relates categories through shared visual and contextual evidence.

A projection remains a partial view. Reducing the representation to 2D cannot preserve every relationship in the original space. Apparent proximity is informative as an illustration, but it does not establish a complete semantic hierarchy or a general-purpose category ontology.

The paper does not report a separate quantitative evaluation of those semantic groupings. The segmentation results establish that the decoder is useful for the task; the projection offers an additional perspective on what its learned representations contain.

This distinction keeps the interpretation proportionate. A meaningful-looking embedding map can help a reader understand the mechanism, but it should not be promoted into an explanation of every accuracy gain. The controlled decoder comparison supplies the performance evidence.

What the ablations establish together

The combined studies support a connected account of Segmenter’s behavior. Pretraining supplies a strong visual starting point. Segmentation data adapts that representation to dense labeling. Larger encoders improve contextual features, while finer patches preserve spatial distinctions that the decoder needs.

The mask transformer adds a further stage in which category and patch representations can influence one another. Its gains occur across several settings and object sizes, although their magnitude varies. Stochastic depth improves the chosen fine-tuning procedure, while the tested dropout settings do not.

The analyses also identify complementary strengths. Broad contextual processing is particularly useful for coherent labeling of large instances. Fine patching helps small and medium structures. The architecture can improve along either dimension, but both capacity and sequence length bring resource costs.

This is stronger than an account based on a single headline result because it identifies several experimentally supported dependencies. It is also more limited than a complete causal decomposition. Some comparisons change packages of training ingredients, and the visual analyses illustrate behavior without intervening on it.

The most reusable conclusion is therefore conditional and practical: successful segmentation depends on how contextual capacity, spatial granularity, initialization, and decoding fit together. Segmenter provides evidence for each of these choices within its experimental family, rather than a claim that one mechanism alone explains the entire result.

Limitations

Author-stated limits: attention still has a substantial cost

The authors explicitly identify the quadratic cost of global attention as a central constraint. Patches make the architecture feasible compared with processing raw pixels as a full sequence, but they do not remove the dependence on sequence length.

Reducing patch size improves segmentation detail while increasing the number of elements that participate in attention. Raising image resolution has a related effect when patch size remains fixed. The most attractive spatial representation may therefore be too expensive for the available memory or runtime budget.

The paper’s discussion of ViT-L/8 makes this boundary clear. The authors suggest that combining a larger encoder with finer patches could perform particularly well, but they do not report it as a feasible evaluated configuration. Its expected advantage remains an informed hypothesis.

The Cityscapes decoder change is a measured consequence of the same problem. At 768 × 768 input resolution, the usual Large mask-decoder setting does not fit in memory. Reducing decoder depth makes the experiment possible, but it also demonstrates that resource constraints alter the chosen architecture.

This limitation matters beyond training convenience. It shapes which spatial distinctions the system can represent, which contextual operations it can afford, and which accuracy–speed tradeoffs are available. The computational constraint is part of the method’s behavior, rather than an external detail that can be ignored after reporting accuracy.

The authors point toward more efficient transformers as a promising direction. Their experiments motivate that direction because finer patching is useful. They do not demonstrate that the computational obstacle has already been solved.

Author-observed limits: coherent regions can have weak contours

The qualitative comparisons explicitly show that DeepLabv3+ can produce sharper boundaries than Segmenter. Images with nearby people make this weakness especially visible. A consistent semantic region can still have an inaccurate edge or an insufficiently precise separation from a neighboring region.

This matters because the paper’s motivating applications include settings where boundaries are operationally important. Broad category agreement is only part of segmentation quality. The exact placement of a person’s contour or a clothing boundary can matter even when the category assignment is otherwise plausible.

Smaller patches help, as the ablation demonstrates, but the reported improvement does not establish that boundary localization is fully resolved. The final predictions still come from a patch-level score grid that is enlarged through interpolation.

The authors also show small-instance failures affecting both Segmenter and the convolutional comparator. Global context cannot guarantee recovery of a structure that occupies little spatial support or lacks sufficiently distinctive evidence. Small objects and narrow structures remain a challenge even when distant image information is available.

Visually similar categories produce another observed error type. Confusions among seating furniture, soft furnishings, and vegetation indicate that contextual processing does not automatically supply every fine-grained semantic distinction. Some categories can remain difficult to separate within an otherwise coherent scene interpretation.

These are substantive limitations because they concern the task itself. The reported system improves aggregate overlap and frequently improves large-region consistency, yet retains recognizable failures in geometry, scale, and semantic discrimination.

Author-demonstrated limits: transfer does not eliminate data dependence

The paper’s experiments show a strong dependence on classification pretraining. The from-scratch alternatives perform much worse under the tested procedures. Segmenter’s reported success therefore depends on a learning history that extends beyond the semantic segmentation datasets.

This does not weaken the practical value of transfer learning. It does limit claims about what the segmentation annotations alone establish. The encoder arrives with visual structure learned through another task, and the reported dense-prediction capability builds on that preparation.

The sensitivity to pretraining quality introduces a further dependency. Improved classification training leads to stronger segmentation results even when the downstream encoder configuration is held fixed. A comparison that overlooks initialization may assign too much explanatory weight to the segmentation architecture.

Task-specific data remains necessary as well. The ADE20K subset experiment shows a marked decline below 8k training images for the tested configuration. The architecture’s access to global context does not make it insensitive to the amount of dense supervision.

These findings constrain any claim of learning effectively from very limited segmentation data. The paper demonstrates adaptation with the stated training collections and transferred encoders. It does not establish reliable performance in an arbitrarily small-data setting.

They also make the training recipe part of the result. The choice of initial weights, augmentation, regularization, and optimization affects what the architecture ultimately learns. A block diagram alone is insufficient to reproduce the demonstrated capability.

Limits visible in the setup: benchmark strength is not universal superiority

A careful reader should distinguish the paper’s benchmark conclusions from broader architectural claims. Segmenter achieves the reported leading results on ADE20K and Pascal Context, while the Cityscapes comparison is described as competitive. The evidence does not support stating that it surpasses every alternative on every segmentation problem.

The evaluated datasets provide meaningful variety, but they do not cover every application named in the introduction. Robotics, medical imaging, virtual try-on, and image editing motivate the importance of semantic segmentation. The paper does not report dedicated experiments for each of those application settings.

Accordingly, the benchmark results do not establish operational reliability in those domains. They show that the method performs well on the specified annotated collections under the authors’ training and inference procedures. Transferring the architecture to another image distribution would require its own evidence.

The same caution applies to category inventories. The mask transformer is trained with embeddings assigned to the semantic classes of the target dataset. The experiments do not establish that a newly introduced category can be added at inference without further learning.

Nor do they test unrestricted transfer between the benchmark label systems. Strong performance after dataset-specific fine-tuning is different from predicting another collection’s labels without adaptation. The reported results concern the former.

This boundary keeps the contribution concrete. Segmenter is a strong approach to supervised semantic segmentation in the studied settings. The paper does not claim a universal image-labeling system independent of data, category definitions, or training conditions.

Limits visible in the comparisons: complete systems change several ingredients

Some comparisons isolate a variable closely, such as regularization within Seg-S/16. Others compare complete configurations whose training histories and resource choices differ. These forms of evidence should not be treated as interchangeable.

The headline ADE20K configurations, for example, differ in encoder family and training preparation as well as scale. The largest setting also uses a larger input resolution. Its score establishes the quality of that complete configuration, but the full advantage cannot be assigned to a single component from that comparison alone.

The improved-pretraining experiment has a related limitation at another level. It changes a collection of classification training ingredients. The downstream gain shows that the overall procedure transfers better, without measuring an independent segmentation contribution for every augmentation and regularizer.

Comparisons with convolutional systems involve still more differences. Encoders, receptive-field mechanisms, decoding arrangements, and training histories can vary. The results support the practical competitiveness of Segmenter, while the stronger claim that one architectural property alone caused the entire advantage would require more narrowly matched interventions.

The object-size analysis makes the explanation more specific, especially for large instances, but it remains comparative evidence about trained systems. It does not remove every difference between those systems or prove that global attention is the only source of their behavior.

This is not a reason to discard the comparisons. It is a reason to distinguish performance evidence from causal attribution. The paper is persuasive about what its configurations achieve and informative about several dependencies, while leaving room for alternative explanations of parts of the total gain.

Limits visible in the reporting: not every useful uncertainty is quantified

The numerical account gives point estimates and reported margins, but it does not present an uncertainty analysis around the comparisons discussed here. A reader cannot use those figures alone to determine how much variation would arise from different random initializations or repeated training runs.

This matters most for smaller improvements. A directionally consistent pattern across settings is informative, but the exact magnitude of a modest gain is easier to assess when run-to-run variation is known. The paper’s regularization and decoder studies provide the reported values without that additional statistical context.

The qualitative examples have a related reporting boundary. They make failure modes visible, but they do not quantify the prevalence of each failure type. An example of confused furniture or a poorly separated person establishes that the error occurs; it does not establish how often it dominates the benchmark.

The experimental narrative also refers to tables and plots for some detailed comparisons without spelling out every numerical entry. Those comparisons can support the authors’ qualitative conclusions, but their missing entries should not be recreated through arithmetic or assumptions.

The absence of a numerical baseline value is particularly important when a reported margin is available. Keeping the stated margin preserves the evidence. Deriving another score would add a number that the experimental prose does not itself supply.

A reader can therefore assess the main conclusions confidently while recognizing that some finer judgments remain unavailable. The paper establishes strong benchmark performance and several consistent trends, but it does not quantify every source of uncertainty around them.

Limits visible in the metric: overlap cannot describe every error

Mean intersection over union provides a useful common measure, but it compresses many kinds of segmentation behavior into an aggregate score. It does not separately report boundary quality, object-level continuity, or the frequency of particular category confusions.

The paper’s own qualitative comparison demonstrates why this matters. Segmenter can improve the consistency of a large region while DeepLabv3+ draws a sharper contour. A single aggregate value cannot fully communicate that tradeoff.

Averaging over categories also answers a specific question. It describes category-wise overlap performance, rather than directly measuring whether every object instance is individually separated. Semantic segmentation can assign the correct class to adjacent objects without giving them distinct identities.

The object-size analysis adds useful structure, but it still does not replace dedicated examination of boundaries or individual instances. Each evaluation view measures a different aspect of the output. The paper’s conclusions are strongest when the overlap scores and visual comparisons are read together.

The experiments also do not establish how the confidence values should be interpreted as uncertainty. Soft category scores support selecting a label, but the reported evaluation centers on segmentation accuracy. It does not show that a particular output score reliably indicates the probability of correctness.

That distinction is relevant whenever predictions would be used to make consequential decisions. The architecture produces category evidence, and the paper evaluates the resulting labels. It does not supply a separate account of confidence reliability.

Limits visible in runtime: throughput is conditional

The speed comparison uses a specific GPU, image resolution, and memory-maximizing batch selection. Those details define the result. They do not support a general inference that the same relative speed will hold across hardware, batch sizes, or image dimensions.

Throughput and latency answer different practical questions. Processing many images efficiently can be valuable, but it does not directly establish the waiting time for an isolated image. The paper’s procedure emphasizes the former.

The inference pipeline can also change the amount of work. Sliding windows handle varying image sizes, while multi-scale evaluation processes transformed views and averages their results. A configuration’s throughput at a fixed resolution should not be substituted for an end-to-end timing of every such evaluation procedure.

Memory is another part of the operational picture. A setting that fits during the reported throughput measurement may face different constraints when the input grows or when training requires additional stored activations. The Cityscapes decoder adjustment shows that these constraints have practical consequences.

The speed findings remain useful because their measurement conditions are explicit. They establish attractive operating points within that environment. Extending the claim to another deployment setting would require measuring the complete pipeline there.

Limits of interpretation: visualizations are evidence about structure

Attention maps support the claim that distant image regions can interact early. They also illustrate that attention varies with the chosen patch and the image. These observations make the proposed mechanism more understandable.

They do not identify every piece of evidence responsible for a final decision. The prediction depends on repeated attention, point-wise transformations, residual connections, decoding, and interpolation. An inspected attention map is one view into that computation.

The paper does not report interventions that remove a selected distant connection and measure the resulting change in segmentation. Without such a test, a plausible interpretation of a map remains different from a demonstrated causal explanation.

The category-embedding projection has a similar boundary. Semantically related groups appear in the visualization, but the projection is not itself a test of semantic understanding outside segmentation. It does not establish that the category vectors encode all relevant relationships or explain every confusion.

For interpretability, the useful lesson is methodological restraint. Internal views can reveal patterns that agree with the architecture’s motivation. Their strongest role here is to complement performance measurements and failure analysis.

The paper’s explanation is therefore supported by converging observations instead of a complete mechanistic account. Global interaction is structurally available, some early attention reaches distant patches, and large-instance performance improves. Together these findings support the contextual interpretation while leaving its full causal decomposition open.

Limits of scope: the broader segmentation proposal is prospective

The authors suggest extending the mask transformer by replacing category embeddings with object embeddings. This is a natural architectural proposal because the decoder already constructs masks from learned representations interacting with image patches.

The semantic segmentation experiments do not demonstrate that extension. They train category-associated outputs and evaluate category labels at pixels. They do not report instance-segmentation or panoptic-segmentation results for the proposed adaptation.

A unified mask-producing mechanism can be a useful starting point without making the tasks equivalent. Changing the meaning of an output embedding changes what the system must learn and how its outputs must be organized. The paper establishes the semantic version and proposes a broader direction.

Its conclusion about a possible unified approach should therefore be read as a research agenda. The demonstrated contribution is substantial by itself: a transformer encoder can support dense semantic prediction, and a jointly contextualized mask decoder can improve it.

The remaining questions concern how to retain that contextual strength while improving fine detail, reducing computational demand, and adapting the output organization to other segmentation tasks. The experiments identify those directions, instead of claiming that all have already been resolved.

What came after

Later citations show relevance beyond the original setting

The later works associated with Segmenter point toward efficient visual representation and text-conditioned image synthesis. Their citation relationship establishes that Segmenter remained relevant to subsequent research discussions. It does not, on its own, establish which component a later paper adopted or how much its results depended on that component.

That distinction is especially important for this paper because it offers several separable ideas. A later work might cite transformer-based dense prediction, the use of contextualized image patches, learned mask representations, or the broader transition towards transformer architectures in vision. A citation alone does not choose among those connections.

The later-work descriptions identify titles and years without detailing their use of Segmenter. The responsible account can therefore describe the research directions named by those works and connect them to questions raised by Segmenter, while leaving direct architectural inheritance unspecified.

Vision Mamba and the efficiency question

Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Model appears among the later citing works in 2024. Its title identifies efficient visual representation learning and a bidirectional state-space approach as its subject.

Efficiency is a clear point of contact with Segmenter’s unresolved questions. Segmenter shows that finer patches improve segmentation, then encounters the increased cost of processing longer sequences. Its authors explicitly identify more memory- and computation-efficient sequence processing as a promising direction.

The available citation information does not establish whether Vision Mamba reuses Segmenter’s mask decoder, follows its precise segmentation setup, or uses it only as related work. Those would be distinct relationships, and attributing any of them without further evidence would overstate what is known.

The useful connection is therefore at the level of the research problem. Segmenter makes a strong case for contextual visual representations while exposing the cost of global attention. A later work explicitly concerned with efficient visual representation belongs to the broader discussion that this tradeoff helps motivate.

That connection should not be turned into a claim of direct replacement. The title’s state-space terminology does not establish an experimental comparison, a shared decoder, or a particular improvement over Segmenter. The later citation records continued relevance, while the exact technical relationship remains unspecified.

PixArt-α and another use of transformer image representations

PixArt-α: Fast Training of Diffusion Transformer for Photorealistic Text-to-Image Synthesis is listed as a later citing work from 2023. Its title places it in text-to-image synthesis using a diffusion transformer, with an emphasis on training speed.

This concerns a different output task from semantic segmentation. Segmenter receives an image and predicts category regions. The later title concerns generating images from text. The citation therefore reaches beyond the immediate setting of assigning labels to existing pixels.

The broad conceptual connection is the use of transformer processing for image-related representations. Segmenter demonstrates that image patch sequences can retain the spatial information needed for a dense output task. That is part of the wider architectural setting in which transformer-based image systems can be discussed.

The citation information does not show that PixArt-α uses Segmenter’s category embeddings, normalized mask similarities, or interpolation procedure. It also supplies no result that would justify comparing synthesis quality or training cost with Segmenter’s segmentation results. Those tasks and measurements should remain separate.

The later work can consequently be linked as evidence of relevance across research areas, while its specific borrowing remains undetermined. This preserves a meaningful connection without inventing a chain of technical adoption.

The lasting contribution is a well-tested architectural option

The later citations do not change what Segmenter itself establishes. Its evidence concerns a particular route from image patches to semantic masks, supported by strong validation results and an extensive study of the choices that make the route effective.

Its continuing usefulness lies partly in how clearly it exposes the design problem. Contextual representation, spatial granularity, decoder adaptation, and computational cost can be studied separately and then combined. The paper shows why a segmentation architecture should be assessed through those interacting choices.

The linear baseline remains a valuable reference point because it reveals how much the encoder already contributes. The mask transformer offers a further option when category representations benefit from adapting to the current image. The patch-size study explains why a seemingly simple input decision can matter as much as additional capacity.

The unresolved issues are equally productive. Finer spatial detail competes with feasible sequence length. Strong transfer depends on prior learning and adequate dense supervision. Coherent region labeling does not guarantee precise boundaries. These are concrete questions for later systems to address, whether they retain global attention or pursue another way of building contextual visual representations.

Segmenter’s place in that development is supported by what it measures, rather than by an assumed account of every subsequent citation. It establishes a convincing transformer-based approach to semantic segmentation and leaves a clear experimental record of both its advantages and its costs.

Cite

Cite as Robin Strudel, Ricardo Alexandrino Garcia, Ivan Laptev A and Cordelia Schmid. 2021. Segmenter: Transformer for Semantic Segmentation. IEEE/CVF International Conference on Computer Vision (ICCV).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1109/iccv48922.2021.00717 · arXiv 2105.05633

@inproceedings{strudel2021segmenter,
  title = {{Segmenter: Transformer for Semantic Segmentation}},
  author = {Robin Strudel, Ricardo Alexandrino Garcia, Ivan Laptev A and Cordelia Schmid},
  booktitle = {IEEE/CVF International Conference on Computer Vision (ICCV)},
  year = {2021},
  doi = {10.1109/iccv48922.2021.00717},
  eprint = {2105.05633},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1109/iccv48922.2021.00717}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/strudel-2021-segmenter-transformer-semantic-segmentation/

References

69 references, from the paper's own bibliography.

  1. Md Amirul Islam, Mrigank Rochan, Neil D. B. Bruce, and Yang Wang. Gated feedback refinement network for dense image labeling. In CVPR, 2017. OpenAlex ↗ · Scholar ↗
  2. Anurag Arnab, Mostafa Dehghani, Georg Heigold, Chen Sun, Mario Lucic, and Cordelia Schmid. ViViT: A video vision transformer. In ICCV, 2021. our card
  3. Lei Jimmy Ba, Jamie Ryan Kiros, and Geoffrey E. Hinton. Layer normalization. arXiv preprint, 2016. OpenAlex ↗ · Scholar ↗
  4. V. Badrinarayanan, A. Kendall, and R. Cipolla. SegNet: A deep convolutional encoder-decoder architecture for image segmentation. TPAMI, 2017. OpenAlex ↗ · Scholar ↗
  5. Shaojie Bai, Vladlen Koltun, and J. Zico Kolter. Multiscale deep equilibrium models. In NeurIPS, 2020. OpenAlex ↗ · Scholar ↗
  6. Gedas Bertasius, Heng Wang, and Lorenzo Torresani. Is space-time attention all you need for video understanding? arXiv preprint, 2021. OpenAlex ↗ · Scholar ↗
  7. Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with Transformers. In ECCV, 2020. our card
  8. Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L. Yuille. DeepLab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected CRFs. TPAMI, 2018. OpenAlex ↗ · Scholar ↗
  9. Liang-Chieh Chen, George Papandreou, Florian Schroff, and Hartwig Adam. Rethinking atrous convolution for semantic image segmentation. arXiv preprint, 2017. OpenAlex ↗ · Scholar ↗
  10. Liang-Chieh Chen, Yukun Zhu, George Papandreou, Florian Schroff, and Hartwig Adam. Encoder-decoder with atrous separable convolution for semantic image segmentation. In ECCV, 2018. OpenAlex ↗ · Scholar ↗
  11. Mark Chen, Alec Radford, Rewon Child, Jeff Wu, Heewoo Jun, Prafulla Dhariwal, David Luan, and Ilya Sutskever. Generative pretraining from pixels. PLMR, 2020. OpenAlex ↗ · Scholar ↗
  12. Bowen Cheng, Maxwell D Collins, Yukun Zhu, Ting Liu, Thomas S Huang, Hartwig Adam, and Liang-Chieh Chen. Panoptic-Deeplab: A simple, strong, and fast baseline for bottom-up panoptic segmentation. In CVPR, 2020. OpenAlex ↗ · Scholar ↗
  13. MMSegmentation Contributors. MMSegmentation: OpenMMLab semantic segmentation toolbox and benchmark. https://github.com/open-mmlab/mmsegmentation, 2020. OpenAlex ↗ · Scholar ↗
  14. Marius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and Bernt Schiele. The Cityscapes dataset for semantic urban scene understanding. In CVPR, 2016. OpenAlex ↗ · Scholar ↗
  15. Ekin D. Cubuk, Barret Zoph, Jonathon Shlens, and Quoc V. Le. Randaugment: Practical automated data augmentation with a reduced search space. In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR Workshops 2020, Seattle, WA, USA, June 14-19, 2020, pages 3008–3017. IEEE, 2020. our card
  16. Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, 2009. OpenAlex ↗ · Scholar ↗
  17. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: pre-training of deep bidirectional transformers for language understanding. In NAACL-HLT, 2019. our card
  18. Carl Doersch, Ankush Gupta, and Andrew Zisserman. CrossTransformers: spatially-aware few-shot transfer. In NeurIPS, 2020. OpenAlex ↗ · Scholar ↗
  19. Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. In ICLR, 2021. our card
  20. Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. Vision transformer models. https://console.cloud.google.com/storage/browser/vit_models, 2021. OpenAlex ↗ · Scholar ↗
  21. C. Farabet, C. Couprie, L. Najman, and Y. LeCun. Learning hierarchical features for scene labeling. TPAMI, 2013. OpenAlex ↗ · Scholar ↗
  22. J. Fu, J. Liu, J. Jiang, Y. Li, Y. Bao, and H. Lu. Scene segmentation with Dual Relation-Aware attention Network. TNNLS, 2020. OpenAlex ↗ · Scholar ↗
  23. Jun Fu, Jing Liu, Haijie Tian, Yong Li, Yongjun Bao, Zhiwei Fang, and Hanqing Lu. Dual Attention Network for scene segmentation. In CVPR, 2019. OpenAlex ↗ · Scholar ↗
  24. Jun Fu, Jing Liu, Yuhang Wang, Yong Li, Yongjun Bao, Jinhui Tang, and Hanqing Lu. Adaptive Context Network for scene parsing. ICCV, 2019. OpenAlex ↗ · Scholar ↗
  25. Boris Hanin and David Rolnick. How to start training: The effect of initialization and architecture. In NeurIPS, 2018. OpenAlex ↗ · Scholar ↗
  26. Junjun He, Zhongying Deng, Lei Zhou, Yali Wang, and Yu Qiao. Adaptive Pyramid Context Network for semantic segmentation. In CVPR, 2019. OpenAlex ↗ · Scholar ↗
  27. Mohammad Hesam Hesamian, Wenjing Jia, Xiangjian He, and Paul Kennedy. Deep learning techniques for medical image segmentation: Achievements and challenges. JDI, 2019. OpenAlex ↗ · Scholar ↗
  28. Zhang-Wei Hong, Chen Yu-Ming, Shih-Yang Su, Tzu-Yun Shann, Yi-Hsiang Chang, Hsuan-Kung Yang, Brian Hsi-Lin Ho, Chih-Chieh Tu, Yueh-Chuan Chang, Tsu-Ching Hsiao, Hsin-Wei Hsiao, Sih-Pin Lai, and Chun-Yi Lee. Virtual-to-real: Learning to control in visual semantic segmentation. IJCAI, 2018. OpenAlex ↗ · Scholar ↗
  29. Chia-Wei Hsieh, Chieh-Yun Chen, Chien-Lung Chou, Hong-Han Shuai, Jiaying Liu, and Wen-Huang Cheng. Fashionon: Semantic-guided image-based virtual try-on with detailed human and clothing information. In ACM MM, 2019. OpenAlex ↗ · Scholar ↗
  30. Gao Huang, Yu Sun, Zhuang Liu, Daniel Sedra, and Kilian Q. Weinberger. Deep networks with stochastic depth. In ECCV, 2016. our card
  31. Zilong Huang, Xinggang Wang, Lichao Huang, Chang Huang, Yunchao Wei, and Wenyu Liu. CCNet: Criss-Cross attention for semantic segmentation. In ICCV, 2019. OpenAlex ↗ · Scholar ↗
  32. Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, 2015. OpenAlex ↗ · Scholar ↗
  33. Chen Liang-Chieh, George Papandreou, Iasonas Kokkinos, kevin murphy, and Alan Yuille. Semantic image segmentation with deep convolutional nets and fully connected CRFs. In ICLR, 2015. OpenAlex ↗ · Scholar ↗
  34. Guosheng Lin, Anton Milan, Chunhua Shen, and Ian Reid. RefineNet: Multi-path refinement networks for high-resolution semantic segmentation. In CVPR, 2017. OpenAlex ↗ · Scholar ↗
  35. Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng Zhang, Stephen Lin, and Baining Guo. Swin transformer: Hierarchical vision transformer using shifted windows. arXiv preprint, 2021. our card
  36. Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully Convolutional Networks for semantic segmentation. In CVPR, 2015. our card
  37. Shervin Minaee, Yuri Boykov, F. Porikli, Antonio J. Plaza, N. Kehtarnavaz, and Demetri Terzopoulos. Image segmentation using deep learning: A survey. TPAMI, 2021. OpenAlex ↗ · Scholar ↗
  38. Roozbeh Mottaghi, Xianjie Chen, Xiaobai Liu, Nam-Gyu Cho, Seong-Whan Lee, Sanja Fidler, Raquel Urtasun, and Alan L. Yuille. The role of context for object detection and semantic segmentation in the wild. In CVPR, 2014. OpenAlex ↗ · Scholar ↗
  39. F. Ning, D. Delhomme, Yann LeCun, F. Piano, Léon Bottou, and Paolo Emilio Barbano. Toward automatic phenotyping of developing embryos from videos. TIP, 2005. OpenAlex ↗ · Scholar ↗
  40. Pedro Pinheiro and Ronan Collobert. Recurrent Convolutional Neural Networks for scene labeling. In ICML, 2014. OpenAlex ↗ · Scholar ↗
  41. Tobias Pohlen, Alexander Hermans, Markus Mathias, and Bastian Leibe. Full-resolution residual networks for semantic segmentation in street scenes. In CVPR, 2017. OpenAlex ↗ · Scholar ↗
  42. H. Robbins and S. Monro. A stochastic approximation method. Annals of Mathematical Statistics, 1951. OpenAlex ↗ · Scholar ↗
  43. O. Ronneberger, P.Fischer, and T. Brox. U-Net: Convolutional networks for biomedical image segmentation. In MICCAI, 2015. our card
  44. Evan Shelhamer, Jonathan Long, and Trevor Darrell. Fully Convolutional Networks for semantic segmentation. TPAMI, 2017. our card
  45. M. Siam, S. Elkerdawy, M. Jagersand, and S. Yogamani. Deep semantic segmentation for automated driving: Taxonomy, roadmap and challenges. In ITSC, 2017. OpenAlex ↗ · Scholar ↗
  46. Nitish Srivastava, Geoffrey E. Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. JMLR, 2014. our card
  47. Andreas Steiner, Alexander Kolesnikov, Xiaohua Zhai, Ross Wightman, Jakob Uszkoreit, and Lucas Beyer. How to train your ViT? Data, Augmentation, and Regularization in Vision Transformers. arXiv preprint, 2021. our card
  48. Farhana Sultana, Abu Sufian, and Paramartha Dutta. Evolution of image segmentation using deep convolutional neural network: A survey. Knowledge-Based Systems, 2020. OpenAlex ↗ · Scholar ↗
  49. Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, and Hervé Jégou. Training Data-Efficient image Transformers and distillation through attention. arXiv preprint, 2020. OpenAlex ↗ · Scholar ↗
  50. Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Ł ukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NeurIPS, 2017. our card
  51. Huiyu Wang, Yukun Zhu, Hartwig Adam, Alan L. Yuille, and Liang-Chieh Chen. Max-deeplab: End-to-end panoptic segmentation with mask transformers. arXiv preprint, 2020. OpenAlex ↗ · Scholar ↗
  52. Huiyu Wang, Yukun Zhu, Hartwig Adam, Alan L. Yuille, and Liang-Chieh Chen. MaX-DeepLab: End-to-end panoptic segmentation with mask transformers. arXiv preprint, 2020. OpenAlex ↗ · Scholar ↗
  53. Huiyu Wang, Yukun Zhu, Bradley Green, Hartwig Adam, Alan Yuille, and Liang-Chieh Chen. Axial-Deeplab: Stand-alone axial-attention for panoptic segmentation. In ECCV, 2020. OpenAlex ↗ · Scholar ↗
  54. Xiaolong Wang, Ross B. Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. In CVPR, 2018. OpenAlex ↗ · Scholar ↗
  55. Xinlong Wang, Rufeng Zhang, Tao Kong, Lei Li, and Chunhua Shen. Solov2: Dynamic and fast instance segmentation. In NeurIPS, 2020. OpenAlex ↗ · Scholar ↗
  56. Ross Wightman. Pytorch image models. https://github.com/rwightman/pytorch-image-models, 2020. OpenAlex ↗ · Scholar ↗
  57. Minghao Yin, Zhuliang Yao, Yue Cao, Xiu Li, Zheng Zhang, Stephen Lin, and Han Hu. Disentangled Non-local Neural Networks. In ECCV, 2020. OpenAlex ↗ · Scholar ↗
  58. Changqian Yu, Jingbo Wang, Changxin Gao, Gang Yu, Chunhua Shen, and Nong Sang. Context Prior for scene segmentation. In CVPR, 2020. OpenAlex ↗ · Scholar ↗
  59. Fisher Yu and Vladlen Koltun. Multi-scale context aggregation by dilated convolutions. In ICLR, 2016. OpenAlex ↗ · Scholar ↗
  60. Yuhui Yuan, Xilin Chen, and Jingdong Wang. Object-Contextual Representations for semantic segmentation. In ECCV, 2020. OpenAlex ↗ · Scholar ↗
  61. Yuhui Yuan and Jingdong Wang. OCNet: Object Context Network for scene parsing. arXiv preprint, 2018. our card
  62. Hongyi Zhang, Moustapha Cissé, Yann N. Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net, 2018. our card
  63. Hang Zhang, Chongruo Wu, Zhongyue Zhang, Yi Zhu, Zhi Zhang, Haibin Lin, Yue Sun, Tong He, Jonas Mueller, R. Manmatha, Mu Li, and Alexander J. Smola. Resnest: Split-attention networks. arXiv preprint, 2020. OpenAlex ↗ · Scholar ↗
  64. H. Zhang, H. Zhang, C. Wang, and J. Xie. Co-occurrent features in semantic segmentation. In CVPR, 2019. OpenAlex ↗ · Scholar ↗
  65. Hengshuang Zhao, Jianping Shi, Xiaojuan Qi, Xiaogang Wang, and Jiaya Jia. Pyramid Scene Parsing Network. In CVPR, 2017. OpenAlex ↗ · Scholar ↗
  66. Hengshuang Zhao, Yi Zhang, Shu Liu, Jianping Shi, Chen Change Loy, Dahua Lin, and Jiaya Jia. PSANet: Point-wise Spatial Attention Network for scene parsing. In ECCV, September 2018. OpenAlex ↗ · Scholar ↗
  67. Sixiao Zheng, Jiachen Lu, Hengshuang Zhao, Xiatian Zhu, Zekun Luo, Yabiao Wang, Yanwei Fu, Jianfeng Feng, Tao Xiang, Philip H.S. Torr, and Li Zhang. Rethinking semantic segmentation from a sequence-to-sequence perspective with Transformers. arXiv preprint, 2020. OpenAlex ↗ · Scholar ↗
  68. Bolei Zhou, Hang Zhao, Xavier Puig, Tete Xiao, Sanja Fidler, Adela Barriuso, and Antonio Torralba. Semantic understanding of scenes through the ADE20K dataset. IJCV, 2019. OpenAlex ↗ · Scholar ↗
  69. Zhen Zhu, Mengde Xu, Song Bai, Tengteng Huang, and Xiang Bai. Asymmetric non-local neural networks for semantic segmentation. In ICCV, 2019. OpenAlex ↗ · Scholar ↗