Manuscript Offprint
arXiv:2609.08660CoordFormer: Give Me Any Coordinates and I Will Give You Labels
Iacopo Curti¹ ID Pierluigi Zama Ramirez² ID Alioscia Petrelli³ ID Luigi Di Stefano¹ ID
¹CVLab, University of Bologna ²Ca’ Foscari University of Venice ³SINA, company

Figure 1. Segmentation results by COORDFORMER on MaSS13K [59] (left), DIS5K [39] (center) and KPIs [16] (right). COORDFORMER predicts labels directly at selected pixel locations, enabling highly detailed segmentation of very-high-resolution images. This design allows COORDFORMER to capture thin structures and fine boundaries.
Abstract
Semantic segmentation on very-high-resolution images remains challenging due to the high computational cost and the difficulty of capturing fine-grained details. We propose COORDFORMER, a novel coordinate-based architecture for semantic segmentation that predicts labels at arbitrary spatial locations through a Coordinate Decoder equipped with a Localized Cross-Attention mechanism. The decoder combines coordinate embeddings with high-resolution local patch features and interacts with global tokens extracted from a downsampled image processed by a ViT foundation encoder, enabling rich semantic context while preserving pixel-level precision. This design enables flexible inference at arbitrary resolutions while keeping memory low on very-high-resolution inputs, and supports an efficient semantic-edge-focused strategy that concentrates computation along boundaries, maintaining fine-grained accuracy while reducing latency and computational cost. COORDFORMER achieves state-of-the-art performance on MaSS13K and outperforms comparably sized and higher-parameter methods on DIS5K and KPIs, demonstrating its effectiveness for high-quality, very-high-resolution semantic segmentation.
1. Introduction
Semantic Segmentation (SS) is a core problem in computer vision that aims to assign a semantic label to every pixel in an image, enabling dense understanding of visual scenes. Recent years have witnessed remarkable progress in SS, largely driven by deep learning techniques [33]. Most existing SS models, however, are designed and evaluated on standard-resolution datasets, typically around 1 megapixel [6, 10, 60]. Although several methods have explored high-resolution semantic segmentation [2, 29, 55], they are usually developed based on benchmarks such as Cityscapes [13] and ADE20K [70], where average image resolutions range from 1 to 4 megapixels and annotated masks exhibit limited structural complexity. Consequently, these approaches tend to overlook the challenges of very-high-resolution segmentation (> 4 Mpx) and often fail to capture thin structures or fine-grained details accurately, as highlighted in [59]. However, achieving finely detailed segmentation on very-high-resolution images is critical for numerous real-world applications, including image editing, augmented reality, and high-impact domains such as medical image analysis. To systematically study the problem, MaSS13K [59] was introduced at CVPR 2025 as a benchmark specifically designed to reveal the limitations of existing models in fine-grained, very-high-resolution semantic segmentation. Along with it, MaSSFormer [59] was proposed as an initial attempt to address the task and serve as a strong baseline for future research. Motivated by these findings, we take a step further and propose a new SS architecture, termed COORDFORMER, capable of addressing the challenging scenario set forth by MaSS13K. At its core lies a Coordinate Decoder [36, 46] equipped with a tailored Localized Cross-Attention mechanism. The decoder includes two complementary components: an MLP that processes spatial coordinates, and a ViT-style patch embedder that operates on small patches extracted from high-resolution images. Together, these modules generate coordinate-aware query tokens enriched with pixel-level, high-resolution details. These query tokens interact, through the proposed Localized Cross-Attention, with global tokens derived from a downsampled version of the entire image, which is processed by a Vision Transformer foundation model such as DINOv3 [45]. This interaction results in highly contextualized tokens, rich in semantic information while remaining aware of the fine-grained details present in the input image, enabling precise labeling at the queried spatial coordinates. Our novel framework offers several advantages. First, the coordinate-based strategy allows to predict labels only for a few selected pixels during inference, such as a particular region of interest, or to flexibly set the output resolution according to the target application. Consequently, our design allows explicit control over the computational cost at inference time, making it possible to choose the optimal trade-off between accuracy, efficiency, and memory constraints. This property stands in stark contrast to previous methods such as MaSSFormer [59], which require processing the entire input image and thus incur significant memory and computational overhead when handling very-high-resolution data. Indeed, MaSSFormer resizes all images to a fixed 12.6 Mpx resolution during inference, highlighting its limited flexibility in dealing with varying image scales. Furthermore, by leveraging the coordinate-based formulation, we introduce an efficient inference strategy. This approach focuses computation along semantic boundaries reducing inference time, while maintaining high accuracy on thin structures and fine details. Second, our coordinate-based decoding strategy, when coupled with a strong pre-trained foundation encoder, enables extremely precise predictions at the full very-high-resolution of the input images, as illustrated in Fig. 1. When evaluated on the challenging, finely detailed, very-high-resolution semantic segmentation task introduced by MaSS13K, COORDFORMER achieves state-of-the-art performance, surpassing existing approaches by a substantial margin. To further assess the precision of our predictions, we also evaluate COORDFORMER on the Dichotomous Image Segmentation (DIS) benchmark, DIS5K [39], where it outperforms both models of comparable size and higher-parameter ones, confirming its effectiveness in capturing fine-grained details. We additionally evaluate our method on the Kidney Pathology Image Segmentation benchmark (KPIs [16]), where it surpasses recent task-specific networks [17, 49] under the protocol [17]. This result confirms that our method transfers to a markedly different segmentation domain, even on the gigapixel-scale whole-slide images that characterize KPIs. The code is publicly available on GitHub. The main contributions of this paper are:
-
A novel Coordinate Decoder for very-high-resolution semantic segmentation, capable of producing highly detailed, spatially precise predictions.
-
A new Localized Cross-Attention mechanism tailored to our coordinate-based framework, enabling efficient integration of local and global information.
-
An efficient inference strategy, enabled by our coordinate-based formulation, that concentrates computation along semantic boundaries, dramatically reducing latency and cost while preserving accuracy.
-
We achieve state-of-the-art performance on MaSS13K and superior results on DIS5K and KPIs, demonstrating the generality of our method
High-resolution Semantic Segmentation. Handling high-resolution images remains a major challenge in semantic segmentation due to high computational and memory demands. Several methods have been proposed to address this task, either by explicitly targeting high-resolution processing [2, 7, 20, 23, 29, 31, 38, 42, 55, 64], or by focusing on general efficiency [22, 34, 44, 47, 52, 61, 62, 67], thereby enabling high-resolution inference under standard hardware constraints. Beyond resource efficiency, high-resolution segmentation demands precise delineation of fine structures. Refinement strategies [11, 25, 43, 63, 68] and edge-aware

Figure 2. COORDFORMER Architecture and Training Overview. Given a very-high-resolution image (> 4Mpx), a ViT-based foundation encoder, , extracts globally contextualized tokens from a downsampled input, while a Coordinate Decoder builds coordinate-aware query features, , from local high-resolution patches, , and pixel coordinates, . These queries interact with nearby global tokens through Localized Cross-Attention obtaining features, rich in both semantics and fine-details. These are passed to a Segmentation Head (SH) to predict class logits, , at the queried locations. During training, pixel and label information is sampled from random coordinates of images and ground truths, and the network is optimized with multi-class Cross-entropy, per-class Dice and per-class Cross-entropy losses.
techniques [27, 53] can improve output sharpness, yet many approaches still underperform in very-high-resolution settings – partly due to limited resolution of most dataset (e.g., 2-4 Mpx) and the lack of finely-detailed annotations. Recent, coordinate-based refiners [25, 68] operate on coordinates, but require a dense segmentor and correct its output; differently, our method predicts labels directly at arbitrary coordinates. To foster research on very-high resolution image understanding, a recent semantic segmentation benchmark has been proposed, MaSS13K [59], together with a task-specific baseline, MaSSFormer. Other segmentation tasks in which boundary precision is essential are Image Matting and Dichotomous Image Segmentation (DIS). Methods for these tasks [37, 39, 69, 71] are typically precise on boundaries, yet do not focus on capturing high-level semantic concepts, as the objective is limited to foreground-background separation without semantic classification. Regarding very-high-resolution segmentation, the medical community introduced KPIs [16] at MICCAI 2024. It is a histopathology dataset for glomeruli segmentation in gigapixel-scale images. Although recent methods [17, 49] address this task, they are incapable of boundary-based inference, remaining fully dense. In this work, we introduce a novel framework capable of producing detailed predictions on very high-resolution inputs for both semantic and dichotomous image segmentation.
Attention Mechanisms. Attention mechanisms have gained traction in computer vision following their deployment in Transformers [51]. Vision Transformer (ViT) applied self-attention to image patches for global context modeling [18], while DETR employed cross-attention to align object queries with image features [1]. Deformable DETR improved efficiency via sparse, content-adaptive attention [72], and Axial-DeepLab factorized attention along spatial axes to reduce complexity [54]. Swin Transformer introduced
window-based attention with shifted windows for hierarchical representations [30], and MaskFormer proposed masked attention to focus decoding within predicted regions [9]. Recently, SegNeXt revisited convolutional attention, fusing efficiency and spatial priors with attention-driven modeling [21]. In this work, we propose a Localized Cross-Attention layer specifically designed for our coordinate decoder.
3. Method
We address the problem of very-high-resolution semantic segmentation, where the goal is to assign a semantic label to every pixel of a high-resolution input image. Formally, given an image , the objective is to learn a function, , that assigns a probability distribution over the label set of classes, to each pixel . Unlike conventional approaches that produce dense predictions for all pixels simultaneously, our method, named COORDFORMER, adopts a coordinate-based formulation that allows querying arbitrary spatial locations at inference time. Specifically, given an input coordinate
our model predicts the semantic logit as . This formulation provides flexible control over output resolution, computational cost, latency and memory consumption, while enabling precise segmentation results. An overview of the architecture and training of COORDFORMER is shown in Fig. 2.
3.1. Architecture
Encoder. The encoder is responsible for extracting globally-contextualized semantic representations from the input image. Given the very-high resolution of the data, directly processing the image at its native scale would be computationally prohibitive. To address this, the input image
I is first downsampled to a manageable resolution of size ( in our experiments), which is then processed by a powerful Vision Transformer (ViT) foundation model:
where denotes the encoder (e.g., DINOv3 [45]), and are feature maps of dimensions from four different transformer blocks. Here, and correspond to the spatial resolution of the feature maps given the encoder patch size , and denotes the number of feature channels. Each global feature map is projected to a lower dimensional channel space, , obtaining . For each spatial position, the tokens from these layers are concatenated to a single, rich representation:
In the feature map, , each token encodes semantic information associated with a specific image location at multiple levels of abstraction. These globally-contextualized tokens provide a context-aware representation of the scene, serving as the semantic foundation for the subsequent coordinate-based decoding stage.
Coordinate Decoder. The Coordinate Decoder predicts the semantic logit at a specific spatial location of the original high-resolution image I by building a coordinate-aware query from the input coordinate and its local high-resolution patch. This query token is subsequently used in the Localized Cross-Attention (LCA) module to interact with the global tokens produced by the encoder, effectively combining fine local information with global semantic context. Formally, given an input query coordinate , we extract a small image patch , of size ( in our experiments), whose top-left corner is aligned with this position, from the high-resolution image I. This patch is processed by a lightweight MLP patch embedder, , to produce a compact feature vector encoding local texture and boundary details:
In parallel, the 2D coordinate is normalized to the range and transformed to Fourier-feature embeddings [48] by , that maps the spatial position into a frequency embedding space:
The resulting patch feature and coordinate embedding are concatenated and projected through a sequence of linear layers with ReLU, to form a coordinate-aware query token:
which encodes both pixel-level high-frequency details and precise spatial awareness.
Localized Cross-Attention. The LCA module performs a cross-attention operation that allows the coordinate-aware query token to interact with a small subset of encoder representations corresponding to its spatial neighborhood, so as to keep computational cost low. Given the query coordinate in the high-resolution image space, we first map it to the coordinate system of the encoder feature map, which has been downsampled both by the input resizing and by the encoder patching operation. Let and denote the spatial scaling factors between the original image and the encoder input, along the vertical and horizontal axes respectively, and let denote the encoder patch size, the corresponding location in the feature map is computed as
which accounts for both the input downsampling and the encoder's patch resolution. We project the input coordinate onto the downsampled token grid , obtaining . We then extract a local neighborhood of tokens around via bilinear sampling on (implemented with grid_sample), yielding a local set of size . In our implementation we sample local features corresponding to a neighborhood around . A Cross-Attention (CA) operation is then applied between the coordinate-aware query token and the sampled local encoder tokens (serving as keys and values):
where denotes the refined query token enriched with global semantic context. This LCA module drastically reduces computational complexity, which becomes linear in k rather than in the total number of global tokens. Despite the restriction to a small neighborhood, we observe no loss in segmentation quality, as the encoder tokens are highly contextualized and rich in semantic information.
Segmentation Head. The refined query feature produced by the LCA module is passed through a lightweight Segmentation Head (SH) to obtain the class logits associated with the queried coordinate. The SH is implemented as a small MLP with a Batch-Norm layer that maps the contextualized feature into the semantic space of K classes:
where denotes the predicted logits for coordinate .
3.2. Training
During training, we supervise the model by randomly sampling coordinates from the high-resolution image domain of size . For each sampled coordinate, the

Figure 3. Semantic-Edge-Focused Inference Overview
corresponding local patch is extracted, processed by the encoder-decoder architecture, and passed through SH to obtain the class logits . The prediction at each queried coordinate is supervised with a weighted combination of the standard Multi-class Cross-Entropy (CE) loss, class-specific Binary Dice (D) and Binary Cross-Entropy (BCE) losses computed over the individual logit maps. The overall loss is defined as
where , , , denote the ground truth class at location , and , , and are scalar weights that balance the loss terms. This formulation encourages both accurate pixel-level classification through the Cross-Entropy loss and sharp, well-defined segmentation boundaries through the Dice loss component. The training optimizes encoder, decoder, and SH parameters using AdamW optimizer with learning rate . The model has been trained on 4 A100 for approximately 170 epochs (with early stopping), using a batch size of 16 MaSS13K images [59] and sampling 16,384 random coordinates per image.
3.3. Inference
Coordinate-based Inference. Our framework supports flexible inference by predicting labels only at queried spatial coordinates (Fig. 2) combined with corresponding high resolution patch, rather than producing a dense segmentation map in a single forward pass. Given a set of query coordinates , each coordinate and the corresponding patch are independently processed by COORDFORMER to obtain its corresponding class logits and consequently the label as . This design offers control over the trade-off between accuracy, efficiency, and memory usage. Dense predictions can be obtained by querying all pixels, while sparse ones can be produced by sampling only a subset of coordinates, allowing the model to adapt its computational load to different applications and hardware constraints.
Semantic-Edge-Focused Inference. To further improve efficiency, we introduce a Semantic-Edge-Focused Inference (SEFI) strategy, shown in Fig. 3, that concentrates computation along thin semantic boundaries. The procedure operates as follows. First, we sample coordinates with a fixed stride
(set to 8 in our experiments) and predict a coarse segmentation map. From this coarse prediction, we extract a binary semantic boundary map, , where a pixel is assigned value 1 if it has at least one adjacent pixel which is predicted with a different semantic label. To increase robustness to segmentation errors, we also dilate the map by a square kernel of size . Since these boundaries are coarse, we also compute a binary image boundary map, , by applying a Sobel filter and thresholding to the RGB image, , obtaining edges that better fits structural details but include both semantic and non-semantic contours. To retain only structural semantic boundaries, we perform a pixel-wise logical AND between the upsampled semantic boundary map, (resized to ), and the Sobel boundary map:
The resulting binary mask, , better highlights semantic boundaries. To obtain the full resolution prediction, we first upsample the coarse segmentation map, then compute predictions at the coordinates corresponding to the refined semantic boundaries. Finally, we update values at boundary locations in the coarse segmentation mask. This strategy, enabled by our coordinate-based design, substantially reduces the pixels, required to achieve sharp and accurate dense segmentations. Additional inference protocols (e.g., region-of-interest querying) are described in the supplementary material (Sec. A4).
4. Experimental Results
4.1. Very-High-Resolution Segmentation
Results on MaSS13K. We evaluate our method on MaSS13K [59], a very-high-resolution benchmark for high-quality semantic segmentation, and report results in Tab. 1a. MaSS13K contains 13,348 real-world images, most at 12Mpx resolution, split into 11,348/500/1,500 train/validation/test samples. The dataset provides high-quality masks for seven categories (human, vegetation, ground, sky, water, building, and others) and is characterized by exceptionally high annotation complexity - on average higher than standard segmentation benchmarks. The benchmark primarily assesses general segmentation performance using mIoU, and the fine-grained precision of predictions using BIoU, and BF1 scores. As shown in Tab. 1a, our method with SEFI achieves state-of-the-art performance on both the validation and test sets, demonstrating a strong ability to recover fine-grained details in very-high-resolution scenarios. Improvements are particularly pronounced on boundary-focused metrics such as BIoU and BF1, which are most indicative of performance on thin structures and detailed edges. We emphasize that COORDFORMER achieves remarkable gains in boundary metrics with fewer parameters than MaSSFormer, further demonstrating the effectiveness of the proposed coordinate-based architecture. Qualitative
| Methods | Backbone | MaSS-val (500) | MaSS-test (1500) | Model Stat. | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| mIoU↑ | BiIoU↓ | BF↑ | mIoU↑ | BiIoU↓ | BF↑ | Param | MACs | |||
| BiResNet-2 [62] | 71.55 | 25.05 | 3182 | 72.92 | 24.48 | 3171 | 3.35M | 591 G | ||
| SegNoX [21] | MSCAN-B | 87.71 | 39.93 | 4615 | 88.11 | 39.45 | 4596 | 27.57M | 1536 G | |
| PIDNet-L [61] | 82.28 | 31.30 | 3475 | 81.77 | 30.70 | 3479 | 37.08M | 1653 G | ||
| FeedFormer [44] | bvt | 87.17 | 42.06 | 4838 | 86.56 | 41.07 | 4789 | 4.65M | 300 G | |
| ScalFormer-L [52] | - | 86.78 | 38.61 | 4498 | 87.36 | 38.28 | 4489 | 13.95M | 303 G | |
| DeepLabv3+ [6] | R50 | 86.66 | 40.08 | 4718 | 85.14 | 38.65 | 4678 | 41.22M | 8008 G | |
| UPerNet [58] | R50 | 82.03 | 35.85 | 4181 | 81.98 | 35.61 | 4170 | 64.04M | 11373 G | |
| MaskFormer [9] | R50 | 83.27 | 38.61 | 4399 | 83.22 | 37.90 | 4393 | 41.31M | 2396 G | |
| MaskFormer [10] | R50 | 88.28 | 47.40 | 5458 | 88.00 | 46.13 | 5530 | 44.01M | 3123 G | |
| MPFormer [65] | R50 | 87.76 | 47.81 | 5513 | 87.18 | 47.17 | 5486 | 43.9M | 4155 G | |
| PEM [2] | R50 | 83.41 | 40.51 | 4675 | 83.38 | 39.99 | 4644 | 35.5M | 1859 G | |
| MaSSFormer Lite [59] | R18 | 87.11 | 45.35 | 5137 | 86.13 | 41.28 | 5086 | 15.07M | 771 G | |
| MaSSFormer [59] | R50 | 88.97 | 48.97 | 5639 | 88.21 | 48.29 | 5593 | 37.42M | 2036 G | |
| COORDFORMER | DINoV3+S | 92.53 | 53.24 | 5965 | 92.30 | 52.40 | 5916 | 29.92M | 6430+ G | |
(a) MaSS13K Results.
| Methods | DIS-TE (1-4) (2,000) | DIS-VD (470) | Params(M) | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| F↑ | F↓ | M↓ | S↓ | E↑ | HCE↓ | F↑ | F↓ | M↓ | S↓ | E↑ | HCE↓ | ||
| FPNet [66] | 710 | 620 | 095 | 755 | 819 | 1442 | 691 | 603 | 102 | 744 | 802 | 1588 | - |
| DeepLabv3+ [6] | 678 | 584 | 105 | 729 | 810 | 1365 | 660 | 568 | 114 | 716 | 796 | 1520 | 41 |
| HRNet [55] | 743 | 658 | 087 | 781 | 840 | 1432 | 726 | 641 | 095 | 767 | 824 | 1560 | - |
| ICNet [67] | 711 | 622 | 095 | 758 | 825 | 1359 | 697 | 609 | 102 | 747 | 811 | 1503 | - |
| MIV3 [22] | 729 | 658 | 085 | 770 | 850 | 1457 | 714 | 642 | 092 | 758 | 841 | 1625 | - |
| STDC2 [19] | 710 | 628 | 094 | 754 | 832 | 1426 | 696 | 613 | 103 | 740 | 817 | 1598 | - |
| IS-Net [39] | 799 | 726 | 070 | 819 | 858 | 1016 | 791 | 717 | 074 | 813 | 856 | 1116 | 44 |
| FP-DUN [71] | 831 | 770 | 047 | 847 | 895 | 1165 | 823 | 763 | 062 | 843 | 891 | 1309 | - |
| UDUN [17] | 831 | 772 | 057 | 844 | 892 | 977 | 823 | 763 | 059 | 838 | 892 | 1097 | 25 |
| MaSSFormer [69] | 866 | 822 | 045 | 877 | 916 | 880 | 862 | 819 | 045 | 874 | 917 | 1070 | 39 |
| BiRefNetsmall [69] | 891 | 855 | 036 | 898 | 933 | 954 | 881 | 844 | 039 | 890 | 925 | 1029 | 101 |
| BiRefNetlarge [69] | 896 | 858 | 035 | 901 | 924 | 916 | 891 | 854 | 038 | 898 | 931 | 989 | 215 |
| COORDFORMER | 899 | 876 | 032 | 920 | 940 | 806 | 898 | 879 | 032 | 902 | 942 | 787 | 30 |
(b) DIS5K Results.
| Methods | Input size | DSC↑ |
|---|---|---|
| U-Net++ [41] | 512 × 512 | 0.5499 |
| SAM-ViT-H++ [26] | 1024 × 1024 | 0.7724 |
| HoloHisto-4K++ [49] | 3840 × 2160 | 0.8454 |
| MuViT10+UNETR++ | 2 × 512 × 512 | 0.9558 |
| COORDFORMER | 2048 × 2048 | 0.9178 |
(c) KPIs (test set) Results.
Table 1. Very-High-Resolution Segmentation Results on MaSS13K [59] (a) DIS5K [39] (b) and KPIs (c). “↑” (“↓”) means higher (lower) is better. *MACs averaged over the dataset. ** indicates the score was taken from [17]. Best, Second-Best
results in Fig. 1 and Fig. 4 highlight the effectiveness of our method in preserving complex structural details.
Results on DIS5K. We also evaluate COORDFORMER on DIS5K [39], a benchmark for high-precision Dichotomous Image Segmentation (train/val/test: 3,000/470/2,000), and report results in Tab. 1b. Despite not being tailored to the DIS task, COORDFORMER achieves superior performance on nearly all metrics—except in the test set relative to BiRefNet with swinL —outperforming more parameter-intensive methods and clearly surpasses approaches of similar size. In particular, compared to BiRefNet (swinT) our model gets significant improvements across all the metrics, highlighting the generality of our coordinate-based design outside the semantic segmentation setting.
Results on KPIs. On the KPIs challenge (Task 2, WSI-level diseased glomeruli segmentation), which features gigapixel images (train/val/test: 30/8/12), COORDFORMER achieves 0.9178 DSC, surpassing MuViT [17] (Tab. 1c) under the same inference protocol. This shows that our method extends to the gigapixel medical domain, confirming its applicability across diverse very-high-resolution scenarios.
4.2. Computational Analysis
COORDFORMER Inference time and Memory footprint. The computational cost of COORDFORMER (i.e., with SEFI),

Figure 4. Qualitative comparisons to main competitors on MaSS13K (top) and DIS5K (Bottom).
depends on the number of semantic-edge pixels processed at inference. Hence, in Tab. 1a we report MACs averaged over the images of MaSS13K. Note that the MaSS13K paper [59] contains a typo: the reported values are MACs (as counted by fvcore), not FLOPs, since fused multiply–accumulate is counted as a single operation. On average, our method uses more MACs than competing methods. However, unlike standard dense decoders, COORDFORMER allows explicit control over memory occupancy and latency: the number of processed coordinates can be freely adjusted to match the desired trade-off between accuracy, latency, and hardware constraints. In memory- or compute-constrained platforms, inference can be performed in small coordinate batches (down to pixel-by-pixel), substantially reducing GPU memory occupancy, albeit at the cost of increased inference time due to reduced parallelism. Conversely, in time-constrained applications, processing of large coordinate batches can be parallelized across cores and devices to minimize latency. Peculiarly, COORDFORMER can compute an extremely high resolution output without the need to store a dense full-resolution feature map, since it does not require processing the full-resolution image in a single forward pass. In order to assess their practical computational costs, we compare COORDFORMER and MaSSFormer in terms of GPU memory footprint (left) and inference time (right), in Fig. 5. For our method, we consider COORDFORMER, i.e. the default configuration with SEFI, and COORDFORMER dense, where all the coordinates within the image are processed (i.e., without SEFI). With both configurations, we evaluate multiple inference settings by varying the number of coordinates processed per batch (1k and 50k). All experiments are performed on a single NVIDIA A6000 GPU with 48 GB, and at three resolutions: 8, 12, and 64 Mpx. In terms of memory, COORDFORMER scales gracefully with image resolution, thanks to its coordinate-based inference strategy. Contrarily, MaSSFormer requires resizing images to to handle very high-resolution inputs. COORDFORMER and COORDFORMER dense show no difference in mem-
https://github.com/facebookresearch/fvcore

(a) GPU memory vs input Mpx
(b) Inference time vs input Mpx
Figure 5. GPU Memory footprint (a) and Inference Times (b) of COORDFORMER, COORDFORMER dense (no SEFI) and MaSSFormer. GPU memory footprint (a) and inference time (b) are evaluated at input resolutions of 8, 12, and 64 Mpx, with COORDFORMER tested using coordinate batch of 1k and 50k.
ory requirements, since during inference we still need to keep only a single coordinate batch (1k, 50k) in VRAM (the red and green curves overlap, as do the yellow and purple ones). MaSSFormer requires way more memory than our models, and its official implementation yields an out-of-memory (OOM) error at 64 Mpx. COORDFORMER and COORDFORMER dense, instead, can successfully handle all input resolutions in the considered datasets, without any OOM, and with memory consumption primarily determined by the coordinate batch size. Regarding inference time, COORDFORMER is faster than MaSSFormer with the largest coordinate batches (50k), and comparable with 1k coordinate batches. In particular, COORDFORMER takes of MaSSFormer's inference time up to 12 Mpx (e.g., 520 vs. 1847 ms with 8 Mpx, 730 vs. 2635 ms with 12 Mpx) and, unlike MaSSFormer, can process also 64 Mpx inputs. COORDFORMER dense is slower, yet, despite the way higher MACs, thanks to the parallelization, the runtime remains in the same order of magnitude as MaSSFormer (e.g., 4480 vs. 2635 ms, CoordFormer dense vs. MaSSFormer at 12 Mpx). Importantly, COORDFORMER dense achieves the best performance overall (see row 3 of Tab. 2). Further increasing the coordinate batch size on the hardware specified above does not yield additional gains, as CUDA core saturation prevents further parallelism. Overall, these results show that MACs alone may not provide a clear picture when comparing the practical computational efficiency of different methods: although our method entails more MACs than competing approaches, its coordinate-based formulation enables effective parallelization and avoids common bottlenecks (e.g., memory-bandwidth limits, kernel-launch overheads, and poor parallelization), resulting in lower latency and smaller memory footprint in practice, achieving
| Methods | Decoder Attention | Inference Bmin | Bmin | MaSS-sal (500) | Model Params | Total MACs | Encoder MACs | Decoder MACs | Decoder MACs (1 count) | Coord Usage % | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| mIoU | BLE4 | BF11 | ||||||||||
| DINOv3 [45] + SH | ✗ | ✗ | 90.09 | 28.72 | 3507 | 28.70M | 2960 G | 2950 G | 10 G | |||
| COORDFORMER | CA | ✗ | 92.17 | 52.82 | 5689 | 29.92M | 168270 G | 2950 G | 165320 G | 4.847 G | 100 | |
| COORDFORMER | LCA | ✗ | 92.62 | 54.51 | 4074 | 29.92M | 26990 G | 2950 G | 20440 G | .002 G | 100 | |
| COORDFORMER | CA | ✓ | 92.12 | 51.87 | 5817 | 29.92M | 27160 G | 2950 G | 24210 G | 4.847 G | 14 | |
| COORDFORMER | LCA | ✓ | 92.50 | 53.92 | 4043 | 29.92M | 7360 G | 2950 G | 4410 G | .002 G | 18 | |
| CoordFormer | LCA | ✓ | 92.53 | 53.24 | 5965 | 29.92M | 6430 G | 2950 G | 3480 G | .002 G | 14 | |
Table 2. Contributions ablations on MaSS13K[59]. SH: Segmentation Head. CA: Cross-Attention. LCA: Localized Cross-Attention. “↑” means higher is better. Best, Second-Best
fast inference (> 1 fps up to 12 Mpx) with affordable memory usage on consumer-level GPUs.
4.3. Ablation studies
Main Contributions Ablations. Table 2 reports the main contributions of COORDFORMER. In the first row, we evaluate a baseline semantic segmentation model obtained by equipping DINOv3 [45] with the simple Segmentation Head (SH). This model processes images resized to , as COORDFORMER, but the results on MaSS13K reveal that while it effectively captures semantic information, it struggles to produce precise segmentations. Specifically, it achieves high mIoU of 90.09 but low BIoU of 28.72, highlighting limited boundary accuracy. If we compare the first row with all other rows, that include the Coordinate-Decoder, we note a substantial improvement across all metrics, particularly in boundary scores (BIoU and BF1), confirming the benefits of the coordinate-based design for very-high-resolution high-quality segmentation. While MACs may be an inaccurate proxy for computational efficiency across different methods—which can exhibit varying degrees of inherent parallelism—they remain meaningful within these ablations, where we vary only the number of attended tokens/coordinates within our own method. Comparing the performance of the second and third row, we can appreciate the benefits on efficiency and boundary metrics when using LCA rather than a simple Cross-Attention. LCA requires far fewer MACs than standard CA when processing a single coordinate (0.002 G vs. 4.847 G) and substantially lower total MACs over the full image, while achieving higher boundary scores (BIoU 54.51 vs. 52.82, BF1 0.6074 vs. 0.5889). We conjecture that LCA outperforms CA because CA forces the model to suppress irrelevant distant tokens that diffuse attention away from geometrically relevant context—as in Deformable DETR [72], where sparse local attention matched or exceeded its global counterpart. Additionally, since DINO tokens already encode scene-level semantics globally, a few localized tokens may suffice to retrieve the relevant information. Moreover, We note that when processing 100% of coordinates our model achieves the best performance, yet with large computational overhead. By observing the last 4 rows, we can analyze the benefits of using the proposed SEFI strategy. First, by introducing coarse Semantic Edges, , we can achieve a significant decrease in total MACs (3rd vs 5th rows: from 26990G to 7360G). By employing also the image edges, to obtain thin semantic
| Methods | Encoder | Encoder Input Res. | MaSSS-ult (500) | Model Parameter | ||
|---|---|---|---|---|---|---|
| mloU† | BiIoU† | BF1 | ||||
| MaSSFormer-Lat [15] | R18 | 4096 × 3072 | 87.11 | 45.35 | 5317 | 13.075M |
| MaSSFormer [15] | RS0 | 4096 × 3072 | 88.97 | 48.97 | 5630 | 17.42M |
| DPT [40] | DINOv2-S | 2044 × 2048 | 90.22 | 45.01 | 5198 | 46.55M |
| DPT [40] | DINOv2-S | 2048 × 2048 | 91.38 | 49.30 | 5660 | 53.19M |
| CoarseFormer | DeiT-S | 2048 × 2048 | 90.84 | 50.28 | 5633 | 23.29M |
| CoarseFormer | DINOv2-S | 2044 × 2048 | 91.24 | 53.26 | 5682 | 23.29M |
| CoarseFormer | DINOv2-S | 2048 × 2048 | 90.53 | 53.24 | 5902 | 20.92M |
(a) Decoder Analysis
(b) SEFI Analysis.
Table 3. COORDFORMER Decoder Analysis (a) on MaSSS13K [59] and SEFI analysis (b). “↑” means higher is better. Best, Second-Best
edges we can decrease MACs even more (5th vs last row: 7360G to 6430G), with marginal decrease in performance. In summary, the semantic-edge inference protocol reduces the number of used coordinates from 100% to 14% while preserving precision, substantially improving efficiency at negligible cost to performance. Overall, these results prove that our method can achieve remarkable performance on very-high-resolution segmentation while remaining efficient by focusing computation where it is most needed.
COORDFORMER Decoder Contribution Analysis. One could argue that COORDFORMER’s performance gains stem primarily from its foundational backbone rather than its architectural design. To isolate the impact of our coordinate-based decoder, we attempted to integrate DINOv3/v2 backbones into competing methods for a fair comparison. However, architectures such as MaSSFormer are specifically tailored for Very-High-Resolution (VHR) data and are not natively compatible with standard foundational ViT encoders. Furthermore, simply introducing a DINO backbone is infeasible in the VHR regime due to prohibitive memory and computational overhead. In contrast, COORDFORMER seamlessly integrates any ViT backbone because its coordinate decoder is fully decoupled from the encoder, making the use of foundation models both natural and efficient. A standard approach for employing foundational encoders in segmentation is to pair them with general dense-prediction decoders, such as DPT [40]. Accordingly, we trained DINOv3-S+ [45] and DINOv2-S [35] (with registers [15]) using a DPT decoder on MaSS13K, with results reported in Tab. 3a (rows 3 and 4). In these experiments, the input resolution is similar to COORDFORMER (~ 2048 × 2048); however, we note that larger inputs would be infeasible due to DPT’s memory constraints. When comparing these DPT-based results to COORDFORMER using the same backbones (last two rows of Tab. 3a), COORDFORMER achieves significantly higher BiIoU and BF1 scores. Remarkably, it does so while requiring nearly half the parameters. This result underscores the importance of our coordinate-based formulation, regardless of the backbone employed. Finally, we investigate the versatility of the proposed COORDFORMER decoder across other pre-trained backbones. We evaluate our coordinate-based decoder when paired with several encoders: DeiT-S [50], DINOv2-S with registers, and DINOv3-S+ (last three rows
of Tab. 3a). Our method performs best with strong foundation models, achieving state-of-the-art results with both the DINOv2-S and DINOv3-S+ encoders. Notably, it still surpasses prior methods on most metrics even with weaker backbones pretrained on ImageNet-1k, such as DeiT-S. Overall, these results show that our coordinate-based design is both key to performance and broadly applicable.
SEFI Analysis. In Table 3b we report experimental results that investigates the gain provided by the Final inference relatively to the initial Coarse segmentation and the impact of changing hyperparameters (stride s and dilation radius r) in SEFI. In general, increasing the coarse stride s reduces coordinate density and degrades boundary alignment. For instance, increasing the stride from 8 to 32 substantially degrades the coarse prediction, reducing BiIoU to 39% of the baseline (10.75 vs. 27.42). This degradation propagates to the final output, whose BiIoU drops to 84% of the baseline (44.78 vs. 53.24). These results show that the quality of the coarse segmentation impacts final performance. However, our coordinate-based approach allows increasing the dilation to compensate for less accurate coarse maps. Indeed, with stride 32, increasing the dilation to 15 recovers performance, with results slightly below our default setting, still achieving state-of-the-art. Finally, decreasing the stride to s = 4, with respect to our default setting (s = 8), yields further improvements at the cost of processing more coordinates.
5. Final Discussion
Limitations. We note that COORDFORMER can be highly efficient when the hardware provides adequate parallel compute resources (e.g., GPUs with sufficient CUDA cores). On the other hand, when we cannot parallelize computation our method requires to sequentially process coordinates, leading to high inference time. Nevertheless, our method is currently the only one capable of achieving high-quality very-high-resolution segmentations in memory-constraint scenarios.
Conclusions. We presented COORDFORMER, a coordinate-based framework for very-high-resolution semantic segmentation that combines pixel-level detail with strong global context via a Coordinate Decoder and a Localized Cross-Attention mechanism. This formulation enables precise, flexible, and computationally controllable inference, allowing segmentation at arbitrary resolutions, within regions of interest, or along thin semantic boundaries. Future extensions include applying our coordinate-based design to instance and panoptic segmentation, and exploring dense prediction tasks such as depth estimation or image inpainting, where inference can be restricted to task-relevant pixels. We believe these directions highlight the broader potential of coordinate-driven designs for very-high-resolution vision tasks and hope it will inspire further research.
Acknowledgments
We acknowledge the CINECA award under the ISCRA initiative, for the availability of high-performance computing resources and support.
References
[1] Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. In European conference on computer vision, pages 213–229. Springer, 2020.
[2] Niccolo Cavagnero, Gabriele Rosi, Claudia Cuttano, Francesca Pistilli, Marco Ciccone, Giuseppe Averta, and Fabio Cermelli. Pem: Prototype-based efficient maskformer for image segmentation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 15804–15813, 2024.
[3] 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. IEEE transactions on pattern analysis and machine intelligence, 40(4):834–848, 2017.
[4] Liang-Chieh Chen, George Papandreou, Florian Schroff, and Hartwig Adam. Rethinking atrous convolution for semantic image segmentation. arXiv preprint arXiv:1706.05587, 2017.
[5] 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. IEEE Transactions on Pattern Analysis and Machine Intelligence, 40(4):834–848, 2018.
[6] Liang-Chieh Chen, Yukun Zhu, George Papandreou, Florian Schroff, and Hartwig Adam. Encoder-decoder with atrous separable convolution for semantic image segmentation. In Proceedings of the European conference on computer vision (ECCV), pages 801–818, 2018.
[7] Wuyang Chen, Ziyu Jiang, Zhangyang Wang, Kexin Cui, and Xiaoning Qian. Collaborative global-local networks for memory-efficient segmentation of ultra-high resolution images. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 8924–8933, 2019.
[8] Zhe Chen, Yuchen Duan, Wenhai Wang, Junjun He, Tong Lu, Jifeng Dai, and Yu Qiao. Vision transformer adapter for dense predictions. In The Eleventh International Conference on Learning Representations, 2023.
[9] Bowen Cheng, Alex Schwing, and Alexander Kirillov. Per-pixel classification is not all you need for semantic segmentation. Advances in neural information processing systems, 34:17864–17875, 2021.
[10] Bowen Cheng, Ishan Misra, Alexander G Schwing, Alexander Kirillov, and Rohit Girdhar. Masked-attention mask transformer for universal image segmentation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 1290–1299, 2022.
[11] Ho Kei Cheng, Jihoon Chung, Yu-Wing Tai, and Chi-Keung Tang. Cascadepsp: Toward class-agnostic and very high-resolution segmentation via global and local refinement. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 8890–8899, 2020.
[12] Xiangxiang Chu, Zhi Tian, Yuqing Wang, Bo Zhang, Haibing Ren, Xiaolin Wei, Huaxia Xia, and Chunhua Shen. Twins: Revisiting the design of spatial attention in vision transformers. NeurIPS, 34, 2021.
[13] 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 Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3213–3223, 2016.
[14] Gabriela Csurka, Riccardo Volpi, Boris Chidlovskii, et al. Semantic image segmentation: Two decades of research. Foundations and Trends® in Computer Graphics and Vision, 14 (1-2):1–162, 2022.
[15] Timothée Darcet, Maxime Oquab, Julien Mairal, and Piotr Bojanowski. Vision transformers need registers. In The Twelfth International Conference on Learning Representations, 2024.
[16] Ruining Deng, Tianyuan Yao, Yucheng Tang, Junlin Guo, Siqi Lu, Juming Xiong, Lining Yu, et al. Kpis 2024 challenge: Advancing glomerular segmentation from patch- to slide-level. Medical Image Analysis, 2025.
[17] Albert Dominguez Mantes, Gioele La Manno, and Martin Weigert. Muvit: Multi-resolution vision transformers for learning across scales in microscopy. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2026.
[18] 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 International Conference on Learning Representations, 2021.
[19] Mingyuan Fan, Shenqi Lai, Junshi Huang, Xiaoming Wei, Zhenhua Chai, Junfeng Luo, and Xiaolin Wei. Rethinking bisenet for real-time semantic segmentation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 9716–9725, 2021.
[20] Jiaqi Gu, Hyoukjun Kwon, Dilin Wang, Wei Ye, Meng Li, Yu-Hsin Chen, Liangzhen Lai, Vikas Chandra, and David Z Pan. Multi-scale high-resolution vision transformer for semantic segmentation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 12094–12103, 2022.
[21] Meng-Hao Guo, Cheng-Ze Lu, Qibin Hou, Zhengning Liu, Ming-Ming Cheng, and Shi-Min Hu. Segnext: Rethinking convolutional attention design for semantic segmentation. Advances in neural information processing systems, 35:1140–1156, 2022.
[22] Andrew Howard, Mark Sandler, Grace Chu, Liang-Chieh Chen, Bo Chen, Mingxing Tan, Weijun Wang, Yukun Zhu, Ruoming Pang, Vijay Vasudevan, et al. Searching for mo-bilenetv3. In Proceedings of the IEEE/CVF international conference on computer vision, pages 1314–1324, 2019.
[23] Lei Ke, Mingqiao Ye, Martin Danelljan, Yu-Wing Tai, Chi-Keung Tang, Fisher Yu, et al. Segment anything in high quality. Advances in Neural Information Processing Systems, 36:29914–29934, 2023.
[24] Alexander Kirillov, Kaiming He, Ross Girshick, Carsten Rother, and Piotr Dollár. Panoptic segmentation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 9404–9413, 2019.
[25] Alexander Kirillov, Yuxin Wu, Kaiming He, and Ross Girshick. Pointrend: Image segmentation as rendering. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 9799–9808, 2020.
[26] Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C. Berg, Wan-Yen Lo, Piotr Dollár, and Ross Girshick. Segment anything. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 4015–4026, 2023.
[27] Xiangtai Li, Xia Li, Li Zhang, Guangliang Cheng, Jianping Shi, Zhouchen Lin, Shaohua Tan, and Yunhai Tong. Improving semantic segmentation via decoupled body and edge supervision. In European Conference on Computer Vision, pages 435–452. Springer, 2020.
[28] Yanghao Li, Saining Xie, Xinlei Chen, Piotr Dollar, Kaiming He, and Ross Girshick. Benchmarking detection transfer learning with vision transformers. arXiv preprint arXiv:2111.11429, 2021.
[29] Guosheng Lin, Anton Milan, Chunhua Shen, and Ian Reid. Refinenet: Multi-path refinement networks for high-resolution semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017.
[30] 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. In Proceedings of the IEEE/CVF international conference on computer vision, pages 10012–10022, 2021.
[31] Zhijian Liu, Zhuoyang Zhang, Samir Khaki, Shang Yang, Haotian Tang, Chenfeng Xu, Kurt Keutzer, and Song Han. Sparse refinement for efficient high-resolution semantic segmentation. In European Conference on Computer Vision, pages 108–127. Springer, 2024.
[32] Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3431–3440, 2015.
[33] Shervin Minaee, Yuri Boykov, Fatih Porikli, Antonio Plaza, Nasser Kehtarnavaz, and Demetri Terzopoulos. Image segmentation using deep learning: A survey. IEEE transactions on pattern analysis and machine intelligence, 44(7):3523–3542, 2021.
[34] Zhenliang Ni, Xinghao Chen, Yingjie Zhai, Yehui Tang, and Yunhe Wang. Context-guided spatial feature reconstruction for efficient semantic segmentation. In European Conference on Computer Vision, pages 239–255. Springer, 2024.
[35] Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy V Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel HAZIZA, Francisco Massa, Alaaeldin El-Nouby, et al. Dinov2: Learning robust visual features without supervision. Transactions on Machine Learning Research, 2024.
[36] Jeong Joon Park, Peter Florence, Julian Straub, Richard Newcombe, and Steven Lovegrove. Deepsdf: Learning continuous signed distance functions for shape representation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 165–174, 2019.
[37] Jialun Pei, Zhangjun Zhou, Yueming Jin, He Tang, and Pheng-Ann Heng. Unite-divide-unite: Joint boosting trunk and structure for high-accuracy dichotomous image segmentation. In Proceedings of the 31st ACM International Conference on Multimedia, pages 2139–2147, 2023.
[38] Lu Qi, Jason Kuen, Tiancheng Shen, Jiuxiang Gu, Wenbo Li, Weidong Guo, Jiaya Jia, Zhe Lin, and Ming-Hsuan Yang. High quality entity segmentation. In 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pages 4024–4033. IEEE, 2023.
[39] Xuebin Qin, Hang Dai, Xiaobin Hu, Deng-Ping Fan, Ling Shao, and Luc Van Gool. Highly accurate dichotomous image segmentation. In European Conference on Computer Vision, pages 38–56. Springer, 2022.
[40] René Ranftl, Alexey Bochkovskiy, and Vladlen Koltun. Vision transformers for dense prediction. In Proceedings of the IEEE/CVF international conference on computer vision, pages 12179–12188, 2021.
[41] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In International Conference on Medical image computing and computer-assisted intervention, pages 234–241. Springer, 2015.
[42] Lianlei Shan, Minglong Li, Xiaobin Li, Yang Bai, Ke Lv, Bin Luo, Si-Bao Chen, and Weiqiang Wang. Uhrnet: A semantic segmentation network specifically for ultra-high-resolution images. In 2020 25th International Conference on Pattern Recognition (ICPR), pages 1460–1466. IEEE, 2021.
[43] Tiancheng Shen, Yuechen Zhang, Lu Qi, Jason Kuen, Xingyu Xie, Jianlong Wu, Zhe Lin, and Jiaya Jia. High quality segmentation for ultra high-resolution images. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 1310–1319, 2022.
[44] Jae-hun Shim, Hyunwoo Yu, Kyeongbo Kong, and Suk-Ju Kang. Feedformer: Revisiting transformer decoder for efficient semantic segmentation. In Proceedings of the AAAI conference on artificial intelligence, pages 2263–2271, 2023.
[45] Oriane Siméoni, Huy V Vo, Maximilian Seitzer, Federico Baldassarre, Maxime Oquab, Cijo Jose, Vasil Khalidov, Marc Szafraniec, Seungeun Yi, Michaël Ramamonjisoa, et al. Dinov3. arXiv preprint arXiv:2508.10104, 2025.
[46] Vincent Sitzmann, Julien Martel, Alexander Bergman, David Lindell, and Gordon Wetzstein. Implicit neural representations with periodic activation functions. Advances in neural information processing systems, 33:7462–7473, 2020.
[47] Towaki Takikawa, David Acuna, Varun Jampani, and Sanja Fidler. Gated-scnn: Gated shape cnns for semantic segmenta-tion. In Proceedings of the IEEE/CVF international conference on computer vision, pages 5229–5238, 2019.
[48] Matthew Tancik, Pratul Srinivasan, Ben Mildenhall, Sara Fridovich-Keil, Nithin Raghavan, Utkarsh Singhal, Ravi Ramamoorthi, Jonathan Barron, and Ren Ng. Fourier features let networks learn high frequency functions in low dimensional domains. Advances in neural information processing systems, 33:7537–7547, 2020.
[49] Yucheng Tang, Yufan He, Vishwesh Nath, Pengfei Guo, Ruining Deng, Tianyuan Yao, Quan Liu, Can Cui, Mengmeng Yin, Ziyue Xu, Holger Roth, Daguang Xu, Haichun Yang, and Yuankai Huo. Holohisto: End-to-end gigapixel wsi segmentation with 4k resolution sequential tokenization. arXiv preprint arXiv:2407.03307, 2024.
[50] Hugo Touvron, Matthieu Cord, and Hervé Jégou. Deit iii: Revenge of the vit. In Computer Vision – ECCV 2022: 17th European Conference, Tel Aviv, Israel, October 23–27, 2022, Proceedings, Part XXIV, page 516–533, Berlin, Heidelberg, 2022. Springer-Verlag.
[51] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017.
[52] Qiang Wan, Zilong Huang, Jiachen Lu, Gang Yu, and Li Zhang. Seaformer++: Squeeze-enhanced axial transformer for mobile visual recognition. International Journal of Computer Vision, 133(6):3645–3666, 2025.
[53] Chi Wang, Yunke Zhang, Miaomiao Cui, Peiran Ren, Yin Yang, Xuansong Xie, Xian-Sheng Hua, Hujun Bao, and Weiwei Xu. Active boundary loss for semantic segmentation. In Proceedings of the AAAI conference on artificial intelligence, pages 2397–2405, 2022.
[54] Huiyu Wang, Yukun Zhu, Bradley Green, Hartwig Adam, Alan Yuille, and Liang-Chieh Chen. Axial-deeplab: Stand-alone axial-attention for panoptic segmentation. In European conference on computer vision, pages 108–126. Springer, 2020.
[55] Jingdong Wang, Ke Sun, Tianheng Cheng, Borui Jiang, Chaorui Deng, Yang Zhao, Dong Liu, Yadong Mu, Mingkui Tan, Xinggang Wang, et al. Deep high-resolution representation learning for visual recognition. IEEE transactions on pattern analysis and machine intelligence, 43(10):3349–3364, 2020.
[56] Wenhai Wang, Enze Xie, Xiang Li, Deng-Ping Fan, Kaitao Song, Ding Liang, Tong Lu, Ping Luo, and Ling Shao. Pyramid vision transformer: A versatile backbone for dense prediction without convolutions. In ICCV, pages 568–578, 2021.
[57] Wenhai Wang, Enze Xie, Xiang Li, Deng-Ping Fan, Kaitao Song, Ding Liang, Tong Lu, Ping Luo, and Ling Shao. Pvtv2: Improved baselines with pyramid vision transformer. CVMJ, pages 1–10, 2022.
[58] Tete Xiao, Yingcheng Liu, Bolei Zhou, Yuning Jiang, and Jian Sun. Unified perceptual parsing for scene understanding. In Proceedings of the European conference on computer vision (ECCV), pages 418–434, 2018.
[59] Chenxi Xie, Minghan Li, Hui Zeng, Jun Luo, and Lei Zhang. Mass13k: A matting-level semantic segmentation benchmark.
In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2025.
[60] Enze Xie, Wenhai Wang, Zhiding Yu, Anima Anandkumar, Jose M Alvarez, and Ping Luo. Segformer: Simple and efficient design for semantic segmentation with transformers. Advances in neural information processing systems, 34:12077–12090, 2021.
[61] Jiacong Xu, Zixiang Xiong, and Shankar P Bhattacharyya. Pidnet: A real-time semantic segmentation network inspired by pid controllers. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 19529–19539, 2023.
[62] Changqian Yu, Changxin Gao, Jingbo Wang, Gang Yu, Chunhua Shen, and Nong Sang. Bisenet v2: Bilateral network with guided aggregation for real-time semantic segmentation. International journal of computer vision, 129(11):3051–3068, 2021.
[63] Yuhui Yuan, Jingyi Xie, Xilin Chen, and Jingdong Wang. Segfix: Model-agnostic boundary refinement for segmentation. In European conference on computer vision, pages 489–506. Springer, 2020.
[64] Yuhui Yuan, Rao Fu, Lang Huang, Weihong Lin, Chao Zhang, Xilin Chen, and Jingdong Wang. Hrfformer: high-resolution transformer for dense prediction. In Proceedings of the 35th International Conference on Neural Information Processing Systems, pages 7281–7293, 2021.
[65] Hao Zhang, Feng Li, Huaizhe Xu, Shijia Huang, Shilong Liu, Lionel M Ni, and Lei Zhang. Mp-former: Mask-piloted transformer for image segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 18074–18083, 2023.
[66] Hengshuang Zhao, Jianping Shi, Xiaojuan Qi, Xiaogang Wang, and Jiaya Jia. Pyramid scene parsing network. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2881–2890, 2017.
[67] Hengshuang Zhao, Xiaojuan Qi, Xiaoyong Shen, Jianping Shi, and Jiaya Jia. Icnet for real-time semantic segmentation on high-resolution images. In Proceedings of the European conference on computer vision (ECCV), pages 405–420, 2018.
[68] Ziyu Zhao, Xiaoguang Li, Pingping Cai, Canyu Zhang, and Song Wang. Leveraging adaptive implicit representation mapping for ultra high-resolution image segmentation. In European Conference on Computer Vision (ECCV). Springer, 2024.
[69] Peng Zheng, Dehong Gao, Deng-Ping Fan, Li Liu, Jorma Laaksonen, Wanli Ouyang, and Nicu Sebe. Bilateral reference for high-resolution dichotomous image segmentation. CoRR, 2024.
[70] Bolei Zhou, Hang Zhao, Xavier Puig, Sanja Fidler, Adela Barriuso, and Antonio Torralba. Scene parsing through ade20k dataset. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 633–641, 2017.
[71] Yan Zhou, Bo Dong, Yuanfeng Wu, Wentao Zhu, Geng Chen, and Yanning Zhang. Dichotomous image segmentation with frequency priors. In IJCAI, pages 1822–1830, 2023.
[72] Xizhou Zhu, Weijie Su, Lewei Lu, Bin Li, Xiaogang Wang, and Jifeng Dai. Deformable {detr}: Deformable transformers for end-to-end object detection. In International Conference on Learning Representations, 2021.
COORDFORMER: Give Me Any Coordinates and I Will Give You Labels
Supplementary Material
In this supplementary material we provide additional analyses and details of COORDFORMER. In particular, the document is organized as follows:
-
Sec. A1. We report additional ablation experiments. Specifically, we analyze how varying the encoder input resolution affects performance and computational cost, we measure the performance gains obtained with a higher-capacity backbone, and we isolate the contribution of each query component.
-
Sec. A2. We analyze the annotation quality of a legacy semantic segmentation benchmark (ADE20K [70]) compared to MaSS13K [59], and show how COORDFORMER performs when annotations are less precise.
-
Sec. A3. To ensure reproducibility, we present a comprehensive overview of the implementation details, including training protocol, optimization hyperparameters, and details on the MACs calculations.
-
Sec. A4. We provide additional details on the inference protocols enabled by COORDFORMER.
-
Sec. A5. We provide qualitative results on MaSS13K, DIS5K [39] and KPIs [16].
-
Sec. A6. We present qualitative failure cases of our method on MaSS13K[59] and DIS5K[39].
A1. Additional ablation experiments
A1.1. Ablation on the Encoder Input
The ablation in Tab. A1 examines how the input resolution of the encoder, , affects accuracy and computational cost on MaSS13K. In the first two rows, we study the effect of increasing the input resolution of DINOv3 in the baseline configuration that uses only the Segmentation Head (SH) on top of the encoder. Specifically, we raise the input resolution to the maximum allowed by our hardware (i.e., ) while keeping all training settings unchanged. Increasing the resolution from to yields only modest gains – especially on boundary metrics (BIoU: , BF1: ) – while almost tripling the total cost ( MACs). This increase comes almost entirely from the encoder ( MACs), as the SH is extremely lightweight. The last rows report results for COORDFORMER using encoder inputs of and . Unlike DINOv3 + SH, COORDFORMER already delivers strong boundary performance when the encoder processes only images (91.16 mIoU, 48.83 BIoU, 0.5477 BF1) with a total cost of 3720G MACs. Increasing the encoder resolution to leads to clear improvements across all metrics – particularly on boundaries (mIoU +1.37, BIoU
| Methods | Encoder Input Res. | MaSS-val (500) | Model Params | Total MACs | Encoder MACs | Decoder MACs | ||
|---|---|---|---|---|---|---|---|---|
| mIoU↑ | BIoU↑ | BF1↑ | ||||||
| DINOv3 [45] + SH | 2048 × 2048 | 90.09 | 28.72 | .3507 | 28.70M | 2960 G | 2950 G | 10 G |
| DINOv3 [45] + SH | 3072 × 2304 | 90.36 | 32.48 | .3948 | 28.70M | 7850 G | 7840 G | 10 G |
| COORDFORMER | 1024 × 1024 | 91.16 | 48.83 | .5477 | 29.92M | 3720 G | 270 G | 3450 G |
| COORDFORMER | 2048 × 2048 | 92.53 | 53.24 | .5965 | 29.92M | 6430 G | 2950 G | 3480 G |
Table A1. Analysis on the Encoder Input Size on MaSS13K[59]. “↑” means higher is better. Best, Second-Best
| Methods | Backbone | MaSS-val (500) | MaSS-test (1.500) | Stat. Param. | ||||
|---|---|---|---|---|---|---|---|---|
| mIoU↑ | BIoU↑ | BF1↑ | mIoU↑ | BIoU↑ | BF1↑ | |||
| MaSSFormer-Lite [59] | R18 | 87.11 | 45.35 | .5137 | 86.13 | 43.28 | .5086 | 15.07M |
| MaSSFormer [59] | R50 | 88.97 | 48.97 | .5639 | 88.21 | 48.39 | .5593 | 37.42M |
| COORDFORMER | DINOv3-S+ | 92.53 | 53.24 | .5965 | 92.30 | 52.40 | .5916 | 29.92M |
| COORDFORMER-B | DINOv3-B | 92.59 | 54.65 | .6163 | 92.68 | 54.10 | .6109 | 90.38M |
Table A2. Analysis on the Encoder Capacity on MaSS13K [59]. “↑” means higher is better. Best, Second-Best
+4.41, BF1 +0.0488) – while increasing the total cost from 3720G to 6430G MACs (about 1.7×). Crucially, this additional cost is almost entirely absorbed by the encoder (270G → 2950G), whereas the decoder remains roughly constant (~3.4T MACs) thanks to the Coordinate Decoder computational cost being decoupled from the encoder’s input size.
A1.2. Ablation on the Encoder Capacity
We investigate how the capacity of the encoder affects the quality of our predictions. Starting from our default configuration, which builds on DINOv3–S+, we replace the backbone with the deeper DINOv3–B and train the model under the same protocol, denoting this variant COORDFORMER–B. Tab. A2 reports the results on both the MaSS-val and MaSS-test splits of MaSS13K [59]. The deeper backbone yields consistent improvements across all metrics. On MaSS-test, COORDFORMER–B improves the mIoU by 0.38 points over our default model, while the boundary-aware metrics benefit substantially more, with BIoU rising by 1.70 points and BF1 by 1.9 points. The same trend holds on MaSS-val. This asymmetry is informative: the region-level mIoU is already close to saturation in our default configuration, so the additional encoder capacity translates primarily into sharper, more accurate object boundaries rather than into coarse region accuracy. This is consistent with the design of our method, whose contribution is concentrated precisely at the boundaries. It is also worth noting that even our default DINOv3–S+ model already surpasses MaSSFormer [59] by a large margin on every metric while using fewer parameters (29.92M against 37.42M), and COORDFORMER–B further widens this gap at the cost of a roughly threefold increase in parameters (90.38M). The deeper variant therefore, offers a favorable accuracy–complexity trade-off when boundary fidelity is the priority, whereas the default configuration re-

(a) Groundtruth ADE20K

(b) Groundtruth MaSS13K
Figure A1. Annotation sharpness comparison: ADE20K [70] (a) vs MaSS13K [59] (b)
| Methods | fc | fp | MaSS-val (500) | ||
|---|---|---|---|---|---|
| mIoU ↑ | BIoU ↑ | BF1 ↑ | |||
| COORDFORMER | ✓ | ✗ | 91.55 | 42.75 | 49.39 |
| COORDFORMER | ✗ | ✓ | 92.15 | 52.97 | 59.25 |
| COORDFORMER | ✓ | ✓ | 92.53 | 53.24 | 59.65 |
Table A3. Query components ablation on MaSS13K [59]. Contribution of the coordinate embedding and the local patch embedding . “↑” means higher is better.
mains the most efficient choice for general use.
A1.3. Ablation on the Query Components
The query fed to our decoder combines a local patch embedding with a coordinate embedding through . To isolate the contribution of each component, we evaluate three variants: the coordinate embedding alone (), the patch embedding alone (), and the full query (). All variants share the same backbone and training protocol, and we report mIoU together with the boundary-sensitive BIoU and BF1 metrics on MaSS13K [59]. Results are shown in Tab. A3. The local patch embedding is the dominant source of information: using alone reaches 52.97 BIoU and 59.25 BF1, far above the 42.75 BIoU and 49.39 BF1 obtained from the coordinate embedding alone. The gap is most pronounced on the boundary metrics, confirming that the high-resolution local appearance captured by is what drives boundary accuracy, whereas the coordinate embedding cannot localize boundaries on its own. The two components are nonetheless complementary: the full query achieves the best result across all three metrics (92.53 mIoU, 53.24 BIoU, 59.65 BF1), showing that the coordinate embedding contributes positional information that refines the prediction beyond what local appearance alone provides.
A2. Evaluation on ADE20K
We choose not to focus on standard semantic segmentation benchmarks such as ADE20K, since they do not provide high-resolution images paired with accurate, fine-grained annotations. This is apparent from Fig. A1, which visually compares the annotations of ADE20K and MaSS13K. For similar objects, the annotation sharpness differs markedly between the two: ADE20K prioritizes covering a large number of classes, whereas MaSS13K emphasizes precise, accurate delineation. Our method is designed to address the
| Methods | Backbone | Param. | mIoU ↑ |
|---|---|---|---|
| Semantic FPN [24] | PVT-Small [56] | 28.2M | 41.9 |
| Semantic FPN [24] | PVTv2-B2 [57] | 29.1M | 45.2 |
| Semantic FPN [24] | Swin-T [30] | 31.9M | 41.5 |
| Semantic FPN [24] | Twins-SVT-S [12] | 28.3M | 43.2 |
| Semantic FPN [24] | VT-S [28] | 27.8M | 44.6 |
| UperNet [58] | DeiT-Adapter-S [8] | 58M | 46.2 |
| MaskFormer [9] | Swin-B [30] | 102M | 52.7 |
| Mask2Former [10] | Swin-B [30] | 107M | 53.9 |
| MaskFormer [9] | Swin-L [30] | 212M | 54.1 |
| Mask2Former [10] | Swin-L [30] | 216M | 56.1 |
| DINOv3 [45] + SH | DINOv3-S+ | 28.7M | 47.7 |
| COORDFORMER | DINOv3-S+ | 29.9M | 49.7 |
| COORDFORMER-L | DINOv3-L | 309M | 57.0 |
Table A4. Semantic segmentation results on ADE20K [70] val. “↑” means higher is better. Best, Second-Best
challenges of MaSS13K (very-high-resolution images and boundary accuracy) rather than those of ADE20K (mainly large class diversity and scale variation).
Nonetheless, we report experiments on ADE20K in Tab. A4, evaluated with the standard mIoU metric. As shown in the table, COORDFORMER reaches 49.7 mIoU with only 29.9M parameters, outperforming all methods built on small-scale (S) backbones—including UPerNet with DeiT-Adapter-S, which uses nearly twice as many parameters (58M)—and trailing only the substantially heavier models equipped with Swin-B and Swin-L backbones. We also evaluate COORDFORMER with a DINOv3-L backbone (last row), which achieves 57.0 mIoU, the highest among all compared methods. These results confirm that, although ADE20K cannot fully reflect the boundary precision COORDFORMER is designed for, our method remains competitive on a benchmark outside its intended setting.
A3. Additional Implementation Details
COORDFORMER is implemented on top of semantic-segmentation library and PyTorch 2.6. We adopt mixed precision training with bfloat16 autocasting. We train the model using the AdamW optimizer with a batch size of 16. The initial learning rate is set to with a weight decay of , and we apply a linear decay schedule after a linear warmup over the first ten epochs. For data augmentation, we use random flipping and random photometric distortion. The number of MACs for all variants of COORDFORMER is computed using the tools provided in PyTorch. We also adopt an early stopping strategy, terminating training when no improvement in the
https://github.com/sithu31296/semantic-segmentation
| Stage | Layer / Operation | Input Output | Description |
|---|---|---|---|
| Encoder (e.g., DINov3-S+) | Image downsampling\nViT backbone \nMulti-level token concat. | \n \n | Very-high-resolution RGB image is resized (e.g., ).\nExtract from DINov3-S+ four from transformer blocks.\nAfter projecting to concatenate along channels: |
| Coordinate Decoder | Patch extraction\nPatch MLP \nfrequency transform \nprojection | \n \n \n | Extract a local patch of size (p = 8) from in the original image.\nPatch embedder encodes fine details into a patch feature .\nNormalize to and map with to obtain .\nConcatenate and and project to form the query . |
| Localized Cross-Attention (LCA) | \n \n | are downsampling factors and is the patch size.\nSelect local neighborhood of k = 4 tokens around in to obtain tokens . as query and as keys/values, refined token with global context. | |
| Segmentation Head | MLP head (SH) | MLP maps to class logits for the coordinate. |
Table A5. COORDFORMER architecture overview. The table details the subsequent coordinate-based decoding pipeline, from input image and coordinates to final class logits. Notation follows Sec. 3.1.
Algorithm 1: Semantic-Edge-Focused Inference (SEFI)
Input: High-res image ; COORDFORMER ; coarse stride ; dilation radius ; Sobel threshold (default 0.1); coordinate batch size .
Output: Dense label map .
(1) Coarse querying at stride ; ; ; // reshape on coarse grid ;
(2) Semantic boundary mask from coarse prediction; ; ; ;
(3) Image boundary mask (Sobel); ;
(4) Refined semantic boundary coordinates; ; ;
(5) Boundary refinement by coordinate querying; foreach mini-batch of size do ; ; // overwrite boundary in the upsampled coarse map ; return ;
Subroutine: QUERYLABELS( ); For each , compute logits
validation metric is observed for several consecutive epochs. The weights for the Cross-Entropy Loss, Binary Dice Loss and Binary Cross-Entropy Loss, , and , are set to 2, 5 and 5, respectively. Moreover, in Tab. A5, we report an architecture overview. The encoder tokens are extracted from multiple depths of the transformer encoder at regular layer intervals. For instance, DINov3-S+ has 12 layers, so we take features every three layers (i.e., from
four evenly spaced layers). We highlight that allows to obtain Fourier-feature embedding [48] to lift 2D coordinates into a higher-dimensionality. We use 10 frequencies in our implementation. The projection layers, that process to obtain , reduce the number of channels of the feature map from to . The Patch MLP is implemented as a standard ViT-like patch embedder [18], using one convolutional layer with kernel size 8, stride 8,

(a) RoI and Region-Growing Inference

(b) Sub-Pixel and Strided Inference
Figure A2. Inference protocols enabled by COORDFORMER. Beyond the Semantic-Edge-Focused Inference described in the main paper, COORDFORMER supports several other inference protocols: RoI querying, region growing, sub-pixel, and strided inference.
and . The block , is a sequence of linear layer and ReLU activations which projects the concatenation of patch and coordinate tokens to the query dimension . The Localized Cross-Attention (LCA) layer is implemented as a standard cross-attention block between the coordinate-aware queries and the selected local encoder tokens, omitting the feed-forward network typically applied after the attention operation. The threshold used to obtain is set to 0.1. Regarding DINOv3 [45], DINOv2[35], DeiT-S [50], and MaSSFormer [59], we used the official codes and weights available online. We also provide the pseudocode for the SEFI technique in Algorithm 1.
A4. Additional Inference Protocols
Our method enables several inference protocols (Fig. A2). While Semantic-Edge-Focused Inference is described in Sec. 3.3 of the main paper, COORDFORMER also supports other protocols, some of which substantially reduce unnecessary computation on very-high-resolution images. As shown in Fig. A2a, our framework can process only the regions or coordinates of interest rather than the full image. For instance, one can extract an arbitrary Region of Interest (RoI) and segment it at full resolution by querying only its pixel coordinates, yielding detailed local predictions at a fraction of the global cost. The method also supports interactive, category-aware Region Growing: starting from a single user-selected pixel, we iteratively query neighboring coordinates and expand the region until a different semantic category is encountered, producing coherent semantic regions without processing the entire image. Moreover, COORDFORMER allows the output resolution to be chosen (Fig. A2b) by sampling coordinates at any density, enabling coarse (Strided Inference), medium, or fully detailed masks depending on computational needs. Finally, predicting labels from continuous coordinates lets COORDFORMER query sub-pixel locations (Sub-Pixel Inference), yielding masks at resolutions beyond the input image—a property that could benefit downstream tasks such as mask-conditioned generation and restoration.
A5. Additional Qualitative Results
Additional qualitative results for MaSS13K [59], DIS5K [39], and KPIs [16] are shown in Fig. A3, Fig. A4, and Fig. A5, respectively. The images have been downsampled for PDF size constraints. Some of the original resolution predictions are included in the zip file attached with the submission.
A6. Failure Cases
Although COORDFORMER achieves strong results on both MaSS13K and DIS5K, a few recurring failure modes can be observed, as shown in Fig. A6 and Fig. A7.
On both datasets, the most challenging examples involve extremely small or distant semantic regions, very thin structures, or boundaries embedded in highly cluttered textures. These cases are illustrated in the first two rows of Fig. A6 and Fig. A7. In the first rows, the thin structures can be recovered by disabling SEFI, as shown in the COORDFORMER dense column, where our method uses the full set of image coordinates to generate the prediction. The second rows show cases in which COORDFORMER, COORDFORMER dense, and MaSSFormer/BiRefNet all fail to predict thin cables, branches, or grid-like textures. These results highlight the challenges posed by such structures in both DIS5K and MaSS13K. The third and fourth rows highlight failures related to semantic ambiguity. In particular, the third row of Fig. A6 depicts a scene with strong reflections caused by a glass surface, where COORDFORMER, MaSSFormer, and COORDFORMER dense fail to predict the vegetation class. The fourth row of Fig. A6 illustrates one of the most common semantic errors, in which the other class is misclassified due to intrinsic ambiguities associated with this category in the MaSS13K dataset. The last two rows of Fig. A7 illustrate cases in which the main object is not correctly identified by the compared methods. Overall, these examples show that the main limitations of COORDFORMER arise in the presence of extremely fine structures and semantically ambiguous scenes. While dense inference can recover part of the missing details in some cases, the remaining errors highlight the intrinsic difficulty of these examples for both efficient and dense prediction settings.

Input
Ground Truth
MaSSFormer
COORDFORMER
Figure A3. Qualitative comparison between COORDFORMER and MaSSFormer on MaSS13K [59]. Please zoom in for a clearer view.

Figure A4. Qualitative comparison between COORDFORMER and BiRefNet on DISSK [39]. Please zoom in for a clearer view.

Figure A5. Qualitative comparison of COORDFORMER and Ground Truth on KPIs [16]. Please zoom in for a clearer view.

Input
Ground Truth
MaSSFormer
COORDFORMER
COORDFORMER dense
Figure A6. Failure cases of COORDFORMER. Our method is compared with COORDFORMER dense and MaSSFormer on MaSS13K [59]. Please zoom in for a clearer view.

Figure A7. Failure cases of COORDFORMER. Our method is compared with COORDFORMER dense and BiRefNet on DIS5K [39]. Please zoom in for a clearer view.