Chelsea707 commited on
Commit
09bbdee
·
verified ·
1 Parent(s): 1559e12

Add Batch d5f46ed9-715d-4062-90c8-dd8940b37b42

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. CVPR/2025/SegAgent_ Exploring Pixel Understanding Capabilities in MLLMs by Imitating Human Annotator Trajectories/b6444176-c113-4ffe-9cd2-8898c483f069_content_list.json +3 -0
  2. CVPR/2025/SegAgent_ Exploring Pixel Understanding Capabilities in MLLMs by Imitating Human Annotator Trajectories/b6444176-c113-4ffe-9cd2-8898c483f069_model.json +3 -0
  3. CVPR/2025/SegAgent_ Exploring Pixel Understanding Capabilities in MLLMs by Imitating Human Annotator Trajectories/b6444176-c113-4ffe-9cd2-8898c483f069_origin.pdf +3 -0
  4. CVPR/2025/SegAgent_ Exploring Pixel Understanding Capabilities in MLLMs by Imitating Human Annotator Trajectories/full.md +310 -0
  5. CVPR/2025/SegAgent_ Exploring Pixel Understanding Capabilities in MLLMs by Imitating Human Annotator Trajectories/images.zip +3 -0
  6. CVPR/2025/SegAgent_ Exploring Pixel Understanding Capabilities in MLLMs by Imitating Human Annotator Trajectories/layout.json +3 -0
  7. CVPR/2025/SegEarth-OV_ Towards Training-Free Open-Vocabulary Segmentation for Remote Sensing Images/e16e969d-226c-408e-ac45-2cd707494957_content_list.json +3 -0
  8. CVPR/2025/SegEarth-OV_ Towards Training-Free Open-Vocabulary Segmentation for Remote Sensing Images/e16e969d-226c-408e-ac45-2cd707494957_model.json +3 -0
  9. CVPR/2025/SegEarth-OV_ Towards Training-Free Open-Vocabulary Segmentation for Remote Sensing Images/e16e969d-226c-408e-ac45-2cd707494957_origin.pdf +3 -0
  10. CVPR/2025/SegEarth-OV_ Towards Training-Free Open-Vocabulary Segmentation for Remote Sensing Images/full.md +357 -0
  11. CVPR/2025/SegEarth-OV_ Towards Training-Free Open-Vocabulary Segmentation for Remote Sensing Images/images.zip +3 -0
  12. CVPR/2025/SegEarth-OV_ Towards Training-Free Open-Vocabulary Segmentation for Remote Sensing Images/layout.json +3 -0
  13. CVPR/2025/SegMAN_ Omni-scale Context Modeling with State Space Models and Local Attention for Semantic Segmentation/e4f2e2d4-e859-483d-9efe-a289f9871941_content_list.json +3 -0
  14. CVPR/2025/SegMAN_ Omni-scale Context Modeling with State Space Models and Local Attention for Semantic Segmentation/e4f2e2d4-e859-483d-9efe-a289f9871941_model.json +3 -0
  15. CVPR/2025/SegMAN_ Omni-scale Context Modeling with State Space Models and Local Attention for Semantic Segmentation/e4f2e2d4-e859-483d-9efe-a289f9871941_origin.pdf +3 -0
  16. CVPR/2025/SegMAN_ Omni-scale Context Modeling with State Space Models and Local Attention for Semantic Segmentation/full.md +266 -0
  17. CVPR/2025/SegMAN_ Omni-scale Context Modeling with State Space Models and Local Attention for Semantic Segmentation/images.zip +3 -0
  18. CVPR/2025/SegMAN_ Omni-scale Context Modeling with State Space Models and Local Attention for Semantic Segmentation/layout.json +3 -0
  19. CVPR/2025/Segment Any Motion in Videos/25801bc1-cb6e-4673-83cb-3317052d8a3e_content_list.json +3 -0
  20. CVPR/2025/Segment Any Motion in Videos/25801bc1-cb6e-4673-83cb-3317052d8a3e_model.json +3 -0
  21. CVPR/2025/Segment Any Motion in Videos/25801bc1-cb6e-4673-83cb-3317052d8a3e_origin.pdf +3 -0
  22. CVPR/2025/Segment Any Motion in Videos/full.md +287 -0
  23. CVPR/2025/Segment Any Motion in Videos/images.zip +3 -0
  24. CVPR/2025/Segment Any Motion in Videos/layout.json +3 -0
  25. CVPR/2025/Segment Any-Quality Images with Generative Latent Space Enhancement/1afb4c97-64af-47c3-b3be-9332e1082a6d_content_list.json +3 -0
  26. CVPR/2025/Segment Any-Quality Images with Generative Latent Space Enhancement/1afb4c97-64af-47c3-b3be-9332e1082a6d_model.json +3 -0
  27. CVPR/2025/Segment Any-Quality Images with Generative Latent Space Enhancement/1afb4c97-64af-47c3-b3be-9332e1082a6d_origin.pdf +3 -0
  28. CVPR/2025/Segment Any-Quality Images with Generative Latent Space Enhancement/full.md +400 -0
  29. CVPR/2025/Segment Any-Quality Images with Generative Latent Space Enhancement/images.zip +3 -0
  30. CVPR/2025/Segment Any-Quality Images with Generative Latent Space Enhancement/layout.json +3 -0
  31. CVPR/2025/Segment Anything, Even Occluded/91f2ed4a-96ac-4e81-9860-50746edbae3a_content_list.json +3 -0
  32. CVPR/2025/Segment Anything, Even Occluded/91f2ed4a-96ac-4e81-9860-50746edbae3a_model.json +3 -0
  33. CVPR/2025/Segment Anything, Even Occluded/91f2ed4a-96ac-4e81-9860-50746edbae3a_origin.pdf +3 -0
  34. CVPR/2025/Segment Anything, Even Occluded/full.md +270 -0
  35. CVPR/2025/Segment Anything, Even Occluded/images.zip +3 -0
  36. CVPR/2025/Segment Anything, Even Occluded/layout.json +3 -0
  37. CVPR/2025/Segment This Thing_ Foveated Tokenization for Efficient Point-Prompted Segmentation/f4675c76-12fd-46eb-8463-021215e9a2e0_content_list.json +3 -0
  38. CVPR/2025/Segment This Thing_ Foveated Tokenization for Efficient Point-Prompted Segmentation/f4675c76-12fd-46eb-8463-021215e9a2e0_model.json +3 -0
  39. CVPR/2025/Segment This Thing_ Foveated Tokenization for Efficient Point-Prompted Segmentation/f4675c76-12fd-46eb-8463-021215e9a2e0_origin.pdf +3 -0
  40. CVPR/2025/Segment This Thing_ Foveated Tokenization for Efficient Point-Prompted Segmentation/full.md +310 -0
  41. CVPR/2025/Segment This Thing_ Foveated Tokenization for Efficient Point-Prompted Segmentation/images.zip +3 -0
  42. CVPR/2025/Segment This Thing_ Foveated Tokenization for Efficient Point-Prompted Segmentation/layout.json +3 -0
  43. CVPR/2025/Segmenting Maxillofacial Structures in CBCT Volumes/9fcc46a3-6daf-45d8-9a08-aa8a9a72949e_content_list.json +3 -0
  44. CVPR/2025/Segmenting Maxillofacial Structures in CBCT Volumes/9fcc46a3-6daf-45d8-9a08-aa8a9a72949e_model.json +3 -0
  45. CVPR/2025/Segmenting Maxillofacial Structures in CBCT Volumes/9fcc46a3-6daf-45d8-9a08-aa8a9a72949e_origin.pdf +3 -0
  46. CVPR/2025/Segmenting Maxillofacial Structures in CBCT Volumes/full.md +371 -0
  47. CVPR/2025/Segmenting Maxillofacial Structures in CBCT Volumes/images.zip +3 -0
  48. CVPR/2025/Segmenting Maxillofacial Structures in CBCT Volumes/layout.json +3 -0
  49. CVPR/2025/Self-Cross Diffusion Guidance for Text-to-Image Synthesis of Similar Subjects/83e0a95c-7140-478a-a40d-1c8962e615cc_content_list.json +3 -0
  50. CVPR/2025/Self-Cross Diffusion Guidance for Text-to-Image Synthesis of Similar Subjects/83e0a95c-7140-478a-a40d-1c8962e615cc_model.json +3 -0
CVPR/2025/SegAgent_ Exploring Pixel Understanding Capabilities in MLLMs by Imitating Human Annotator Trajectories/b6444176-c113-4ffe-9cd2-8898c483f069_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a8f85465a83404a2028103cd138fcffeab80740d6686eca347c7467e6792dad2
3
+ size 83298
CVPR/2025/SegAgent_ Exploring Pixel Understanding Capabilities in MLLMs by Imitating Human Annotator Trajectories/b6444176-c113-4ffe-9cd2-8898c483f069_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9831ccbe5c8d99d7df9b84318574f7213c184903e62c5c35071d8a3c95a2a3e8
3
+ size 107994
CVPR/2025/SegAgent_ Exploring Pixel Understanding Capabilities in MLLMs by Imitating Human Annotator Trajectories/b6444176-c113-4ffe-9cd2-8898c483f069_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:708b40e2d0129f35a46116fb1d6109f37e7f3b0a4932897afebb26cfa3190dbd
3
+ size 5218647
CVPR/2025/SegAgent_ Exploring Pixel Understanding Capabilities in MLLMs by Imitating Human Annotator Trajectories/full.md ADDED
@@ -0,0 +1,310 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SegAgent: Exploring Pixel Understanding Capabilities in MLLMs by Imitating Human Annotator Trajectories
2
+
3
+ Muzhi Zhu $^{1,2}$ Yuzhuo Tian $^{1}$ Hao Chen $^{1*}$ Chunluan Zhou $^{2}$ Qingpei Guo $^{2*}$ Yang Liu $^{1}$ Ming Yang $^{2}$ Chunhua Shen $^{1,2*}$
4
+
5
+ 1 Zhejiang University, China 2 Ant Group
6
+
7
+ # Abstract
8
+
9
+ While MLLMs have demonstrated impressive image understanding capabilities, they still struggle with pixel-level comprehension, limiting their practical applications. Current evaluation tasks such as VQA and visual grounding remain too coarse to assess fine-grained pixel comprehension accurately. Although segmentation is foundational for pixel-level understanding, existing methods often require MLLMs to generate implicit tokens, decoded through external pixel decoders. This approach disrupts the MLLM's text output space, potentially compromising language capabilities and reducing flexibility and extensibility while failing to reflect the model's intrinsic pixel-level understanding. Thus, we introduce the Human-Like Mask Annotation Task (HLMAT), a new paradigm where MLLMs mimic human annotators using interactive segmentation tools. Modelling segmentation as a multi-step Markov Decision Process, HLMAT enables MLLMs to iteratively generate text-based click points, achieving high-quality masks without architectural changes or implicit tokens. Through this setup, we develop SegAgent, a model fine-tuned on human-like annotation trajectories, which achieves performance comparable to SoTA methods and supports additional tasks like mask refinement and annotation filtering. HLMAT provides a protocol for assessing fine-grained pixel understanding in MLLMs and introduces a vision-centric, multi-step decision-making task that facilitates the exploration of MLLMs' visual reasoning abilities. Our adaptations of policy improvement method StaR and PRM guided tree search further enhance model robustness in complex segmentation tasks, laying a foundation for future advancements in fine-grained visual perception and multi-step decision-making for MLLMs. Code can be found at https://github.com/aim-uofa/SegAgent.
10
+
11
+ # 1. Introduction
12
+
13
+ Recent advancements [33, 43] in large language models (LLMs) have brought them to near-human levels in many domains. However, multimodal LLMs (MLLMs) still face significant limitations in visual tasks [44, 45], especially in complex pixel-level understanding [56], which restricts their applicability in real-world scenarios. Despite efforts to develop MLLM vision capabilities through tasks like Visual Question Answering (VQA)[19, 20], and visual grounding [2, 46], these tasks fail to assess fine-grained pixel-level comprehension effectively. On the other hand, tasks like UI Operations [64, 66] and Robotic Control [40] require pixel-level precision but are often constrained to specialized environments with limited, heterogeneous data, making them difficult to scale to complex, open-world scenarios.
14
+
15
+ Segmentation [11, 28, 29, 68, 70-72] is one of the most critical visual tasks for reflecting pixel-level understanding capabilities. Moreover, there is a wealth of segmentation data [15] available, which can sufficiently meet the needs of complex open-world scenarios. Establishing a method that enables MLLMs to effectively leverage this large-scale data is essential to further explore and enhance their pixel-level understanding capabilities. However, current approaches [16, 38, 49, 50, 67] integrating MLLMs with segmentation tasks often rely on implicit token outputs and require additional pixel decoders. While effective, these methods alter the original MLLM output space, potentially compromising semantic generalization by shifting away from language-based outputs. The use of implicit tokens also limits extensibility, complicating efforts to implement a unified textual framework across diverse tasks. Furthermore, reliance on an extra pixel decoder makes it challenging to accurately reflect the MLLM's intrinsic pixel understanding capabilities [4, 41]. There are also methods [6, 18, 26, 36] that attempt to perform segmentation using purely textual outputs, such as polygon vertex sequences or sampled points along the mask contour. However, this strategy limits mask precision, and generating lengthy coordinate sequences is particularly challenging. Even for a skilled human annotator, tracing
16
+
17
+ the mask contour point by point is time-intensive and laborious [23]. Recent annotation practices [15] have introduced interactive segmentation tools [15, 27] that reduce workload by allowing iterative mask refinement through positive and negative clicks. It's natural to ask whether current MLLMs can perform segmentation by emulating the trajectories of human annotators using interactive segmentation tools. This approach would enable the model to complete the segmentation task more easily in a pure-text format.
18
+
19
+ Therefore, we propose a new segmentation paradigm, enabling MLLMs to imitate human annotators using interactive segmentation tools by modeling the segmentation task as a multi-step Markov Decision Process. We refer to this as the Human-Like Mask Annotation Task (HLMAT). Compared to previous vision tasks, HLMAT imposes greater demands on the model's pixel-level understanding for both input and output. This paradigm allows MLLMs to iteratively generate text-based coordinates without relying on specialized architectures or implicit tokens, supporting fair comparisons across different MLLMs. We believe HLMAT offers a novel evaluation protocol to explore and advance MLLMs' fine-grained visual capabilities.
20
+
21
+ We first develop an automated algorithm to transform existing datasets into annotation trajectories. Using the trajectories, we fine-tune MLLMs, resulting in our model, SegAgent. Our experiments show that, after fine-tuning, various MLLMs achieve performance comparable to state-of-the-art methods. Additionally, we demonstrate that SegAgent not only excels at segmentation tasks but also supports mask refinement and annotation filtering effectively.
22
+
23
+ Furthermore, HLMAT, as a multi-step decision-making task, directly assesses pixel-level visual skills, unlike prior MLLM decision-making tasks that focus primarily on textual reasoning [63] or simple UI-based operations [1]. Our study lays the foundation for exploring MLLMs as vision-centered, multi-step decision-making agents, addressing the gap in pixel-level visual understanding in multi-step contexts. In this work, we first examine commonly used referring segmentation datasets like RefCOCO [57] and find that their annotation complexity and quality are insufficient for multi-step decision-making. To support deeper exploration, we introduce high-quality reference segmentation datasets.
24
+
25
+ Next, we investigate whether certain enhancement methods for text-based LLM decision-making can be adapted to our proposed HLMAT task. We select StaR [62], a straightforward yet representative RL-style policy improvement method, and modify it for our purposes. Our findings reveal that incorporating the StaR algorithm, as opposed to solely relying on SFT data, significantly improves the model's performance on the test dataset. Additionally, inspired by frameworks such as Tree-of-Thoughts [55], we explore inference-stage techniques. By combining process reward modeling (PRM) [22, 30] with tree search,
26
+
27
+ we demonstrate that for complex scene segmentation tasks, implementing tree search effectively mitigates errors arising from inaccurate predictions, substantially enhancing the model's robustness in challenging segmentation scenarios. This work lays a strong foundation for advancing vision-centered, multi-step decision-making agents in future research.
28
+
29
+ Our main contributions are as follows:
30
+
31
+ - We propose Human-Like Mask Annotation Task (HLMAT), a new segmentation framework where MLLMs imitate human annotators using interactive tools, modeled as a multi-step Markov Decision Process. HLMAT raises pixel understanding demands and only requires text-based coordinate outputs, allowing fair comparison across MLLMs and serving as a new protocol for fine-grained visual capability assessment.
32
+ - Using an automated algorithm to generate human-like annotation trajectories from existing datasets, we fine-tune MLLMs to create SegAgent. Experiments show SegAgent achieves competitive performance, supporting segmentation, mask refinement, and annotation filtering.
33
+ - HLMAT lays a foundation for multi-step, vision-centered decision-making research. We introduce the HRES dataset, suitable for complex reasoning, and demonstrate that text-based decision improvement methods like StaR+ (training) and tree search with PRM (inference) effectively enhance segmentation performance.
34
+
35
+ # 2. Related Work
36
+
37
+ # 2.1. Pixel Understanding in MLLMs
38
+
39
+ Many studies have explored pixel understanding in MLLMs by combining these models with segmentation tasks. However, most approaches [17, 38, 39, 61, 65, 67] require MLLMs to learn an implicit token and involve additional fine-tuning with a separate pixel decoder. Among them, LISA [17] was the first to integrate MLLMs with SAM [15], while subsequent works [38, 67] introduced additional tasks and larger training datasets, so we did not include them in our experimental comparisons. Other methods attempt to let MLLMs perform segmentation through text-based outputs, such as using polygon vertex sequences [36] or randomly sampled points [9] where the model predicts if a point lies within the mask. However, this approach inherently limits mask precision. Our work, on the other hand, achieves segmentation by imitating the trajectory of human annotators using interactive segmentation tools. This approach enables the model to perform highly detailed segmentation tasks through simple text-based outputs.
40
+
41
+ # 2.2. MLLMs as Decision-Making Agents
42
+
43
+ In the text domain, extensive research has explored how to adopt LLMs as decision-making agents and enhance
44
+
45
+ their reasoning and decision-making capabilities. Some works [48, 53, 54] improve LLM reasoning through prompt engineering during inference, while others [62, 69] investigate policy improvement methods during training. However, research on decision-making agents in the visual domain remains limited. A few studies integrate MLLMs [7, 32] into training processes, but they train simple MLP or transformer layers to align action spaces without using text-based actions.
46
+
47
+ As RL4VLM [63] emphasized, prior work primarily examined MLLM capabilities in non-interactive tasks. RL4VLM represents the first systematic approach to fine-tuning an entire VLM as a decision-making agent using reinforcement learning, directly interacting with the environment through open-ended text. Our work shares this advantage, offering a novel perspective on evaluating MLLM decision-making in interactive tasks. However, unlike RL4VLM, which focuses on poker-like tasks that are primarily text-based, our proposed task directly involves fine-grained visual perception, laying the groundwork for further exploration of vision-centered, multi-step decision-making agents.
48
+
49
+ # 2.3. Interactive Segmentation Tools
50
+
51
+ The objective of interactive segmentation [8, 10, 13, 27, 42] is to segment regions of interest based on user-provided inputs, such as clicks, boxes, and scribbles. RITM [42] leverages COCO [3] and LVIS [12] as training data, achieving substantial segmentation quality. SimpleClick [27] was the first to explore the application of plain Vision Transformers (ViT) in interactive segmentation. InterFormer [13] decouples feature encoding and prompt fusion, effectively mitigating the high-latency issue observed in SimpleClick. SAM [15] adopts a similar design, trained on the large-scale SA1B dataset, and achieves notable generalization capabilities, supporting box inputs. However, existing interactive segmentation models, while capable of generating accurate masks, require human input. In contrast, our work aims to teach MLLMs to perform segmentation by imitating human annotators using interactive segmentation tools.
52
+
53
+ # 3. Preliminaries and Task Formulation
54
+
55
+ Given an image $I$ and a text prompt $P$ , a professional human annotator is able to accurately draw the mask $M$ corresponding to the object indicated by the text prompt $P$ . However, drawing the mask $M$ directly is time-intensive. Modern annotators commonly utilize an interactive segmentation tool, iteratively providing a series of positive and negative click points based on the current image $I$ and mask $M$ , making it easier to create a high-quality mask. This entire process can be modeled as a Markov Decision Process (MDP) consisting of $(S, A, T, R, \gamma)$ , where:
56
+
57
+ - State $s_t \in S$ : Represents the current status of the mask
58
+
59
+ $M_{t}$ in the segmentation process, along with the history of all previous actions $a_{0:t - 1}$ , i.e., $s_t = (M_t,a_{0:t - 1})$ . The initial state $s_0$ corresponds to an empty mask, while the goal state $s_{\mathrm{goal}}$ corresponds to the optimal target mask $M_{\mathrm{target}}$ .
60
+
61
+ - Action $a_{t} \in \mathcal{A}$ : Here, each action $a_{t}$ refers to an annotator's click operation, consisting of two components: an attribute $\alpha_{t}$ and a coordinate $\mathbf{c}_{t}$ . The attribute $\alpha_{t} \in \{+1, -1\}$ indicates whether the point is a positive or negative click, while the coordinate $\mathbf{c}_{t} \in [0,1]^{2}$ represents the relative position of the point within the image, scaled to the [0, 1] range for both $x$ and $y$ axes.
62
+
63
+ - Transition Function $T: \mathcal{S} \times \mathcal{A} \rightarrow \mathcal{S}$ : Represents the environment's response to the current state-action pair $(s_t, a_t)$ , mapping it to the next state $s_{t+1}$ . In this task, the environment's response is determined by the input image $I$ and the interactive segmentation network $F_{iter}$ . Specifically, the next mask $M_{t+1}$ is generated by $F_{iter}(I, s_t, a_t)$ , with $s_{t+1} = (M_{t+1}, a_{0:t})$ .
64
+
65
+ - Reward Function $R: \mathcal{S} \to \mathbb{R}$ : The reward function evaluates the accuracy of the current mask $M_t$ relative to the target mask $M_{\text{target}}$ using the Intersection over Union (IoU) metric. Specifically, $R(s_t) = \mathrm{IoU}(M_t, M_{\text{target}})$ , where a higher IoU score indicates a better match between $M_t$ and $M_{\text{target}}$ .
66
+
67
+ Since we are focused solely on the quality of the final mask, we omit the discount factor $\gamma$ in our setup. Given that the action space can be fully represented by text, and the state space can be fully represented by images, a competent MLLM should be able to perform this task as effectively as a human annotator. Our objective is to train a policy $\pi_{\theta}(a_t|s_t,I,P)$ for the MLLM that, given an image $I$ and a text prompt $P$ , outputs an action $a_{t}$ at each time step $t$ . The goal is to maximize the expected reward $R(s_{T})$ within a limited number of steps $T$ . We refer to this as the Human-Like Mask Annotation Task (HLMAT). In practice, to enable the MLLM to support more flexible use cases—such as mask refinement—we remove the dependency on $a_{0:t-1}$ in $s_{t}$ , allowing the model to determine the next action based solely on the current mask $M_{t}$ .
68
+
69
+ # 4. SegAgent
70
+
71
+ As mentioned in Sec. 3, our goal is to train an MLLM to learn a policy $\pi_{\theta}(a_t|s_t,I,P)$ that imitates the annotator's trajectory. In practice, to enable the MLLM to support more flexible use cases—such as mask refinement—we remove the dependency on $a_{0:t-1}$ in $s_t$ , allowing the model to determine the next action based solely on the current mask $M_t$ , so the policy becomes $\pi_{\theta}(a_t|M_t,I,P)$ .
72
+
73
+ As illustrated in Fig. 1, the current mask $M_{t}$ and the original image $I$ are processed as visual inputs to the MLLM. Following common visualization techniques used by human annotators, we overlay the current segmentation result $M_{t}$
74
+
75
+ ![](images/24c161d13ca27450c1c9d4d8ef95c8d4bfaa5852ebe07a81458301e3f6294238.jpg)
76
+ Figure 1. The overall framework of SegAgent. The image below shows a complete set of trajectories. We visualize current action $a_{t}$ and the resulting mask $M_{t + 1}$ in one image.
77
+
78
+ as a semi-transparent green mask on the original image $I$ to create a new composite image $I_{t}$ . This image $I_{t}$ serves as the final input for the MLLM, allowing the model to simultaneously perceive information about $M_{t}$ and $I$ in a single frame.
79
+
80
+ The text input $P$ to the MLLM includes two key components: (1) a description of the task and action space, and (2) a description of the target object to be segmented. This prompt design provides the model with context about the overall objective and the segmentation target, ensuring it can interpret both the visual input and the segmentation goal. Detailed prompt design can be found in the appendix.
81
+
82
+ After processing and analyzing the inputs, the MLLM outputs the next action $a_{t+1}$ in text format, such as "Positive point: (175,483)." The action is then converted into a format compatible with the interactive segmentation model via a predefined post-processing function. Subsequently, all previous actions $a_{0:t}$ , the current mask $M_t$ , and the original image $I$ are fed into the interactive segmentation model $F_{iter}$ , which generates the updated mask $M_{t+1}$ . This iterative process continues until the segmentation achieves a satisfactory result.
83
+
84
+ The remainder of this section is organized as follows: First, we describe our approach for collecting human-like annotation trajectories (Sec. 4.1). Next, we analyze the two essential capabilities that a robust SegAgent should possess (Sec. 4.2). Inspired by traditional RL-style policy improvement methods, we then adapt the StaR method to our task (Sec. 4.3). Finally, we combine the process reward model with tree search to enhance the model's robustness in complex scenarios (Sec. 4.4).
85
+
86
+ # 4.1. Human Annotator Trajectories Generation
87
+
88
+ Suppose we have an annotated dataset $D_{seg} = \{(I, M_{target}, P)\}$ , where each sample includes an image $I$ , a target mask $M_{target}$ , and a text prompt $P$ . Ideally, recording all state-action pairs $(s_t, a_t)$ in real-time during the human annotation process would yield the de
89
+
90
+ ![](images/c6d0af4aa8060dd1a4aecf3e0afa4b57ea3eabb72441a46a70ef894d0d16d99e.jpg)
91
+ Figure 2. An example of generated trajectory. We visualize current action $a_{t}$ and the resulting mask $M_{t + 1}$ in one image. Due to the noise from GT Mask, the action for Iteration 3,4 is meaningless
92
+
93
+ sired trajectory $[s_0, a_0, s_1, a_1, \dots, s_T, a_T]$ . However, existing datasets lack such trajectories, and re-hiring human annotators to annotate the data while recording trajectories would be very costly. Thus, we consider whether it is possible to derive the trajectory dataset $D_{traj} = \{(I, M_{target}, P, [s_0, a_0, s_1, a_1, \dots, s_T, a_T])\}$ from the existing dataset $D_{seg} = \{(I, M_{target}, P)\}$ using a rule-based method. Thanks to researchers in interactive segmentation, an iterative click simulation strategy has been developed to automate the evaluation of interactive segmentation models. This strategy can be understood as a function $F_{sim}$ , which takes as input the current mask $M_t$ and the ground truth mask $M_{target}$ , and outputs the next action $a_{t+1}$ , i.e., $a_{t+1} = F_{sim}(M_t, M_{target})$ . Specifically, this function computes the false positive and false negative regions between the current mask $M_t$ and the ground truth mask $M_{target}$ , placing the next click action at the center of the error region based on the size and position of these regions. With the help of function $F_{sim}(\ref{eq:2})$ , we can simulate trajectories $[s_0, a_0, s_1, a_1, \dots, s_T, a_T]$ based on $M_{target}$ . However, the annotation quality of $M_{target}$ may vary, potentially generating suboptimal trajectories. This issue is especially pronounced toward the end of a trajectory (see Fig. 2), where noise in $M_{target}$ can cause erroneous actions that misguide the MLLM during training. To address this, we introduce the following steps during generation:
94
+
95
+ - Limit Maximum Trajectory Length: We set a maximum trajectory length $T$ . For lower-quality datasets, we reduce $T$ to avoid excessive noisy actions at the trajectory's end.
96
+ - Terminate on Satisfactory Reward: We calculate the reward $R(s_{t})$ for the current state $s_{t}$ , and if $R(s_{t})$ reaches a threshold $\tau_{stop}$ , we terminate the trajectory generation.
97
+ - Discard Low-Impact Actions: We evaluate the reward difference before and after executing an action $a_{t}$ . If the reward difference $R(s_{t + 1}) - R(s_{t}) < \tau_{diff}$ , we discard action $a_{t}$ . This is because abnormal actions can cause the interactive segmentation model to collapse, significantly reducing the quality of the resulting mask $M_{t + 1}$ .
98
+
99
+ To accommodate segmentation datasets of varying quality, we can adjust these three parameters to reduce noise in the generated trajectories. Following this process, we can generate the annotation trajectory dataset $D_{traj}$ from the existing segmentation dataset $D_{seg}$ and use these data to fine-tune the MLLM through instruction tuning, resulting in our SegAgent.
100
+
101
+ # 4.2. What Makes a Good SegAgent?
102
+
103
+ Now that we have obtained the annotation trajectory dataset $D_{traj}$ , in theory, we can fine-tune any MLLM to become a SegAgent. Here, we identify that HLMAT primarily relates to two main competencies of an MLLM:
104
+
105
+ - Coarse-Grained Localization Ability Based on Text: This capability is primarily demonstrated when the MLLM executes the first or initial actions, where it must use the text prompt and global image context to locate the approximate position of the object. This is especially critical for complex or ambiguous prompts, such as "the second black motorcycle on the right." If the model fails in this initial localization, the final IoU score will likely be very low. This skill is closely related to tasks commonly known as Visual Grounding or Referring Expression Comprehension (REC), where previous work [2, 46] has shown that many different architectures of MLLMs can achieve good performance when trained on sufficient data. The only difference in our setup is that while other tasks typically output bounding box coordinates, our task supports point-based coordinates. Our experiments further reveal that the initial action can be represented as either a box or a point. However, this localization ability itself is not the primary focus of our work, as it has already been widely studied and optimized.
106
+
107
+ - Fine-Grained Pixel Understanding and Mask Refinement: This capability is demonstrated when the MLLM performs subsequent actions, where it must accurately adjust the mask boundaries based on the current mask and local image information to gradually improve mask quality. This process requires the model to have an exceptionally detailed perception and understanding of both the input image and mask, as well as the ability to make precise localization decisions during output. Few studies have focused on this fine-grained pixel understanding of MLLMs, making this a key focus of our research.
108
+
109
+ To better investigate the second capability, a complex and high-quality segmentation dataset is essential. Here, complexity refers to the requirement that the dataset should necessitate relatively long annotation trajectories to reach the predefined threshold $\tau_{stop}$ . High quality refers to minimal noise in annotations, ensuring accuracy at the trajectory endpoints. Our analysis of the commonly used Refcoco dataset revealed that it lacks the necessary complexity and annotation quality (see Sec. 5.2). Consequently, we select two alternative datasets that better meet these criteria: DIS5K [37] and ThinObject5K [21]. Our further exploration will primarily focus on these datasets.
110
+
111
+ # 4.3. Policy Improment
112
+
113
+ Training the MLLM with the annotation trajectory dataset $D_{traj}$ generated in Sec. 4.1 equips the model with foundational capabilities for the HLMAT task. However, because
114
+
115
+ Algorithm 1 SegAgent Policy Improvement with StaR+
116
+ 1: Input: SegAgent model trained generated trajectory dataset $D_{\mathrm{traj}} = \{(I^i,M_i^i,\mathcal{T}^i)\}_{i = 1}^m$
117
+ 2: $S_0\gets \mathrm{SegAgent}$ // Initialize SegAgent model
118
+ 3: $D_0\gets D_{\mathrm{traj}}$ // Initialize trajectory dataset
119
+ 4: for $n = 1$ to $N$ do
120
+ 5: $\hat{\mathcal{T}}^i\gets S_{n - 1}(I^i,M_i^i,\mathcal{T}^i)$ for all $i\in [1,m]$ // Generate trajectories
121
+ 6: $D_{n}\gets \{(I^{i},M_{\mathrm{target}}^{i},P^{i},\mathrm{Refine}(\hat{\mathcal{T}}^{i}))\}_{i = 1}^{m}$ //Filter and correct trajectories based on reward function and $F_{sim}$
122
+ 7: $S_{n}\gets \mathrm{train}(S_{0},D_{0}\cup D_{n})$ // Fine-tune on combined dataset
123
+ 8: end for
124
+
125
+ these generated trajectories are nearly optimal and lack diversity, the model's generalization and robustness remain constrained. It is worth noting that our framework can directly interact with the environment, allowing the MLLM to engage in online learning or offline reinforcement learning (RL) to continually refine its policy through interaction. In this paper, we choose to implement and explore a straightforward RL-style policy improvement method, specifically the StaR [62] algorithm.
126
+
127
+ As shown in Alg. 1, we start with a trained SegAgent model $S_0$ and the annotation trajectory dataset $D_{traj}$ . In each iteration, we first use $S_{n-1}$ to perform rollouts on the training images, generating a set of new trajectories $\hat{T}^i$ . Next, we filter and refine these trajectories based on the reward function and $F_{\mathrm{sim}}$ , producing an updated trajectory dataset $D_n$ . Finally, we merge $D_n$ with $D_{traj}$ and fine-tune the model on this combined dataset to obtain an improved SegAgent model $S_n$ . Unlike the original StaR algorithm (see comparison in Appendix), which filters based on the overall correctness of the trajectory, our StaR+ method calculates the reward change for each individual action. We retain actions that increase the reward, while for actions that decrease the reward, we replace them with actions generated by $F_{\mathrm{sim}}$ as corrections.
128
+
129
+ # 4.4. Process Reward Model and Tree Search
130
+
131
+ Process-supervised Reward Models [22] (PRM) refer to the techniques where a reward model is trained to evaluate the reward at each step of a multi-step task. PRM can guide the training process by integrating with approaches like RLHF [34] or reject sampling [60]. Previous work [30] has also shown that PRM can be used as guidance during the inference stage to enhance the model's search and reasoning capabilities.
132
+
133
+ In our work, since the reward at each step can be directly obtained from the environment during training, PRM is un
134
+
135
+ Algorithm 2 PRM with Heuristic Greedy Search
136
+ 1: Input: SegAgent model $S$ , image $I$ , text prompt $P$
137
+ 2: $M_0 \gets$ initialize_mask(I) // Initialize the mask
138
+ 3: $R_0 \gets \mathrm{PRM}(S, I, M_0, P)$ // Predict the initial reward
139
+ 4: for $t = 1$ to $T$ do
140
+ 5: $[a^1, a^2, \dots, a^K] \gets \text{get\_candidate}(S, I, M_{t-1}, P)$ // Get $K$ candidate actions
141
+ 6: for $i = 1$ to $K$ do
142
+ 7: $M^i \gets F_{iter}(I, M_{t-1}, a^i)$
143
+ 8: $R^i \gets \mathrm{PRM}(S, I, M^i, P)$
144
+ 9: end for
145
+ 10: best_index $\leftarrow \operatorname{argmax}(R^1, R^2, \dots, R^K)$ // Get the best action guided by PRM
146
+ 11: $M_t \gets M^{\text{best\_index}}$ // Predict the next mask
147
+ 12: $R_t \gets R^{\text{best\_index}}$ // Predict the next reward
148
+ 13: end for
149
+ 14: best_index $\leftarrow \operatorname{argmax}(R_0, R_1, \dots, R_T)$ // Get the best step
150
+ 15: return $M_{\text{best\_index}}$
151
+
152
+ necessary for the training phase. Therefore, we primarily explore the application of PRM techniques during the inference stage. There are two main reasons motivating our use of PRM techniques:
153
+
154
+ - Providing a Stop Signal: We use PRM to provide a stop signal for the task. An alternative approach would be to add a stop action to the action space, but this would increase the complexity of the action space, thereby increasing the difficulty of model training. This is especially challenging when $M_{\text{target}}$ contains noise, as it becomes difficult to determine the exact stopping point, making it hard for the model to generate an accurate stop action. By directly predicting the reward, PRM allows the model to decide when to stop without adding complexity to the action space.
155
+ - Enhancing Robustness in Complex Scenarios: In complex scenarios, since the model cannot backtrack or undo actions, executing an inaccurate or incorrect action at any step can adversely affect subsequent actions, leading to lower quality in the final result. With the help of PRM, we can combine the model with advanced search strategies, such as Breadth-First Search (BFS) and Monte Carlo Tree Search (MCTS), to improve the model's robustness in complex situations.
156
+
157
+ We implement PRM by asking the MLLM perform an additional text prediction, where the MLLM learns to predict the mIoU score of the current state before generating the next action, for example, "Current mIoU: 0". Based on this, we design a simple heuristic greedy search strategy, as shown in Alg. 2. At each step, we first use Multino
158
+
159
+ mial Sampling to generate $K$ candidate actions. For each action, we perform one interaction with the segmentation model to obtain a new mask and calculate the reward using PRM. Finally, we select the action with the highest reward as the next action. This process continues until the maximum number of steps $T$ is reached or until the reward converges. We then return the mask with the highest reward as the final output. A more detailed illustration can be found in the appendix. Note that, in the algorithm description, we omit the historical actions included in the input of $F_{iter}$ for simplicity. It is worth noting that more complex search strategies, such as BFS and MCTS, are also feasible. However, there exists a trade-off between computational complexity and performance. Our experiments demonstrate that the simplest and most efficient heuristic greedy search strategy already provides significant performance improvements. We leave the exploration of more complex search strategies for future work.
160
+
161
+ # 5. Experiments
162
+
163
+ # 5.1. Evaluation Protocol
164
+
165
+ As mentioned earlier, HLMAT serves as a novel evaluation protocol for assessing and advancing MLLMs' fine-grained pixel understanding capabilities. It also provides a framework to explore MLLMs as vision-centered, multi-step decision-making agents. We select two representative MLLMs as initialization models for SegAgent: a linear projector-based model, LLaVA-v1.5-7B [24, 25], and a stronger Q-former-based model, Qwen-VL-7B. We fine-tune each MLLM on the generated trajectory dataset for 2 epochs, keeping the image encoder frozen while allowing the LLM and projector layers to update. We use DeepSpeed's Zero2 mode for multi-GPU training, with all training experiments conducted on 8 NVIDIA 80GB GPUs.
166
+
167
+ Other training parameters follow the default settings provided by the official repositories; details can be found in the Appendix. We used two main interactive segmentation models for this task: SimpleClick [27] and SAM [15]. SimpleClick supports point input only, while SAM also supports box input. During trajectory generation, we created trajectories for both segmentation models. As discussed in Sec. 4.2, SegAgent's first action can be either a point or a box. Our preliminary experiments demonstrated that SAM achieves better performance when provided with an additional box input. Therefore, unless otherwise specified, we include box input when using SAM in subsequent experiments.
168
+
169
+ We conduct experiments in two settings: the widely adopted Referring Expression Segmentation (RES) and our newly proposed High-quality Referring Expression Segmentation (HRES).
170
+
171
+ For inference evaluation, we set a fixed maximum num
172
+
173
+ Table 1. Comparison of methods on RES dataset. We indicate which models use SAM. "SClick" denotes the use of SimpleClick as the interactive segmentation model.
174
+
175
+ <table><tr><td rowspan="2">Method</td><td rowspan="2">Venue</td><td colspan="3">refCOCO</td><td colspan="3">refCOCO+</td><td colspan="2">refCOCOg</td></tr><tr><td>val</td><td>testA</td><td>testB</td><td>val</td><td>testA</td><td>testB</td><td>val(U)</td><td>test(U)</td></tr><tr><td colspan="10">traditional methods</td></tr><tr><td>MAttNet [59]</td><td>CVPR&#x27;18</td><td>56.51</td><td>62.37</td><td>51.70</td><td>46.67</td><td>52.39</td><td>40.08</td><td>47.64</td><td>48.61</td></tr><tr><td>LAVT [51]</td><td>CVPR&#x27;22</td><td>72.7</td><td>75.8</td><td>68.8</td><td>62.1</td><td>68.4</td><td>55.1</td><td>61.2</td><td>62.1</td></tr><tr><td>CRIS [47]</td><td>CVPR&#x27;22</td><td>70.5</td><td>73.2</td><td>66.1</td><td>65.3</td><td>68.1</td><td>53.7</td><td>59.9</td><td>60.4</td></tr><tr><td>PolyFormer-L [26]</td><td>CVPR&#x27;23</td><td>76.94</td><td>78.49</td><td>74.83</td><td>72.15</td><td>75.71</td><td>66.73</td><td>71.15</td><td>71.17</td></tr><tr><td>X-Decoder [73]</td><td>CVPR&#x27;23</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>64.6</td><td>-</td></tr><tr><td>SEEM [74]</td><td>NeurIPS&#x27;23</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>65.7</td><td>-</td></tr><tr><td colspan="10">LLM based methods</td></tr><tr><td>LISA(SAM) [16]</td><td>CVPR&#x27;24</td><td>74.9</td><td>79.1</td><td>72.3</td><td>65.1</td><td>70.8</td><td>58.1</td><td>67.9</td><td>70.6</td></tr><tr><td>PixelLM [39]</td><td>CVPR&#x27;24</td><td>73.0</td><td>76.5</td><td>68.2</td><td>66.3</td><td>71.7</td><td>58.3</td><td>69.3</td><td>70.5</td></tr><tr><td>PerceptionGPT [35]</td><td>CVPR&#x27;24</td><td>75.1</td><td>78.6</td><td>71.7</td><td>68.5</td><td>73.9</td><td>61.3</td><td>70.3</td><td>71.7</td></tr><tr><td>GSVA(SAM) [49]</td><td>CVPR&#x27;24</td><td>77.2</td><td>78.9</td><td>73.5</td><td>65.9</td><td>69.6</td><td>59.8</td><td>72.7</td><td>73.3</td></tr><tr><td>SAM4MLLM(Qwen) [9]</td><td>ECCV&#x27;24</td><td>77.1</td><td>80.9</td><td>72.5</td><td>71.5</td><td>76.8</td><td>64.7</td><td>74.5</td><td>75.2</td></tr><tr><td>Qwen box [2] + SAM</td><td>-</td><td>71.79</td><td>75.20</td><td>67.29</td><td>65.39</td><td>71.62</td><td>59.12</td><td>66.93</td><td>68.94</td></tr><tr><td colspan="10">Our methods</td></tr><tr><td>SegAgent-LLaVA+SAM</td><td></td><td>79.20</td><td>81.44</td><td>75.72</td><td>71.53</td><td>76.68</td><td>65.44</td><td>74.80</td><td>74.90</td></tr><tr><td>SegAgent-Qwen+SAM</td><td></td><td>78.01</td><td>80.34</td><td>74.98</td><td>70.86</td><td>75.52</td><td>65.75</td><td>74.49</td><td>74.62</td></tr><tr><td>SegAgent-LLaVA+SClick</td><td>this work</td><td>77.81</td><td>80.03</td><td>74.12</td><td>66.73</td><td>71.16</td><td>59.89</td><td>70.45</td><td>71.25</td></tr><tr><td>SegAgent-Qwen+SClick</td><td></td><td>79.69</td><td>81.35</td><td>76.57</td><td>72.49</td><td>75.80</td><td>66.89</td><td>75.11</td><td>75.20</td></tr></table>
176
+
177
+ ber of steps $T$ and, following LISA [16], used cumulative IoU (cIoU) as the evaluation metric. For RES, due to its relatively simple masks, we set $T = 7$ and $K = 1$ in Alg. 2. For HRES, with more complex segmentation requirements, we set $T = 11$ and $K = 3$ .
178
+
179
+ # 5.2. Datasets
180
+
181
+ We first conduct a fair comparison between our method and other state-of-the-art (SOTA) methods on the Referring Expression Segmentation (RES) dataset to demonstrate the effectiveness of our approach. Subsequently, we extend our method to more complex scenarios by experimenting on the proposed High-quality Referring Expression Segmentation (HRES) dataset. We begin by introducing the basic information of these two datasets and analyzing their characteristics to highlight the necessity of using the HRES dataset.
182
+
183
+ Referring Expression Segmentation (RES): The RES dataset is composed of three subsets: refCOCO [58], refCOCO+ [58], and refCOCOg [31]. All three datasets are based on images from the COCO dataset, with differences in the types of referring expressions provided. RefCOCO is the earliest dataset, featuring relatively simple descriptions. Compared to RefCOCO, RefCOCO+ prohibits annotators from using location-based descriptions, making the descriptions more focused on object appearance and attributes. RefCOCOg includes longer descriptions with more detailed information. However, the mask quality in refCOCO(+/g) is relatively low, with many masks containing significant noise. This makes it challenging to generate long and precise annotation trajectories. On the other hand, the complexity of the datasets does not meet the requirements for
184
+
185
+ ![](images/01b01f9f32ba8e4bd6bee0f69d3c519bbea38cd639967d63af561b422312a37d.jpg)
186
+ Figure 3. Comparison of dataset complexity.
187
+
188
+ the multi-step iteration in HLMAT. In most cases, only 1-2 steps are sufficient to complete the task.
189
+
190
+ To address these limitations, we introduce a new dataset, the High-quality Referring Expression Segmentation (HRES) dataset, designed to facilitate further exploration and better assess the performance of MLLMs under more complex conditions.
191
+
192
+ High-quality Referring Expression Segmentation (HRES): Our proposed HRES dataset features higher annotation quality, with more detailed and complex masks, which require additional steps to complete. The data in HRES is derived from the HQSeg-44K dataset proposed by HQ-SAM [14]. We selected two subsets, DIS5K [37] and ThinObject5K [21], as they contain texts or category descriptions with minimal ambiguity. The DIS5K (Dichotomous Image Segmentation) subset consists of high-resolution images and high-quality binary segmentation masks, specifically designed to handle challenging segmentation tasks. It includes 5,470 images spanning 22 groups and 225 fine-grained object categories. The ThinObject5K
193
+
194
+ subset focuses on objects with thin, elongated structures, such as insect legs and bicycle spokes, which are typically challenging for segmentation models.
195
+
196
+ As shown in Fig. 3, we use the number of clicks (required to reach the target IoU) as a measure of dataset complexity. The HRES dataset is significantly more complex than the RES dataset, requiring more steps to achieve the target IoU.
197
+
198
+ # 5.3. Main Results
199
+
200
+ In this section, we present the main results of SegAgent on the HLMAT task, comparing it with other state-of-the-art (SOTA) methods on RES datasets in Tab. 1. We compare SegAgent with both traditional and LLM-based methods. Our results demonstrate that SegAgent achieves competitive IoU scores, particularly SegAgent-LLaVA+SAM and SegAgent-Qwen+SClick, which outperforms all other methods except for GLaMM.
201
+
202
+ We also implement a simple baseline method, Qwen box + SAM, by leveraging Qwen-VL's grounding capability to obtain a bounding box, which is then passed to SAM to generate the mask. For fair comparison, our SegAgent-LLaVA(Qwen) + SAM also uses the same box as the initial action to evaluate SegAgent's ability to refine the mask. Results show that SegAgent-LLaVA(Qwen) + SAM outperforms the Qwen box + SAM baseline across all datasets, indicating that our approach effectively refines the mask.
203
+
204
+ An interesting observation is that although Qwen is trained on a larger dataset and generally outperforms LLaVA on standard vision-language tasks, LLaVA surpasses Qwen in mask refinement capability. We attribute this to Qwen's reliance on the Q-former structure, which appears to struggle with pixel-level tasks. Recent studies [5, 52] have reported similar limitations, suggesting that the vanilla QFormer might lose spatial locality during semantic abstraction. We envision HLMAT as a future protocol for assessing MLLM's fine-grained pixel-level visual abilities, inspiring further exploration into improving the pixel-level understanding abilities of these models.
205
+
206
+ Additionally, when using SimpleClick as the interactive segmentation model, we observe that SegAgent-Qwen significantly outperforms SegAgent-LLaVA. This aligns with the first capability discussed in Sec. 4.2, as it plays a more dominant role here. Qwen's pretraining on large-scale visual grounding tasks gives it an advantage in locating the target during the initial interactions, leading to better overall performance.
207
+
208
+ # 5.4. Exploration on More Complex Scenarios
209
+
210
+ As discussed in Sec. 5.2, we validate our proposed PolicyImprovement strategy, as well as the effectiveness of PRM and Tree Search, on a more complex and accurate dataset. Here, we take the model fine-tuned on generated trajectories
211
+
212
+ ![](images/b398af5bb3872cf07ece9f048a058bcff88cea84cf5c59628d9c30d7ca76b45d.jpg)
213
+ Figure 4. Comparison of different strategies on the HRES dataset with SFT (Supervised Fine-Tuning) and apply a fixed-step greedy decoding during testing as our baseline.
214
+
215
+ Policy-Improvement Strategies: As mentioned in Alg. 1, we use the baseline model trained on generated trajectories, and then conduct policy improvement using $\mathrm{StaR + }$ to enhance the model's performance. Although we only use a single round of $\mathrm{StaR + }$ , we find that this strategy significantly improves the model's performance. The improvement is particularly pronounced on the ThinObject5K dataset, where our model achieves an IoU of 86.57 compared to the baseline IoU of 71.45.
216
+
217
+ PRM and Tree Search: As shown in the figure, introducing PRM as a stopping signal improves model performance compared to the baseline, which relies on fixed-step greedy decoding. Specifically, with PRM alone (equivalent to setting $K = 1$ ), the model performance on DIS increases by 2.36 and on ThinObject by 4.09. Furthermore, when we set $K = 3$ and apply our proposed Tree Search algorithm, the model performance is further enhanced, achieving an additional increase of 7.43 on DIS and 10.59 on ThinObject compared to using only PRM. These results align with our hypothesis that Tree Search effectively prevents the model from getting trapped in local optima when making uncertain actions, thus boosting performance in complex scenarios.
218
+
219
+ # 6. Conclusion
220
+
221
+ In this work, we introduced the Human-Like Mask Annotation Task (HLMAT), a novel segmentation paradigm that models MLLMs as multi-step decision-making agents, imitating human annotation paths in interactive segmentation. Through HLMAT, we assess and enhance MLLMs' pixel-level understanding without requiring additional model structures. We developed SegAgent by fine-tuning MLLMs on human-like trajectories and demonstrated its competitive performance across various segmentation tasks, including mask refinement and annotation filtering. Additionally, we introduced the high-quality HRES dataset and showed that decision-enhancement techniques like $\mathrm{StaR + }$ and tree search with PRM can further boost performance. Our study paves the way for future exploration of vision-centered, multi-step decision-making with MLLMs.
222
+
223
+ # Acknowledgement
224
+
225
+ This work is in part supported by the National Key R&D Program of China(No. 2022ZD0160101) and the National Natural Science Foundation of China (No. 62206244). This work is also supported by Ant Group Research Intern Program.
226
+
227
+ # References
228
+
229
+ [1] Hao Bai, Yifei Zhou, Mert Cemri, Jiayi Pan, Alane Suhr, Sergey Levine, and Aviral Kumar. Digirl: Training in-the-wild device-control agents with autonomous reinforcement learning. arXiv preprint arXiv:2406.11896, 2024.
230
+ [2] Jinze Bai, Shuai Bai, Shusheng Yang, Shijie Wang, Sinan Tan, Peng Wang, Junyang Lin, Chang Zhou, and Jingren Zhou. Qwen-vl: A frontier large vision-language model with versatile abilities. arXiv preprint arXiv:2308.12966, 2023.
231
+ [3] Holger Caesar, Jasper Uijlings, and Vittorio Ferrari. Cocostuff: Thing and stuff classes in context. In CVPR, 2018.
232
+ [4] Shengcao Cao, Liang-Yan Gui, and Yu-Xiong Wang. Emerging pixel grounding in large multimodal models without grounding supervision. arXiv preprint arXiv:2410.08209, 2024.
233
+ [5] Junbum Cha, Wooyoung Kang, Jonghwan Mun, and Byungseok Roh. Honeybee: Locality-enhanced projector for multimodal llm. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13817-13827, 2024.
234
+ [6] Ting Chen, Saurabh Saxena, Lala Li, Tsung-Yi Lin, David J Fleet, and Geoffrey E Hinton. A unified sequence interface for vision tasks. Advances in Neural Information Processing Systems, 35:31333-31346, 2022.
235
+ [7] William Chen, Oier Mees, Aviral Kumar, and Sergey Levine. Vision-language models provide promptable representations for reinforcement learning. arXiv preprint arXiv:2402.02651, 2024.
236
+ [8] Xi Chen, Zhiyan Zhao, Yilei Zhang, Manni Duan, Donglian Qi, and Hengshuang Zhao. Focalclick: Towards practical interactive image segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1300-1309, 2022.
237
+ [9] Yi-Chia Chen, Wei-Hua Li, Cheng Sun, Yu-Chiang Frank Wang, and Chu-Song Chen. Sam4mllm: Enhance multimodal large language model for referring expression segmentation. In European Conference on Computer Vision, pages 323-340. Springer, 2025.
238
+ [10] Henghui Ding, Scott Cohen, Brian Price, and Xudong Jiang. Phraseclick: toward achieving flexible interactive segmentation by phrase and click. In Computer Vision-ECCV 2020: 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part III 16, pages 417-435. Springer, 2020.
239
+ [11] Chengxiang Fan, Muzhi Zhu, Hao Chen, Yang Liu, Weijia Wu, Huaqi Zhang, and Chunhua Shen. Divergen: Improving instance segmentation by learning wider data distribution with more diverse generative data. In Proceedings of
240
+
241
+ the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3986-3995, 2024.
242
+ [12] Agrim Gupta, Piotr Dollar, and Ross Girshick. Lvis: A dataset for large vocabulary instance segmentation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 5356-5364, 2019.
243
+ [13] You Huang, Hao Yang, Ke Sun, Shengchuan Zhang, Liujuan Cao, Guannan Jiang, and Rongrong Ji. Interformer: Real-time interactive image segmentation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 22301-22311, 2023.
244
+ [14] 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, 2024.
245
+ [15] Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C Berg, Wan-Yen Lo, et al. Segment anything. arXiv preprint arXiv:2304.02643, 2023.
246
+ [16] Xin Lai, Zhuotao Tian, Yukang Chen, Yanwei Li, Yuhui Yuan, Shu Liu, and Jiaya Jia. Lisa: Reasoning segmentation via large language model. arXiv preprint arXiv:2308.00692, 2023.
247
+ [17] Xin Lai, Zhuotao Tian, Yukang Chen, Yanwei Li, Yuhui Yuan, Shu Liu, and Jiaya Jia. Lisa: Reasoning segmentation via large language model. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9579-9589, 2024.
248
+ [18] Mengcheng Lan, Chaofeng Chen, Yue Zhou, Jiaxing Xu, Yiping Ke, Xinjiang Wang, Litong Feng, and Wayne Zhang. Text4seg: Reimagining image segmentation as text generation, 2024.
249
+ [19] Junnan Li, Dongxu Li, Caiming Xiong, and Steven Hoi. Blip: Bootstrapping language-image pre-training for unified vision-language understanding and generation. In International Conference on Machine Learning, pages 12888-12900. PMLR, 2022.
250
+ [20] Junnan Li, Dongxu Li, Silvio Savarese, and Steven Hoi. Blip-2: Bootstrapping language-image pre-training with frozen image encoders and large language models. arXiv preprint arXiv:2301.12597, 2023.
251
+ [21] Jun Hao Liew, Scott Cohen, Brian Price, Long Mai, and Ji-ashi Feng. Deep interactive thin object selection. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages 305–314, 2021.
252
+ [22] Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let's verify step by step. arXiv preprint arXiv:2305.20050, 2023.
253
+ [23] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dólar, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In ECCV, 2014.
254
+ [24] Haotian Liu, Chunyuan Li, Yuheng Li, and Yong Jae Lee. Improved baselines with visual instruction tuning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 26296-26306, 2024.
255
+
256
+ [25] Haotian Liu, Chunyuan Li, Yuheng Li, Bo Li, Yuanhan Zhang, Sheng Shen, and Yong Jae Lee. Llava-last: Improved reasoning,OCR, and world knowledge, 2024.
257
+ [26] Jiang Liu, Hui Ding, Zhaowei Cai, Yuting Zhang, Ravi Kumar Satzoda, Vijay Mahadevan, and R Manmatha. Polyformer: Referring image segmentation as sequential polygon generation. In CVPR, 2023.
258
+ [27] Qin Liu, Zhenlin Xu, Gedas Bertasius, and Marc Niethammer. Simpleclick: Interactive image segmentation with simple vision transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 22290-22300, 2023.
259
+ [28] Yang Liu, Muzhi Zhu, Hengtao Li, Hao Chen, Xinlong Wang, and Chunhua Shen. Matcher: Segment anything with one shot using all-purpose feature matching. arXiv preprint arXiv:2305.13310, 2023.
260
+ [29] Yang Liu, Chenchen Jing, Hengtao Li, Muzhi Zhu, Hao Chen, Xinlong Wang, and Chunhua Shen. A simple image segmentation framework via in-context examples. Advances in Neural Information Processing Systems, 37:25095-25119, 2025.
261
+ [30] Qianli Ma, Haotian Zhou, Tingkai Liu, Jianbo Yuan, Pengfei Liu, Yang You, and Hongxia Yang. Let's reward step by step: Step-level reward model as the navigators for reasoning. arXiv preprint arXiv:2310.10080, 2023.
262
+ [31] Junhua Mao, Jonathan Huang, Alexander Toshev, Oana Camburu, Alan L Yuille, and Kevin Murphy. Generation and comprehension of unambiguous object descriptions. In CVPR, 2016.
263
+ [32] Yao Mu, Qinglong Zhang, Mengkang Hu, Wenhai Wang, Mingyu Ding, Jun Jin, Bin Wang, Jifeng Dai, Yu Qiao, and Ping Luo. Embodiedgpt: Vision-language pretraining via embodied chain of thought. arXiv preprint arXiv:2305.15021, 2023.
264
+ [33] OpenAI. Gpt-4, 2023.
265
+ [34] Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feedback. Advances in Neural Information Processing Systems, 35: 27730-27744, 2022.
266
+ [35] Renjie Pi, Lewei Yao, Jiahui Gao, Jipeng Zhang, and Tong Zhang. Perceptiongpt: Effectively fusing visual perception into llm. CVPR, 2024.
267
+ [36] Shraman Pramanick, Guangxing Han, Rui Hou, Sayan Nag, Ser-Nam Lim, Nicolas Ballas, Qifan Wang, Rama Chellappa, and Amjad Almahairi. Jack of all tasks master of many: Designing general-purpose coarse-to-fine vision-language model. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 14076-14088, 2024.
268
+ [37] 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.
269
+ [38] Hanoona Rasheed, Muhammad Maaz, Sahal Shaji, Abdelrahman Shaker, Salman Khan, Hisham Cholakkal, Rao M
270
+
271
+ Answer, Eric Xing, Ming-Hsuan Yang, and Fahad S Khan. Glamm: Pixel grounding large multimodal model. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13009-13018, 2024.
272
+ [39] Zhongwei Ren, Zhicheng Huang, Yunchao Wei, Yao Zhao, Dongmei Fu, Jiashi Feng, and Xiaojie Jin. Pixel reasoning with large multimodal model. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 26374-26383, 2024.
273
+ [40] Mohit Shridhar, Jesse Thomason, Daniel Gordon, Yonatan Bisk, Winson Han, Roozbeh Mottaghi, Luke Zettlemoyer, and Dieter Fox. Alfred: A benchmark for interpreting grounded instructions for everyday tasks. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 10740-10749, 2020.
274
+ [41] Mennatullah Siam. Pixfoundation: Are we heading in the right direction with pixel-level vision foundation models? arXiv preprint arXiv:2502.04192, 2025.
275
+ [42] Konstantin Sofiuk, Ilya A Petrov, and Anton Konushin. Reviving iterative training with mask guidance for interactive segmentation. In 2022 IEEE International Conference on Image Processing (ICIP), pages 3141-3145. IEEE, 2022.
276
+ [43] Gemini Team, Rohan Anil, Sebastian Borgeaud, Yonghui Wu, Jean-Baptiste Alayrac, Jiahui Yu, Radu Soricut, Johan Schalkwyk, Andrew M Dai, Anja Hauth, et al. Gemini: a family of highly capable multimodal models. arXiv preprint arXiv:2312.11805, 2023.
277
+ [44] Shengbang Tong, Ellis Brown, Penghao Wu, Sanghyun Woo, Manoj Middepogu, Sai Charitha Akula, Jihan Yang, Shusheng Yang, Adithya Iyer, Xichen Pan, et al. Cambrian1: A fully open, vision-centric exploration of multimodal llms. arXiv preprint arXiv:2406.16860, 2024.
278
+ [45] Shengbang Tong, Zhuang Liu, Yuexiang Zhai, Yi Ma, Yann LeCun, and Saining Xie. Eyes wide shut? exploring the visual shortcomings of multimodal llms. arXiv preprint arXiv:2401.06209, 2024.
279
+ [46] Peng Wang, Shuai Bai, Sinan Tan, Shijie Wang, Zhihao Fan, Jinze Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, et al. Qwen2-vl: Enhancing vision-language model's perception of the world at any resolution. arXiv preprint arXiv:2409.12191, 2024.
280
+ [47] Zhaoqing Wang, Yu Lu, Qiang Li, Xunqiang Tao, Yandong Guo, Mingming Gong, and Tongliang Liu. Cris: Clip-driven referring image segmentation. In CVPR, 2022.
281
+ [48] Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. Chain-of-thought prompting elicits reasoning in large language models. Advances in Neural Information Processing Systems, 35:24824-24837, 2022.
282
+ [49] Zhuofan Xia, Dongchen Han, Yizeng Han, Xuran Pan, Shiji Song, and Gao Huang. Gsva: Generalized segmentation via multimodal large language models. CVPR, 2024.
283
+ [50] Senqiao Yang, Tianyuan Qu, Xin Lai, Zhuotao Tian, Bohao Peng, Shu Liu, and Jiaya Jia. An improved baseline for reasoning segmentation with large language model. arXiv preprint arXiv:2312.17240, 2023.
284
+
285
+ [51] Zhao Yang, Jiaqi Wang, Yansong Tang, Kai Chen, Hengshuang Zhao, and Philip HS Torr. Lavt: Language-aware vision transformer for referring image segmentation. In CVPR, 2022.
286
+ [52] Linli Yao, Lei Li, Shuhuai Ren, Lean Wang, Yuanxin Liu, Xu Sun, and Lu Hou. Deco: Decoupling token compression from semantic abstraction in multimodal large language models. arXiv preprint arXiv:2405.20985, 2024.
287
+ [53] Shunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran, Thomas L Griffiths, Yuan Cao, and Karthik Narasimhan. Tree of thoughts: Deliberate problem solving with large language models. arXiv preprint arXiv:2305.10601, 2023.
288
+ [54] Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik R Narasimhan, and Yuan Cao. React: Synergizing reasoning and acting in language models. In The Eleventh International Conference on Learning Representations, 2023.
289
+ [55] Shunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran, Tom Griffiths, Yuan Cao, and Karthik Narasimhan. Tree of thoughts: Deliberate problem solving with large language models. Advances in Neural Information Processing Systems, 36, 2024.
290
+ [56] Kaining Ying, Fanqing Meng, Jin Wang, Zhiqian Li, Han Lin, Yue Yang, Hao Zhang, Wenbo Zhang, Yuqi Lin, Shuo Liu, et al. Mmt-bench: A comprehensive multimodal benchmark for evaluating large vision-language models towards multitask agi. arXiv preprint arXiv:2404.16006, 2024.
291
+ [57] Licheng Yu, Patrick Poirson, Shan Yang, Alexander C Berg, and Tamara L Berg. Modeling context in referring expressions. In Computer Vision-ECCV 2016: 14th European Conference, Amsterdam, The Netherlands, October 11-14, 2016, Proceedings, Part II 14, pages 69-85. Springer, 2016.
292
+ [58] Licheng Yu, Patrick Poirson, Shan Yang, Alexander C Berg, and Tamara L Berg. Modeling context in referring expressions. In ECCV, 2016.
293
+ [59] Licheng Yu, Zhe Lin, Xiaohui Shen, Jimei Yang, Xin Lu, Mohit Bansal, and Tamara L Berg. Mattnet: Modular attention network for referring expression comprehension. In CVPR, 2018.
294
+ [60] Hongyi Yuan, Zheng Yuan, Chuanqi Tan, Wei Wang, Songfang Huang, and Fei Huang. Rrhf: Rank responses to align language models with human feedback. Advances in Neural Information Processing Systems, 36, 2024.
295
+ [61] Yuqian Yuan, Wentong Li, Jian Liu, Dongqi Tang, Xinjie Luo, Chi Qin, Lei Zhang, and Jianke Zhu. Osprey: Pixel understanding with visual instruction tuning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 28202-28211, 2024.
296
+ [62] Eric Zelikman, Yuhuai Wu, Jesse Mu, and Noah Goodman. Star: Bootstrapping reasoning with reasoning. Advances in Neural Information Processing Systems, 35:15476-15488, 2022.
297
+ [63] Yuexiang Zhai, Hao Bai, Zipeng Lin, Jiayi Pan, Shengbang Tong, Yifei Zhou, Alane Suhr, Saining Xie, Yann LeCun, Yi Ma, et al. Fine-tuning large vision-language models as decision-making agents via reinforcement learning. arXiv preprint arXiv:2405.10292, 2024.
298
+ [64] Jiwen Zhang, Jihao Wu, Yihua Teng, Minghui Liao, Nuo Xu, Xiao Xiao, Zhongyu Wei, and Duyu Tang. Android in the
299
+
300
+ zoo: Chain-of-action-thought for gui agents. arXiv preprint arXiv:2403.02713, 2024.
301
+ [65] Tao Zhang, Xiangtai Li, Hao Fei, Haobo Yuan, Shengqiong Wu, Shunping Ji, Chen Change Loy, and Shuicheng Yan. Omg-llava: Bridging image-level, object-level, pixel-level reasoning and understanding. arXiv preprint arXiv:2406.19389, 2024.
302
+ [66] Zhuosheng Zhang and Aston Zhang. You only look at screens: Multimodal chain-of-action agents. arXiv preprint arXiv:2309.11436, 2023.
303
+ [67] Zheng Zhang, Yeyao Ma, Enming Zhang, and Xiang Bai. Psalm: Pixelwise segmentation with large multi-modal model. In European Conference on Computer Vision, pages 74-91, 2024.
304
+ [68] Canyu Zhao, Mingyu Liu, Huanyi Zheng, Muzhi Zhu, Zhiyue Zhao, Hao Chen, Tong He, and Chunhua Shen. Disception: A generalist diffusion model for visual perceptual tasks. arXiv preprint arXiv:2502.17157, 2025.
305
+ [69] Banghua Zhu, Hiteshi Sharma, Felipe Vieira Frujeri, Shi Dong, Chenguang Zhu, Michael I Jordan, and Jiantao Jiao. Fine-tuning language models with advantage-induced policy alignment. arXiv preprint arXiv:2306.02231, 2023.
306
+ [70] Muzhi Zhu, Hengtao Li, Hao Chen, Chengxiang Fan, Weian Mao, Chenchen Jing, Yifan Liu, and Chunhua Shen. Seg-prompt: Boosting open-world segmentation via category-level prompt learning. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 999-1008, 2023.
307
+ [71] Muzhi Zhu, Chengxiang Fan, Hao Chen, Yang Liu, Weian Mao, Xiaogang Xu, and Chunhua Shen. Generative active learning for long-tailed instance segmentation. arXiv preprint arXiv:2406.02435, 2024.
308
+ [72] Muzhi Zhu, Yang Liu, Zekai Luo, Chenchen Jing, Hao Chen, Guangkai Xu, Xinlong Wang, and Chunhua Shen. Unleashing the potential of the diffusion model in few-shot semantic segmentation. arXiv preprint arXiv:2410.02369, 2024.
309
+ [73] Xueyan Zou, Zi-Yi Dou, Jianwei Yang, Zhe Gan, Linjie Li, Chunyuan Li, Xiyang Dai, Harkirat Behl, Jianfeng Wang, Lu Yuan, et al. Generalized decoding for pixel, image, and language. In CVPR, 2023.
310
+ [74] Xueyan Zou, Jianwei Yang, Hao Zhang, Feng Li, Linjie Li, Jianfeng Wang, Lijuan Wang, Jianfeng Gao, and Yong Jae Lee. Segment everything everywhere all at once. NeurIPS, 2024.
CVPR/2025/SegAgent_ Exploring Pixel Understanding Capabilities in MLLMs by Imitating Human Annotator Trajectories/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4504b95bfd7ff57e2a0848376dd4db737351534072797f69a3762fab981bef9
3
+ size 218265
CVPR/2025/SegAgent_ Exploring Pixel Understanding Capabilities in MLLMs by Imitating Human Annotator Trajectories/layout.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9c64ad5d4f2bceffd936462e3008f3f45396fdd4c502e366da929f93b9b5b9e
3
+ size 471885
CVPR/2025/SegEarth-OV_ Towards Training-Free Open-Vocabulary Segmentation for Remote Sensing Images/e16e969d-226c-408e-ac45-2cd707494957_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0de454325bc346c47f8e274f2a6b7eac2f9065c52c70345737c6a1da449069cb
3
+ size 90388
CVPR/2025/SegEarth-OV_ Towards Training-Free Open-Vocabulary Segmentation for Remote Sensing Images/e16e969d-226c-408e-ac45-2cd707494957_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:068e445dc830d985ac0ab99cd7ced620442bc8d56cd8cc9815cd30dbc34f005e
3
+ size 115598
CVPR/2025/SegEarth-OV_ Towards Training-Free Open-Vocabulary Segmentation for Remote Sensing Images/e16e969d-226c-408e-ac45-2cd707494957_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:10fca929ddc2554bb7a1dc3309926d4f9c0aa187e0295eee9d9325e2a150bfde
3
+ size 2129221
CVPR/2025/SegEarth-OV_ Towards Training-Free Open-Vocabulary Segmentation for Remote Sensing Images/full.md ADDED
@@ -0,0 +1,357 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SegEarth-OV: Towards Training-Free Open-Vocabulary Segmentation for Remote Sensing Images
2
+
3
+ Kaiyu Li $^{1}$ , Ruixun Liu $^{2}$ , Xiangyong Cao $^{2,4\dagger}$ , Xueru Bai $^{6}$ , Feng Zhou $^{6}$ , Deyu Meng $^{3,4,5}$ , Zhi Wang $^{1}$ $^{1}$ School of Software Engineering, Xi'an Jiaotong University, Xi'an, 710049, China
4
+ $^{2}$ School of Computer Science and Technology, Xi'an Jiaotong University, Xi'an, 710049, China
5
+ $^{3}$ School of Mathematics and Statistics, Xi'an Jiaotong University, Xi'an, 710049, China
6
+ $^{4}$ Ministry of Education Key Laboratory of Intelligent Networks and Network Security, Xi'an Jiaotong University, Xi'an, 710049, China
7
+ $^{5}$ Pengcheng Laboratory $^{6}$ Xidian University
8
+
9
+ ![](images/4c12ca0ce3e074ee06c160cf061cc53a4e212b25043051a242e4ba904ef576be.jpg)
10
+
11
+ ![](images/c77a0d8576e6add75545b3ca3562e0995a2f17372a4c43748c9e1cc827212b1a.jpg)
12
+ Figure 1. Visualization and performance of SegEarth-OV on open-vocabulary semantic segmentation of remote sensing images. We evaluate our SegEarth-OV on 17 remote sensing datasets (including semantic segmentation, building extraction, road extraction, and flood detection tasks), and our SegEarth-OV consistently generates high-quality segmentation masks.
13
+
14
+ ![](images/e51ddbbbc291eb43ee21a2584514a771b5990a78ac0eea8f82e577dab1b1ceee.jpg)
15
+
16
+ ![](images/d1fc99ced470f990d402b4ddc264696fc14422ce6fbe7b8931c2b5f33e681397.jpg)
17
+
18
+ ![](images/0d42cf80436a41f84bc4042d7c2ad7b123080c20f1b4ee1c148dd0a559b8e736.jpg)
19
+
20
+ ![](images/d63e08da74277d2dac19fe7e87f6ddcecec2d965dc0098dc304d885438318ae5.jpg)
21
+
22
+ ![](images/313e2abca4e659a814db0a53c9bb5e5628a511af14744d3aeca9c59421fde1fe.jpg)
23
+
24
+ ![](images/9dcfa7ebc4aaa75ce3f725bdfc31778a3fc032fa31b49e9bbb52f132fdab51f5.jpg)
25
+
26
+ ![](images/78adede973ff9d1db6ca437a2b1e9932a4017b41c1f31c8bb8a2fa5a57d12e5d.jpg)
27
+
28
+ # Abstract
29
+
30
+ Current remote sensing semantic segmentation methods are mostly built on the close-set assumption, meaning that the model can only recognize pre-defined categories that exist in the training set. However, in practical Earth observation, there are countless new categories, and manual annotation is impractical. To address this challenge, we first attempt to introduce training-free<sup>1</sup> open-vocabulary semantic segmentation (OVSS) into the remote sensing context. However, due to the sensitivity of remote sensing images to low-resolution features, distorted target shapes and ill-fitting boundaries are exhibited in the prediction mask. To tackle these issues, we propose a simple and universal upsampler, i.e. SimFeatUp, to restore lost spatial information of deep features. Specifically, SimFeatUp only needs to learn from a few unlabeled images, and can upsample arbitrary remote sensing image features. Furthermore, based on the observation of the abnormal response
31
+
32
+ of patch tokens to the [CLS] token in CLIP, we propose to execute a simple subtraction operation to alleviate the global bias in patch tokens. Extensive experiments are conducted on 17 remote sensing datasets of 4 tasks, including semantic segmentation, building extraction, road detection, and flood detection. Our method achieves an average of $5.8\%$ , $8.2\%$ , $4.0\%$ , and $15.3\%$ improvement over state-of-the-art methods on the 4 tasks. Code is available at https://likyoo.github.io/SegEarth-0V.
33
+
34
+ # 1. Introduction
35
+
36
+ Remote sensing images have changed the way humans observe and understand the Earth. It enables us to monitor land cover/use types, respond effectively to natural disasters (e.g., fires, earthquakes, floods), gain insight into food and water resources, etc. Among the 17 Sustainable Development Goals (SDGs) $^{2}$ issued by the United Nations, remote sensing images can provide important data support for several goals including "Zero Hunger", "Clean Water
37
+
38
+ ![](images/566b62fbaa0f0f3901a9c958d2403f3748168d1ae40f4e60b0cffcb82dd6271b.jpg)
39
+ (a) MaskCLIP
40
+
41
+ ![](images/f9f58440daea50bc8b21815b0ea005c9aa46bf36c749d0423ca2f56af40e6c12.jpg)
42
+ (b) ClearCLIP
43
+ Figure 2. Limitations of state-of-the-art OVSS methods in remote sensing images. The two predictions on the left present distorted target shapes and ill-fitting boundaries (best viewed digitally with zoom, especially for the object edges).
44
+
45
+ ![](images/73428195efd77642028eb1a5d9d8ef0c1c7e411d9e05d13efee626e50b8005ba.jpg)
46
+ (c) SegEarth-OV
47
+
48
+ ![](images/9c49065108bb666ec57d7eb8fe6890c8e6164a3de62094108d072620293e47d8.jpg)
49
+ (d) GT
50
+
51
+ and Sanitation", "Industry, Innovation and Infrastructure", "Climate Action", "Life on Land", etc. [60]. Notably, remote sensing data can be considered as a distinct modality in computer vision. It involves more diverse spatial resolutions (from centimeters to kilometers), temporal dimensions (from hours to decades), and object perspectives (overhead and oriented) than natural images. Therefore, solutions designed for other data modalities (e.g., natural images) may be sub-optimal for remote sensing data [53].
52
+
53
+ Recently, raw remote sensing images have been available from various sources (e.g., Landsat, Sentinel), but obtaining large-scale annotated categories is still a challenge due to countless potential categories and expensive manual costs. In addition, on the broad surface of the earth, "stuff" (e.g., grassland, forest, etc.) occupies much more area than "things" (e.g. buildings, ships, etc.) [74]. Therefore, for remote sensing images, pixel-level perception, i.e., segmentation, is applied more frequently than instance-level perception, and the demand for pixel-level annotation exacerbates the difficulty of obtaining large-scale labels. OpenStreetMap [21] is a popular solution that aims to create a freely usable, editable, and shareable map of the world. However, the completeness of the annotations in OpenStreetMap is affected by regional income levels, resulting in limited data availability [22]. The rise of vision language model (VLM) brings us new inspirations with its capabilities of open-vocabulary semantic segmentation (OVSS). However, through some exploratory experiments, we find that the solution designed for natural images is sub-optimal on remote sensing images. A notable phenomenon is the presence of distorted target shapes and ill-fitting boundaries in the prediction mask, as shown in Fig. 2 (a)(b).
54
+
55
+ Empirically, these issues can be largely attributed to the excessively low resolution of the features [19, 76]. In the current CLIP-based OVSS paradigm, the feature maps from CLIP [51] are downsampled to $1/16th$ of the original image (ViT-B/16). Hence, in this paper, we propose a simple and general feature upsampler, i.e. SimFeatUp, which is trained with the goal of reconstructing content-invariant high-resolution (HR) features on a few unlabeled images and can upsample arbitrary remote sensing image features after training. Owing to this property of SimFeatUp, it can be used as a universal external unit for training-free
56
+
57
+ OVSS framework. Further, CLIP is trained at the image level, it uses the [CLS] token as a representation of the entire image, and attaches global properties to the local token [48, 52, 62]. However, this global property biases local features against patch-level inference in OVSS. To effectively reduce global bias, we propose a simple subtraction operation of local patch features and global features. Extensive quantitative and qualitative experiments demonstrate the superior segmentation quality of our method over other state-of-the-art methods.
58
+
59
+ In summary, our contributions are as follows.
60
+
61
+ - We propose SimFeatUp, a general feature upsampler for training-free OVSS, which robustly upsamples low-resolution (LR) features and maintains semantic consistency with image content.
62
+ - We propose an extremely simple and straightforward way to alleviate the global bias problem of CLIP, i.e., executing subtraction operations of local and global tokens.
63
+ - Our proposed SegEarth-OV model can achieve state-of-the-art performance on 17 remote sensing datasets of 4 tasks, including semantic segmentation, building extraction, road extraction, and flood detection.
64
+
65
+ # 2. Related Work
66
+
67
+ Vision-Language Model. Recently, foundation models, especially visual language models, have energized the field of computer vision. One phenomenal advance is contrastive language-vision pretraining, i.e., CLIP [51], which elegantly bridges the gap between images and natural language. By training with massive data in a multimodal embedding space, CLIP gains strong transfer capabilities, achieving leaps in zero-shot learning and making OV learning possible [67]. Subsequently, related research has gradually emerged, from the data [10, 58, 70, 73], training [16, 35, 73] or model [33, 34] side. However, CLIP focuses only on global [CLS] tokens, and even though patch-level tokens can be generated, they are inevitably contaminated by global bias [48, 52, 62], which is detrimental to dense prediction. In addition, several remote sensing VLMs emerge, they adapt general VLMs to remote sensing contexts [37, 49, 65, 75] or mine the characteristics of remote sensing data [23, 50].
68
+
69
+ Supervised semantic segmentation. Semantic segmentation aims to discriminate images at the pixel level. The prediction head (aka decoder), as an essential component of segmentation models, is able to upsample LR feature maps into HR predictions. Typical prediction heads contain upsampling operators (e.g., bilinear interpolation, JBU [29]) and HR encoder features (as guidance), e.g., UNet [55], UperNet [69], Semantic FPN [27], MaskFormer [9], etc. Some works [38, 41, 78] focus on dynamic, learnable upsampling operators that make this process content-aware. FeatUp [17] constructs a model-agnostic upsam
70
+
71
+ pling scheme that uses multi-view consistency loss with deep analogies to NeRFs [45]. However, it only explores the condition with labels. Inspired by FeatUp and built on top of it, the SimFeatUp proposed in this work is able to significantly improve OVSS without any labels.
72
+
73
+ Open-Vocabulary Semantic Segmentation. As VLMs have shown remarkable zero-shot inference in image classification [51], which naturally extends to semantic segmentation. They empower the segmentation pipeline to recognize seen and unseen categories, and users can segment almost any category in an image using prompt vocabulary [67, 79]. We divide current CLIP-based OVSS methods into two groups: training-required and training-free. The former allows models to be trained on some base classes in a supervised or weakly supervised manner. Typically, some works [18, 42, 48, 52] try to train a localization-aware CLIP which can naturally make dense predictions, while others [11, 15, 32, 39, 71, 72] select a subset of the CLIP's pre-trained parameters and/or introduce a limited number of trainable parameters into the frozen CLIP, i.e., fine-tuning the CLIP to adapt to dense prediction on base classes. Still, training-free OVSS methods emphasize tapping into CLIP's inherent localization capabilities with limited surgery of features or structures. MaskCLIP [77] pioneers the removal of query and key projections at the attention pooling layer of CLIP's image encoder. Following it, subsequent studies [3, 30, 36, 62] adequately explore self-self attention (i.e., $q$ - $q$ , $k$ - $k$ or $\nu$ - $\nu$ self-attention), and these modifications somewhat mitigate noisy activations and spatial invariant perception of CLIP. Another stream [2, 25, 56, 59] is the two-stage method, which first generates category-agnostic mask proposals and then classifies the masks. Besides, some other foundation models (e.g. SAM [28], Stable Diffusion [54]) can be introduced to enhance the localization ability of CLIP, and these explorations also make sense [2, 31, 64].
74
+
75
+ Different from previous methods, we focus on the inherent characteristics of remote sensing images rather than the general attributes of natural images. The only contemporaneous work is [6], but it is training-required, like [11, 72]. Our SimFeatUp component, although it needs to be trained on a few images-only data beforehand, this process is independent of the semantic segmentation process and the trained weights can be used for almost any remote sensing data (like the foundation model in other works [2, 31]), so our method can still be seen as a training-free method.
76
+
77
+ # 3. Preliminaries
78
+
79
+ # 3.1. CLIP
80
+
81
+ In ViT-based CLIP, the image encoder consists of a series of Transformer blocks. Let $X = [x_{cls}, x_1, \dots, x_{h \times w}]^\top \in \mathbb{R}^{(hw + 1, d)}$ denotes the input of the last block, where $h$ and $w$ denote the height and width of the feature map, $d$ denotes
82
+
83
+ ![](images/08b9ab25b328affae114290a784a9d0bef74755a1bf443b56ee799da637cff98.jpg)
84
+ (a)
85
+
86
+ ![](images/3924625ea5d7e36cda908b93a0785d7869857ad6512c90d08a1de223ed52d189.jpg)
87
+ (b)
88
+ Figure 3. Illustration of the proposed method. (a) is the training process of SimFeatUp. CLIP is frozen and only SimFeatUp is useful in reasoning. (b) is the reasoning process of SegEarth-OV. The LR feature maps from CLIP are upsampled by SimFeatUp and then the [CLS] token is subtracted to alleviate global bias. For better presentation, the color renderings follow [17].
89
+
90
+ the dimension of tokens, and $x_{cls}$ is a learnable global token and the others are local tokens from different image patches. The forward process of the last Transformer block can be formulated as follows:
91
+
92
+ $$
93
+ \begin{array}{l} \boldsymbol {q} = \operatorname {E m b} _ {q} (X), \boldsymbol {k} = \operatorname {E m b} _ {k} (X), \boldsymbol {v} = \operatorname {E m b} _ {v} (X), \\ \boldsymbol {y} = X + \operatorname {S A} (\boldsymbol {q}, \boldsymbol {k}, \boldsymbol {v}), \tag {1} \\ \boldsymbol {z} = \boldsymbol {y} + \operatorname {F F N} (\ln (\boldsymbol {y})) \\ \end{array}
94
+ $$
95
+
96
+ where $q, k, v$ denote Query, Key, and Value, respectively. Emb consists of a layer normalization (LN) layer and a linear layer, and FFN denotes the feed-forward network. SA denotes a standard self-attention module, i.e., $\mathrm{SA}(\pmb{q},\pmb{k},\pmb{v}) = \mathrm{softmax}\left(\frac{\pmb{q}\cdot\pmb{k}^{\top}}{\sqrt{d}}\right)\cdot \pmb{v}$ . Then, a projection layer maps $\pmb{z}$ to a multi-modal embedding space:
97
+
98
+ $$
99
+ \mathcal {O} = \operatorname {P r o j} (z), \tag {2}
100
+ $$
101
+
102
+ where $\mathcal{O} = [o_{cls}, o_1, \dots, o_{h \times w}]^\top \in \mathbb{R}^{(hw + 1, c)}$ denotes the output of the image encoder, $c$ denotes token dimension after the projection layer, and $c < d$ . During CLIP training, $o_{cls}$ is used for image-level learning; while during OVSS inference, $\mathcal{O}[1:hw + 1]$ is used for patch-level prediction.
103
+
104
+ # 3.2.FeatUp
105
+
106
+ FeatUp [17] aims to train a model-agnostic upsampler. It executes an upsampling operation on LR features $\mathcal{O}[1: h w + 1]$ from a frozen backbone network via a learnable upsampler $\sigma_{\uparrow}$ , and then reconstructs the LR features using a learnable downsampler $\sigma_{\downarrow}$ . Its critical insights can
107
+
108
+ ![](images/dc5d39782045cc704a240631c6f9dd716638d0a08be7af95c6850e9a92ee6a8c.jpg)
109
+ Figure 4. Comparison of with and without image reconstruction loss (Eq. (4)). The LR prediction is obtained directly using the output of CLIP (without bilinear interpolation). Color: building, tree, cropland, grass.
110
+
111
+ be briefly summarized by the following loss function:
112
+
113
+ $$
114
+ \mathcal {L} _ {r e c} = \left\| \mathcal {O} [ 1: h w + 1 ] - \sigma_ {\downarrow} \left(\sigma_ {\uparrow} \left(\mathcal {O} [ 1: h w + 1 ]\right)\right) \right\| _ {2} ^ {2}. \tag {3}
115
+ $$
116
+
117
+ FeatUp instantiates $\sigma_{\uparrow}$ as stacked parameterized JBU operators [29]. The upsampled HR feature element is estimated by weighting the neighboring elements of the LR feature. For weight generation, JBU considers two factors, the similarity and distance between neighboring elements and the center element in the guidance feature, corresponding to kernel $k_{range}$ and $k_{spatial}$ . For brevity, we omit the multi-view consistency constraint in [17].
118
+
119
+ # 4. Method
120
+
121
+ In the following, we introduce SegEarth-OV by first describing SimFeatUp's training, design and explaining why it is suitable for OVSS. Second, we discuss the impact of global token on dense prediction and present our method for alleviating global bias.
122
+
123
+ # 4.1. SimFeatUp
124
+
125
+ FeatUp provides us with an excellent training paradigm for general upsamplers. However, it lacks some considerations for the training-free setting, resulting in sub-optimal for the OVSS task, especially in remote sensing contexts.
126
+
127
+ Image content retention. As described in Sec. 3.2, the goal of FeatUp is to minimize the original LR features and the LR features after the up-down-sampling (i.e. $\sigma_{\downarrow}(\sigma_{\uparrow}(\mathcal{O}[1:h w + 1]))$ ). Since both $\sigma_{\uparrow}$ and $\sigma_{\downarrow}$ are learnable, with such a weak constraint, the up-down-sampling process becomes a black box, and there is no guarantee that the intermediate HR features are complete and consistent with the original image in content. A direct example is shown in Fig. 4,
128
+
129
+ where a small building in the original image is present in the LR prediction but disappears in the HR prediction (top right). To solve this issue, we introduce an additional image reconstruction loss to constrain the HR features:
130
+
131
+ $$
132
+ \mathcal {L} _ {i m g} = \left\| I - \operatorname {C R N} \left(\sigma_ {\uparrow} \left(\mathcal {O} [ 1: h w + 1 ]\right)\right) \right\| _ {2} ^ {2}, \tag {4}
133
+ $$
134
+
135
+ where $I$ denotes the input image, CRN denotes a content retention net. CRN is a very lightweight network that receives HR features as input and reconstructs the original image. Specifically, CRN consists of two 2D convolutional layers with normalization and a $\mathrm{Tanh}$ activation layer, where the $\mathrm{Tanh}$ layer is designed to constrain the output to [-1, 1], cf. VAEs [26]. Finally, the loss for training SimFeatUp consists of $\mathcal{L}_{rec}$ and $\mathcal{L}_{img}$ with a weight $\gamma$ , i.e.,
136
+
137
+ $$
138
+ \mathcal {L} = \mathcal {L} _ {\text {r e c}} + \gamma \mathcal {L} _ {\text {i m g}}. \tag {5}
139
+ $$
140
+
141
+ Which feature to upsample? FeatUp takes the final output of CLIP, i.e., $\mathcal{O}[1:h w + 1]$ in Eq. (2), as input to the upsampler. This can work well in training-based settings, e.g., linear probe [1]. However, in training-free OVSS, as described in Sec. 2, vanilla self-attention leads to inferior performance. Therefore, the current OVSS method modulates it to self-self attention, and this law also works in remote sensing images. Under this premise, the SA in Eq. (1) would be replaced by other modules, and direct upsampling of $\mathcal{O}[1:h w + 1]$ would lead to the mismatch between training and inference. Motivated by this, we propose to upsample CLIP features at an earlier layer. Specifically, we select the input of the last Transformer block of the CLIP's image encoder, i.e., $X[1:h w + 1]$ in Eq. (1). Furthermore, the high dimension of tokens in $X$ leads to a high-cost upsampler. Therefore, we retain the projection layer. Ultimately, the features $\mathcal{O}'$ which need upsampling are formulated as:
142
+
143
+ $$
144
+ \mathcal {O} ^ {\prime} = \operatorname {P r o j} (X [ 1: h w + 1 ]). \tag {6}
145
+ $$
146
+
147
+ Larger upsampling kernel. We follow the upsampling operator in FeatUp, i.e., the parameterized JBU. As mentioned in Sec. 3.2, the upsampling kernels $k_{range}$ and $k_{spatial}$ of the JBU are computed from the elements within a window in the guidance feature. The generation of $k_{range}$ and $k_{spatial}$ can be formulated as follows:
148
+
149
+ $$
150
+ k _ {\text {s p a t i a l}} (p, q) = \exp \left(\frac {- \| p - q \| _ {2} ^ {2}}{2 \tau_ {\text {s p a t i a l}} ^ {2}}\right), \tag {7}
151
+ $$
152
+
153
+ $$
154
+ k _ {r a n g e} (p, q) =
155
+ $$
156
+
157
+ $$
158
+ \operatorname {s o f t m a x} _ {(a, b) \in \Omega} \left(\frac {1}{\tau_ {\text {r a n g e}} ^ {2}} M L P (G [ i, j ]) \cdot M L P (G [ a, b ])\right), \tag {8}
159
+ $$
160
+
161
+ where $(p,q)$ denotes the position in the kernel. $\Omega$ denotes a window centered at $(i,j)$ in the guidance feature $G$ , which
162
+
163
+ ![](images/5740bc8de396ed7586134fee0b7ac33be5b4592f3d19b02649007a6eaaeabe42.jpg)
164
+ Figure 5. Comparison of before and after alleviating the global bias. (a) is the similarity map of patch tokens and cls tokens, some "non-building" regions also present high response, (b) is the original RGB image. Note that the right-hand histograms stretch the raw values for better presentation.
165
+
166
+ is extracted from HR RGB image. $\tau_{\text{spatial}}$ and $\tau_{\text{range}}$ are learnable factors. In remote sensing images, unlike natural images, the size of the target presents a logarithmic scale spanning from the meter scale (e.g., trees, gardens) to the kilometer scale (e.g., forests, rangelands) [53]. Therefore, we set larger upsampling kernels to obtain a wider receptive field. Here, we expand the window size to $11 \times 11$ , compared to $7 \times 7$ in FeatUp. A possible concern is that a larger receptive field may introduce more irrelevant context, but with $k_{\text{spatial}}$ , more distant points consistently contribute lower weights, which makes it more reasonable to use larger upsampling kernels.
167
+
168
+ Simplify. On the structural side, we simplify the components inFeatUp. InFeatUp, the parameterized JBU modules are stacked 4 times for $16 \times$ upsampling, and the parameters of each JBU module are independent. Although we fed HR features into the CRN to ensure the integrity of its content, the behavior of each JBU module is indeterminable. Therefore, in SimFeatUp, we change "JBUSTACK" to "JBU-One", i.e., only one parameterized JBU is used for upsampling. If $16 \times$ upsampling is required, then it only needs to repeat the execution 4 times. Further, "JBU-One" significantly reduces the number of trainable parameters in the upsampler and provides the possibility of upsampling arbitrary multiples.
169
+
170
+ # 4.2. Alleviating global bias
171
+
172
+ As described in Sec. 3.1, in the training phase of CLIP, the [CLS] token, which contains the global information of the
173
+
174
+ whole image, is optimized with the text embedding in the multi-modal space via contrastive learning. However, in the inference phase of OVSS, [CLS] token is generally discarded and only patch tokens are used for similarity computation with the prompt vocabulary. This means that there is a gap between training and inference. Indeed, previous work [48, 52, 62] also demonstrates that: each local visual token in CLIP focuses on a wide range of positions, and the attention maps typically share similar patterns. This suggests that the global attribute is attached to the patch tokens in CLIP. This property is generally not a concern in classification task, but it significantly impairs performance in dense prediction.
175
+
176
+ The visualization in Fig. 5 demonstrates the above elaboration. We extract the [CLS] token using CLIP for the RGB image in Fig. 5(b), and compute its similarity with the candidate text embeddings. The image is recognized as the building, which is reasonable because the building covers the maximum range in the image. Then, we calculate the similarity of the [CLS] token with patch tokens as shown in Fig. 5(a). The highly responsive regions are not only the regions with buildings, some roads and pavements are also activated, which indicates that the global bias contaminates the local patch tokens. Motivated by this observation, we propose to "subtract" some global bias from the patch token. This solution is very straightforward and simple, it can be formulated as follows.
177
+
178
+ $$
179
+ \hat {\mathcal {O}} = \mathcal {O} [ 1: h w + 1 ] - \lambda \mathcal {O} [ 0 ], \tag {9}
180
+ $$
181
+
182
+ where $\lambda$ denotes an intensity factor. $\mathcal{O}[0]$ is broadcast to the same dimension as $\mathcal{O}[1:h\omega +1]$
183
+
184
+ # 5. Experiments
185
+
186
+ # 5.1. Dataset
187
+
188
+ In remote sensing application contexts, not only multi-class semantic segmentation but also extraction of certain land cover types (e.g., buildings, roads, water bodies) is required, e.g., Google's Open Buildings project. Therefore, we select 17 typical datasets covering common semantic segmentation, building extraction, road extraction, and water body segmentation (flood detection) tasks.
189
+
190
+ Semantic segmentation. We evaluate SegEarth-OV on 8 remote sensing semantic segmentation datasets including OpenEarthMap [68], LoveDA [63], iSAID [66], Potsdam, Vaihingen $^{4}$ , UAVid [43], UDD5 [8] and VDD [5]. Among them, the first 5 datasets consist of mainly satellite images and the last 3 consist of UAV images. They contain custom foreground classes and a background class. Detailed descriptions of these datasets can be found in Appendix 7.1.
191
+
192
+ Table 1. Open-vocabulary semantic segmentation quantitative comparison on remote sensing datasets. Evaluation metric: mIoU. Best and second best performances are highlighted.
193
+
194
+ <table><tr><td>Methods</td><td></td><td>OpenEarthMap</td><td>LoveDA</td><td>iSAID</td><td>Potsdam</td><td>Vaihingen</td><td>UAVidimg</td><td>UDD5</td><td>VDD</td><td>Average</td></tr><tr><td>CLIP [51]</td><td>ICML&#x27;21</td><td>12.0</td><td>12.4</td><td>7.5</td><td>14.5</td><td>10.3</td><td>10.9</td><td>9.5</td><td>14.2</td><td>11.4</td></tr><tr><td>MaskCLIP [77]</td><td>ECCV&#x27;22</td><td>25.1</td><td>27.8</td><td>14.5</td><td>31.7</td><td>24.7</td><td>28.6</td><td>32.4</td><td>32.9</td><td>27.2</td></tr><tr><td>SCLIP [62]</td><td>arXiv&#x27;23</td><td>29.3</td><td>30.4</td><td>16.1</td><td>36.6</td><td>28.4</td><td>31.4</td><td>38.7</td><td>37.9</td><td>31.1</td></tr><tr><td>GEM [3]</td><td>CVPR&#x27;24</td><td>33.9</td><td>31.6</td><td>17.7</td><td>36.5</td><td>24.7</td><td>33.4</td><td>41.2</td><td>39.5</td><td>32.3</td></tr><tr><td>ClearCLIP [30]</td><td>ECCV&#x27;24</td><td>31.0</td><td>32.4</td><td>18.2</td><td>40.9</td><td>27.3</td><td>36.2</td><td>41.8</td><td>39.3</td><td>33.4</td></tr><tr><td>SegEarth-OV</td><td>Ours</td><td>40.3</td><td>36.9</td><td>21.7</td><td>47.1</td><td>29.1</td><td>42.5</td><td>50.6</td><td>45.3</td><td>39.2</td></tr></table>
195
+
196
+ Single-class extraction. We select 4 building extraction datasets (i.e., WHU $^{Aerial}$ [24], WHU $^{Sat.II}$ [24], Inria [44], and xBD [20]), 4 road extraction datasets (i.e., CHN6-CUG [80], DeepGlobe [14], Massachusetts [46], and SpaceNet [61]), and 1 flood detection dataset (i.e., WBS-SI $^5$ ) for the evaluation of single-class extraction. These datasets contain 1 foreground class (building, road or flood) and 1 background class. Detailed descriptions are in Appendix 7.2-7.4.
197
+
198
+ Training dataset for SimFeatUp. SimFeatUp requires only image data for training, moreover, to avoid unfair comparisons, we use a public remote sensing image classification dataset, Million-AID [40], which is mainly collected from Google Earth. We randomly selected only 16k of these images to train SimFeatUp.
199
+
200
+ # 5.2. Setup
201
+
202
+ Implementation. Our implementations are based on MM-Segmentation [12] toolkit. If not specified, we use the original pretrained weights of CLIP (ViT-B/16) provided by OpenAI. For the text part, we use the OpenAI ImageNet template as input for the text encoder, e.g., "a photo of a {class name}". In addition, since the definition of certain classes may vary in some datasets, we use slight class rename tricks for all methods. For example, we rename "clutter" to "background" and "building" to {"building", "house", "roof"}, and the sub-class with the highest probability in {} will be the probability of that class. Detailed prompt class names for all datasets are listed in Appendix Tab. 7. For the image part, we resize input images with a long side of 448 and perform slide inference with a $224 \times 224$ window and 112 stride. For SimFeatUp training, we randomly crop $224 \times 224$ image patches on the original image. We use two 4090 GPUs to train 1 epoch with batch size set to 8. We retain the multi-view consistency constraint in FeatUp, and random flipping, translation and zoom are applied. For the hyper-parameters mentioned, the value of $\gamma$ is set to 0.1 and $\lambda$ is set to 0.3 for all datasets.
203
+
204
+ Evaluation. We evaluate the semantic segmentation using the mean intersection over union (mIoU) metric. For single-class extraction, the IoU of the foreground class is used.
205
+
206
+ Baseline. We take some lessons from natural image OVSS, which are also suitable for remote sensing scenes: we remove the FFN and residual connection of the last Transformer block, insights from [36] and [30]. In addition, the last self-attention is replaced by our modulated attention, i.e., the summation of $q - q$ , $k - k$ and $\nu - \nu$ as the weights of $\nu$ :
207
+
208
+ $$
209
+ \operatorname {M} - \operatorname {S A} (\boldsymbol {q}, \boldsymbol {k}, \boldsymbol {v}) = \sum_ {\boldsymbol {i} \in \{\boldsymbol {q}, \boldsymbol {k}, \boldsymbol {v} \}} \operatorname {s o f t m a x} \left(\frac {\boldsymbol {i} \cdot \boldsymbol {i} ^ {\top}}{\sqrt {d}}\right) \cdot \boldsymbol {v}. \tag {10}
210
+ $$
211
+
212
+ # 5.3. Comparison to State-of-the-art
213
+
214
+ Since the proposed SegEarth-OV is a training-free method and there is no previous OVSS method designed for remote sensing images, we select 5 state-of-the-art training-free OVSS models of natural images for comparison, including vanilla CLIP [51], MaskCLIP [77], SCLIP [62], GEM [3] and ClearCLIP [30].
215
+
216
+ Semantic segmentation. As listed in Tab. 1, SegEarth-OV achieves the best performance on all 8 semantic segmentation datasets. SegEarth-OV achieves more than $40\%$ mIoU on 5 datasets and more than $50\%$ on the UDD5 dataset, which implies that the OVSS method is feasible in remote sensing scenarios. Compared to the previous method, SegEarth-OV achieves a performance gain of more than $5\%$ on 5 datasets and an average gain of $5.8\%$ on 8 datasets. On the iSAID dataset, the mIoU of SegEarth-OV is only $21.7\%$ , which is due to the fine-grained category delineation in this dataset, which covers 16 categories (see Appendix Tab. 7).
217
+
218
+ Single-class extraction. In the building extraction task, the increase delivered by SegEarth-OV is more significant, as listed in Tab. 2. Considering that the "building" class occupies a small area (see Appendix Fig. 1), we evaluate the setup for larger scale images, i.e., resizing the long side of the input image to $896 \times 896$ . This setup significantly improves the IoU of Inria and xBD, which on the other hand supports our view that spatial detail preservation is essential for remote sensing OVSS. In the road extraction task, although SegEarth-OV achieves the best IoU, overall, the performance of all methods on the 4 datasets is unsatisfactory, with a best IoU of only $35.4\%$ . There may be two reasons for this phenomenon: (1) The special shape of the road makes it difficult to be extracted in a training-free OVSS manner; (2) The labels of some data are generated based on
219
+
220
+ ![](images/2bbed41f4b9a9c7ec01448a52363608613c2198740e86e064569b843b9ae8b22.jpg)
221
+ Figure 6. Qualitative comparison between different training-free OVSS methods on OpenEarthMap [68], UDD5 [8] and WHU<sup>Aerial</sup> [24] datasets (best viewed digitally with zoom, especially for the edges of the object).
222
+
223
+ Table 2. Open-vocabulary building / road / flood extraction quantitative comparison on remote sensing datasets. Evaluation metric: IoU of the foreground class, i.e. building, road or flood. Best and second best performances are highlighted.
224
+
225
+ <table><tr><td rowspan="2">Method</td><td colspan="4">Building Extraction</td><td colspan="4">Road Extraction</td><td rowspan="2">Flood Detection WBS-SI</td></tr><tr><td>WHU Aerial</td><td>WHU Sat.II</td><td>Inria</td><td>xBD pre</td><td>CHN6-CUG</td><td>DeepGlobe</td><td>Massachusetts</td><td>SpaceNet</td></tr><tr><td colspan="10">448 × 448:</td></tr><tr><td>CLIP [51]</td><td>17.7</td><td>3.5</td><td>19.6</td><td>16.0</td><td>7.7</td><td>3.9</td><td>4.9</td><td>7.1</td><td>18.6</td></tr><tr><td>MaskCLIP [77]</td><td>29.8</td><td>14.0</td><td>33.4</td><td>29.2</td><td>28.1</td><td>13.2</td><td>10.6</td><td>20.8</td><td>39.8</td></tr><tr><td>SCLIP [62]</td><td>33.4</td><td>21.0</td><td>34.9</td><td>25.9</td><td>21.1</td><td>7.0</td><td>7.4</td><td>14.9</td><td>32.1</td></tr><tr><td>GEM [3]</td><td>24.4</td><td>13.6</td><td>28.5</td><td>20.8</td><td>13.4</td><td>4.7</td><td>5.1</td><td>11.9</td><td>39.5</td></tr><tr><td>ClearCLIP [30]</td><td>36.6</td><td>20.8</td><td>39.0</td><td>30.1</td><td>25.5</td><td>5.7</td><td>6.4</td><td>16.3</td><td>44.9</td></tr><tr><td>SegEarth-OV</td><td>49.2</td><td>28.4</td><td>44.6</td><td>37.0</td><td>35.4</td><td>17.8</td><td>11.5</td><td>23.8</td><td>60.2</td></tr><tr><td colspan="10">896 × 896:</td></tr><tr><td>SegEarth-OV</td><td>49.9</td><td>-</td><td>48.9</td><td>43.1</td><td>32.8</td><td>20.1</td><td>17.2</td><td>29.1</td><td>57.9</td></tr></table>
226
+
227
+ OpenStreetMap vector shapes with fixed widths attached, which are inherently imprecise. Again, the extraction of roads can generally benefit from larger size images. For the flood detection task, where "water" class features can be easily recognized, the IoU of SegEarth-OV is improved by $15.3\%$ over the previous best method, up to $60.2\%$ . Due to the small size of the original images in the WBS-SI dataset, resizing to a larger size does not result in a positive gain.
228
+
229
+ Qualitative results. We present qualitative results for MaskCLIP, ClearCLIP, and SegEarth-OV in Fig. 6. Some observations are summarized as follows: (1) There are some incorrect category predictions in MaskCLIP, e.g., water on the road and bareland on the cropland. (2) ClearCLIP can generate correct category predictions, but lacks precise localization capability, with distorted target shapes and ill-fitting boundaries of the prediction mask. (3) SegEarth-OV is capable of generating more fine-grained masks that fit the target edges and maintain correct category discrimination. More visualizations can be found in Appendix Fig. 8-10.
230
+
231
+ # 5.4. Ablation Study and Analysis
232
+
233
+ Plug and play. Two key insights of this work, SimFeatUp and global bias alleviation, which can be attached to other OVSS methods as plug-and-play modules. As listed in Tab. 4, a revealing observation is that on both the Ope
234
+
235
+ nEarthMap and WHU $^{Aerial}$ datasets, as the base capability of the model improves (from MaskCLIP to ClearCLIP), the increases delivered by our method also improve ( $\uparrow 3.3$ , $\uparrow 5.1$ , $\uparrow 8.1$ on OpenEarthMap, $\uparrow 5.6$ , $\uparrow 6.1$ , $\uparrow 14.5$ on WHU $^{Aerial}$ ). This suggests that our method has the potential to improve localization and discrimination for stronger models.
236
+
237
+ Ablation study. To assess each of the proposed components, we perform a detailed ablation analysis, as listed in Tab. 5. FitUp (CLIP) denotes the original FitUp upsampler, which provides a $1.5\%$ improvement on OpenEarthMap but decreases the performance on $\mathrm{WHU}^{Sat.II}$ and WBS-SI (more comparisons between FitUp and the proposed method are shown in the bottom-right of Fig. 1). FitUp (MaskCLIP) denotes using $\mathbf{v}$ of self-attention as the upsampled feature, which somewhat mitigates the possible negative effects of FitUp (CLIP). In SimFitUp, the input feature $X$ of the last block is used to upsample, which presents a significant improvement in all 3 datasets. A substantial improvement is also delivered after replacing the training material for the upsampler from natural images to remote sensing images. "JBU-One" reduces the parameters by nearly $4\times$ while delivering a slight IoU gain (only $< 0.3\mathrm{M}$ parameters). The introduction of CRN with image reconstruction loss brings $1.7\%$ , $0.4\%$ , and $1.6\%$ improvement on 3 datasets, respectively. Note that the CRN only
238
+
239
+ Table 3. Quantitative comparison of vanilla CLIP and remote sensing CLIPs (ViT-B/32). Evaluation metric: mIoU.
240
+
241
+ <table><tr><td colspan="2">Models</td><td>OpenEarthMap</td><td>LoveDA</td><td>iSAID</td><td>Potsdam</td><td>Vaihingen</td><td>UAVidimg</td><td>UDD5</td><td>VDD</td><td>Average</td></tr><tr><td>CLIP [51]</td><td>ICML&#x27;21</td><td>25.7</td><td>27.2</td><td>16.2</td><td>40.0</td><td>25.1</td><td>31.6</td><td>39.7</td><td>39.1</td><td>30.6</td></tr><tr><td>RemoteCLIP [37]</td><td>TGRS&#x27;23</td><td>18.2</td><td>37.8</td><td>18.9</td><td>21.9</td><td>22.9</td><td>16.1</td><td>27.1</td><td>28.1</td><td>23.9</td></tr><tr><td>GeoRSCLIP [75]</td><td>TGRS&#x27;24</td><td>35.0</td><td>30.8</td><td>23.6</td><td>38.0</td><td>22.3</td><td>34.0</td><td>39.1</td><td>40.5</td><td>32.9</td></tr><tr><td>SkyCLIP [65]</td><td>AAAI&#x27;24</td><td>28.6</td><td>33.0</td><td>15.3</td><td>41.7</td><td>24.1</td><td>31.6</td><td>38.2</td><td>35.8</td><td>31.0</td></tr></table>
242
+
243
+ Table 4. The proposed method is a plug-and-play module. “+ ours” indicates using SimFeatUp (Sec. 4.1) and alleviating the global bias (Sec. 4.2).
244
+
245
+ <table><tr><td>Methods</td><td>OpenEarthMap</td><td>WHU Aerial</td><td>WBS-SI</td></tr><tr><td>MaskCLIP</td><td>25.1</td><td>29.8</td><td>39.8</td></tr><tr><td>+ ours</td><td>28.4↑3.3</td><td>35.4↑5.6</td><td>48.8↑9.0</td></tr><tr><td>SCLIP</td><td>29.3</td><td>33.4</td><td>32.1</td></tr><tr><td>+ ours</td><td>34.4↑5.1</td><td>39.5↑6.1</td><td>53.4↑21.3</td></tr><tr><td>ClearCLIP</td><td>31.0</td><td>36.6</td><td>44.9</td></tr><tr><td>+ ours</td><td>39.1↑8.1</td><td>51.1↑14.5</td><td>60.4↑15.5</td></tr></table>
246
+
247
+ Table 5. Detailed ablation results for each component. "X"↑ indicates upsampling earlier stage features, i.e. Eq. (6). "+" RS Data" indicates using Million-AID [40] to train the upsampler, before using the images in COCO-Stuff [4].
248
+
249
+ <table><tr><td></td><td>OpenEarthMap</td><td>WHU Sat. II</td><td>WBS-SI</td></tr><tr><td>Baseline</td><td>32.4</td><td>22.7</td><td>46.9</td></tr><tr><td>FeatUp (CLIP)</td><td>33.9</td><td>20.2</td><td>39.6</td></tr><tr><td>FeatUp (MaskCLIP)</td><td>33.8</td><td>25.2</td><td>45.9</td></tr><tr><td>“X”↑</td><td>34.6</td><td>26.0</td><td>54.2</td></tr><tr><td>+ RS Data</td><td>36.0 ↑1.4</td><td>26.2</td><td>56.4</td></tr><tr><td>+ JBU-One</td><td>36.3 ↑0.3</td><td>26.0</td><td>57.1</td></tr><tr><td>+ Rec. Image</td><td>37.6 ↑1.3</td><td>26.4</td><td>58.7</td></tr><tr><td>+ Alleviate Global Bias</td><td>39.3 ↑1.7</td><td>27.9</td><td>59.5</td></tr><tr><td>+ Large Kernel</td><td>40.3 ↑1.0</td><td>28.4</td><td>60.2</td></tr></table>
250
+
251
+ participates in SimFeatUp's training and is discarded during inference. Global bias alleviation shows significant improvement for all 3 datasets, with an average $1.3\%$ improvement. Finally, expanding the upsampling kernel to $11 \times 11$ also exhibits consistent improvement across all datasets.
252
+
253
+ Results on natural images. We evaluate SimFeatUp as an external unit on 3 natural image datasets: PASCAL Context59 [47], COCOStuff [4] and Cityscapes [13]. As listed in Tab. 6, after upsampling the visual features of MaskCLIP, SCLIP, and ClearCLIP using SimFeatUp, their mIoUs are improved by $5.7\%$ , $1.2\%$ , and $1.2\%$ , respectively. This reveals the potential of our method to inspire general vision.
254
+
255
+ Remote sensing CLIPs for OVSS. We evaluate the performance of remote sensing CLIPs on OVSS, including RemoteCLIP [37], GeoRSCLIP [75], and SkyCLIP [65], which are trained on 0.8M, 5M, and 2.6M remote sensing data, respectively, without changing the model structure of
256
+
257
+ Table 6. OVSS quantitative comparison on natural image datasets. The basic results are cited from [30].
258
+
259
+ <table><tr><td>Methods</td><td>Context59 [47]</td><td>Stuff [4]</td><td>Cityscapes [13]</td><td>Average</td></tr><tr><td>TCL [7]</td><td>30.3</td><td>19.6</td><td>23.1</td><td>24.3</td></tr><tr><td>Reco [57]</td><td>22.3</td><td>14.8</td><td>21.1</td><td>19.4</td></tr><tr><td>MaskCLIP</td><td>26.4</td><td>16.4</td><td>12.6</td><td>18.5</td></tr><tr><td>+ SimFeatUp</td><td>28.7</td><td>18.0</td><td>25.8</td><td>24.2 ↑5.7</td></tr><tr><td>SCLIP</td><td>33.0</td><td>21.1</td><td>29.1</td><td>27.7</td></tr><tr><td>+ SimFeatUp</td><td>34.1</td><td>22.0</td><td>30.5</td><td>28.9 ↑1.2</td></tr><tr><td>ClearCLIP</td><td>35.9</td><td>23.9</td><td>30.0</td><td>29.9</td></tr><tr><td>+ SimFeatUp</td><td>37.5</td><td>25.1</td><td>30.7</td><td>31.1 ↑1.2</td></tr></table>
260
+
261
+ CLIP. Since these works do not provide the ViT-B/16, we uniformly use ViT-B/32. Hence, we repeat the JBU operation 5 times in SimFeatUp. For fair comparison, we train the respective SimFeatUp for each model. As listed in Tab. 3, RemoteCLIP performs suboptimally to vanilla CLIP, which indicates that a small amount of domain data diminishes the model's transfer capability. GeoRSCLIP achieves the best performance against SkyCLIP, which suggests that domain VLMs can benefit from more diverse domain-specific data. Moreover, the OVSS task effectively reflects the model's discrimination and localization capabilities, and can serve as an evaluation metric for remote sensing VLMs.
262
+
263
+ # 6. Conclusion
264
+
265
+ In this paper, we present SegEarth-OV, a training-free OVSS method for remote sensing images. The design of SegEarth-OV was motivated by the observation that OVSS methods currently used for natural images do not perform well on remote sensing images. The two key insights of SegEarth-OV, i.e., SimFeatUp and global bias alleviation, exhibit consistent improvements on 17 remote sensing datasets spanning the tasks of semantic segmentation, building extraction, road extraction, and flood detection, well beyond the previous state-of-the-art methods. More importantly, as the first exploration of training-free OVSS method in remote sensing scenarios, this work demonstrates that the OVSS solution is feasible in earth perception tasks even if the VLMs are pre-trained on natural images. We expect that this work will inspire more OVSS methods and more capable remote sensing VLMs, and open up new possibilities for the Earth vision community.
266
+
267
+ Acknowledgment. This work is supported by the National Key R&D Program of China (2022YFA1004100), National Natural Science Foundation of China (No. 62272375, No. 62425113, No. 62192781), Major Key Project of PCL (PCL2024A06), and Tianyuan Fund for Mathematics of the National Natural Science Foundation of China (No. 12426105).
268
+
269
+ # References
270
+
271
+ [1] Guillaume Alain. Understanding intermediate layers using linear classifier probes. arXiv preprint arXiv:1610.01644, 2016. 4
272
+ [2] Luca Barsellotti, Roberto Amoroso, Marcella Cornia, Lorenzo Baraldi, and Rita Cucchiara. Training-free open-vocabulary segmentation with offline diffusion-augmented prototype generation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3689-3698, 2024. 3
273
+ [3] Walid Bousselham, Felix Petersen, Vittorio Ferrari, and Hilde Kuehne. Grounding everything: Emerging localization properties in vision-language transformers. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3828-3837, 2024. 3, 6, 7
274
+ [4] Holger Caesar, Jasper Uijlings, and Vittorio Ferrari. Cocosstuff: Thing and stuff classes in context. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1209-1218, 2018. 8
275
+ [5] Wenxiao Cai, Ke Jin, Jinyan Hou, Cong Guo, Letian Wu, and Wankou Yang. Vdd: Varied drone dataset for semantic segmentation. arXiv preprint arXiv:2305.13608, 2023. 5
276
+ [6] Qinglong Cao, Yuntian Chen, Chao Ma, and Xiaokang Yang. Open-vocabulary remote sensing image semantic segmentation. arXiv preprint arXiv:2409.07683, 2024. 3
277
+ [7] Junbum Cha, Jonghwan Mun, and Byungseok Roh. Learning to generate text-grounded mask for open-world semantic segmentation from only image-text pairs. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11165-11174, 2023. 8
278
+ [8] Yu Chen, Yao Wang, Peng Lu, Yisong Chen, and Guoping Wang. Large-scale structure from motion with semantic constraints of aerial images. In Chinese Conference on Pattern Recognition and Computer Vision (PRCV), pages 347-359. Springer, 2018. 5, 7
279
+ [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. 2
280
+ [10] Mehdi Cherti, Romain Beaumont, Ross Wightman, Mitchell Wortsman, Gabriel Ilharco, Cade Gordon, Christoph Schuhmann, Ludwig Schmidt, and Jenia Jitsev. Reproducible scaling laws for contrastive language-image learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2818-2829, 2023. 2
281
+ [11] Seokju Cho, Heeseong Shin, Sunghwan Hong, Anurag Arnab, Paul Hongsuck Seo, and Seungryong Kim. Catseg: Cost aggregation for open-vocabulary semantic seg-
282
+
283
+ mentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4113-4123, 2024. 3
284
+ [12] MMSegmentation Contributors. MMSegmentation: Openmmlab semantic segmentation toolbox and benchmark. https://github.com/open-mmlab/mmsegmentation, 2020.6
285
+ [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. 8
286
+ [14] Ilke Demir, Krzysztof Koperski, David Lindenbaum, Guan Pang, Jing Huang, Saikat Basu, Forest Hughes, Devis Tuia, and Ramesh Raskar. Deep globe 2018: A challenge to parse the earth through satellite images. In Proceedings of the IEEE conference on computer vision and pattern recognition workshops, pages 172-181, 2018. 6
287
+ [15] Jian Ding, Nan Xue, Gui-Song Xia, and Dengxin Dai. Decoupling zero-shot semantic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11583-11592, 2022. 3
288
+ [16] Lijie Fan, Dilip Krishnan, Phillip Isola, Dina Katabi, and Yonglong Tian. Improving clip training with language rewrites. Advances in Neural Information Processing Systems, 36, 2024. 2
289
+ [17] Stephanie Fu, Mark Hamilton, Laura E. Brandt, Axel Feldmann, Zhoutong Zhang, and William T. Freeman. Feuput: A model-agnostic framework for features at any resolution. In The Twelfth International Conference on Learning Representations, 2024. 2, 3, 4
290
+ [18] Golnaz Ghiasi, Xiuye Gu, Yin Cui, and Tsung-Yi Lin. Scaling open-vocabulary image segmentation with image-level labels. In European Conference on Computer Vision, pages 540-557. Springer, 2022. 3
291
+ [19] 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. 2
292
+ [20] Ritwik Gupta, Richard Hosfelt, Sandra Sajeev, Nirav Patel, Bryce Goodman, Jigar Doshi, Eric Heim, Howie Choset, and Matthew Gaston. xbd: A dataset for assessing building damage from satellite imagery, 2019. 6
293
+ [21] Mordechai Haklay and Patrick Weber. Openstreetmap: User-generated street maps. IEEE Pervasive computing, 7(4):12-18, 2008. 2
294
+ [22] Benjamin Herfort, Sven Lautenbach, João Porto de Albuquerque, Jennings Anderson, and Alexander Zipf. A spatiotemporal analysis investigating completeness and inequalities of global urban building data in openstreetmap. Nature Communications, 14(1):3985, 2023. 2
295
+ [23] Danfeng Hong, Bing Zhang, Xuyang Li, Yuxuan Li, Chenyu Li, Jing Yao, Naoto Yokoya, Hao Li, Pedram Ghamisi, Xi-uping Jia, et al. Spectralgpt: Spectral remote sensing foundation model. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2024. 2
296
+
297
+ [24] Shunping Ji, Shiqing Wei, and Meng Lu. Fully convolutional networks for multisource building extraction from an open aerial and satellite imagery data set. IEEE Transactions on geoscience and remote sensing, 57(1):574-586, 2018. 6, 7
298
+ [25] Dahiyun Kang and Minsu Cho. In defense of lazy visual grounding for open-vocabulary semantic segmentation. In European Conference on Computer Vision and Pattern Recognition (ECCV), 2024. 3
299
+ [26] Diederik P Kingma. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. 4
300
+ [27] Alexander Kirillov, Ross Girshick, Kaiming He, and Piotr Dólar. Panoptic feature pyramid networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 6399-6408, 2019. 2
301
+ [28] Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C Berg, Wan-Yen Lo, et al. Segment anything. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 4015-4026, 2023. 3
302
+ [29] Johannes Kopf, Michael F Cohen, Dani Lischinski, and Matt Uytendaele. Joint bilateral upsampling. ACM Transactions on Graphics (ToG), 26(3):96-es, 2007. 2, 4
303
+ [30] Mengcheng Lan, Chaofeng Chen, Yiping Ke, Xinjiang Wang, Litong Feng, and Wayne Zhang. Clearclip: Decomposing clip representations for dense vision-language inference. arXiv preprint arXiv:2407.12442, 2024. 3, 6, 7, 8
304
+ [31] Mengcheng Lan, Chaofeng Chen, Yiping Ke, Xinjiang Wang, Litong Feng, and Wayne Zhang. Proxyclip: Proxy attention improves clip for open-vocabulary segmentation. In European Conference on Computer Vision, pages 70-88. Springer, 2025. 3
305
+ [32] Boyi Li, Kilian Q Weinberger, Serge Belongie, Vladlen Koltun, and René Ranftl. Language-driven semantic segmentation. arXiv preprint arXiv:2201.03546, 2022. 3
306
+ [33] Junnan Li, Dongxu Li, Caiming Xiong, and Steven Hoi. Blip: Bootstrapping language-image pre-training for unified vision-language understanding and generation. In International conference on machine learning, pages 12888-12900. PMLR, 2022. 2
307
+ [34] Junnan Li, Dongxu Li, Silvio Savarese, and Steven Hoi. Blip-2: Bootstrapping language-image pre-training with frozen image encoders and large language models. In International conference on machine learning, pages 19730-19742. PMLR, 2023. 2
308
+ [35] Yanghao Li, Haoqi Fan, Ronghang Hu, Christoph Feichtenhofer, and Kaiming He. Scaling language-image pre-training via masking. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 23390-23400, 2023. 2
309
+ [36] Yi Li, Hualiang Wang, Yiqun Duan, and Xiaomeng Li. Clip surgery for better explainability with enhancement in open-vocabulary tasks. arXiv preprint arXiv:2304.05653, 2023. 3, 6
310
+ [37] Fan Liu, Delong Chen, Zhangqingyun Guan, Xiaocong Zhou, Jiale Zhu, Qiaolin Ye, Liyong Fu, and Jun Zhou. Remoteclip: A vision language foundation model for remote sensing. IEEE Transactions on Geoscience and Remote Sensing, 2024. 2, 8
311
+
312
+ [38] Wenze Liu, Hao Lu, Hongtao Fu, and Zhiguo Cao. Learning to upsample by learning to sample. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 6027-6037, 2023. 2
313
+ [39] Yong Liu, Sule Bai, Guanbin Li, Yitong Wang, and Yansong Tang. Open-vocabulary segmentation with semantic-assisted calibration. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3491-3500, 2024. 3
314
+ [40] Yang Long, Gui-Song Xia, Shengyang Li, Wen Yang, Michael Ying Yang, Xiao Xiang Zhu, Liangpei Zhang, and Deren Li. On creating benchmark dataset for aerial image interpretation: Reviews, guidances and million-aid. IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, 14:4205-4230, 2021. 6, 8
315
+ [41] Hao Lu, Wenze Liu, Zixuan Ye, Hongtao Fu, Yuliang Liu, and Zhiguo Cao. Sapa: Similarity-aware point affiliation for feature upsampling. Advances in Neural Information Processing Systems, 35:20889-20901, 2022. 2
316
+ [42] Huaishao Luo, Junwei Bao, Youzheng Wu, Xiaodong He, and Tianrui Li. Segclip: Patch aggregation with learnable centers for open-vocabulary semantic segmentation. In International Conference on Machine Learning, pages 23033-23044. PMLR, 2023. 3
317
+ [43] Ye Lyu, George Vosselman, Gui-Song Xia, Alper Yilmaz, and Michael Ying Yang. Uavid: A semantic segmentation dataset for uav imagery. ISPRS Journal of Photogrammetry and Remote Sensing, 165:108 - 119, 2020. 5
318
+ [44] Emmanuel Maggiori, Yuliya Tarabalka, Guillaume Charpiat, and Pierre Alliez. Can semantic labeling methods generalize to any city? the inria aerial image labeling benchmark. In 2017 IEEE International geoscience and remote sensing symposium (IGARSS), pages 3226-3229. IEEE, 2017. 6
319
+ [45] Ben Mildenhall, Pratul P Srinivasan, Matthew Tancik, Jonathan T Barron, Ravi Ramamoorthi, and Ren Ng. Nerf: Representing scenes as neural radiance fields for view synthesis. Communications of the ACM, 65(1):99-106, 2021. 3
320
+ [46] Volodymyr Mnih. Machine Learning for Aerial Image Labeling. PhD thesis, University of Toronto, 2013. 6
321
+ [47] Roozbeh Mottaghi, Xianjie Chen, Xiaobai Liu, Nam-Gyu Cho, Seong-Whan Lee, Sanja Fidler, Raquel Urtasun, and Alan Yuille. The role of context for object detection and semantic segmentation in the wild. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 891–898, 2014. 8
322
+ [48] Jishnu Mukhoti, Tsung-Yu Lin, Omid Poursaeed, Rui Wang, Ashish Shah, Philip HS Torr, and Ser-Nam Lim. Open vocabulary semantic segmentation with patch aligned contrastive learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 19413-19423, 2023. 2, 3, 5
323
+ [49] Chao Pang, Jiang Wu, Jiayu Li, Yi Liu, Jiaxing Sun, Wei-jia Li, Xingxing Weng, Shuai Wang, Litong Feng, Gui-Song Xia, et al. H2srvlm: Towards helpful and honest remote sensing large vision language model. arXiv preprint arXiv:2403.20213, 2024. 2
324
+
325
+ [50] Li Pang, Datao Tang, Shuang Xu, Deyu Meng, and Xiangyong Cao. Hsigene: A foundation model for hyperspectral image generation. arXiv preprint arXiv:2409.12470, 2024.2
326
+ [51] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International conference on machine learning, pages 8748-8763. PMLR, 2021. 2, 3, 6, 7, 8
327
+ [52] Kanchana Ranasinghe, Brandon McKinzie, Sachin Ravi, Yinfei Yang, Alexander Toshev, and Jonathon Shlens. Perceptual grouping in contrastive vision-language models. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 5571-5584, 2023. 2, 3, 5
328
+ [53] Esther Rolf, Konstantin Klemmer, Caleb Robinson, and Hannah Kerner. Mission critical-satellite data is a distinct modality in machine learning. arXiv preprint arXiv:2402.01444, 2024. 2, 5
329
+ [54] Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models, 2021. 3
330
+ [55] 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. 2
331
+ [56] Tong Shao, Zhuotao Tian, Hang Zhao, and Jingyong Su. Explore the potential of clip for training-free open vocabulary semantic segmentation. In European Conference on Computer Vision. Springer, 2024. 3
332
+ [57] Gyungin Shin, Weidi Xie, and Samuel Albanie. Reco: Retrieve and co-segment for zero-shot transfer. Advances in Neural Information Processing Systems, 35:33754-33767, 2022. 8
333
+ [58] Krishnakant Singh, Thanush Navaratnam, Jannik Holmer, Simone Schaub-Meyer, and Stefan Roth. Is synthetic data all we need? benchmarking the robustness of models trained with synthetic images. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2505-2515, 2024. 2
334
+ [59] Shuyang Sun, Runjia Li, Philip Torr, Xiuye Gu, and Siyang Li. Clip as rn: Segment countless visual concepts without training endeavor. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13171-13182, 2024. 3
335
+ [60] Aysim Token, Marvin Eisenberger, Daniel Cremers, and Laura Leal-Taixe. Satsynth: Augmenting image-mask pairs through diffusion models for aerial semantic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 27695-27705, 2024. 2
336
+ [61] Adam Van Etten, Dave Lindenbaum, and Todd M Bacastow. Spacenet: A remote sensing dataset and challenge series. arXiv preprint arXiv:1807.01232, 2018. 6
337
+ [62] Feng Wang, Jieru Mei, and Alan Yuille. Sclip: Rethinking self-attention for dense vision-language inference. arXiv preprint arXiv:2312.01597, 2023. 2, 3, 5, 6, 7
338
+
339
+ [63] Junjue Wang, Zhuo Zheng, Ailong Ma, Xiaoyan Lu, and Yanfei Zhong. Loveda: A remote sensing land-cover dataset for domain adaptive semantic segmentation. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks. Curran Associates, Inc., 2021. 5
340
+ [64] Jinglong Wang, Xiawei Li, Jing Zhang, Qingyuan Xu, Qin Zhou, Qian Yu, Lu Sheng, and Dong Xu. Diffusion model is secretly a training-free open vocabulary semantic segmenter. arXiv preprint arXiv:2309.02773, 2023. 3
341
+ [65] Zhecheng Wang, Rajanie Prabha, Tianyuan Huang, Jiajun Wu, and Ram Rajagopal. Skyscript: A large and semantically diverse vision-language dataset for remote sensing. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 5805-5813, 2024. 2, 8
342
+ [66] Syed Waqas Zamir, Aditya Arora, Akshita Gupta, Salman Khan, Guolei Sun, Fahad Shahbaz Khan, Fan Zhu, Ling Shao, Gui-Song Xia, and Xiang Bai. isaid: A large-scale dataset for instance segmentation in aerial images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 28-37, 2019. 5
343
+ [67] Jianzong Wu, Xiangtai Li, Shilin Xu, Haobo Yuan, Henghui Ding, Yibo Yang, Xia Li, Jiangning Zhang, Yunhai Tong, Xudong Jiang, et al. Towards open vocabulary learning: A survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2024. 2, 3
344
+ [68] Junshi Xia, Naoto Yokoya, Bruno Adriano, and Clifford Broni-Bediako. Openearthmap: A benchmark dataset for global high-resolution land cover mapping. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages 6254-6264, 2023. 5, 7
345
+ [69] 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. 2
346
+ [70] Hu Xu, Saining Xie, Xiaqing Ellen Tan, Po-Yao Huang, Russell Howes, Vasu Sharma, Shang-Wen Li, Gargi Ghosh, Luke Zettlemoyer, and Christoph Feichtenhofer. Demystifying clip data. In The Twelfth International Conference on Learning Representations, 2024. 2
347
+ [71] Mengde Xu, Zheng Zhang, Fangyun Wei, Han Hu, and Xiang Bai. San: Side adapter network for open-vocabulary semantic segmentation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2023. 3
348
+ [72] Mengde Xu, Zheng Zhang, Fangyun Wei, Han Hu, and Xiang Bai. Side adapter network for open-vocabulary semantic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2945-2954, 2023. 3
349
+ [73] Kaicheng Yang, Jiankang Deng, Xiang An, Jiawei Li, Ziyong Feng, Jia Guo, Jing Yang, and Tongliang Liu. Alip: Adaptive language-image pre-training with synthetic caption. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 2922-2931, 2023. 2
350
+ [74] D. Zanaga, R. Van De Kerchove, D. Daems, W. De Keersmaecker, C. Brockmann, G. Kirches, J. Wevers, O. Cartus, M. Santoro, S. Fritz, M. Lesiv, M. Herold, NE Tsendbazar, P. Xu, F. Ramoino, and O. Arino. Esa worldwide 10 m 2021 v200, 2022. 2
351
+
352
+ [75] Zilun Zhang, Tiancheng Zhao, Yulong Guo, and Jianwei Yin. Rs5m: A large scale vision-language dataset for remote sensing vision-language foundation model. arXiv preprint arXiv:2306.11300, 2023. 2, 8
353
+ [76] Zhuo Zheng, Yanfei Zhong, Junjue Wang, Ailong Ma, and Liangpei Zhang. Farseg++: Foreground-aware relation network for geospatial object segmentation in high spatial resolution remote sensing imagery. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2023. 2
354
+ [77] Chong Zhou, Chen Change Loy, and Bo Dai. Extract free dense labels from clip. In European Conference on Computer Vision, pages 696-712. Springer, 2022. 3, 6, 7
355
+ [78] Minghao Zhou, Hong Wang, Yefeng Zheng, and Deyu Meng. A refreshed similarity-based upsampler for direct high-ratio feature upsampling. arXiv preprint arXiv:2407.02283, 2024. 2
356
+ [79] Chaoyang Zhu and Long Chen. A survey on open-vocabulary detection and segmentation: Past, present, and future. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2024. 3
357
+ [80] Qiqi Zhu, Yanan Zhang, Lizeng Wang, Yanfei Zhong, Qingfeng Guan, Xiaoyan Lu, Liangpei Zhang, and Deren Li. A global context-aware and batch-independent network for road extraction from vhr satellite imagery. ISPRS Journal of Photogrammetry and Remote Sensing, 175:353-365, 2021. 6
CVPR/2025/SegEarth-OV_ Towards Training-Free Open-Vocabulary Segmentation for Remote Sensing Images/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c226704c02c96e60a84e112a566ef3b3f2fdce3b05fde32db60befa914d3b568
3
+ size 637657
CVPR/2025/SegEarth-OV_ Towards Training-Free Open-Vocabulary Segmentation for Remote Sensing Images/layout.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13fd3719ba28413aa9175e0e0a31d6673dc46c0552dedb8bca800aeb91d8d24e
3
+ size 475566
CVPR/2025/SegMAN_ Omni-scale Context Modeling with State Space Models and Local Attention for Semantic Segmentation/e4f2e2d4-e859-483d-9efe-a289f9871941_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb0629c9a302bbb8c4ae59a696746d231350367615c28b53fe8c3b0f914c48ca
3
+ size 83385
CVPR/2025/SegMAN_ Omni-scale Context Modeling with State Space Models and Local Attention for Semantic Segmentation/e4f2e2d4-e859-483d-9efe-a289f9871941_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1bc6eb8f45ef86ad2f96ab12725e41f3c71a6f3cfa994ea92bc86891de9eea83
3
+ size 103906
CVPR/2025/SegMAN_ Omni-scale Context Modeling with State Space Models and Local Attention for Semantic Segmentation/e4f2e2d4-e859-483d-9efe-a289f9871941_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d9aeb32138f338a8d18ee6d69086c003d5a555ed7c9a6ed53296afbbec527265
3
+ size 6526179
CVPR/2025/SegMAN_ Omni-scale Context Modeling with State Space Models and Local Attention for Semantic Segmentation/full.md ADDED
@@ -0,0 +1,266 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SegMAN: Omni-scale Context Modeling with State Space Models and Local Attention for Semantic Segmentation
2
+
3
+ Yunxiang Fu* Meng Lou* Yizhou Yu†
4
+ School of Computing and Data Science, The University of Hong Kong
5
+ yunxiang@connect.hku.hk, loumeng@connect.hku.hk, yizhouy@acm.org
6
+
7
+ # Abstract
8
+
9
+ High-quality semantic segmentation relies on three key capabilities: global context modeling, local detail encoding, and multi-scale feature extraction. However, recent methods struggle to possess all these capabilities simultaneously. Hence, we aim to empower segmentation networks to simultaneously carry out efficient global context modeling, high-quality local detail encoding, and rich multi-scale feature representation for varying input resolutions. In this paper, we introduce SegMAN, a novel linear-time model comprising a hybrid feature encoder dubbed SegMAN Encoder, and a decoder based on state space models. Specifically, the SegMAN Encoder synergistically integrates sliding local attention with dynamic state space models, enabling highly efficient global context modeling while preserving fine-grained local details. Meanwhile, the MMSCopE module in our decoder enhances multi-scale context feature extraction and adaptively scales with the input resolution. Our SegMAN-B Encoder achieves $85.1\%$ ImageNet-1k accuracy $(+1.5\%)$ over VMamba-S with fewer parameters). When paired with our decoder, the full SegMAN-B model achieves $52.6\%$ mIoU on ADE20K $(+1.6\%)$ over SegNeXt-L with $15\%$ fewer GFLOPs), $83.8\%$ mIoU on Cityscapes $(+2.1\%)$ over SegFormer-B3 with half the GFLOPs), and $1.6\%$ higher mIoU than VWFormer-B3 on COCO-Stuff with lower GFLOPs. Our code is available at https://github.com/yunxiangfu2001/SegMAN.
10
+
11
+ # 1. Introduction
12
+
13
+ As a core computer vision task, semantic segmentation needs to assign a categorical label to every pixel within an image [35]. Accurate semantic segmentation demands three crucial capabilities. First, global context modeling establishes rich contextual dependencies regardless of spatial distance, enabling overall scene understanding [13]. Sec-
14
+
15
+ ![](images/51c3fad2e271e962b3996bc33fd3c9d4ef841a8f425698b5ebdeca43687023f0.jpg)
16
+
17
+ ![](images/04f67f0763cde4fe9f86c544c46a6caa8959873d929907ddb54fe9073a935a96.jpg)
18
+
19
+ ![](images/c0221811783acdd824af8726764f1033ed09282b198a59578ef62115774cb042.jpg)
20
+ Figure 1. SegMAN Encoder classification performance compared with representative vision backbones alongside semantic segmentation results of the full SegMAN model compared to prior state-of-the-art models.
21
+
22
+ ![](images/b3dc0d9af186a4795ab03b602ec1eb4a0649a8cf634de2155990532799098023.jpg)
23
+
24
+ ond, local detail encoding endows fine-grained feature and boundary representations, crucial for differentiating semantic categories and localizing boundaries between adjacent regions with different semantic meanings [59]. Third, context modeling based on multiple intermediate scales promotes semantic representations across multiple scales, addressing intra-class scale variations while enhancing interclass discrimination [2, 57, 63].
25
+
26
+ Recent methods of semantic segmentation have been unable to simultaneously encapsulate all three of these capabilities effectively. For instance, VWFormer [57] introduces a varying window attention (VWA) mechanism that effectively captures multi-scale information through cross-attention between local windows and multiple windows with predefined scales. However, at higher input resolutions, the global context modeling capability of VWA diminishes because the predefined window sizes fail to
27
+
28
+ ![](images/f72c363bff6dcb884f6dd6a85788f7eb4b8a116f9d04c9d1b9c9091f7affb00b.jpg)
29
+ Figure 2. Qualitative analysis of receptive field patterns and segmentation performance for small-sized models (27M-29M parameters). Left: Visualization of effective receptive fields (ERF) on the Cityscapes validation set at $1024 \times 1024$ resolution, illustrating SegMAN's stronger global context modeling capacity in comparison to existing state-of-the-art models. Right: Segmentation maps highlighting SegMAN's superior capacity to encode fine-grained local details that are often missed by existing approaches.
30
+
31
+ ![](images/17a947d2086f3a7fa19b74bc534e8818df350732814b0a58d6191eafc65a7036.jpg)
32
+
33
+ ![](images/3c5f359fc11268f75effdcefecea150e22e04114f03cac8795bdf0a4c25d40bf.jpg)
34
+
35
+ maintain full feature map coverage. In addition, larger windows significantly increase the computational cost as self-attention exhibits quadratic complexity. Likewise, EDAFormer [60] proposes an embedding-free spatial reduction attention (SRA) mechanism to implement global attention efficiently and an all-attention decoder for global and multi-scale context modeling. However, fine-grained details are lost due to its reliance on downsampled features for token-to-region attention. Moreover, the absence of dedicated local operators in the feature encoder limits fine-grained feature learning [56, 60].
36
+
37
+ To present a more intuitive understanding of the aforementioned issues, we visualize the effective receptive field (ERF) maps and segmentation maps of recent state-of-the-art models [56, 57, 60] with 27M-29M parameters. As depicted in Figure 2 (Left), the ERF of VWFormer [57] and EDAFormer [60] has limited feature map coverage when processing high-resolution Cityscapes images. Meanwhile, the segmentation maps in Figure 2 (Right) reveal that existing methods have a limited ability to recognize fine-grained local details, which we attribute to insufficient local feature modeling in these architectures.
38
+
39
+ In this work, we aim to encapsulate omni-scale context modeling for a varying input resolution within a semantic segmentation network. As a result, we propose SegMAN, a novel segmentation network capable of carrying out efficient global context modeling, high-quality local detail encoding, and rich context representation at diverse scales
40
+
41
+ simultaneously. Our SegMAN introduces two novel subnetworks: (1) a hybrid feature encoder that integrates Local Attention and State Space models (LASS) in the token mixer, and (2) a decoder with a Mamba-based Multi-Scale Context Extraction (MMSCopE) module. In the SegMAN Encoder, LASS leverages a two-dimensional state space model (SS2D) [28] for global context modeling and neighborhood attention [19] (Natten) for local detail encoding, both functioning in linear time. The dynamic global scanning in our method always covers the full feature map, enabling robust global context modeling across varying input resolutions and all encoder layers. Meanwhile, by performing local attention within a sliding window, Natten exhibits an outstanding capability in fine-grained local detail encoding. Our decoder complements the encoder with robust feature learning across multiple scales. The core MMSCopE module first aggregates semantic context from multiple regions of the encoder feature map. Then it uses SS2D to scan each regionally aggregated feature map to learn multiscale contexts at linear complexity. For higher efficiency, the feature maps at different scales are reshaped to the same resolution and concatenated so that scanning only needs to be performed on a single feature map. Note that our method differs from existing methods in two aspects. First, unlike multi-kernel convolution [2] and multi-scale window attention [57], our design adaptively scales with the input resolution. Second, by performing SS2D-based scanning over entire multi-scale feature maps, our method better preserves
42
+
43
+ fine-grained details that are typically compromised by pooling operations [36, 63] or spatial reduction attention [60] in existing methods.
44
+
45
+ As shown in Figure 1, our SegMAN Encoder shows superior performance compared to representative vision backbones on ImageNet-1k. When paired with our novel decoder, the full SegMAN model establishes new state-of-the-art segmentation performance on ADE20K [65], Cityscapes [8], and COCO-Stuff-164k [1]. To summarize, our contributions are threefold:
46
+
47
+ - We introduce a novel encoder architecture featuring our LASS token mixer that synergistically combines local attention with state space models for efficient global context modeling and local detail encoding.
48
+ - We propose MMSCopE, a novel decoder module that operates on multi-scale feature maps that adaptively scale with the input resolution, surpassing previous approaches in both fine-grained detail preservation and omni-scale context learning.
49
+ - We demonstrate through comprehensive experiments that SegMAN, powered by LASS and MMSCopE, establishes new state-of-the-art performance while maintaining competitive computational efficiency across multiple challenging semantic segmentation benchmarks.
50
+
51
+ # 2. Related work
52
+
53
+ Segmentation encoders. Prior research in semantic segmentation architectures typically comprises two key components: an encoder for feature extraction from input images and a decoder for multi-scale context learning and pixel-wise classification. While conventional approaches often adapt popular classification networks such as ResNet [20], ConvNeXt [30], PVT [49], and SwinTransformer [29], along with advanced backbones [31-33, 41] as encoders, improvements in classification performance do not necessarily translate to enhanced segmentation capabilities [21], primarily due to the requirement for fine-grained spatial information in segmentation tasks. This observation has motivated the development of specialized segmentation-oriented encoders [18, 39, 45, 53, 56, 58, 60, 64]. In this paper, we introduce a novel segmentation encoder that integrates local attention with dynamic State Space Models (Mamba) [16]. In contrast to previous works, our design enables the simultaneous modeling of fine-grained details and global contexts while maintaining linear time complexity.
54
+
55
+ Segmentation decoders. Multi-scale feature learning plays a fundamental role in semantic segmentation, leading to numerous innovations in decoder architectures. Seminal works established various approaches to multi-scale feature aggregation, including the adaptive pooling strategy of PSPNet [63], atrous convolutions in the DeepLab series [2-4], and feature pyramid network (FPN) based decoders
56
+
57
+ such as UPerNet [54] and Semantic FPN [23]. Contemporary architectures have advanced both efficiency and performance through diverse approaches to multi-scale feature fusion, including MLP-based methods (Segformer [56]), Matrix decomposition modules (SegNeXt [15, 18]), Transformers (FeedFormer [43], VWFormer [57]), and convolutions (CGRSeg [36]). An approach relevant to ours is VWFormer [57], which employs cross-attention between local windows and multiple larger windows with predefined scales to capture multi-scale contexts. However, its reliance on fixed window scales limits its global context modeling capability: as the input resolution increases, the predefined windows fail to maintain complete feature map coverage. In contrast, our proposed decoder adaptively extracts context features at different scales while maintaining full feature map coverage regardless of the input resolution.
58
+
59
+ Vision Mamba. Dynamic state space models represented by Mamba [16] have demonstrated promising performance in sequence modeling. Mamba combines structured state space models [17, 44] with selective scanning, enabling global context modeling with dynamic weights and linear time complexity. These favorable properties have led to promising results on vision tasks. For example, VMamba [28] and ViM [67] are Mamba-based vision backbone networks. Other works have explored Mamba for medical imaging [26, 40], 3D point clouds [27, 62], and image/video generation [12, 14, 46]. In this paper, we leverage Mamba to learn global contexts in the encoder and multiscale contexts in the decoder for segmentation.
60
+
61
+ # 3. Method
62
+
63
+ # 3.1. Overall Architecture
64
+
65
+ As shown in Figure 3, our proposed SegMAN consists of a newly designed feature encoder and decoder. Specifically, we propose a novel hybrid feature encoder based on core mechanisms from both Transformer and dynamic State Space Models [16], and a Mamba-based Multi-Scale Context Extraction module (MMSCopE) in the decoder. The hierarchical SegMAN Encoder integrates Neighborhood Attention (Natten) [19] and the 2D-Selective-Scan Block (SS2D in VMamba) [28] within the token mixer termed Local Attention and State Space (LASS), enabling comprehensive feature learning at both global and local scales across all layers while maintaining linear computational complexity. Meanwhile, MMSCoPE dynamically and adaptively extracts multi-scale semantic information by processing feature maps at varying levels of granularity using SS2D [28], with the scales adaptively adjusted according to the input resolution. Collectively, the SegMAN Encoder injects robust global contexts and local details into a feature pyramid, where feature maps are progressively downsampled and transformed to produce omni-scale fea
66
+
67
+ ![](images/9814e5c48a327bbb74e528d1a4cf1ee1fe640fb3b411388efb26af3b9f9dd8d9.jpg)
68
+ Figure 3. Overall Architecture of SegMAN. (a) Hierarchical SegMAN Encoder. (b) LASS for modeling global contexts and local details with linear complexity. (c) The SegMAN Decoder. (d) The MMSCopE module for multi-scale contexts extraction.
69
+
70
+ ![](images/15ed16b7245d6b9a34af397fd2d8300c9044612461ce46d752f10e2cc58d5b0c.jpg)
71
+
72
+ tures at different pyramid levels. This feature pyramid is then fed into MMSCopE, where features are further aggregated spatially as well as across scales, resulting in comprehensive multi-scale representations that can be used for dense prediction.
73
+
74
+ # 3.2. Feature encoder
75
+
76
+ Overview. As shown in Figure 3, our SegMAN Encoder is a standard four-stage network [29, 30], where each stage begins with a strided $3 \times 3$ convolution for spatial reduction, followed by a series of LASS Blocks. Each LASS Block includes pre-layer normalization, a novel LASS module, and a feedforward network (FFN) [10, 19, 29]. Our proposed LASS represents the first integration of local self-attention (Natten [19]) and state space models (SS2D [28]) for semantic segmentation, capturing local details and global contexts simultaneously with linear time complexity. Ablation studies (Table 5) confirm the necessity of both components.
77
+
78
+ Local attention and state space module. Long-range dependency modeling is crucial for semantic segmentation as they enable comprehensive context learning and scene understanding, as demonstrated by the success of Transformer-based semantic segmentation models [34, 39, 56, 60, 64]. To efficiently learn global contexts across all network layers, we leverage the SS2D block in VMamba [28]. This variant of a dynamic state space model named Mamba [16] adopts four distinct and complementary scanning paths, enabling each token to integrate informa
79
+
80
+ <table><tr><td>SegMAN Encoder</td><td>Channels</td><td>Blocks</td><td>Params (M)</td><td>FLOPs (G)</td></tr><tr><td>Tiny</td><td>[32, 64, 144, 192]</td><td>[2, 2, 4, 2]</td><td>3.5</td><td>0.65</td></tr><tr><td>Small</td><td>[64, 144, 288, 512]</td><td>[2, 2, 10, 4]</td><td>25.5</td><td>4.05</td></tr><tr><td>Base</td><td>[80, 160, 364, 560]</td><td>[4, 4, 18, 4]</td><td>45.0</td><td>9.94</td></tr><tr><td>Large</td><td>[96, 192, 432, 640]</td><td>[4, 4, 28, 4]</td><td>81.0</td><td>16.8</td></tr></table>
81
+
82
+ Table 1. Configurations of the three SegMAN Encoder variants. FLOPs were measured at the $224 \times 224$ resolution.
83
+
84
+ tion from all other tokens in four different directions.
85
+
86
+ However, while Mamba [16] achieves linear time complexity by compressing the global context of each channel into a fixed-dimensional hidden state [16], this compression inherently leads to information loss, in particular, loss of fine-grained local spatial details, that are crucial in segmentation to accurately localize region boundaries. To this end, we utilize Neighborhood Attention (Natten) [19], where a sliding-window attention mechanism localizes every pixel's attention span to its immediate neighborhood. This approach retains translational equivalence, effectively captures local dependencies, and has linear time complexity. In practice, we serially stack Natten and SS2D, and a shortcut around SS2D is employed to merge local and global information. The merged output is then fed into a $1 \times 1$ convolution layer for further global-local feature fusion.
87
+
88
+ Network architecture. Our SegMAN Encoder produces a feature pyramid. The spatial resolution of $F_{i}$ is $\frac{H}{2^{1 + i}} \times \frac{W}{2^{1 + i}}$ , where $H$ and $W$ are the height and width
89
+
90
+ of the input image, respectively. We design three SegMAN Encoder variants with different model sizes, each with computational complexity comparable to some existing semantic segmentation encoders [18, 56, 60]. As the feature map resolution at Stage 4 is $(\frac{H}{32} \times \frac{W}{32})$ , global self-attention [48] becomes computationally feasible. Therefore we replace SS2D with this more powerful global context modeling mechanism. The configurations of these models are presented in Table 1.
91
+
92
+ # 3.3. Feature Decoder
93
+
94
+ Overview. As shown in Figure 3, our proposed decoder first aggregates features at various levels of abstraction (from low-level $F_{2}$ to high-level $F_{4}$ ) to obtain a feature map $F$ of size $\frac{H}{8} \times \frac{W}{8}$ , as in prior works [56, 57]. Specifically, each feature map $F_{i}$ is projected to a lower dimension using a $1 \times 1$ convolution followed by batch normalization and ReLU, collectively denoted as 'Conv' in Figure 3. Subsequently, $F_{3}$ and $F_{4}$ are upsampled using bilinear interpolation to match the spatial dimensions of $F_{2}$ . The upsampled features $F_{up3}$ and $F_{up4}$ are concatenated together with $F_{2}$ and passed through a Conv layer for channel dimension reduction, resulting in $F$ with size $\frac{H}{8} \times \frac{W}{8} \times C$ , where $C$ is the number of channels. The feature map $F$ is then processed by our proposed MMSCopE module to extract rich multi-scale context features, producing a new feature map $F'$ . We then add the feature map $F'$ to $F_{2}$ , $F_{up3}$ , and $F_{up4}$ to enrich their multi-scale contexts. The final prediction pathway concatenates $F'$ with these context-enhanced features and the global pooling result on $F_{up4}$ , passes the combined features through a two-layer MLP, and the result is upsampled to the input resolution.
95
+
96
+ Mamba-based multi-scale context extraction. To effectively extract contexts at different scales, we propose a Mamba-based Multi-Scale Context Extraction (MMSCopE) module. As shown in Figure 3, we apply strided convolutions to downsample the feature map $F$ , generating $F_{s2}$ and $F_{s4}$ with a resolution equal to $1/2$ and $1/4$ of that of $F$ , respectively. The motivation behind this is to obtain multiple regionally aggregated contexts through two derived feature maps: $F_{s2}$ , which aggregates features from $3 \times 3$ neighborhoods using a convolution with stride 2, and $F_{s4}$ , which aggregates features from $5 \times 5$ neighborhoods with stride 4. Then, motivated by the observation that Mamba scans each channel independently, we use a single Mamba scan to simultaneously extract contexts from the three feature maps $F$ , $F_{s2}$ , and $F_{s4}$ . The main idea is to concatenate these feature maps along the channel dimension and perform a single Mamba scan, which is more efficient on the GPU than processing each feature map separately. However, the spatial dimensions of these feature maps are not consistent, which prevents direct concatenation. To resolve this, we employ lossless downsampling via the Pixel
97
+
98
+ Unshuffle [42] operation to reduce the spatial dimensions of $F$ and $F_{s2}$ to match that of $F_{s4}$ , which is $\frac{H}{32} \times \frac{W}{32}$ . Specifically, this operation rearranges non-overlapping $4 \times 4$ patches from $F$ and $2 \times 2$ patches from $F_{s2}$ into their respective channel dimension, increasing the channel depth by a factor of 16 and 4 respectively, while preserving complete spatial information. The transformed feature maps retain information at their original scales. To reduce computational costs, we project each feature map to a fixed channel dimension $C$ through $1 \times 1$ convolutions. This step assigns equal importance to the context information from each scale. Then we concatenate the projected feature maps along the channel dimension, and pass the combined feature map to SS2D [28] to achieve multi-scale context extraction in a single scan. The resulting feature map is of size $\frac{H}{8} \times \frac{W}{8} \times 3C$ , where the three segments along the channel dimension correspond to earlier feature maps at three distinct scales ( $F$ , $F_{s2}$ , and $F_{s4}$ ). To facilitate context mixing across scales, we append a $1 \times 1$ convolution layer after the SS2D scan. Finally, we use bilinear interpolation to up-sample the mixed features to $1/8$ of the input resolution, and project the channel dimension down to $C$ using another $1 \times 1$ convolution. This yields the new feature map $F'$ with mixed multi-scale contexts.
99
+
100
+ Multi-scale fusion. Instead of directly using the feature map $F'$ to predict pixel labels, we further exploit stage-specific representations from the encoder by adding $F'$ to $F_2$ , $F_{up3}$ , and $F_{up4}$ . This effectively injects multi-scale contexts into stage-specific feature maps, which inherits information from various levels of abstraction. Next, we concatenate the resulting context-enhanced feature maps from each stage, the multi-scale context feature $F'$ , and the global average pooling result on $F_{up4}$ . For pixel-wise label prediction, the diverse concatenated features are fused through a two-layer MLP, and further bilinearly interpolated to restore the original input resolution.
101
+
102
+ # 4. Experiments
103
+
104
+ # 4.1. Setting
105
+
106
+ Datasets. Following previous works [18, 56], we firstly pre-train our SegMAN Encoder on the ImageNet-1K dataset [9]. Then, we evaluate the semantic segmentation performance on three commonly used datasets: ADE20K [65], a challenging scene parsing benchmark consisting of 20,210 images annotated with 150 semantic categories; Cityscapes [8], an urban driving dataset comprising 5,000 high-resolution images with 19 semantic categories; and COCO-Stuff-164K [1], which contains 164,000 images labeled across 172 semantic categories.
107
+
108
+ Implementation details. We conducted ImageNet pretraining using the Timm library [52] with hyperparameters and data augmentation settings identical to those of Swin
109
+
110
+ <table><tr><td rowspan="2">Method</td><td rowspan="2">Params(M)</td><td colspan="2">ADE20K</td><td colspan="2">Cityscapes</td><td colspan="2">COCO-Stuff</td></tr><tr><td>GFLOP</td><td>mIoU</td><td>GFLOP</td><td>mIoU</td><td>GFLOP</td><td>mIoU</td></tr><tr><td>Segformer-B0 [56]</td><td>3.8</td><td>8.4</td><td>37.4</td><td>125.5</td><td>76.2</td><td>8.4</td><td>35.6</td></tr><tr><td>SegNeXt-T [18]</td><td>4.3</td><td>7.7</td><td>41.1</td><td>61.6</td><td>78.9</td><td>7.7</td><td>38.7</td></tr><tr><td>VWFormer-B0 [57]</td><td>3.7</td><td>5.8</td><td>38.9</td><td>112.4</td><td>77.2</td><td>5.8</td><td>36.2</td></tr><tr><td>EDAFormer-T [60]</td><td>4.9</td><td>5.8</td><td>42.3</td><td>151.7</td><td>78.7</td><td>5.8</td><td>40.3</td></tr><tr><td>CGRSeg-T† [36]</td><td>9.4</td><td>4.8</td><td>42.5</td><td>65.5</td><td>78.3</td><td>4.8</td><td>40.4</td></tr><tr><td>SegMAN-T</td><td>6.4</td><td>6.2</td><td>43.0</td><td>52.5</td><td>80.3</td><td>6.2</td><td>41.3</td></tr><tr><td>Swin UperNet-T [29]</td><td>60.0</td><td>236.0</td><td>44.4</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>ViT-CoMer-S [53]</td><td>61.4</td><td>296.1</td><td>46.5</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>OCRNet [61]</td><td>70.5</td><td>164.8</td><td>45.6</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>Segformer-B2 [56]</td><td>27.5</td><td>62.4</td><td>46.5</td><td>717.1</td><td>81.0</td><td>62.4</td><td>44.6</td></tr><tr><td>MaskFormer [5]</td><td>42.0</td><td>55.0</td><td>46.7</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>Mask2Former [6]</td><td>47.0</td><td>74.0</td><td>47.7</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>SegNeXt-B [18]</td><td>27.6</td><td>34.9</td><td>48.5</td><td>279.1</td><td>82.6</td><td>34.9</td><td>45.8</td></tr><tr><td>FeedFormer-B2 [43]</td><td>29.1</td><td>42.7</td><td>48.0</td><td>522.7</td><td>81.5</td><td>-</td><td>-</td></tr><tr><td>VWFormer-B2 [57]</td><td>27.4</td><td>46.6</td><td>48.1</td><td>415.1</td><td>81.7</td><td>46.6</td><td>45.2</td></tr><tr><td>EDAFormer-B [60]</td><td>29.4</td><td>32.1</td><td>49.0</td><td>605.9</td><td>81.6</td><td>32.1</td><td>45.9</td></tr><tr><td>CGRSeg-T† [36]</td><td>35.7</td><td>16.5</td><td>47.3</td><td>199.7</td><td>80.2</td><td>16.5</td><td>45.2</td></tr><tr><td>SegMAN-S</td><td>29.4</td><td>25.3</td><td>51.3</td><td>218.4</td><td>83.2</td><td>25.3</td><td>47.5</td></tr><tr><td>Segformer-B3 [56]</td><td>47.3</td><td>79.0</td><td>49.4</td><td>962.9</td><td>81.7</td><td>79.0</td><td>45.5</td></tr><tr><td>SegNeXt-L [18]</td><td>48.9</td><td>70.0</td><td>51.0</td><td>577.5</td><td>83.2</td><td>70.0</td><td>46.5</td></tr><tr><td>VWFormer-B3 [57]</td><td>47.3</td><td>63.3</td><td>50.3</td><td>637.1</td><td>82.4</td><td>63.3</td><td>46.8</td></tr><tr><td>SegMAN-B</td><td>51.8</td><td>58.1</td><td>52.6</td><td>479.0</td><td>83.8</td><td>58.1</td><td>48.4</td></tr><tr><td>Swin UperNet-B [29]</td><td>121.0</td><td>261.0</td><td>48.1</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>ViT-CoMer-B [53]</td><td>144.7</td><td>455.4</td><td>48.8</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>Segformer-B5 [56]</td><td>84.7</td><td>110.3</td><td>51.0</td><td>1149.8</td><td>82.4</td><td>110.3</td><td>46.7</td></tr><tr><td>VWFormer-B5 [57]</td><td>84.6</td><td>96.1</td><td>52.0</td><td>1139.6</td><td>82.8</td><td>96.1</td><td>48.0</td></tr><tr><td>SegMAN-L</td><td>92.4</td><td>97.1</td><td>53.2</td><td>796.0</td><td>84.2</td><td>97.1</td><td>48.8</td></tr></table>
111
+
112
+ Table 2. Comparison with state-of-the-art semantic segmentation models on ADE20K, Cityscapes, and COCO-Stuff-164K. FLOPs are calculated at $512 \times 512$ (ADE20K, COCO-Stuff) and $2048 \times 1024$ (Cityscapes) resolutions.
113
+
114
+ <table><tr><td>Models</td><td>Params(M)</td><td>GFLOP</td><td>Acc</td></tr><tr><td>MiT-B0 [56]</td><td>3.8</td><td>0.60</td><td>70.5</td></tr><tr><td>EFT-T [60]</td><td>3.7</td><td>0.60</td><td>72.3</td></tr><tr><td>MSCAN-T [18]</td><td>4.2</td><td>0.89</td><td>75.9</td></tr><tr><td>SegMAN-T Encoder</td><td>3.5</td><td>0.65</td><td>76.2</td></tr><tr><td>MiT-B2 [56]</td><td>24</td><td>4.0</td><td>81.6</td></tr><tr><td>EFT-B [60]</td><td>26</td><td>4.2</td><td>82.4</td></tr><tr><td>MSCAN-B [18]</td><td>27</td><td>4.4</td><td>83.0</td></tr><tr><td>Swin-T [29]</td><td>28</td><td>4.5</td><td>81.2</td></tr><tr><td>ConvNeXt-T [30]</td><td>28</td><td>4.5</td><td>82.1</td></tr><tr><td>InternImage-T [51]</td><td>30</td><td>5.0</td><td>83.5</td></tr><tr><td>ViM-S [67]</td><td>26</td><td>-</td><td>81.6</td></tr><tr><td>VMamba-T [28]</td><td>29</td><td>4.9</td><td>82.6</td></tr><tr><td>SparX-Mamba-T [32]</td><td>27</td><td>5.2</td><td>83.5</td></tr><tr><td>SegMAN-S Encoder</td><td>26</td><td>4.1</td><td>84.0</td></tr><tr><td>MiT-B3 [56]</td><td>45</td><td>6.9</td><td>83.1</td></tr><tr><td>MSCAN-L [18]</td><td>45</td><td>9.1</td><td>83.9</td></tr><tr><td>Swin-S [29]</td><td>50</td><td>8.7</td><td>83.2</td></tr><tr><td>ConvNeXt-S [30]</td><td>50</td><td>8.7</td><td>83.1</td></tr><tr><td>InternImage-S [51]</td><td>50</td><td>8.0</td><td>84.2</td></tr><tr><td>VMamba-S [28]</td><td>50</td><td>8.7</td><td>83.6</td></tr><tr><td>SparX-Mamba-S [32]</td><td>47</td><td>9.3</td><td>84.2</td></tr><tr><td>SegMAN-B Encoder</td><td>45</td><td>9.9</td><td>85.1</td></tr><tr><td>MiT-B5 [56]</td><td>82</td><td>11.8</td><td>83.8</td></tr><tr><td>Swin-B [29]</td><td>88</td><td>15.4</td><td>83.5</td></tr><tr><td>ConvNeXt-B [30]</td><td>89</td><td>15.4</td><td>83.8</td></tr><tr><td>InternImage-B [51]</td><td>97</td><td>16.7</td><td>84.9</td></tr><tr><td>ViM-B [67]</td><td>98</td><td>-</td><td>83.2</td></tr><tr><td>VMamba-B [28]</td><td>89</td><td>15.4</td><td>83.9</td></tr><tr><td>SparX-Mamba-B [32]</td><td>84</td><td>15.9</td><td>84.5</td></tr><tr><td>SegMAN-L Encoder</td><td>81</td><td>16.8</td><td>85.5</td></tr></table>
115
+
116
+ Table 3. Comparison with state-of-the-art vision backbones on ImageNet-1K. FLOPs are calculated at $224 \times 224$ resolution.
117
+
118
+ Transformer [29]. Regarding semantic segmentation, we trained all models using the MMSegmentation library [7], combining the pre-trained SegMAN Encoder with a randomly initialized decoder. Following the Segformer training protocol [56], we employed standard data augmentation techniques, including random horizontal flipping and random scaling (ratio of 0.5 to 2.0). We implemented dataset-specific random cropping with dimensions of $512 \times 512$ for ADE20K and COCO-Stuff, and $1024 \times 1024$ for Cityscapes. We trained the models using the AdamW optimizer for 160K iterations with batch sizes of 16 for ADE20K and COCO-Stuff, and 8 for Cityscapes. The learning rate is set to 1e-6 with 1500 warmup iterations. We evaluated segmentation performance using mean intersection over union (mIoU) and computed FLOPs using the fvcore library [11]. All models were trained on 8 NVIDIA H800 GPUs.
119
+
120
+ # 4.2. Comparison with state-of-the-art methods
121
+
122
+ This section presents a comprehensive comparison of our proposed SegMAN with state-of-the-art segmentation methods on three widely used datasets.
123
+
124
+ Baselines. We compare our method with other strong competitors including EDAFormer [60], VWFormer [57] and CGRSeg [36], Segformer [56], and SegNeXt [18].
125
+
126
+ Note that the Efficientformer-v2 [25] used in CGRSeg [36] significantly benefits from knowledge distillation from RegNetY-16GF [38] (83.6M parameters, 15.9 GFLOPs) and extended training duration of 450 epochs compared to the conventional 300 epochs, providing a stronger encoder network compared to other methods. To ensure a fair comparison, we retrained Efficientformer-v2 on ImageNet-1K using the same training configurations as Swin [29]. We report results for CGRSeg by fine-tuning this retrained encoder following official implementations.
127
+
128
+ Results. Table 2 shows the superior performance of SegMAN across all three datasets: ADE20K, Cityscapes, and COCO-Stuff-164K. Among lightweight models, SegMAN-T achieves the best performance, with $43.0\%$ mIoU on ADE20K, $80.3\%$ mIoU on Cityscapes, and $41.3\%$ mIoU on COCO-Stuff, while maintaining comparable computational costs. Our SegMAN-S model achieves significant performance improvements compared to state-of-the-art methods. On the ADE20K benchmark, it surpasses the recently introduced EDAFormer-B [60] by $2.3\%$ mIoU, and even outperforms the larger SegNeXt-L [18] model, which has 48.9M parameters, by $0.3\%$ mIoU. The performance gains extend to the COCO-Stuff dataset, where SegMAN-S demonstrates improvements of $1.6\%$ mIoU over EDAFormer-B and $1.0\%$
129
+
130
+ <table><tr><td>Model</td><td>Params (M)</td><td>GFLOPs</td><td>FPS</td><td>mIoU</td></tr><tr><td>Segformer-B0 [56]</td><td>3.8</td><td>125.5</td><td>21.8</td><td>76.2</td></tr><tr><td>SegNext-T [18]</td><td>4.3</td><td>61.6</td><td>25.8</td><td>78.9</td></tr><tr><td>VWFormer-B0 [57]</td><td>3.7</td><td>112.4</td><td>21.1</td><td>77.2</td></tr><tr><td>EDAFourner-T [60]</td><td>4.9</td><td>151.7</td><td>12.7</td><td>78.7</td></tr><tr><td>CGRSeg-T [36]</td><td>9.3</td><td>65.5</td><td>27.6</td><td>78.3</td></tr><tr><td>SegMAN-T</td><td>6.4</td><td>52.5</td><td>34.9</td><td>80.3</td></tr><tr><td>Segformer-B2 [56]</td><td>27.5</td><td>717.1</td><td>10.2</td><td>81.0</td></tr><tr><td>SegNext-B [18]</td><td>27.6</td><td>279.1</td><td>14.1</td><td>82.6</td></tr><tr><td>VWFormer-B2 [57]</td><td>27.4</td><td>415.1</td><td>9.87</td><td>81.7</td></tr><tr><td>EDAFourner-B [60]</td><td>29.4</td><td>605.9</td><td>6.6</td><td>81.6</td></tr><tr><td>CGRSeg-B [36]</td><td>35.6</td><td>199.0</td><td>11.8</td><td>80.2</td></tr><tr><td>SegMAN-S</td><td>29.4</td><td>218.4</td><td>13.8</td><td>83.2</td></tr><tr><td>Segformer-B3 [56]</td><td>46.3</td><td>962.9</td><td>6.7</td><td>81.7</td></tr><tr><td>SegNext-L [18]</td><td>48.9</td><td>577.5</td><td>10.1</td><td>83.2</td></tr><tr><td>VWFormer-B3 [57]</td><td>47.3</td><td>637.1</td><td>6.3</td><td>82.4</td></tr><tr><td>SegMAN-B</td><td>51.8</td><td>479.0</td><td>7.2</td><td>83.8</td></tr><tr><td>Segformer-B5 [56]</td><td>84.7</td><td>1460.4</td><td>3.5</td><td>81.7</td></tr><tr><td>VWFormer-B5 [57]</td><td>84.6</td><td>1139.6</td><td>3.7</td><td>82.4</td></tr><tr><td>SegMAN-L</td><td>92.4</td><td>796.0</td><td>5.2</td><td>84.2</td></tr></table>
131
+
132
+ mIoU over SegNeXt-L. Notably, SegMAN-S achieves these superior results while reducing computational complexity by over $20\%$ , requiring only 25.3 GFLOPs compared to EDAFormer-B. On Cityscapes, SegMAN-S achieves $83.2\%$ mIoU, surpassing EDAFormer-B by $1.6\%$ . Moreover, SegMAN-B surpasses previous best performing models by $1.6\%$ on both ADE20K and COCO-Stuff while incurring lower computational cost. On Cityscapes, SegMAN-B improves SOTA by $0.6\%$ mIoU using $17\%$ less GFLOPs. Similarly, our largest SegMAN-L model achieves $+1.2\%$ , $+1.0\%$ , and $+0.8\%$ gains over prior SOTA on ADE20K, Cityscapes, and COCO-Stuff, respectively. The consistent performance gains across different datasets and model scales validate the effectiveness of our proposed SegMAN, which can simultaneously capture global contexts, local details, and multi-scale information through its LASS-based encoder and MMSCopE-based decoder.
133
+
134
+ Speed Analysis. We benchmark inference speed on Cityscapes [8] using an NVIDIA L40S GPU, averaging Frames Per Second (FPS) over 128 steps with batch size 2. As shown in Table 4, SegMAN-T achieves $+1.6\%$ mIoU at approximately 3 times the speed of EDAFormer-T, highlighting an excellent balance between performance and speed.
135
+
136
+ # 4.3. Comparison with state-of-the-art backbones
137
+
138
+ In Table 3, we evaluate the classification performance of our proposed SegMAN Encoder on ImageNet-1K [9], comparing against two categories of architectures: state-of-the-art segmentation encoders (MiT [56], MSCAN [56], EFT [60]) and representative vision backbones (Swin
139
+
140
+ Table 4. Comparison of model complexity and inference speed on Cityscapes [8] (2048 × 1024 resolution).
141
+
142
+ <table><tr><td>Model Variant</td><td>Params (M)</td><td>GFLOPs</td><td>FPS</td><td>Acc</td><td>mIoU</td></tr><tr><td>SegMAN-S Encoder</td><td>25.5</td><td>21.4</td><td>139</td><td>84.0</td><td>51.3</td></tr><tr><td colspan="6">Replace LASS</td></tr><tr><td>MaxViT [47]</td><td>24.6</td><td>29.8</td><td>96</td><td>83.5 (-0.5)</td><td>47.2 (-4.1)</td></tr><tr><td>ACMix [37]</td><td>24.9</td><td>19.3</td><td>104</td><td>83.1 (-0.9)</td><td>48.6 (-2.7)</td></tr><tr><td>PVT [49]</td><td>29.5</td><td>22.0</td><td>169</td><td>82.8 (-1.2)</td><td>49.1 (-2.2)</td></tr><tr><td>BiFormer [66]</td><td>25.2</td><td>30.5</td><td>97</td><td>82.9 (-1.1)</td><td>48.8 (-2.5)</td></tr><tr><td colspan="6">LASS Design</td></tr><tr><td>Parallel Natten and SS2D</td><td>25.5</td><td>21.4</td><td>129</td><td>83.8 (-0.2)</td><td>48.9 (-2.4)</td></tr><tr><td>w/o SS2D residual</td><td>26.1</td><td>21.4</td><td>132</td><td>83.7 (-0.3)</td><td>50.2 (-1.1)</td></tr><tr><td>Stage 4 Attn → SS2D</td><td>30.0</td><td>21.8</td><td>121</td><td>83.7 (-0.3)</td><td>50.6 (-0.7)</td></tr><tr><td colspan="6">SS2D within LASS</td></tr><tr><td>Replace SS2D w SRA [49]</td><td>26.0</td><td>22.3</td><td>142</td><td>83.7 (-0.3)</td><td>50.6 (-0.7)</td></tr><tr><td>Replace SS2D w L-Attn [22]</td><td>27.6</td><td>21.8</td><td>150</td><td>83.6 (-0.4)</td><td>49.5 (-1.8)</td></tr><tr><td>Remove SS2D</td><td>25.0</td><td>20.9</td><td>162</td><td>83.6 (-0.4)</td><td>47.4 (-3.9)</td></tr><tr><td colspan="6">Natten within LASS</td></tr><tr><td>Replace Natten w Conv</td><td>25.8</td><td>20.7</td><td>160</td><td>83.1 (-0.9)</td><td>49.5 (-1.8)</td></tr><tr><td>Replace Natten w Swin [29]</td><td>30.0</td><td>21.6</td><td>147</td><td>83.5 (-0.5)</td><td>50.3 (-1.0)</td></tr><tr><td>Remove Natten [19]</td><td>24.9</td><td>25.9</td><td>100</td><td>83.6 (-0.4)</td><td>49.8 (-1.5)</td></tr></table>
143
+
144
+ Table 5. Ablation studies and comparison of token mixers for SegMAN encoder. FLOPs and FPS are calculated or measured at $512 \times 512$ resolution using the encoder.
145
+
146
+ Transformer [29], ConvNeXt [30], InternImage [51] ViM [67], VMamba [28], SparX-Mamba [32]). SegMAN Encoder variants consistently achieve superior classification accuracy in comparison to architectures of similar computational complexity. Specifically, SegMAN-S Encoder significantly surpasses ConvNeXt-T and MSCAN-B by $1.9\%$ and $1.0\%$ in Top-1 accuracy, respectively. SegMAN-B Encoder demonstrates similar improvements over Swins and MSCAN-L by $1.9\%$ and $1.2\%$ , respectively. The promising performance across model variants demonstrates the benefits of integrating local attention with state space models to effectively capture both fine-grained details and global contextual information. A more detailed comparison can be found in the supplementary material.
147
+
148
+ # 4.4. Ablation studies on SegMAN encoder
149
+
150
+ We systematically evaluate SegMAN Encoder's architectural design on ImageNet-1K [9] and ADE20K [65]. Our LASS token mixer integrates Neighborhood Attention (Natten [19]) and 2D-Selective-Scan (SS2D), with a residual connection added to SS2D to fuse global and local contexts. In Stage 4 blocks, we replace SS2D with global attention for enhanced high-level feature modeling.
151
+
152
+ To validate these architectural decisions, we conduct comprehensive ablation studies examining: (1) comparative performance against alternative token mixers, (2) design choices of LASS, and (3) the impact of individual components within the token mixer. In all experiments, including token mixer replacements, we maintain consistent model complexity by adjusting channel dimensions to achieve comparable parameter counts and computational costs. Table 5 presents our findings.
153
+
154
+ Alternative token mixers. We evaluate the effectiveness of LASS by replacing it with recent token mixers
155
+
156
+ <table><tr><td>Model</td><td>Params (M)</td><td>GFLOPs</td><td>mIoU (%)</td></tr><tr><td>UPerNet [54]</td><td>27.1</td><td>38.7</td><td>50.4</td></tr><tr><td>MLP Decoder [56]</td><td>25.0</td><td>32.7</td><td>50.3</td></tr><tr><td>Ham Decoder [18]</td><td>25.3</td><td>29.5</td><td>50.4</td></tr><tr><td>VWFormer Decoder [57]</td><td>28.2</td><td>40.7</td><td>50.5</td></tr><tr><td>CGRHead [36]</td><td>44.2</td><td>24.5</td><td>50.3</td></tr><tr><td>EDAFormer Decoder [60]</td><td>28.5</td><td>26.2</td><td>50.2</td></tr><tr><td>SegMAN-S Decoder</td><td>29.4</td><td>25.3</td><td>51.3</td></tr></table>
157
+
158
+ Table 6. Comparison of complexity and accuracy of segmentation decoders. FLOPs are calculated at $512 \times 512$ resolution.
159
+
160
+ (MaxViT [47], ACMix [37], PVT [49], and BiFormer [66]). Note that we implement MaxViT's Block-SA and Grid-SA modules in series to serve as a token mixer. As shown in Table 5, our LASS achieves consistent and substantial improvements across both classification and segmentation tasks while maintaining competitive computational costs. The performance gains stem from the complementary nature between Natten, which models fine-grained local features, and SS2D, which efficiently models global contexts.
161
+
162
+ Alternative LASS mixer designs. We explore alternative methods to integrate SS2D and Natten together in LASS. Results indicate that parallel arrangement of Natten and SS2D and removing the residual connections for SS2D lead to substantial performance drops in both classification accuracy and segmentation mIoU.
163
+
164
+ SS2D and Natten. We analyze the two key components of LASS through systematic ablations. When SS2D is replaced with alternative global attention mechanisms, performance consistently decreases: SRA [49] $(-0.3\%)$ accuracy, $-0.7\%$ mIoU) and Linear Attention [22] $(-0.4\%)$ accuracy, $-1.8\%$ mIoU). Likewise, replacing Natten with either convolutions $(-0.9\%)$ accuracy, $-1.8\%$ mIoU) or Shifted-Window Attention [29] $(-0.5\%)$ accuracy, $-1.0\%$ mIoU) leads to significant performance degradation, demonstrating the effectiveness of our component choices.
165
+
166
+ # 4.5. Ablation studies on SegMAN decoder
167
+
168
+ We investigate both the overall effectiveness of our proposed decoder and the performance of individual components of the MMSCopE module using the ADE20K dataset [65]. For a fair comparison, we ensure that different model variants have comparable computational complexity by adjusting the number of channels. Here, all ablations are conducted using the SegMAN-S decoder.
169
+
170
+ Decoder comparisons and encoder generalization. Table 6 evaluates decoder efficacy under controlled conditions, where all models employ our SegMAN-S Encoder. We benchmark against decoders from representative methods [18, 36, 56, 57, 60] with matched model sizes and computational budgets—UPerNet's channel dimensions were adjusted to ensure equivalent GFLOPs. Our decoder achieves superior mIoU.
171
+
172
+ Notably, integrating our SegMAN Encoder with third
173
+
174
+ <table><tr><td>Model Variant</td><td>Params (M)</td><td>GFLOPs</td><td>FPS</td><td>mIoU</td></tr><tr><td>SegMAN-S</td><td>29.4</td><td>25.3</td><td>128</td><td>51.3</td></tr><tr><td colspan="5">Scan Strategy</td></tr><tr><td>Independent scans</td><td>28.7</td><td>25.9</td><td>65 (-63)</td><td>51.5 (+0.2)</td></tr><tr><td colspan="5">Multi-scale feature</td></tr><tr><td>w/o 16×16</td><td>28.9</td><td>24.8</td><td>130 (+2)</td><td>51.0 (-0.3)</td></tr><tr><td>w/o 32×32</td><td>28.5</td><td>24.5</td><td>132 (+4)</td><td>50.8 (-0.5)</td></tr><tr><td>w/o 64×64</td><td>28.3</td><td>24.3</td><td>131 (+3)</td><td>50.6 (-0.7)</td></tr><tr><td>64×64 only</td><td>26.2</td><td>23.6</td><td>137 (+9)</td><td>50.9 (-0.4)</td></tr><tr><td colspan="5">Compression</td></tr><tr><td>w/o compression</td><td>30.3</td><td>26.7</td><td>98 (-30)</td><td>51.0 (-0.3)</td></tr><tr><td>Channels 1C:2C:4C</td><td>31.2</td><td>25.3</td><td>124 (-4)</td><td>50.8 (-0.5)</td></tr><tr><td colspan="5">Architecture Components</td></tr><tr><td>w/o FFN</td><td>28.4</td><td>24.8</td><td>129 (+1)</td><td>51.2 (-0.1)</td></tr></table>
175
+
176
+ Table 7. Ablation studies on the MMSCopE module in SegMAN decoder. FLOPs and FPS are measured at $512 \times 512$ resolution.
177
+
178
+ party decoders yields significant performance gains: $+2.1\%$ for VWFormer, $+1.9\%$ for SegNeXt, and $+1.2\%$ for EDAFormer over their original encoder-decoder configurations (Table 2). This highlights our encoder's generalization and plug-and-play capability.
179
+
180
+ Ablation studies on the MMSCopE module. Table 7 presents the impact of various components within the MMSCopE module: (1) Switching to independently scanning each feature map instead of our proposed simultaneous scanning strategy significantly reduces FPS from 128 to 65; (2) The inclusion of multi-scale features yields consistent performance gains. Specifically, removing the feature map at $16 \times 16$ , $32 \times 32$ , or $64 \times 64$ resolution inside the MMSCopE module results in sub-optimal mIoU, with the removal of the $64 \times 64$ feature map resulting in the largest performance drop of $0.7\%$ . Additionally, using the $64 \times 64$ feature map alone without pixel unshuffling and compression leads to a $0.4\%$ decline. (3) Channel compression before SS2D proves beneficial, as its removal reduces mIoU by $0.3\%$ . Alternative channel scaling configuration (1C, 2C, 4C) for the three feature scales yields suboptimal results; (4) The FFN following SS2D provides a marginal benefit of $0.1\%$ .
181
+
182
+ # 5. Conclusion
183
+
184
+ This work presents a new segmentation network with two novel components: SegMAN Encoder, a hierarchical encoder that synergistically integrates state space models with local attention, and MMSCopE, an efficient decoder module that leverages state space models for multi-scale context extraction. SegMAN Encoder enables simultaneous modeling of fine-grained spatial details and global contextual information while MMSCopE adaptively scales with the input resolution while processing multi-scale features. We conduct comprehensive evaluations across multiple benchmarks, which demonstrates that our approach achieves state-of-the-art performance in semantic segmentation.
185
+
186
+ # Acknowledgement
187
+
188
+ This work was supported by Hong Kong Research Grants Council under the NSFC/RGC Collaborative Research Scheme (Grant CRS_HKU703/24).
189
+
190
+ # References
191
+
192
+ [1] Holger Caesar, Jasper Uijlings, and Vittorio Ferrari. Cocostuff: Thing and stuff classes in context. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1209-1218, 2018. 3, 5
193
+ [2] 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. 1, 2, 3
194
+ [3] Liang-Chieh Chen, George Papandreou, Florian Schroff, and Hartwig Adam. Rethinking atrous convolution for semantic image segmentation. ArXiv, abs/1706.05587, 2017.
195
+ [4] 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. 3
196
+ [5] 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. 6
197
+ [6] 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. 6
198
+ [7] MMSegmentation Contributors. MMSegmentation: Openmmlab semantic segmentation toolbox and benchmark. https://github.com/open-mmlab/mmsegmentation, 2020.6
199
+ [8] 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. 3, 5, 7
200
+ [9] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pages 248-255. IEEE, 2009. 5, 7
201
+ [10] Alexey Dosovitskiy. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020. 4
202
+ [11] FAIR. fvcore. https://github.com/facebookresearch/fvcore, 2021.6
203
+ [12] Zhengcong Fei, Mingyuan Fan, Changqian Yu, and Junshi Huang. Scalable diffusion models with state space backbone. arXiv preprint arXiv:2402.05608, 2024. 3
204
+
205
+ [13] Jun Fu, Jing Liu, Hajjie Tian, Yong Li, Yongjun Bao, Zhiwei Fang, and Hanqing Lu. Dual attention network for scene segmentation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 3146-3154, 2019. 1
206
+ [14] Yunxiang Fu, Chaoqi Chen, and Yizhou Yu. Lamamba-diff: Linear-time high-fidelity diffusion models based on local attention and mamba. arXiv preprint arXiv:2408.02615, 2024. 3
207
+ [15] Zhengyang Geng, Meng-Hao Guo, Hongxu Chen, Xia Li, Ke Wei, and Zhouchen Lin. Is attention better than matrix decomposition? arXiv preprint arXiv:2109.04553, 2021. 3
208
+ [16] Albert Gu and Tri Dao. Mamba: Linear-time sequence modeling with selective state spaces. arXiv preprint arXiv:2312.00752, 2023. 3, 4
209
+ [17] Albert Gu, Isys Johnson, Karan Goel, Khaled Saab, Tri Dao, Atri Rudra, and Christopher Ré. Combining recurrent, convolutional, and continuous-time models with linear state space layers. Advances in neural information processing systems, 34:572-585, 2021. 3
210
+ [18] 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. 3, 5, 6, 7, 8, 2
211
+ [19] Ali Hassani, Steven Walton, Jiachen Li, Shen Li, and Humphrey Shi. Neighborhood attention transformer. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 6185-6194, 2023. 2, 3, 4, 7
212
+ [20] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016. 3
213
+ [21] Tong He, Zhi Zhang, Hang Zhang, Zhongyue Zhang, Junyuan Xie, and Mu Li. Bag of tricks for image classification with convolutional neural networks. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 558-567, 2019. 3
214
+ [22] Angelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, and François Fleuret. Transformers are rnns: Fast autoregressive transformers with linear attention. In International conference on machine learning, pages 5156-5165. PMLR, 2020. 7, 8
215
+ [23] Alexander Kirillov, Ross Girshick, Kaiming He, and Piotr Dollar. Panoptic feature pyramid networks. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 6399-6408, 2019. 3
216
+ [24] Feng Li, Hao Zhang, Huaizhe Xu, Shilong Liu, Lei Zhang, Lionel M Ni, and Heung-Yeung Shum. Mask dino: Towards a unified transformer-based framework for object detection and segmentation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 3041-3050, 2023. 2
217
+ [25] Yanyu Li, Ju Hu, Yang Wen, Georgios Evangelidis, Kamyar Salahi, Yanzhi Wang, Sergey Tulyakov, and Jian Ren. Rethinking vision transformers for mobilenet size and speed. In Proceedings of the IEEE international conference on computer vision, 2023. 6
218
+
219
+ [26] Jiarun Liu, Hao Yang, Hong-Yu Zhou, Yan Xi, Lequan Yu, Yizhou Yu, Yong Liang, Guangming Shi, Shaoting Zhang, Hairong Zheng, et al. Swin-unamba: Mamba-based unet with imagenet-based pretraining. arXiv preprint arXiv:2402.03302, 2024. 3
220
+ [27] Jiuming Liu, Ruiji Yu, Yian Wang, Yu Zheng, Tianchen Deng, Weicai Ye, and Hesheng Wang. Point mamba: A novel point cloud backbone based on state space model with octree-based ordering strategy. arXiv preprint arXiv:2403.06467, 2024. 3
221
+ [28] Yue Liu, Yunjie Tian, Yuzhong Zhao, Hongtian Yu, Lingxi Xie, Yaowei Wang, Qixiang Ye, and Yunfan Liu. Vmamba: Visual state space model. arXiv preprint arXiv:2401.10166, 2024. 2, 3, 4, 5, 6, 7
222
+ [29] 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. 3, 4, 6, 7, 8, 2
223
+ [30] Zhuang Liu, Hanzi Mao, Chao-Yuan Wu, Christoph Feichtenhofer, Trevor Darrell, and Saining Xie. A convnet for the 2020s. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 11976-11986, 2022. 3, 4, 6, 7, 2
224
+ [31] Meng Lou and Yizhou Yu. Overlock: An overview-firstlook-closely- next convnet with context-mixing dynamic kernels. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2025. 3
225
+ [32] Meng Lou, Yunxiang Fu, and Yizhou Yu. Sparx: A sparse cross-layer connection mechanism for hierarchical vision mamba and transformer networks. In Proceedings of the AAAI Conference on Artificial Intelligence, 2025. 6, 7, 2
226
+ [33] Meng Lou, Shu Zhang, Hong-Yu Zhou, Chuan Wu, Sibei Yang, and Yizhou Yu. Transxnet: Learning both global and local dynamics with a dual dynamic token mixer for visual recognition. IEEE Transactions on Neural Networks and Learning Systems, 2025. 3
227
+ [34] Chenyang Lu, Daan de Geus, and Gijs Dubbelman. Content-aware token sharing for efficient semantic segmentation with vision transformers. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 23631-23640, 2023. 4
228
+ [35] 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. 1
229
+ [36] Zhenliang Ni, Xinghao Chen, Yingjie Zhai, Yehui Tang, and Yunhe Wang. Context-guided spatial feature reconstruction for efficient semantic segmentation. arXiv preprint arXiv:2405.06228, 2024. 3, 6, 7, 8
230
+ [37] Xuran Pan, Chunjiang Ge, Rui Lu, Shiji Song, Guanfu Chen, Zeyi Huang, and Gao Huang. On the integration of self-attention and convolution. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 815–825, 2022. 7, 8
231
+ [38] Ilija Radosavovic, Raj Prateek Kosaraju, Ross Girshick, Kaiming He, and Piotr Dólar. Designing network design
232
+
233
+ spaces. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 10428-10436, 2020. 6
234
+ [39] 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. 3, 4
235
+ [40] Jiacheng Ruan and Suncheng Xiang. Vm-unet: Vision mamba unet for medical image segmentation. arXiv preprint arXiv:2402.02491, 2024. 3
236
+ [41] Dai Shi. Transnext: Robust foveal visual perception for vision transformers. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 17773-17783, 2024. 3
237
+ [42] Wenzhe Shi, Jose Caballero, Ferenc Huszár, Johannes Totz, Andrew P Aitken, Rob Bishop, Daniel Rueckert, and Zehan Wang. Real-time single image and video super-resolution using an efficient sub-pixel convolutional neural network. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1874-1883, 2016. 5, 1
238
+ [43] Jae-hun Shim, Hyunwoo Yu, Kyeongbo Kong, and SukJu Kang. Feedformer: Revisiting transformer decoder for efficient semantic segmentation. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 2263-2271, 2023. 3, 6
239
+ [44] Jimmy TH Smith, Andrew Warrington, and Scott W Linderman. Simplified state space layers for sequence modeling. arXiv preprint arXiv:2208.04933, 2022. 3
240
+ [45] Quan Tang, Bowen Zhang, Jiajun Liu, Fagui Liu, and Yifan Liu. Dynamic token pruning in plain vision transformers for semantic segmentation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 777-786, 2023. 3
241
+ [46] Yao Teng, Yue Wu, Han Shi, Xuefei Ning, Guohao Dai, Yu Wang, Zhenguo Li, and Xihui Liu. Dim: Diffusion mamba for efficient high-resolution image synthesis. arXiv preprint arXiv:2405.14224, 2024. 3
242
+ [47] Zhengzhong Tu, Hossein Talebi, Han Zhang, Feng Yang, Peyman Milanfar, Alan Bovik, and Yinxiao Li. Maxvit: Multi-axis vision transformer. In European conference on computer vision, pages 459-479. Springer, 2022. 7, 8, 1, 2
243
+ [48] 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. 5
244
+ [49] 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 Proceedings of the IEEE/CVF international conference on computer vision, pages 568-578, 2021. 3, 7, 8
245
+ [50] Wenhai Wang, Enze Xie, Xiang Li, Deng-Ping Fan, Kaitao Song, Ding Liang, Tong Lu, Ping Luo, and Ling Shao. Pvt v2: Improved baselines with pyramid vision transformer. Computational Visual Media, 8(3):415-424, 2022. 1, 2
246
+ [51] Wenhai Wang, Jifeng Dai, Zhe Chen, Zhenhang Huang, Zhiqi Li, Xizhou Zhu, Xiaowei Hu, Tong Lu, Lewei Lu,
247
+
248
+ Hongsheng Li, et al. Internimage: Exploring large-scale vision foundation models with deformable convolutions. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 14408-14419, 2023. 6, 7, 2
249
+ [52] Ross Wightman. Pytorch image models. https://github.com/rwrightman/pytorch-image-models, 2019.5
250
+ [53] Chunlong Xia, Xinliang Wang, Feng Lv, Xin Hao, and Yifeng Shi. Vit-comer: Vision transformer with convolutional multi-scale feature interaction for dense predictions. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 5493-5502, 2024. 3, 6
251
+ [54] 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. 3, 8
252
+ [55] Yicheng Xiao, Lin Song, Jiangshan Wang, Siyu Song, Yixiao Ge, Xiu Li, Ying Shan, et al. Mambatree: Tree topology is all you need in state space model. Advances in Neural Information Processing Systems, 37:75329-75354, 2025. 1, 2
253
+ [56] 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. 2, 3, 4, 5, 6, 7, 8
254
+ [57] Haotian Yan, Ming Wu, and Chuang Zhang. Multi-scale representations by varying window attention for semantic segmentation. *ICLR*, 2024. 1, 2, 3, 5, 6, 7, 8
255
+ [58] Chenglin Yang, Yilin Wang, Jianming Zhang, He Zhang, Zijun Wei, Zhe Lin, and Alan Yuille. Lite vision transformer with enhanced self-attention. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 11998-12008, 2022. 3
256
+ [59] Changqian Yu, Jingbo Wang, Chao Peng, Changxin Gao, Gang Yu, and Nong Sang. Learning a discriminative feature network for semantic segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1857-1866, 2018. 1
257
+ [60] Hyunwoo Yu, Yubin Cho, Beoungwoo Kang, Seunghun Moon, Kyeongbo Kong, and Suk-Ju Kang. Embedding-free transformer with inference spatial reduction for efficient semantic segmentation. In European Conference on Computer Vision, pages 92-110. Springer, 2024. 2, 3, 4, 5, 6, 7, 8
258
+ [61] Yuhui Yuan, Xilin Chen, and Jingdong Wang. Object-contextual representations for semantic segmentation. In Computer Vision-ECCV 2020: 16th European Conference, Glasgow, UK, August 23–28, 2020, Proceedings, Part VI 16, pages 173–190. Springer, 2020. 6
259
+ [62] Tao Zhang, Xiangtai Li, Haobo Yuan, Shunping Ji, and Shuicheng Yan. Point could mamba: Point cloud learning via state space model. arXiv preprint arXiv:2403.00762, 2024. 3
260
+ [63] Hengshuang Zhao, Jianping Shi, Xiaojuan Qi, Xiaogang Wang, and Jiaya Jia. Pyramid scene parsing network. In
261
+
262
+ Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2881-2890, 2017. 1, 3
263
+ [64] Sixiao Zheng, Jiachen Lu, Hengshuang Zhao, Xiatian Zhu, Zekun Luo, Yabiao Wang, Yanwei Fu, Jianfeng Feng, Tao Xiang, Philip HS Torr, et al. Rethinking semantic segmentation from a sequence-to-sequence perspective with transformers. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 6881-6890, 2021. 3, 4
264
+ [65] 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. 3, 5, 7, 8, 1
265
+ [66] Lei Zhu, Xinjiang Wang, Zhanghan Ke, Wayne Zhang, and Rynson WH Lau. Bformer: Vision transformer with bi-level routing attention. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 10323-10333, 2023. 7, 8
266
+ [67] Lianghui Zhu, Bencheng Liao, Qian Zhang, Xinlong Wang, Wenyu Liu, and Xinggang Wang. Vision mamba: Efficient visual representation learning with bidirectional state space model. arXiv preprint arXiv:2401.09417, 2024. 3, 6, 7, 2
CVPR/2025/SegMAN_ Omni-scale Context Modeling with State Space Models and Local Attention for Semantic Segmentation/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b22706ca031718045935c844a6df51734ca4e6bec1ed5b37cca0db4db3ff39d8
3
+ size 649061
CVPR/2025/SegMAN_ Omni-scale Context Modeling with State Space Models and Local Attention for Semantic Segmentation/layout.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e98cd0d85a2766a666a2ac00a28bc73c6ccd96085a47296a6a7f202ba3cfe4ae
3
+ size 415397
CVPR/2025/Segment Any Motion in Videos/25801bc1-cb6e-4673-83cb-3317052d8a3e_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c2a678e14c08c5a984cd30e9e8c3561e174f2d3a44dba5f727db46cbe42c4758
3
+ size 75774
CVPR/2025/Segment Any Motion in Videos/25801bc1-cb6e-4673-83cb-3317052d8a3e_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b5fc414dade56dc00a371bb47b593bbc62dfaa59bb6288258ee62aa0c108561
3
+ size 99362
CVPR/2025/Segment Any Motion in Videos/25801bc1-cb6e-4673-83cb-3317052d8a3e_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0b136555813bdc4350ca4efd75b711be680b3d2bd821b145bf2975ed2cf53fb
3
+ size 3279366
CVPR/2025/Segment Any Motion in Videos/full.md ADDED
@@ -0,0 +1,287 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Segment Any Motion in Videos
2
+
3
+ Nan Huang $^{1,2}$ Wenzhao Zheng $^{1}$ Chenfeng Xu $^{1}$
4
+
5
+ Kurt Keutzer<sup>1</sup> Shanghang Zhang<sup>2</sup> Angjoo Kanazawa<sup>1</sup> Qianqian Wang<sup>1</sup>
6
+
7
+ $^{1}$ UC Berkeley $^{2}$ Peking University
8
+
9
+ # Abstract
10
+
11
+ Moving object segmentation is a crucial task for achieving a high-level understanding of visual scenes and has numerous downstream applications. Humans can effortlessly segment moving objects in videos. Previous work has largely relied on optical flow to provide motion cues; however, this approach often results in imperfect predictions due to challenges such as partial motion, complex deformations, motion blur and background distractions. We propose a novel approach for moving object segmentation that combines long-range trajectory motion cues with DINO-based semantic features and leverages SAM2 for pixel-level mask densification through an iterative prompting strategy. Our model employs Spatio-Temporal Trajectory Attention and Motion-Semantic Decoupled Embedding to prioritize motion while integrating semantic support. Extensive testing on diverse datasets demonstrates state-of-the-art performance, excelling in challenging scenarios and fine-grained segmentation of multiple objects. Our code is available at https://motion-seg.github.io/.
12
+
13
+ # 1. Introduction
14
+
15
+ Segmenting moving objects in videos is crucial for a range of applications, including action recognition, autonomous driving [10, 22, 65], and 4D reconstruction [58]. Many prior works address this problem under terms such as Video Object Segmentation (VOS) or motion segmentation. In this paper, we define our task as moving object segmentation (MOS) – segmenting objects that exhibit observable motion within the video. This definition differs from Video Object Segmentation, which includes objects that have the potential to move even if they remain static in the video, and from motion segmentation, which may also capture background motion, such as flowing water. This task is challenging as it implicitly requires distinguishing between camera motion and object motion, robustly tracking objects despite deformations, occlusions, rapid or transient movement, and segmenting them out with precise, clean masks.
16
+
17
+ Recently, promptable visual segmentation has made sig-
18
+
19
+ ![](images/07a9fb0c4a3f2bb43614fb8a96b9368c7d223a5dab597264f772a8b7094c63c2.jpg)
20
+ Images Inputs
21
+
22
+ ![](images/7f4b5e5d77431c72fc717d29d86ea4d6bfef2736025714a0e333d8ee118ce27b.jpg)
23
+ Long-range Tracks Inputs
24
+
25
+ ![](images/17999daec2d298cfd1cf83cfbfafe2ab68f057c34adf14c8b242985204e42ca2.jpg)
26
+ Filtered Dynamic Tracks
27
+
28
+ ![](images/fb1d6e5661c408ab80fe66d3b08236f93ef6e30d8fc79449d03efc06992b9b6f.jpg)
29
+ Dynamic Masks
30
+ Figure 1. Our method is capable of handling challenging scenarios, including articulated structures, shadow reflections, dynamic background motion, and drastic camera movements, while producing per object level fine-grained moving object masks.
31
+
32
+ nificant progress. Taking points, masks, or bounding boxes as prompts, SAM2 [51] segments and tracks the associated objects in videos effectively. However, SAM2 cannot natively handle MOS, as it has no mechanism to detect which objects are moving.
33
+
34
+ We propose an innovative combination of long-range tracks with SAM2 for moving object segmentation to exploit the capabilities of SAM2. First, point tracking captures valuable long-range pixel motion information which is robust to deformation and occlusion, as shown in Fig. 2. At the same time, we incorporate DINO feature [12, 45], to add semantic context as a complementary source of information to support motion-based segmentation. We depart from traditional MOS approaches by training a model on extensive datasets that effectively combines motion and semantic information at a high level. Given a set of long-range 2D tracks, our model is designed to identify those tracks that correspond to moving objects. Once these dynamic tracks are identified, we apply a sparse-to-dense mask densification strategy, which uses an Iterative Prompting method in conjunction with SAM2 [51] to transform the sparse, point-level mask into a pixel-level segmentation. Since the primary objective is moving object segmentation, we em
35
+
36
+ phasize motion cues while using semantic information as secondary support. To effectively balance these two types of information, we propose two specialized modules. (1) Spatio-Temporal Trajectory Attention. Given the long-term nature of input tracks, our model incorporates spatial attention to capture relationships between different trajectories and temporal attention to monitor changes within individual trajectories over time. (2) Motion-Semantic Decoupled Embedding. We implement special attention mechanisms to prioritize motion patterns and process semantic features in supplementary pathways.
37
+
38
+ We trained our model on extensive datasets, including both synthetic [19, 28] and real-world data [36]. Due to the self-supervised nature of DINO features [45], our model demonstrates strong generalization capabilities, even when primarily trained on synthetic data. We evaluated our approach on benchmarks [34, 43, 47, 48] that were not part of the training data, and the results show that our method significantly outperforms baseline models in diverse tasks.
39
+
40
+ While previous MOS methods leverage optical flow [6, 8, 9] to capture motion information, either by identifying different motion groups [6, 46, 53, 59] or by using learning-based models [8, 9, 18, 40, 49] to derive pixel masks from optical flow. However, optical flow is limited to short-range motion and can lose track over extended durations. Other methods [3, 7, 14, 42] rely on point trajectories as motion cues, but traditionally utilize spectral clustering on affinity matrices which struggle with complex motions. Though some methods also attempt to take advantage of appearance cues [24, 61] to help understand motion better, they typically handle different modalities in diverse separate stages, limiting the effective integration of their complementary information. Addressing these limitations, our unified framework achieves threefold integration: long-range trajectory, DINO feature, and SAM2. This design explains the model's exceptional capability in handling challenging cases like articulated motion and reflective surfaces as shown in the Fig. 1, and the superior performance in fine-grained segmentation of multiple objects.
41
+
42
+ In summary, we make the following contributions:
43
+
44
+ - We introduce an innovative combination of long-range tracks with SAM2, which enables efficient mask densification and tracking across frames.
45
+ - To obtain motion labels for trajectories, we propose a method that differs from traditional affinity matrix-based approaches and introduce the Motion-Semantic Decoupled Embedding, which enables a more effective integration of motion and semantic information, enhancing track-level segmentation by balancing these cues.
46
+ - Extensive results on multiple benchmarks demonstrate the effectiveness of our method, particularly in fine-grained moving object segmentation.
47
+
48
+ ![](images/ab45f340d5aba1c22638bfe22ecbb3971cec194d68e95e81ce73d22508750aaa.jpg)
49
+ Figure 2. The effectiveness of long-range tracks. Over longer periods of time, if a moving object experiences factors such as occlusion or changes in lighting, it can negatively affect the tracking performance of optical-flow-based methods for that object.
50
+
51
+ # 2. Related Work
52
+
53
+ Flow-based Moving Object Segmentation. Traditionally, optical flow based methods [6, 46, 53, 59] segment moving objects by grouping motion cues to create a moving object mask. These methods typically employ iterative optimization or statistical inference techniques to estimate motion models and identify motion regions simultaneously. Recently, numerous deep learning-based approaches [8, 9, 18, 37, 40, 49, 62] have used CNN encoders or transformer to extract motion cues from optical flow, followed by decoders to produce the final segmentation. The main distinctions among these methods lie in model architecture; for instance, methods that encode semantic information often utilize multiple CNN encoders to process different data modalities separately. In general, optical-flow-based methods struggle to distinguish independent object motion from apparent motion caused by depth differences. Furthermore, strong brightness changes also adversely affect these methods. Additionally, optical-flow-based methods are limited to short temporal sequences; they perform poorly if objects move slowly or are occluded.
54
+
55
+ Trajectory-based Moving Object Segmentation. Trajectory-based methods can be typically classified into two categories: two-frame and multi-frame methods. Two-frame methods [3, 14, 25] generally estimate motion parameters by solving an iterative energy minimization problem, which are recently powered with various convolutional neural network (CNN) models [54, 74]. Multi-frame methods, in contrast, often utilize spectral clustering based on affinity matrices. These matrices are derived through techniques such as geometric model fitting [2, 23, 32, 63], subspace fitting [17, 50, 55, 57], or pairwise motion affinities that integrate motion and appearance information [7, 24, 30, 42]. Recent work has
56
+
57
+ ![](images/793c8605cb0f9ea599925f309d49bb867c5c5df877a34c5ad62678ba59658385.jpg)
58
+
59
+ ![](images/0da4e64087b6fcecac7b640e67dd85abdd8f2fe3b1e7db97b2a135266d5da7f9.jpg)
60
+ Figure 3. Overview of Our Pipeline. We take 2D tracks and depth maps generated by off-the-shelf models [15, 66] as input, which are then processed by a motion encoder to capture motion patterns, producing featured tracks. Next, we use tracks decoder that integrates DINO feature [45] to decode the featured tracks by decoupling motion and semantic information and ultimately obtain the dynamic trajectories(a). Finally, using SAM2 [51], we group dynamic tracks belonging to the same object and generate fine-grained moving object masks(b).
61
+
62
+ focused on the search for more effective motion models. For instance, [1] uses the trifocal tensor to analyze point trajectories, arguing that it provides more reliable matches over three images than fundamental matrices can over two. However, the trifocal tensor also poses challenges: it is difficult to optimize and prone to failure when the three camera positions are nearly collinear[44]. Other studies [27, 64] have proposed geometric model fusion techniques to combine different models. Some recent work has explored integrating multiple motion cues [21, 41]. For example, [24] investigates combining point trajectories and optical flow, using well-crafted geometric motion models to fuse the two affinity matrices through co-regularized multi-view spectral clustering. However, these approaches still face inherent issues due to their reliance on affinity matrices. They tend to capture only local similarities, leading to poor global consistency, resulting in inconsistent segmentation. Furthermore, affinity matrices is difficult to capture dynamic changes in motion features like speed and direction over time. In contrast, we address the challenge of capturing motion similarities across diverse motion types.
63
+
64
+ Unsupervised Video Object Segmentation. Unsupervised Video Object Segmentation (VOS) aims to automatically identify and track salient objects in raw video footage, while semi-supervised VOS relies on first-frame ground truth annotations to segment objects in subsequent frames [47, 48]. In this work, we focus on Unsupervised VOS, referred to here simply as "VOS". Recently, many approaches [68, 71] have combined motion and appearance information. For instance, MATNet [73] introduces a motion-attentive transition model for unsupervised VOS, leveraging
65
+
66
+ ing motion cues to guide segmentation with a primary focus on appearance. RTNet [52] presents a method based on reciprocal transformations, using the consistency of object appearance and motion between consecutive frames to achieve segmentation. FSNet [26] employs a full-duplex strategy with a dual-path network to jointly model both appearance and motion. Overall, VOS generally targets salient objects in videos, regardless of whether the object is moving. Although many VOS methods incorporate motion information, it is often not their primary focus.
67
+
68
+ # 3. Method
69
+
70
+ Our objective is, given a video, to identify moving objects and generate pixel-level dynamic masks. Fig. 3 provides an overview of our pipeline. The central insight is that long-range tracks not only capture motion patterns that facilitate video understanding but also offer long-range prompts essential for promptable visual segmentation. Thus, we use long-range point tracks as motion cues, serving as the primary input in Sec. 3.1, where we apply spatial-temporal attention to capture context-aware feature. In Sec. 3.2, we further incorporate and decouple the use of semantic information with motion cues to decode features, helping the model predict the final motion labels. After identifying dynamic tracks, we leverage these long-range tracks to prompt SAM2 [51] iteratively, as described in Sec. 3.3.
71
+
72
+ # 3.1. Motion Pattern Encoding
73
+
74
+ Point trajectories carry valuable information for understanding motion, and related MOS methods can be typi
75
+
76
+ cally classified into two categories: two-frame and multiframe methods. However, as discussed in Sec. 2, two-frame methods [3, 14, 25] often suffer from significant temporal inconsistencies and exhibit degraded performance when input flows are noisy. Multi-frame methods, in contrast, often utilize spectral clustering based on affinity matrices. Nevertheless, they remain highly sensitive to noise and struggle to handle global, dynamic, and complex motion patterns effectively.
77
+
78
+ To address these limitations, and inspired by ParticleSFM [72], we propose a method that leverages long-range point tracks [15], processed through a specialized trajectory processing model, to predict per-trajectory motion labels. As illustrated in Fig. 3, our proposed network adopts an encoder-decoder architecture. The encoder directly processes long-range trajectory data and applies a Spatio-Temporal Trajectory Attention mechanism across trajectories. This mechanism integrates both spatial and temporal cues, capturing both local and global information across time and space, in order to embed the motion pattern of each trajectory.
79
+
80
+ Given that the accuracy and quality of long-range trajectories significantly impact model performance, we utilize BootsTAP [15] to generate the tracks, which provides a confidence score for each track at each time step, enabling us to mask out low-confidence points. Furthermore, due to the movement of dynamic objects and camera motion, the visibility of long-range tracks can vary over time, as they may be occluded or move out of the frame. This variability in visibility and confidence makes each trajectory data highly irregular, motivating our use of a transformer model, inspired by sequence modeling approaches in natural language processing [56, 72], to handle the data effectively.
81
+
82
+ Our input data comprises long-range trajectories, with each trajectory consisting of normalized pixel coordinates $(u_{i},v_{i})$ , visibility $\rho_{i}$ and confidence scores $c_{i}$ , where $i\in$ (0, time). Masks $\mathcal{M}_i$ is applied to indicate points where the pixel coordinates are either invisible or low-confidence. Additionally, we integrate monocular depth maps $d_{i}$ estimated by Depth-Anything [66], which, despite some noise, provide valuable insights into the underlying 3D scene structure, enhancing understanding of spatial layout and occlusions. To further enrich the input data and strengthen temporal motion cues, we compute frame-to-frame differences in both trajectory coordinates $(\Delta u_{i},\Delta v_{i})$ and depth $\Delta d_{i}$ for adjacent frames.
83
+
84
+ Since adjacent sampling points in coordinates can lead to oversmoothing of spatially close features, we draw inspiration from NeRF [39] to address this issue. Specifically, we apply frequency transformations for positional encoding to better capture fine-grained spatial details.
85
+
86
+ The final augmented trajectories pass through two MLPs to generate intermediate features, which are then fed into
87
+
88
+ the transformer encoder. Given the long-range nature of the input data, we propose a Spatio-Temporal Trajectory Attention for our encoder $\mathcal{E}$ , interleaves attention layers that operate alternately across track and temporal dimensions [4, 29]. This design allows the model to capture both the temporal dynamics within each trajectory and the spatial relationships across different trajectories. Finally, to obtain a feature representation for each entire trajectory rather than individual points, we perform max-pooling along the temporal dimension, following [72]. This process yields a single feature vector for each trajectory, naturally forming a high-dimensional featured track that implicitly captures the unique motion pattern of each trajectory.
89
+
90
+ # 3.2. Per-trajectory Motion Prediction
91
+
92
+ Though we encoded motion pattern in Sec. 3.1, it is still challenging to distinguish moving objects based solely on motion cues, because learning to differentiate between object motion and camera motion from highly abstracted trajectories is difficult for the model. Providing the model with texture, appearance, and semantic information can simplify this task by helping it understand which objects are likely to move or be moved. Some approaches directly apply semantic segmentation models [5, 20, 67, 70] where potentially moving pixels are identified based on semantic labels. While these methods can be effective in specific scenarios, they are intrinsically limited for general moving object segmentation, as they depend entirely on predefined semantic classes. Recently, many MOS [61, 69] and VOS [11, 33, 35] methods combine appearance information and motion cues, but they do so in two separate stages, often using RGB images to refine masks. However, relying on raw RGB data may fail to capture high-level information, and applying the two modalities in separate stages limits the effective integration of their complementary information.
93
+
94
+ To address these limitations, we incorporate DINO features predicted by DINO v2 [45], a self-supervised model, which helps generalize the inclusion of appearance information. However, we observed that simply introducing DINO features as input makes the model overly reliant on semantics as shown in Fig. 8 and discussed in Sec. 4.5, reducing its ability to differentiate between moving and static objects within the same semantic category. To overcome this issue, we propose a Motion-Semantic Decoupled Embedding, enabling the transformer decoder $\mathcal{D}$ to prioritize motion information while still considering semantic cues.
95
+
96
+ We obtain the final embedded featured tracks $\mathcal{P}$ through the process described in Sec. 3.1:
97
+
98
+ $$
99
+ \mathcal {P} = \mathcal {E} ((\gamma (u), \gamma (v), \gamma (\Delta u), \gamma (\Delta v), d, \Delta d, \rho , c), \mathcal {M}). \tag {1}
100
+ $$
101
+
102
+ We then design a transformer-based decoder, where the encoder layer performs attention only on the embedded featured tracks, which contain motion information exclusively.
103
+
104
+ After computing the attention-weighted feature, we concatenate the DINO feature and pass this concatenated feature through a feed-forward layer. In the decoder layer, self-attention is still applied only to the motion features; however, multi-head attention is used to attend to a memory that includes semantic information. Finally, we apply a sigmoid activation function to produce the final output, yielding the predicted label for each trajectory.
105
+
106
+ We then compute the loss between these predicted labels and per-track ground truth labels using a weighted binary cross-entropy loss [72]. We assign ground truth labels to each trajectory by checking if the sampled point coordinates lie within the ground truth dynamic masks. If a point falls inside the mask, it is labeled as dynamic.
107
+
108
+ # 3.3. SAM2 Iterative Prompting
109
+
110
+ As depicted in Fig. 3, after obtaining the predicted label of each trajectory and filter dynamic trajectories, we use these trajectories as point prompts for SAM2[51] with an iterative, two-stage prompting strategy. The first stage focuses on grouping trajectories belonging to the same object and storing the trajectories of each distinct object in memory. In the second stage, this memory is used as a prompt for SAM2 [51] to generate dynamic masks.
111
+
112
+ The motivation behind this approach is twofold. First, it is necessary because SAM2 requires object IDs as input. However, if we assign the same object ID to all dynamic objects (e.g., assigning 1 to represent all dynamic objects), SAM2 would struggle to simultaneously segment multiple objects that share the same ID. Second, this method offers the benefit of achieving finer-grained segmentation.
113
+
114
+ In the first stage, we select the time frame with the maximum number of visible points and locate the densest point among all visible points in that frame. This point serves as the initial prompt for SAM2 [51], which then generates an initial mask for that frame. After generating this mask, we apply dilation to expand its boundaries, excluding all points within the expanded mask area to remove edge points and assume that these points belong to the same object. We then proceed to the next frame with the highest number of visible points and repeat this process until the remaining visible points across all frames are too few to process. The trajectories identified as belonging to the same object are stored in memory, with unique object IDs assigned to each. We only save the points within the undilated mask for each object.
115
+
116
+ In the second stage, we use this memory to refine prompt selection by locating the densest point within the stored trajectories and the two points furthest from this point. Leveraging the long-range nature of trajectories, we prompt SAM2 at regular intervals to prevent it from losing track of the object over extended distances. Since SAM2 may generate partial object masks (e.g., parts of a person's clothing), we perform post-processing on all masks to merge
117
+
118
+ those that overlap internally or appear within the same mask boundaries. This results in a complete mask for each distinct object.
119
+
120
+ # 4. Experiments
121
+
122
+ # 4.1. Implementation Details
123
+
124
+ Training Dataset. We train our model using three datasets: Kubric[19], Dynamic Replica[28], and HOI4D [36], sampling them at a ratio of $35\%$ , $35\%$ , and $30\%$ respectively. Kubric [19] is a synthetic dataset composed of sequences of 24 frames showing 3D rigid objects falling under gravity and bouncing. We generate dynamic masks for each sequence based on the motion labels of individual objects. Dynamic Replica [28] is another synthetic dataset, created for 3D reconstruction, that includes long-term tracking annotations and object masks, featuring articulated models of humans and animals. We calculate dynamic masks by analyzing the 3D tracks to determine whether each object is in motion, providing accurate motion segmentation for this dataset. HOI4D [36] is a real-world, egocentric dataset that contains common objects involved in human-object interactions. This dataset provides official motion segmentation masks, making it ideal for real-world training of our model.
125
+
126
+ Data Sampling. During training, we randomly sample a variable number of tracking points, enhancing the model's robustness to different track counts. For the Dynamic Replica dataset [28], which contains 300 frames, we speed up training by sampling $1/4$ of the frames at regular intervals randomly. This approach preserves the large camera motion characteristics of the dataset. We find that including the Dynamic Replica dataset is essential for helping the model understand camera motion effectively.
127
+
128
+ # 4.2. Benchmark and metrics
129
+
130
+ We evaluate our model using several established datasets for moving object video segmentation. DAVIS17-Moving[13] is a subset of the DAVIS2017 dataset[48], designed specifically for moving object detection and segmentation. In DAVIS17-Moving, all moving instances within each video sequence are labeled, while static objects are excluded. Following the same criteria, we created DAVIS16-Moving as a subset of the DAVIS2016 dataset [47]. Additionally, we report performance on other popular video object segmentation benchmarks, including DAVIS2016[47], SegTrackv2[34], and FBMS-59 [43].
131
+
132
+ For evaluation, we benchmark our moving object video segmentation performance using region similarity (J) and contour similarity (F) metrics, as outlined in [35, 38, 61].
133
+
134
+ # 4.3. Moving Object Segmentation
135
+
136
+ We selected methods that specifically target moving object segmentation as baselines [35, 38, 60, 61, 69]. For
137
+
138
+ ![](images/669c46a5af54aa15521a07f6ab3ca6668d088c00bc66eb7ea926e617422f1044.jpg)
139
+ Figure 4. Qualitative comparison on DAVIS17-moving benchmarks. For each sequence we show moving object mask results. Our method successfully handles water reflections (left), camouflage appearances (middle), and drastic camera motion (right).
140
+
141
+ ![](images/83a3f772fb61d90f31d3879da5450b9c9ba684ef9b2460f28b6e266ff8fc4eac.jpg)
142
+ Figure 5. Qualitative comparison on FBMS-59 benchmarks. The masks produced by us are geometrically more complete and detailed.
143
+
144
+ OCLR [60], we report results for two versions: OCLR-flow, which uses only flow input, and a second version OCLR-TTA that incorporates test-time adaptation on top of OCLR-flow. For RCF [35], the first stage, RCF-stage 1, focuses on motion information, while the second stage, RCF-All, further optimizes the results from the first stage. We report results for both stages. For all baselines, we apply a fully connected conditional random field (CRF) [31] to refine the masks and achieve the best possible results.
145
+
146
+ Notably, for multi-object scenarios, we follow the common practice [16, 60, 61, 69] of grouping all foreground objects together for evaluation purposes, which we refer to as MOS. Although our approach is capable of generating highly accurate, fine-grained per-object masks, as detailed in Sec. 4.4, we term this second evaluation method
147
+
148
+ as fine-grained MOS. Table 1 compares the performance of our model with several baseline methods on the MOS task. Our method achieves state-of-the-art F-scores across all datasets, and our region similarity (J) scores are either the best or second-best across multiple datasets, further validating the effectiveness of our approach. Fig. 4 shows our visual results on the DAVIS16-Moving dataset, where our method accurately identifies object boundaries without incorrectly labeling moving backgrounds. Moreover, our masks exhibit strong geometric structure, particularly in challenging scenarios with significant camera motion. Fig. 5 and Fig. 6 present qualitative results on the FBMS-59 and SegTrack v2 benchmarks, respectively. Our method performs exceptionally well in maintaining mask geometry, and even in cases where the RGB images are blurred or of
149
+
150
+ ![](images/c722510269c7038ca8fb740419f559bc1f024475532c9650e2cd62ceda4c85e3.jpg)
151
+ Figure 6. Qualitative comparison on SegTrack v2 benchmarks. Our method succeeds even under motion blur conditions.
152
+
153
+ Table 1. Quantitative comparison on MOS task which grouping all foreground objects together for evaluation.
154
+
155
+ <table><tr><td rowspan="2">Methods</td><td colspan="2">Model Settings</td><td colspan="3">DAVIS2016-Moving</td><td>SegTrackv2</td><td colspan="2">FBMS-59</td><td colspan="3">DAVIS2016</td></tr><tr><td>Motion</td><td>Appearance</td><td>J&amp;F↑</td><td>J↑</td><td>F↑</td><td>J↑</td><td>J↑</td><td>F↑</td><td>J&amp;F↑</td><td>J↑</td><td>F↑</td></tr><tr><td>CIS [69]</td><td>Optical Flow</td><td>RGB</td><td>66.2</td><td>67.6</td><td>64.8</td><td>62.0</td><td>63.6</td><td>-</td><td>68.6</td><td>70.3</td><td>66.8</td></tr><tr><td>EM [38]</td><td>Optical Flow</td><td>X</td><td>75.2</td><td>76.2</td><td>74.3</td><td>55.5</td><td>57.9</td><td>56.0</td><td>70.0</td><td>69.3</td><td>70.7</td></tr><tr><td>RCF-Stage1 [35]</td><td>Optical Flow</td><td>X</td><td>77.3</td><td>78.6</td><td>76.0</td><td>76.7</td><td>69.9</td><td>-</td><td>78.5</td><td>80.2</td><td>76.9</td></tr><tr><td>RCF-All [35]</td><td>Optical Flow</td><td>DINO</td><td>79.6</td><td>81.0</td><td>78.3</td><td>79.6</td><td>72.4</td><td>-</td><td>80.7</td><td>82.1</td><td>79.2</td></tr><tr><td>OCLR-flow [60]</td><td>Optical Flow</td><td>X</td><td>70.0</td><td>70.0</td><td>70.0</td><td>67.6</td><td>65.5</td><td>64.9</td><td>71.2</td><td>72.0</td><td>70.4</td></tr><tr><td>OCLR-TTA [60]</td><td>Optical Flow</td><td>RGB</td><td>78.5</td><td>80.2</td><td>76.9</td><td>72.3</td><td>69.9</td><td>68.3</td><td>78.8</td><td>80.8</td><td>76.8</td></tr><tr><td>ABR [61]</td><td>Optical Flow</td><td>DINO</td><td>72.0</td><td>70.2</td><td>73.7</td><td>76.6</td><td>81.9</td><td>79.6</td><td>72.5</td><td>71.8</td><td>73.2</td></tr><tr><td>Ours</td><td>Trajectory</td><td>DINO</td><td>89.5</td><td>89.2</td><td>89.7</td><td>76.3</td><td>78.3</td><td>82.8</td><td>90.9</td><td>90.6</td><td>91.0</td></tr></table>
156
+
157
+ ![](images/1cf10bdac16f86d73ecdf37c11ec154568dfacfe1c6f67287da32842ae073bc7.jpg)
158
+ Figure 7. Qualitative comparison on Fine-grained MOS task which will produce per-object level masks.
159
+
160
+ low quality, our reliance on long-range trajectories enables accurate identification of moving objects.
161
+
162
+ # 4.4. Fine-grained Moving Object Segmentation
163
+
164
+ Building on the initial MOS task, this task not only identifies moving objects but also classifies them within their motion context to generate fine-grained, per-object masks. We evaluate our approach for multi-moving object segmentation specifically on the DAVIS2017-Moving dataset. For a fair comparison, we only include baselines that claim the
165
+
166
+ Table 2. Quantitative comparison on DAVIS17-Moving dataset for MOS and Fine-grained MOS tasks.
167
+
168
+ <table><tr><td rowspan="2">Methods</td><td colspan="2">MOS</td><td colspan="3">Fine-grained MOS</td></tr><tr><td>J↑</td><td>F↑</td><td>J&amp;F↑</td><td>J↑</td><td>F↑</td></tr><tr><td>OCLR-flow [60]</td><td>69.9</td><td>70.0</td><td>44.4</td><td>42.1</td><td>46.8</td></tr><tr><td>OCLR-TTA [60]</td><td>76.0</td><td>75.3</td><td>49.1</td><td>48.4</td><td>49.9</td></tr><tr><td>ABR [61]</td><td>74.6</td><td>75.2</td><td>51.1</td><td>50.9</td><td>51.2</td></tr><tr><td>Ours</td><td>90.0</td><td>89.0</td><td>80.5</td><td>77.4</td><td>83.6</td></tr></table>
169
+
170
+ ability to perform this task. Table 2 shows that our method significantly outperforms the baselines, demonstrating its superior capability in producing accurate per-object masks. Additionally, Fig. 7 illustrates that, first, our method accurately identifies each object, effectively distinguishing different objects with similar motion patterns. Second, it ensures the completeness of each object mask, handling challenging cases such as articulated human structures and occluded objects while maintaining mask integrity.
171
+
172
+ # 4.5. Ablation Study
173
+
174
+ We investigate the effectiveness of our method and its various components on the DAVIS17-Moving and DAVIS16-Moving datasets. The former is used for fine-grained MOS, while the latter focuses on MOS. All models are trained for a full number of epochs.
175
+
176
+ We conducted several experiments to assess the importance of each component. The w/o DINO configuration ex
177
+
178
+ ![](images/2bcd9e4108526de0d12303cd4b8e9aed5ff3981ff0e0931c1362eb703ac4fc3f.jpg)
179
+ Figure 8. Visual comparison for the ablation study on two critical and challenging cases. The top sequence shows scenarios involving drastic camera motion and complex motion patterns, while the bottom sequence with both static and dynamic objects of the same category. The experimental setup is detailed in Sec. 4.5.
180
+
181
+ Table 3. Quantitative comparison for the ablation study on the DAVIS17-Moving and DAVIS16-Moving benchmarks, which evaluate fine-grained MOS and MOS tasks, respectively. The experimental setup is detailed in Sec. 4.5.
182
+
183
+ <table><tr><td rowspan="2">Methods</td><td colspan="3">DAVIS17-Moving</td><td colspan="3">DAVIS16-Moving</td></tr><tr><td>J&amp;F↑</td><td>J↑</td><td>F↑</td><td>J&amp;F↑</td><td>J↑</td><td>F↑</td></tr><tr><td>w/o Depth</td><td>69.2</td><td>65.6</td><td>72.8</td><td>82.5</td><td>78.6</td><td>86.4</td></tr><tr><td>w/o Tracks</td><td>19.6</td><td>14.5</td><td>24.7</td><td>20.9</td><td>9.8</td><td>31.9</td></tr><tr><td>w/o DINO</td><td>65.0</td><td>62.1</td><td>67.9</td><td>75.5</td><td>71.4</td><td>79.5</td></tr><tr><td>w/o MOE</td><td>72.0</td><td>68.7</td><td>75.4</td><td>81.8</td><td>81.0</td><td>82.7</td></tr><tr><td>w/o MSDE</td><td>63.0</td><td>59.3</td><td>66.7</td><td>78.2</td><td>77.3</td><td>79.1</td></tr><tr><td>w/o PE</td><td>66.4</td><td>64.7</td><td>68.2</td><td>82.0</td><td>81.5</td><td>82.5</td></tr><tr><td>w/o ST-ATT</td><td>65.5</td><td>61.9</td><td>69.1</td><td>78.3</td><td>74.3</td><td>82.4</td></tr><tr><td>Ours-full</td><td>80.5</td><td>77.4</td><td>83.6</td><td>89.1</td><td>89.0</td><td>89.2</td></tr></table>
184
+
185
+ cludes DINO features entirely during training, while w/o MOE (Motion-only Encoding) concatenates DINO features with motion cues before the motion encoder, allowing both the encoder and decoder layers to incorporate DINO information throughout. w/o MSDE (Motion-Semitic Decoupled Embedding) excludes DINO features from the motion encoder but concatenates them with the embedded featured tracks from the encoder output, introducing semantic information through self-attention in the tracks decoder. We also test configurations w/o depth and w/o tracks, removing specific inputs to observe their impact on performance. Additionally, w/o PE (Positional Embedding) omits NeRF-like positional embedding in the motion encoder, and w/o ST-ATT (Spatial-temporal Attention) replaces spatial-temporal attention with conventional attention.
186
+
187
+ Table 3 presents the quantitative results. We find that excluding depth as input or positional encoding impacts performance less than other components, but it still falls significantly short of the best results. When tracks are removed and only DINO features and depth maps are used, performance drops drastically, indicating that the model struggles to learn effectively without trajectory-based information. We further analyze the key components in two chal
188
+
189
+ lenging scenarios presented below.
190
+
191
+ Drastic Camera Motion. We observed that in highly challenging scenes, such as those with drastic camera movement or rapid object motion, relying solely on motion information is insufficient. As shown in the upper part of Fig. 8, the colored points represent dynamic points predicted by the model, while the hollow points indicate invisible points at that moment. In this example, without DINO feature information, the model incorrectly classifies the stationary road surface as dynamic, despite the fact that the road lacks the ability to move. This information can be effectively supplemented by incorporating DINO features. Additionally, we found that adding spatial-temporal attention within the motion encoder is particularly beneficial in these difficult scenarios, as it provides the model with richer motion information to capture the long-range motion patterns of tracks, as illustrated in Fig. 8.
192
+
193
+ Distinguishing Moving and Static Objects of the Same Category. Results show that excluding DINO features entirely results in a performance drop, and the manner in which these features are integrated significantly affects the model's output. Simply incorporating DINO as an input during the motion encoding stage causes the model to rely heavily on semantic information, often leading it to assume that objects of the same type share the same motion state. In contrast, our Motion-Semantic Decoupled Embedding architecture effectively reduces this over-reliance on semantics, allowing the model to differentiate between moving and static objects within the same category, as illustrated in the lower part of Fig. 8.
194
+
195
+ # 5. Conclusion
196
+
197
+ In this work, we present a novel approach that leverages long-range tracks which departs from traditional affinity matrix-based methods. Trained on extensive datasets, our model accurately identifies dynamic tracks, which, when combined with SAM2, produce precise moving object masks. Our carefully designed model architecture is tailored to handle long-range motion information while effectively balancing motion and appearance cues. Experiments show that our method achieves state-of-the-art results across multiple benchmarks, with particularly strong performance in per-object-level segmentation.
198
+
199
+ # 6. Limitation
200
+
201
+ Our current model utilizes off-the-shelf long-range tracking estimators, whose accuracy can greatly influence overall performance, as shown in Tab. 3. However, we believe that our novel approach to moving object segmentation can, in turn, enhance the performance and understanding of these estimators, creating a mutually beneficial improvement.
202
+
203
+ # References
204
+
205
+ [1] Federica Arrigoni, Luca Magri, and Tomas Pajdla. On the Usage of the Trifocal Tensor in Motion Segmentation, page 514-530. 2020. 3
206
+ [2] Federica Arrigoni, Luca Magri, and Tomas Pajdla. On the Usage of the Trifocal Tensor in Motion Segmentation, page 514-530. 2020. 2
207
+ [3] Daniel Barath and Jiri Matas. Progressive-x: Efficient, anytime, multi-model fitting algorithm. arXiv: Computer Vision and Pattern Recognition, arXiv: Computer Vision and Pattern Recognition, 2019. 2, 4
208
+ [4] Gedas Bertasius, Heng Wang, and Lorenzo Torresani. Is space-time attention all you need for video understanding? Cornell University - arXiv, Cornell University - arXiv, 2021. 4
209
+ [5] Berta Bescos, Jose M. Facil, Javier Civera, and Jose Neira. Dynaslam: Tracking, mapping and inpainting in dynamic scenes. IEEE Robotics and Automation Letters, page 4076-4083, 2018. 4
210
+ [6] Pia Bideau and Erik Learned-Miller. It's moving! a probabilistic model for causal motion segmentation in moving camera videos. Cornell University - arXiv, Cornell University - arXiv, 2016. 2
211
+ [7] Thomas Brox and Jitendra Malik. Object segmentation by long term analysis of point trajectories. In European conference on computer vision, pages 282-295. Springer, 2010. 2
212
+ [8] M. Bösch. Deep learning for robust motion segmentation with non-static cameras. arXiv: Computer Vision and Pattern Recognition, arXiv: Computer Vision and Pattern Recognition, 2021. 2
213
+ [9] Zhe Cao, Abhishek Kar, Christian Hane, and Jitendra Malik. Learning independent object motion from unlabelled stereoscopic videos. In 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 2
214
+ [10] Yurui Chen, Chun Gu, Junzhe Jiang, Xiatian Zhu, and Li Zhang. Periodic vibration gaussian: Dynamic urban scene reconstruction and real-time rendering. arXiv:2311.18561, 2023. 1
215
+ [11] Suhwan Cho, Minhyeok Lee, Seunghoon Lee, Dogyoon Lee, Heeseung Choi, Ig-Jae Kim, and Sangyoun Lee. Dual prototype attention for unsupervised video object segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 19238-19247, 2024. 4
216
+ [12] Timothee Darcet, Maxime Oquab, Julien Mairal, and Piotr Bojanowski. Vision transformers need registers, 2023. 1
217
+ [13] Achal Dave, Pavel Tokmakov, and Deva Ramanan. Towards segmenting anything that moves. In Proceedings of the IEEE/CVF International Conference on Computer Vision Workshops, pages 0–0, 2019. 5
218
+ [14] Andrew Delong, Anton Osokin, Hossam N. Isack, and Yuri Boykov. Fast approximate energy minimization with label costs. In 2010 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, 2010. 2, 4
219
+ [15] Carl Doersch, Pauline Luc, Yi Yang, Dilara Gokay, Skanda Koppula, Ankush Gupta, Joseph Heyward, Ignacio Rocco,
220
+
221
+ Ross Goroshin, João Carreira, and Andrew Zisserman. BootsTAP: Bootstrapped training for tracking any point. arXiv, 2024. 3, 4
222
+ [16] Suyog Dutt Jain, Bo Xiong, and Kristen Grauman. Fusion-seg: Learning to combine motion and appearance for fully automatic segmentation of generic objects in videos. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3664-3673, 2017. 6
223
+ [17] E. Elhamifar and R. Vidal. Sparse subspace clustering: Algorithm, theory, and applications. IEEE Transactions on Pattern Analysis and Machine Intelligence, page 2765-2781, 2013. 2
224
+ [18] Muhammad Faisal, Ijaz Akhter, Mohsen Ali, and Richard Hartley. Epo-net: Exploiting geometric constraints on dense trajectories for motion saliency. arXiv: Computer Vision and Pattern Recognition, arXiv: Computer Vision and Pattern Recognition, 2019. 2
225
+ [19] Klaus Greff, Francois Belletti, Lucas Beyer, Carl Doersch, Yilun Du, Daniel Duckworth, David J Fleet, Dan Gnanapragasam, Florian Golemo, Charles Herrmann, Thomas Kipf, Abhijit Kundu, Dmitry Lagun, Issam Laradji, Hsueh-Ti (Derek) Liu, Henning Meyer, Yishu Miao, Derek Nowrouzehrai, Cengiz Oztireli, Etienne Pot, Noha Radwan, Daniel Rebain, Sara Sabour, Mehdi S. M. Sajjadi, Matan Sela, Vincent Sitzmann, Austin Stone, Deqing Sun, Suhani Vora, Ziyu Wang, Tianhao Wu, Kwang Moo Yi, Fangcheng Zhong, and Andrea Tagliausacchi. Kubric: a scalable dataset generator. 2022. 2, 5
226
+ [20] Kaiming He, Georgia Gkioxari, Piotr Dollar, and Ross Girshick. Mask r-cnn. IEEE Transactions on Pattern Analysis and Machine Intelligence, page 386-397, 2020. 4
227
+ [21] Christian Homeyer and RobertBosch Gmbh. On moving object segmentation from monocular video with transformers. 3
228
+ [22] Nan Huang, Xiaobao Wei, Wenzhao Zheng, Pengju An, Ming Lu, Wei Zhan, Masayoshi Tomizuka, Kurt Keutzer, and Shanghang Zhang. S3gaussian: Self-supervised street gaussians for autonomous driving. arXiv preprint arXiv:2405.20323, 2024. 1
229
+ [23] Yuxiang Huang and John Zelek. Motion segmentation from a moving monocular camera. 2023. 2
230
+ [24] Yuxiang Huang, Yuhao Chen, and John Zelek. Zero-shot monocular motion segmentation in the wild by combining deep learning with geometric motion model fusion. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Workshops, pages 2733-2743, 2024. 2, 3
231
+ [25] Hossam Isack and Yuri Boykov. Energy-based geometric multi-model fitting. International Journal of Computer Vision, page 123-147, 2012. 2, 4
232
+ [26] Ge-Peng Ji, Keren Fu, Zhe Wu, Deng-Ping Fan, Jianbing Shen, and Ling Shao. Full-duplex strategy for video object segmentation. In Proceedings of the IEEE/CVF international conference on computer vision, pages 4922-4933, 2021. 3
233
+ [27] Yangbangyan Jiang, Qianqian Xu, Ke Ma, Zhiyong Yang, Xiaochun Cao, and Qingming Huang. What to select: Pursuing consistent motion segmentation from multiple geometric
234
+
235
+ models. Proceedings of the AAAI Conference on Artificial Intelligence, page 1708-1716, 2022. 3
236
+ [28] Nikita Karaev, Ignacio Rocco, Benjamin Graham, Natalia Neverova, Andrea Vedaldi, and Christian Rupprecht. Dynamic stereo: Consistent dynamic depth from stereo videos. CVPR, 2023. 2, 5
237
+ [29] Nikita Karaev, Ignacio Rocco, Benjamin Graham, Natalia Neverova, Andrea Vedaldi, and Christian Rupprecht. Co-tracker: It is better to track together. In Proc. ECCV, 2024. 4
238
+ [30] Laurynas Karazija, Iro Laina, Christian Rupprecht, and Andrea Vedaldi. Learning segmentation from point trajectories, 2024. 2
239
+ [31] Philipp Krahenbuhl and Vladlen Koltun. Efficient inference in fully connected crfs with gaussian edge potentials. Neural Information Processing Systems, Neural Information Processing Systems, 2011. 6
240
+ [32] Taotao Lai, Hanzi Wang, Yan Yan, Tat-Jun Chin, and Wan-Lei Zhao. Motion segmentation via a sparsity constraint. IEEE Transactions on Intelligent Transportation Systems, page 973–983, 2017. 2
241
+ [33] Minhyeok Lee, Suhwan Cho, Dogyoon Lee, Chaewon Park, Jungho Lee, and Sangyoun Lee. Guided slot attention for unsupervised video object segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3807-3816, 2024. 4
242
+ [34] Fuxin Li, Taeyoung Kim, Ahmad Humayun, David Tsai, and James M. Rehg. Video segmentation by tracking many figure-ground segments. In 2013 IEEE International Conference on Computer Vision, pages 2192-2199, 2013. 2, 5
243
+ [35] Long Lian, Zhirong Wu, and Stella X. Yu. Bootstrapping objectness from videos by relaxed common fate and visual grouping. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 14582-14591, 2023. 4, 5, 6, 7
244
+ [36] Yunze Liu, Yun Liu, Che Jiang, Kangbo Lyu, Weikang Wan, Hao Shen, Boqiang Liang, Zhoujie Fu, He Wang, and Li Yi. Hoi4d: A 4d egocentric dataset for category-level human-object interaction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 21013-21022, 2022. 2, 5
245
+ [37] Etienne Meunier and Patrick Bouthemy. Unsupervised motion segmentation in one go: Smooth long-term model over a video, 2024. 2
246
+ [38] Etienne Meunier, Anais Badoual, and Patrick Bouthemy. Em-driven unsupervised learning for efficient motion segmentation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45(4):4462-4473, 2023. 5, 7
247
+ [39] Ben Mildenhall, Pratul P. Srinivasan, Matthew Tancik, Jonathan T. Barron, Ravi Ramamoorthi, and Ren Ng. Nerf: Representing scenes as neural radiance fields for view synthesis. In ECCV, 2020. 4
248
+ [40] Eslam Mohamed, Mahmoud Ewaisha, Mennatullah Siam, Hazem Rashed, Senthil Yogamani, Waleed Hamdy, Mohamed El-Dakdouky, and Ahmad El-Sallab. Monocular instance motion segmentation for autonomous driving: Kitti instancemotseg dataset and multi-task baseline. In 2021 IEEE Intelligent Vehicles Symposium (IV), 2021. 2
249
+
250
+ [41] Michal Neoral and Jan Sochman. Monocular arbitrary moving object discovery and segmentation. 3
251
+ [42] Peter Ochs, Jitendra Malik, and Thomas Brox. Segmentation of moving objects by long term video analysis. IEEE Transactions on Pattern Analysis and Machine Intelligence, page 1187-1200, 2014. 2
252
+ [43] Peter Ochs, Jitendra Malik, and Thomas Brox. Segmentation of moving objects by long term video analysis. IEEE Transactions on Pattern Analysis and Machine Intelligence, 36(6): 1187-1200, 2014. 2, 5
253
+ [44] H. Opower. Multiple view geometry in computer vision. Optics and Lasers in Engineering, page 85-86, 2002. 3
254
+ [45] Maxime Oquab, Timothée Darcet, Theo Moutakanni, Huy V. Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaaeldin El-Nouby, Russell Howes, Po-Yao Huang, Hu Xu, Vasu Sharma, Shang-Wen Li, Wojciech Galuba, Mike Rabbat, Mido Assran, Nicolas Ballas, Gabriel Synnaeve, Ishan Misra, Herve Jegou, Julien Mairal, Patrick Labatut, Armand Joulin, and Piotr Bojanowski. Dinov2: Learning robust visual features without supervision, 2023. 1, 2, 3, 4
255
+ [46] Anestis Papazoglou and Vittorio Ferrari. Fast object segmentation in unconstrained video. In 2013 IEEE International Conference on Computer Vision, 2013. 2
256
+ [47] F. Perazzi, J. Pont-Tuset, B. McWilliams, L. Van Gool, M. Gross, and A. Sorkine-Hornung. A benchmark dataset and evaluation methodology for video object segmentation. In Computer Vision and Pattern Recognition, 2016. 2, 3, 5
257
+ [48] Jordi Pont-Tuset, Federico Perazzi, Sergi Caelles, Pablo Arbeláez, Alexander Sorkine-Hornung, and Luc Van Gool. The 2017 davis challenge on video object segmentation. arXiv:1704.00675, 2017. 2, 3, 5
258
+ [49] Mohamed Ramzy, Hazem Rashed, AhmadEl Sallab, and Senthil Yogamani. Rst-modnet: Real-time spatio-temporal moving object detection for autonomous driving. Cornell University - arXiv, Cornell University - arXiv, 2019. 2
259
+ [50] S Rao, R Tron, R Vidal, and Yi Ma. Motion segmentation in the presence of outlying, incomplete, or corrupted trajectories. IEEE Transactions on Pattern Analysis and Machine Intelligence, 32(10):1832-1845, 2010. 2
260
+ [51] Nikhila Ravi, Valentin Gabeur, Yuan-Ting Hu, Ronghang Hu, Chaitanya Ryali, Tengyu Ma, Haitham Khedr, Roman Rädle, Chloe Rolland, Laura Gustafson, Eric Mintun, Junting Pan, Kalyan Vasudev Alwala, Nicolas Carion, Chao-Yuan Wu, Ross Girshick, Piotr Dólár, and Christoph Feichtenhofer. Sam 2: Segment anything in images and videos. arXiv preprint arXiv:2408.00714, 2024. 1, 3, 5
261
+ [52] Sucheng Ren, Wenxi Liu, Yongtuo Liu, Haoxin Chen, Guoqiang Han, and Shengfeng He. Reciprocal transformations for unsupervised video object segmentation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 15455-15464, 2021. 3
262
+ [53] Hicham Sekkati and Amar Mitiche. A variational method for the recovery of dense 3d structure from motion. Robotics and Autonomous Systems, 55(7):597-607, 2007. 2
263
+ [54] Pavel Tokmakov, Cordelia Schmid, and Karteek Alahari. Learning to segment moving objects. International Journal of Human Machine Interaction, 2017, 38(1-2), 1-16.
264
+
265
+ nal of Computer Vision,International Journal of Computer Vision,2017.2
266
+ [55] Roberto Tron and Rene Vidal. A benchmark for the comparison of 3-d motion segmentation algorithms. In 2007 IEEE Conference on Computer Vision and Pattern Recognition, page 1-8, 2007. 2
267
+ [56] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, AidanN. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. Neural Information Processing Systems, Neural Information Processing Systems, 2017. 4
268
+ [57] René Vidal. Subspace clustering. IEEE Signal Processing Magazine, IEEE Signal Processing Magazine, 2011. 2
269
+ [58] Qianqian Wang, Vickie Ye, Hang Gao, Jake Austin, Zhengqi Li, and Angjoo Kanazawa. Shape of motion: 4d reconstruction from a single video, 2024. 1
270
+ [59] Andreas Wedel, Annemarie Meißner, Clemens Rabe, Uwe Franke, and Daniel Cremers. Detection and Segmentation of Independently Moving Objects from Dense Scene Flow, page 14-27. 2009. 2
271
+ [60] Junyu Xie, Weidi Xie, and Andrew Zisserman. Segmenting moving objects via an object-centric layered representation. In NeurIPS, 2022. 5, 6, 7
272
+ [61] Junyu Xie, Weidi Xie, and Andrew Zisserman. Appearance-based refinement for object-centric motion segmentation. In ECCV, 2024. 2, 4, 5, 6, 7
273
+ [62] Junyu Xie, Charig Yang, Weidi Xie, and Andrew Zisserman. Moving object segmentation: All you need is sam (and flow), 2024. 2
274
+ [63] Xun Xu, Loong-Fah Cheong, and Zhuwen Li. Motion segmentation by exploiting complementary geometric models. Cornell University - arXiv, Cornell University - arXiv, 2018. 2
275
+ [64] Xun Xu, Loong Fah Cheong, and Zhuwen Li. Motion segmentation by exploiting complementary geometric models. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2859-2867, 2018. 3
276
+ [65] Jiawei Yang, Boris Ivanovic, Or Litany, Xinshuo Weng, Seung Wook Kim, Boyi Li, Tong Che, Danfei Xu, Sanja Fidler, Marco Pavone, and Yue Wang. Emernerf: Emergent spatial-temporal scene decomposition via self-supervision. arXiv preprint arXiv:2311.02077, 2023. 1
277
+ [66] Lihe Yang, Bingyi Kang, Zilong Huang, Xiaogang Xu, Jiashi Feng, and Hengshuang Zhao. Depth anything: Unleashing the power of large-scale unlabeled data. In CVPR, 2024. 3, 4
278
+ [67] Shichao Yang and Sebastian Scherer. Cubeslam: Monocular 3d object slam. IEEE Transactions on Robotics, page 925-938, 2019. 4
279
+ [68] Shu Yang, Lu Zhang, Jinqing Qi, Huchuan Lu, Shuo Wang, and Xiaoxing Zhang. Learning motion-appearance coattention for zero-shot video object segmentation. In Proceedings of the IEEE/CVF international conference on computer vision, pages 1564–1573, 2021. 3
280
+ [69] Yanchao Yang, Antonio Loquercio, Davide Scaramuzza, and Stefano Soatto. Unsupervised moving object detection via contextual information separation. In Proceedings of
281
+
282
+ the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 879-888, 2019. 4, 5, 6, 7
283
+ [70] Chao Yu, Zuxin Liu, Xin-Jun Liu, Fugui Xie, Yi Yang, Qi Wei, and Qiao Fei. Ds-slam: A semantic visual slam towards dynamic environments. In 2018 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), 2018. 4
284
+ [71] Kaihua Zhang, Zicheng Zhao, Dong Liu, Qingshan Liu, and Bo Liu. Deep transport network for unsupervised video object segmentation. In Proceedings of the IEEE/CVF international conference on computer vision, pages 8781-8790, 2021. 3
285
+ [72] Wang Zhao, Shaohui Liu, Hengkai Guo, Wenping Wang, and Yong-Jin Liu. *Particlesfm: Exploiting dense point trajectories for localizing moving cameras in the wild*. In European conference on computer vision (ECCV), 2022. 4, 5
286
+ [73] Tianfei Zhou, Shunzhou Wang, Yi Zhou, Yazhou Yao, Jianwu Li, and Ling Shao. Motion-attentive transition for zero-shot video object segmentation. In Proceedings of the AAAI conference on artificial intelligence, pages 13066–13073, 2020. 3
287
+ [74] Tianfei Zhou, Shunzhou Wang, Yi Zhou, Yazhou Yao, Jianwu Li, and Ling Shao. Motion-attentive transition for zero-shot video object segmentation. In Proceedings of the AAAI conference on artificial intelligence, pages 13066–13073, 2020. 2
CVPR/2025/Segment Any Motion in Videos/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:905afe34b31c2cb6b5ffaf21bdc0ea453e6d4fe898360e75cbbfd39c9d99a3fa
3
+ size 758678
CVPR/2025/Segment Any Motion in Videos/layout.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:845a6cfeaac1c0c6960b193eb03908a9490c8db8cde16f20cba318d6043e3ccc
3
+ size 334475
CVPR/2025/Segment Any-Quality Images with Generative Latent Space Enhancement/1afb4c97-64af-47c3-b3be-9332e1082a6d_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5676bec1d9125df42b70e6d015604a25fb4f349ba95db0749c224281256674c5
3
+ size 93455
CVPR/2025/Segment Any-Quality Images with Generative Latent Space Enhancement/1afb4c97-64af-47c3-b3be-9332e1082a6d_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0d951553cbb0996477c764b2daaa72852754985218dc2407488e406856ea57f
3
+ size 115375
CVPR/2025/Segment Any-Quality Images with Generative Latent Space Enhancement/1afb4c97-64af-47c3-b3be-9332e1082a6d_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:669379a3f5343274ebf3d55fddec41caff10078fd18d0c33a2febd95ae596543
3
+ size 1762035
CVPR/2025/Segment Any-Quality Images with Generative Latent Space Enhancement/full.md ADDED
@@ -0,0 +1,400 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Segment Any-Quality Images with Generative Latent Space Enhancement
2
+
3
+ Guangqian Guo $^{1,2}$ Yong Guo $^{2}$ Xuehui Yu $^{3}$ Wenbo Li $^{4}$ Yaoxing Wang $^{1}$ Shan Gao $^{1}$ $^{1}$ Northwestern Polytechnical University $^{2}$ Huawei $^{3}$ Tencent $^{4}$ Huawei Noah's Ark Lab
4
+ $\{\mathrm{guogq}21, \mathrm{wangyx}24\} @$ mail.nwpu.edu.cn $\{\mathrm{guoyongcs, fenglinglwb}\} @$ gmail.com
5
+ xuehuiyu@tencent.com gaoshan@nwpu.edu.cn
6
+
7
+ # Abstract
8
+
9
+ Despite their success, Segment Anything Models (SAMs) experience significant performance drops on severely degraded, low-quality images, limiting their effectiveness in real-world scenarios. To address this, we propose GleSAM, which utilizes Generative Latent space Enhancement to boost robustness on low-quality images, thus enabling generalization across various image qualities. Specifically, we adapt the concept of latent diffusion to SAM-based segmentation frameworks and perform the generative diffusion process in the latent space of SAM to reconstruct high-quality representation, thereby improving segmentation. Additionally, we introduce two techniques to improve compatibility between the pre-trained diffusion model and the segmentation framework. Our method can be applied to pre-trained SAM and SAM2 with only minimal additional learnable parameters, allowing for efficient optimization. We also construct the LQSeg dataset with a greater diversity of degradation types and levels for training and evaluating the model. Extensive experiments demonstrate that GleSAM significantly improves segmentation robustness on complex degradations while maintaining generalization to clear images. Furthermore, GleSAM also performs well on unseen degradations, underscoring the versatility of our approach and dataset.
10
+
11
+ # 1. Introduction
12
+
13
+ Accurate object detection and segmentation [3, 12, 15, 16, 18, 26, 51, 55] in diverse scenarios is a fundamental task for various high-level visual applications, such as robotics and autonomous driving. The recently developed Segment Anything Models (SAMs), including SAM [27] and SAM2 [44], serving as a foundational model, have gained significant influence within the community [4, 5, 10, 16, 36, 37] due to their outstanding zero-shot segmentation abilities.
14
+
15
+ Images w/ various quality
16
+
17
+ ![](images/49f2c4db074d74d67e34459a85c177f98ffb9c08334230d23f821ac0bd067b01.jpg)
18
+ Clear
19
+
20
+ ![](images/461cea2f23efb6afb3326b3c8c9d62cf0b204b666015c8ab26a80b6927a6f933.jpg)
21
+
22
+ ![](images/e9ed58cab824c0e18a60c394a32fda2ce29ca15d7ccf4993db7e900bcfc5e95e.jpg)
23
+ + Gaussian N.
24
+
25
+ ![](images/7e3040ff0174a0f7e975f3b7a859b5c7927eaa64c4d85f4c9a717ab9e01a3836.jpg)
26
+ +Re-sam.N.
27
+ + Noise degree
28
+ Figure 1. The comparison of qualitative results on low-quality images with varying degradation levels from an unseen dataset. To generate images with different degradation levels, we progressively added Gaussian Noise, Re-sampling Noise, and more severe Gaussian noise to an image. Results indicate that the baseline SAM [27] shows limited robustness to degradation. Although RobustSAM [8] retains some resilience against simpler degradations, it struggles with more complex and unfamiliar degradations. In contrast, our method consistently demonstrates strong robustness across images of varying quality.
29
+
30
+ Qualitative Comparison
31
+
32
+ ![](images/481518b376a084d4bb4abec12805a743984c20be8370bc25d0aee95030f3f499.jpg)
33
+
34
+ ![](images/d8e7fdb1725d0301d1f483cebac8e4392d8f4dbf7ec711cbe3918604439820fc.jpg)
35
+
36
+ ![](images/b1dcd6f329a53a9f575d3e4f9ebe4bd81371c1b788b1f744085f01caf98b8b91.jpg)
37
+
38
+ ![](images/5ea1ae54c609584cdabd1937716b2cbaae64f10948b611e01d3ae1a76ef2ab6e.jpg)
39
+ SAM
40
+
41
+ ![](images/02514ad182f5a777b20db3784277a65f9e6a6e1d0bbf10a5a930b08064a630f6.jpg)
42
+
43
+ ![](images/756bd690003e290240abcc807ff9bd37ab3261aa84daead529eaa111e0e52a5e.jpg)
44
+
45
+ ![](images/6a6af336cd5d389e2ef6ce89830339dc7283cfec0ee907f606e8e10035c49f35.jpg)
46
+
47
+ ![](images/a88fad9c423a596276dbac1ad85145c9460a24e164dcdd4986f655fb327c31a9.jpg)
48
+ RobustSAM
49
+
50
+ ![](images/6dd471993be710accc10c6fc1edd701fd625ad7fc422ba8e4d83ac2ff03e46a7.jpg)
51
+
52
+ ![](images/9ce9986e329d3f91904a88060855b5395511fa0d3e97a73ffe61f8dc41957b3e.jpg)
53
+
54
+ ![](images/06631936e528d876672503e883e2731b7eda4d666e017949ff93375a30798601.jpg)
55
+
56
+ ![](images/509235a06cc95ee61b7aa01bb076118dac9539c7aaa3077070815df0ed31572d.jpg)
57
+ GleSAM (Ours)
58
+
59
+ Despite their success, SAMs perform poorly on common low-quality images, such as those degraded by noise, blur, and compression artifacts [22, 42, 47, 56], which are often encountered in real-world scenarios [19, 34, 35]. Previous methods [8, 11] have employed distillation-based consistent learning to enhance degradation-robust features.
60
+
61
+ Nonetheless, they still face challenges in handling severely degraded low-quality images, as illustrated in Fig. 1. As degradations become more complex (e.g. combining various types of degradation or increasing the level of degradation), the existing SAMs [8, 27] struggle to accurately segment edges and complete target areas, leading to incorrect segmentation. We analyze that it is caused by the limited feature representation for degraded images. The visualizations in Fig. 2 reveal that SAM's latent features from severely degraded images contain excessive noise, compromising the original representations and subsequently impacting the predictions of the decoder. Furthermore, the large gap between low-quality and high-quality features complicates consistency learning [38] in previous works [8], hindering performance improvement. Thus, achieving high-quality latent feature representations and robust segmentation across varying image quality, especially for degraded images, remains challenging.
62
+
63
+ The recently developed generative Diffusion Models (DM) [20, 50], especially the large-scale pre-trained Latent Diffusion Models (LDM) [45] have demonstrated powerful content generation capabilities. Having been trained on internet-scale data [46], LDM that proceed diffusion and denoising in latent space, possess powerful representation prior, which can be well explored to enhance the latent representation of segmentation models. This inspires us to take full advantage of the generative ability of pre-trained diffusion models and incorporate it into the latent space of SAMs to enhance low-quality features, thus promoting accurate segmentation in low-quality images.
64
+
65
+ To this end, we propose GleSAM, which reconstructs high-quality features (Fig. 2 (d)) in SAM's latent space through generative diffusion, enabling accurate segmentation across any-quality images. Starting with low-quality features, high-quality representations are generated through single-step denoising. To integrate LDM generative knowledge, we incorporate a pre-trained U-Net from LDM with learnable LoRA layers [21] to align with segmentation-specific features. Furthermore, to improve compatibility between the pre-trained diffusion model and the segmentation framework, we introduce two effective techniques: Feature Distribution Alignment (FDA) and Channel Replicate and Expansion (CRE). These techniques bridge feature distribution and structural alignment gaps between models. Built upon SAM and SAM2, GleSAM leverages the generalization of pre-trained segmentation and diffusion models, with a few learnable parameters added, and can be efficiently trained within 30 hours on four GPUs.
66
+
67
+ In terms of data, we constructed LQSeg based on existing datasets [9, 17, 31, 32, 49] to train and assess segmentation models on low-quality images. LQSeg incorporates a greater diversity of degradation types than previous methods [8], combining basic degradation models (e.g.,
68
+
69
+ ![](images/2b9b1ca303cad7de372bff2d460425e9e50f0438deea06818f5d986e08316abc.jpg)
70
+
71
+ ![](images/b062ae780362b86fa98a8d5a9f209228110ce58506097f6d86da7e3de8b70343.jpg)
72
+ (a) LQ-Img
73
+
74
+ ![](images/fbf39ec8b1eb98d7da7db4dd0b9347e27387082ec9e54b9f6c2c1f684380fe18.jpg)
75
+
76
+ ![](images/09d9094775c7cd7c74313bda9670654047ef50614d319cd5e15d548937f0bbf4.jpg)
77
+ (b) LQ-Feat
78
+
79
+ ![](images/acca9c60fa52591e1da4e4befd04f3dec0649e835d1b5004d892319dce191ed6.jpg)
80
+
81
+ ![](images/5ff0fd44433a47b5afe7eb73377bd482b0304525e283909d73232dbae51a4299.jpg)
82
+ (c) HQ-Feat
83
+ Figure 2. The visualization of latent features: (a) low-quality (LQ) images, (b) the SAM's latent features extracted from LQ images, which contain excessive noise and compromise the original representations, (c) the high-quality (HQ) features of the corresponding clear images, which are more salient than LQ ones, and (d) enhanced representation by our GleSAM.
84
+
85
+ ![](images/a48059ccce8f174be1092efa234cc6a18201cd4515b8ed8e79aab810434df659.jpg)
86
+
87
+ ![](images/a3b764976eb83a4aff2ee0d30c53f4045441732af9e434828fa16e4dc7539d53.jpg)
88
+ (d) Ours-Feat
89
+
90
+ noise and blur) to simulate complex and real-world noise [54, 63]. We also introduce three degradation levels for a more comprehensive evaluation. We hope LQSeg will inspire the development of more robust segmentation models and contribute to future research. Overall, our contributions are summarized as:
91
+
92
+ - We propose GleSAM, a SAM-based framework incorporating generative latent space enhancement, to generalize across images of any quality. GleSAM exhibits significantly improved robustness, particularly for low-quality images with varying degradation levels.
93
+ - Two effective techniques: FDA and CRE, are introduced to bridge feature distribution and structural gaps between the pre-trained latent diffusion model and SAM.
94
+ - We also construct the LQSeg dataset which includes a wide range of degradation types and levels, to effectively train and evaluate the model.
95
+ - Extensive experiments show that our method performs excellently on low-quality images with varying degrees of degradation while maintaining generalization to clear images. Additionally, our method achieves strong performance on unseen degradations, highlighting the adaptability of both our framework and dataset.
96
+
97
+ # 2. Related Work
98
+
99
+ # 2.1. Segmentation on Low-Quality Images
100
+
101
+ Executing robust segmentation across various scenarios is a critical issue. Numerous studies [8, 24, 43, 56] have highlighted significant performance degradation in conventional segmentation models and foundational SAMs when confronted with low-quality images with degradation. Many related studies [11, 14, 24, 29, 43] have been proposed to enhance the robustness of segmentation models against low-
102
+
103
+ quality data. These methods primarily consider a single type of degradation. Recently, RobustSAM [8] is introduced to enhance the robustness of the SAM against multiple image degradations through anti-degradation feature learning. However, its performance also struggles when dealing with complex degradations. The real-world image noise is often too complex to be modeled by a single degradation [19, 34, 35]. Therefore, robustly segmenting images of any quality remains challenging.
104
+
105
+ # 2.2. Diffusion Models for Perception Tasks
106
+
107
+ Recently, diffusion models [20, 39, 45, 50, 62] have garnered significant attention in research, due to their powerful generation capabilities. Numerous studies [1, 2, 6, 23, 33, 40, 53, 60, 64] explore how to extend their applications to a broader range of tasks, such as detection, segmentation, and image reconstruction, etc. For diffusion-based perception tasks, one category of methods [1, 7, 58, 59] reformulate the perception tasks as progressive denoising from random noise. such as DiffusionDet [6] and DiffusionInst [6]. Another route employs the denoising autoencoder pre-trained on the text-to-image generation as a backbone for downstream perception tasks [13, 23, 28, 40, 64]. For example, VPD [64] passes the image through a pre-trained diffusion model and extracts intermediate features for task prediction. Diverging from these existing works, we preserve the original segmentation structure and fine-tune a generative diffusion to enhance the segmentation model's latent representations for accurate segmentation of any quality images.
108
+
109
+ # 2.3. Segment Anything Model and Variants
110
+
111
+ Segment Anything Models (SAMs) [27, 44] have gained significant influence within the community due to their outstanding zero-shot segmentation capabilities. SAM [27] can interactively segment any object in an image using visual prompts such as points and bounding boxes. Most recently, the updated SAM2 [44] has been released, showing improved segmentation accuracy and inference efficiency. Their generalization abilities have led to breakthroughs and new paradigms in various downstream tasks [25, 30, 36, 48, 52, 57, 61, 65]. Although SAM is powerful, its performance decreases when facing complex scenarios, such as degraded images [22, 42, 56] and adverse weather conditions [47], which significantly hinders the real-world applications of SAM. Enhancing SAM's capability in such challenging scenarios is a worthwhile research topic.
112
+
113
+ # 3. Generative Latent Space Enhancement for Any-Quality Image Segmentation
114
+
115
+ In the following, we explore how to improve SAM's robustness for low-quality images through generative latent space enhancement, thus enabling it to generalize across varying image qualities. The overall framework of the proposed
116
+
117
+ GleSAM is shown in Fig. 3. To begin, in Sec. 3.1, we propose incorporating diffusion models' generative capabilities into SAM's latent space to effectively and efficiently enhance low-quality feature representations. Next, to improve the compatibility of feature distribution and architecture between the pre-trained diffusion model and SAM, we introduce two techniques: Feature Distribution Alignment and Channel Replicate and Expansion, which are detailed in Sec. 3.2 and Sec. 3.3, respectively. Finally, the overall training method is outlined in Sec. 3.4.
118
+
119
+ # 3.1. Latent Denoising Diffusion in Segmentation
120
+
121
+ Recall that diffusion models [20, 45, 50] are a class of probabilistic generative models that progressively add noise to the latent space, and then they learn to reverse this process by predicting and removing the noise. Formally, in LDMs, the forward noise process iteratively adds Gaussian noise with variance $\beta_{t} \in (0,1)$ to the variable $z$ . The sample at each time point is defined as:
122
+
123
+ $$
124
+ z _ {t} = \sqrt {\overline {{\alpha}} _ {t}} z + \sqrt {1 - \overline {{\alpha}} _ {t}} \epsilon , \qquad (1)
125
+ $$
126
+
127
+ where $\alpha_{t} = 1 - \beta_{t},\overline{\alpha}_{t} = \prod_{s = 1}^{t}\alpha_{s}$ , and $\epsilon \in \mathcal{N}(0,\mathrm{I})$ . While the inverse diffusion process is modeled by applying a neural network $\epsilon_{\theta}(z_t,t)$ to predict the noise $\hat{\epsilon}$ and recover the original input $\hat{z}$ . LDMs model the above process in a latent space using a pre-trained Variational AutoEncoder (VAE) and then up-sample the latent output to the original resolution using the VAE decoder, enabling more efficient computations in the training and inference phases.
128
+
129
+ A similar idea motivates us to introduce the generative latent space denoising process into the SAMs' framework to reconstruct low-quality segmentation features. Let's denote $\mathcal{E}_{\theta}$ and $\mathcal{D}_{\theta}$ the segmentation encoder and decoder of SAMs, respectively. As shown in Fig. 3, the input LQ image is first compressed by $\mathcal{E}_{\theta}$ and generates LQ feature $z_{L}$ . We consider $z_{L}$ to be a noisy version of $z_{H}$ , containing sufficient information to reconstruct a high-quality feature. Instead of the complex multi-step denoising from random noise, we start directly from $z_{L}$ and forward with a single denoising step. Specifically, based on Eq. 1, the clean latent variable $z$ can be directly predicted from the model's predicted noise $\hat{\epsilon}$ , as:
130
+
131
+ $$
132
+ \hat {z} = \frac {z _ {t} - \sqrt {1 - \overline {{\alpha}} _ {t}} \hat {\epsilon}}{\sqrt {\overline {{\alpha}} _ {t}}}, \tag {2}
133
+ $$
134
+
135
+ where $\hat{\epsilon}$ is the prediction of the network $\epsilon_{\theta}$ with given $z_{t}$ and t: $\hat{\epsilon} = \epsilon_{\theta}(z_t;t)$ . We re-parameterize the above generative denoising process to adapt low-quality latent space enhancement in segmentation, as:
136
+
137
+ $$
138
+ \hat {z} _ {H} = \operatorname {G L E} \left(z _ {L}\right) = \frac {z _ {L} - \sqrt {1 - \bar {\alpha} _ {T}} \epsilon_ {\theta} \left(z _ {L} ; T\right)}{\sqrt {\bar {\alpha} _ {T}}}, \tag {3}
139
+ $$
140
+
141
+ where we consider low-quality feature $x_{L}$ as the noised feature and perform one-step denoising at the $T$ -th diffusion
142
+
143
+ ![](images/6693a538551966b2a531ee42df6c36d781d37e091add082ad8662a033e631f67.jpg)
144
+ Figure 3. Given an input image, GleSAM performs accurate segmentation through image encoding, generative latent space enhancement, and mask decoding. During training, HQ-LQ image pairs are fed into the frozen image encoder to extract the corresponding HQ and LQ latent features. We then reconstruct high-quality representations in the SAM's latent space by efficiently fine-tuning a generative denoising U-Net with LoRA. Subsequently, the decoder is fine-tuned with segmentation loss to align the enhanced latent representations. Built upon SAMs, GleSAM inherits prompt-based segmentation and performs well on images of any quality.
145
+
146
+ timestep. The denoised output $\hat{z}_H$ is expected to be closer to the features extracted from clear images $z_{H}$ . This single-step process significantly reduces computational overhead, making it more efficient when applied to segmentation models. After that, with $\hat{z}_H$ as input, the mask decoder can predict more precise masks, as: $m_p = \mathcal{D}_{\theta}(\hat{z}_H)$
147
+
148
+ # 3.2. Feature Distribution Alignment
149
+
150
+ We employ the pre-trained U-Net in LDM as the denoising backbone. However, a significant challenge arises due to the substantial difference between the latent spaces in the original LDM (encoded by VAE) and segmentation models, leading to several technical issues for our application.
151
+
152
+ Firstly, there is a distribution gap between the two spaces and directly feeding segmentation features into U-Net may prevent it from fully exerting its denoising capabilities, as shown in the right part of Fig. 3. To address this gap, we introduce a Feature Distribution Alignment (FDA) technique. Specifically, we add an adaptation weight $\gamma$ to scale the segmentation features, adjusting their variance to align more closely with the VAE's latent space. This adjustment ensures that the features are compatible with U-Net's optimal input space, improving the robustness and accuracy of the semantic interpretation and enhancing the denoising capability. The LQ feature denoising process in Eq. 3 can be updated as:
153
+
154
+ $$
155
+ \hat {z} _ {H} = \mathrm {G L E} (z _ {L}) = \frac {\gamma z _ {L} - \sqrt {1 - \overline {{\alpha}} _ {T}} \epsilon_ {\theta} (\gamma z _ {L} ; T)}{\gamma \sqrt {\overline {{\alpha}} _ {T}}}, \quad (4)
156
+ $$
157
+
158
+ where we divide by $\gamma$ to restore its original distribution. We experimentally verified in Sec. 5.4 that this simple operation effectively improves U-Net's denoising performance when applied to segmentation features.
159
+
160
+ # 3.3. Channel Expansion for Head-tail Layers
161
+
162
+ Another technical issue arises from the channel mismatch of the head and tail layers between the pre-trained U-Net and the segmentation features. The U-Net in LDMs is designed for 4-channel input and output ( $h \times w \times 4$ ), which does not match the dimension of SAM's latent space ( $h \times w \times 256$ ). We explore various methods to solve this problem (in Sec. 5.4) and empirically find that fine-tuning new head and tail layers or an encoder-decoder for segmentation features is ineffective. This is likely due to difficulties in aligning with the pre-trained model's parameters while preserving its generalization ability. To address this, we propose a Channel Replication and Expansion (CRE) method that replicates and concatenates the pre-trained weights of head and tail layers to match the required channel dimension. During training, the parameters of the head and tail layers remain frozen, while learnable LoRA layers are added to adapt to segmentation features. This approach effectively preserves the pre-trained generalization capacity while minimizing the number of learnable parameters.
163
+
164
+ # 3.4. Training Method
165
+
166
+ We employ a two-step fine-tuning process. In the first step, we fine-tune the denoising U-Net to reconstruct high
167
+
168
+ quality features. In the second step, we fine-tune the decoder with the restored features to further align the feature space for more accurate segmentation.
169
+
170
+ U-Net finetuning. To adapt the pre-trained U-Net to the segmentation framework while preserving its inherent generalization ability, we employ the LoRA [21] scheme to fine-tune all the attention layers in the U-Net. During this step, we freeze the pre-trained image encoder and U-Net layers and only fine-tune the added LoRA layers. The estimated feature is compared with the corresponding HQ feature $z_{H}$ by a reconstruction loss, as:
171
+
172
+ $$
173
+ \mathcal {L} _ {\mathrm {R e c}} = \mathcal {L} _ {\mathrm {M S E}} (\mathrm {G L E} \left(z _ {L}\right), z _ {H}). \tag {5}
174
+ $$
175
+
176
+ This step significantly enhances performance without fine-tuning SAM's parameters.
177
+
178
+ Decoder finetuning. Next, we use the reconstructed high-quality features to fine-tune the mask decoder for more precise segmentation. Our experiments demonstrate that finetuning either the entire decoder or only the output tokens with these features further improves segmentation accuracy while maintaining generalization on clear images. Focal Loss and Dice Loss are employed as segmentation loss functions, as:
179
+
180
+ $$
181
+ \mathcal {L} _ {\text {S e g}} = \mathcal {L} _ {\text {D i c e}} \left(m _ {p}, m _ {g}\right) + \mathcal {L} _ {\text {F o c a l}} \left(m _ {p}, m _ {g}\right), \tag {6}
182
+ $$
183
+
184
+ where $m_p$ and $m_g$ indicate predicted and ground-truth masks respectively.
185
+
186
+ # 4. Low-Quality Image Segmentation Dataset
187
+
188
+ We construct a comprehensive low-quality image segmentation dataset dubbed $LQSeg$ that encompasses more complex and multi-level degradations, rather than relying on a single type of degradation for each image. The dataset is composed of images from several existing datasets with our synthesized degradations. In this section, we first model a multi-level degradation process of low-quality images and then detail the dataset composition.
189
+
190
+ # 4.1. Multi-level Degradation Modeling
191
+
192
+ To model a more practical and complex degradation process, inspired by the previous work in image reconstruction [54, 63], we utilize a mixed degradation method. Specifically, the degraded process is modeled as the random combination of the four common degradation models, including Blur, Random Resize, Noise, and JPEG Compression. Each degradation model encompasses various types, such as Gaussian and Poisson noise for Noise, ensuring the diversity of the degradation process.
193
+
194
+ To enrich the granularity of degradation, we employ multi-level degradation by adjusting the downsampling rates. We employed three different resize rates, i.e., [1, 2, 4], which correspond to three degradation levels from slight
195
+
196
+ to severe: LQ-1, LQ-2, and LQ-3. More implementation details are illustrated in Supplementary Material.
197
+
198
+ # 4.2. Dataset Composition
199
+
200
+ Based on the above multi-level degradation model, we construct LQSeg to train our model and evaluate the segmentation performance on different levels of low-quality images. The images in LQSeg are sourced from several well-known existing datasets in the community with our synthesized degradation. In detail, for the training set, we utilize the entire training sets of LVIS [17], ThinObject-5K [31], and MSRA10K [9] as the source data and procedurally synthesize corresponding low-quality images. The evaluation set is sourced from four subsets, i.e., 1) the whole test sets of ThinObject-5K and LVIS (seen sets), and 2) ECSSD [49] and COCO-val [32] (unseen sets). For each source image, We systematically generate three levels of degraded images to thoroughly assess the model's robustness.
201
+
202
+ # 5. Experiment
203
+
204
+ We conduct extensive experiments to verify our method across images of varying quality. All proposed techniques can be applied to SAM and SAM2, referred to as GleSAM and GleSAM2. In practice, our models perform well on low-quality (Tab. 1, 2) and clear images (Tab. 5) and they generalize effectively to unseen degradations (Tab. 3).
205
+
206
+ # 5.1. Experimental Setup
207
+
208
+ Implement Details. Our model is trained using the AdamW optimizer with the learning rate of $1 \times 10^{-4}$ and batch size of 4. The pre-trained U-Net in Stable Diffusion (SD) 2.1-base [45] is adopted as the denoising backbone. We use 3 clicks as SAM's prompts by default. Our approach can be efficiently trained on $4 \times$ A100 GPUs within approximately 30 hours, during which we fine-tune the U-Net for 100K iterations and the decoder for only 20K iterations.
209
+
210
+ Evaluation Metrics. We employ three metrics to assess our model's performance, including Intersection over Union (IoU), Dice Coefficient (Dice), and Pixel Accuracy (PA).
211
+
212
+ # 5.2. Performance Comparisons
213
+
214
+ In this experiment, we evaluate the performance on the test set of our LQSeg, including seen-set (Tab. 1) and unseen-set (Tab. 2) evaluations. We compare our method with a set of comparison baselines to quantify the performance gains. For SAM-based comparisons, besides the original SAM [27], we also compare with the RobustSAM [8], which has improved robustness on the degraded dataset. Additionally, we compare with two-stage methods, i.e., reconstructing images first with image reconstruction (IR) networks and passing the restored clear images to the SAM and SAM2. We use two state-of-the-art IR networks for comparison: PromptIR [41], and diffusion-based DiffBIR [33].
215
+
216
+ <table><tr><td rowspan="3">Method</td><td colspan="6">ThinObject-5K</td><td colspan="6">LVIS</td></tr><tr><td colspan="2">LQ-3</td><td colspan="2">LQ-2</td><td colspan="2">LQ-1</td><td colspan="2">LQ-3</td><td colspan="2">LQ-2</td><td colspan="2">LQ-1</td></tr><tr><td>IoU</td><td>Dice</td><td>IoU</td><td>Dice</td><td>IoU</td><td>Dice</td><td>IoU</td><td>Dice</td><td>IoU</td><td>Dice</td><td>IoU</td><td>Dice</td></tr><tr><td>SAM</td><td>0.6285</td><td>0.7286</td><td>0.7054</td><td>0.7939</td><td>0.7527</td><td>0.8343</td><td>0.4041</td><td>0.5005</td><td>0.4886</td><td>0.5838</td><td>0.5325</td><td>0.6282</td></tr><tr><td>RobustSAM</td><td>0.7015</td><td>0.7965</td><td>0.7648</td><td>0.8463</td><td>0.7922</td><td>0.8658</td><td>0.4517</td><td>0.5670</td><td>0.4962</td><td>0.6079</td><td>0.5262</td><td>0.6356</td></tr><tr><td>PromptIR-SAM</td><td>0.6380</td><td>0.7374</td><td>0.7146</td><td>0.8018</td><td>0.7434</td><td>0.8248</td><td>0.4020</td><td>0.4978</td><td>0.4705</td><td>0.5677</td><td>0.5222</td><td>0.6187</td></tr><tr><td>DiffBIR-SAM</td><td>0.7055</td><td>0.7917</td><td>0.7772</td><td>0.8531</td><td>0.7927</td><td>0.8652</td><td>0.5316</td><td>0.6307</td><td>0.5812</td><td>0.6913</td><td>0.6021</td><td>0.7090</td></tr><tr><td>GleSAM (Ours)</td><td>0.7594</td><td>0.8413</td><td>0.8033</td><td>0.8738</td><td>0.8277</td><td>0.8920</td><td>0.5535</td><td>0.6756</td><td>0.5916</td><td>0.7066</td><td>0.6131</td><td>0.7244</td></tr><tr><td>SAM2</td><td>0.7174</td><td>0.8000</td><td>0.7636</td><td>0.8373</td><td>0.7839</td><td>0.8536</td><td>0.5118</td><td>0.6174</td><td>0.5634</td><td>0.6633</td><td>0.6024</td><td>0.7004</td></tr><tr><td>PromptIR-SAM2</td><td>0.7119</td><td>0.7945</td><td>0.7753</td><td>0.8477</td><td>0.7801</td><td>0.8487</td><td>0.5017</td><td>0.6084</td><td>0.5529</td><td>0.6546</td><td>0.5875</td><td>0.6865</td></tr><tr><td>DiffBIR-SAM2</td><td>0.7348</td><td>0.8117</td><td>0.7832</td><td>0.8505</td><td>0.7974</td><td>0.8604</td><td>0.5651</td><td>0.6664</td><td>0.6004</td><td>0.7032</td><td>0.6278</td><td>0.7380</td></tr><tr><td>GleSAM2 (Ours)</td><td>0.7947</td><td>0.8653</td><td>0.8300</td><td>0.8896</td><td>0.8527</td><td>0.9072</td><td>0.5738</td><td>0.6887</td><td>0.6082</td><td>0.7161</td><td>0.6361</td><td>0.7402</td></tr></table>
217
+
218
+ Table 1. Performance comparison on the test set of Thinobject-5K [31] and LVIS [17] datasets (seen datasets) with different levels of degradation. From LQ-1 to LQ-3, the degree of degradation increases progressively. We report IoU and Dice for comparison. Our GleSAM and GleSAM2 consistently outperform other competitors, especially on the most challenging LQ-3 version. The words with boldface indicate the best results and those underlined indicate the second-best results.
219
+
220
+ <table><tr><td rowspan="3">Method</td><td colspan="6">ECSSD</td><td colspan="6">COCO</td></tr><tr><td colspan="2">LQ-3</td><td colspan="2">LQ-2</td><td colspan="2">LQ-1</td><td colspan="2">LQ-3</td><td colspan="2">LQ-2</td><td colspan="2">LQ-1</td></tr><tr><td>IoU</td><td>Dice</td><td>IoU</td><td>Dice</td><td>IoU</td><td>Dice</td><td>IoU</td><td>Dice</td><td>IoU</td><td>Dice</td><td>IoU</td><td>Dice</td></tr><tr><td>SAM</td><td>0.5219</td><td>0.6383</td><td>0.6156</td><td>0.7202</td><td>0.6778</td><td>0.7735</td><td>0.4048</td><td>0.5014</td><td>0.4848</td><td>0.5810</td><td>0.5392</td><td>0.6350</td></tr><tr><td>RobustSAM</td><td>0.6535</td><td>0.7659</td><td>0.7271</td><td>0.8240</td><td>0.7758</td><td>0.8606</td><td>0.4541</td><td>0.5711</td><td>0.4956</td><td>0.6087</td><td>0.5304</td><td>0.6401</td></tr><tr><td>PromptIR-SAM</td><td>0.5277</td><td>0.6442</td><td>0.6109</td><td>0.7188</td><td>0.6752</td><td>0.7726</td><td>0.4006</td><td>0.4969</td><td>0.4784</td><td>0.5753</td><td>0.5257</td><td>0.6219</td></tr><tr><td>DiffBIR-SAM</td><td>0.6675</td><td>0.7652</td><td>0.7408</td><td>0.8244</td><td>0.7737</td><td>0.8501</td><td>0.5260</td><td>0.6263</td><td>0.5742</td><td>0.6918</td><td>0.6112</td><td>0.7080</td></tr><tr><td>GleSAM (Ours)</td><td>0.7332</td><td>0.8282</td><td>0.7944</td><td>0.8719</td><td>0.8257</td><td>0.8931</td><td>0.5495</td><td>0.6705</td><td>0.5900</td><td>0.7055</td><td>0.6158</td><td>0.7257</td></tr><tr><td>SAM2</td><td>0.6534</td><td>0.7540</td><td>0.7292</td><td>0.8157</td><td>0.7625</td><td>0.8417</td><td>0.5176</td><td>0.6230</td><td>0.5681</td><td>0.6692</td><td>0.6018</td><td>0.7000</td></tr><tr><td>PromptIR-SAM2</td><td>0.6490</td><td>0.7526</td><td>0.7175</td><td>0.8082</td><td>0.7519</td><td>0.8351</td><td>0.5088</td><td>0.6153</td><td>0.5579</td><td>0.6600</td><td>0.5905</td><td>0.6914</td></tr><tr><td>DiffBIR-SAM2</td><td>0.7158</td><td>0.8026</td><td>0.7853</td><td>0.8588</td><td>0.8070</td><td>0.8745</td><td>0.5680</td><td>0.6711</td><td>0.6109</td><td>0.7190</td><td>0.6245</td><td>0.7348</td></tr><tr><td>GleSAM2 (Ours)</td><td>0.7335</td><td>0.8258</td><td>0.7976</td><td>0.8726</td><td>0.8175</td><td>0.8853</td><td>0.5724</td><td>0.6867</td><td>0.6165</td><td>0.7246</td><td>0.6337</td><td>0.7371</td></tr></table>
221
+
222
+ Table 2. Zero-shot performance comparison on the ECSSD [49] and COCO [32] datasets (unseen datasets) with different levels of degradation. These results indicate that GleSAMs possesses significant robustness in zero-shot segmentation across different levels of degradations.
223
+
224
+ Performance Comparison on Seen Datasets. In Tab. 1, we evaluate the performance of our GleSAM and GleSAM2 on two seen datasets: ThinObject-5K [31] and LVIS [17]. Each dataset contains three levels of degradation. Our method demonstrates superior performance across all degradation levels, effectively handling low-quality images. As the degradation level increases (from LQ-1 to LQ-3), GleSAMs show increasingly significant performance improvements compared to the baseline, highlighting its robustness against challenging degradations.
225
+
226
+ Performance Comparison on Un-seen Datasets. In Tab. 2, we evaluate the zero-shot segmentation performance of GleSAMs on two unseen datasets: ECSSD [49] and COCO [32], all of which are synthesized with different levels of degradations. GleSAM consistently outperforms other methods, particularly on the most challenging LQ-3 version, underscoring its strong zero-shot generalization capabilities and potential for real-world applications. To further assess segmentation quality, we plot the density distribution maps of image quality and segmentation IoU in Fig. 4. Compared to the baselines, our method achieves overall
227
+
228
+ improvement and more stable performance on low-quality images, especially for those of inferior quality.
229
+
230
+ Validation with Other Degradations. To validate the model's generalization on other unseen degradations, we evaluated GleSAM and GleSAM2 on RobustSeg-style degradations [8], with the results presented in Tab. 3. These degradations were not used during training. Our method consistently outperforms SAM and SAM2 and even surpasses RobustSAM which is specifically trained on RobustSeg. This demonstrates the strong generalization of our method across diverse degradations.
231
+
232
+ # 5.3. Ablation Study
233
+
234
+ We conduct ablation experiments in Tab. 4, 5 to further understand the impact of each component of our framework.
235
+
236
+ Effect of Each Component. In Tab. 4, we validated the effectiveness of each proposed module in GleSAM. "Gle" indicates our framework with generative latent space enhancement. The results show that each introduced method significantly improves the performance. We also make a qualitative visualization in Fig. 5, which shows that the
237
+
238
+ ![](images/0c996d3d21f3661365ab448bc827b0ec838ee9a368c3c8e19c9097f74ba29799.jpg)
239
+ Figure 4. Density distribution maps about IoU and image quality across different methods, including SAM, GleSAM, SAM2, and GleSAM2. The image quality is calculated using the Laplacian operator in OpenCV. The red dashed box highlights the area where our method demonstrates improved segmentation performance compared to SAM, particularly in lower-quality images.
240
+
241
+ ![](images/465ce12e70e8a50e0668cb3421a74c91c0224b0ced1a28ba5fb880433f7f62cb.jpg)
242
+
243
+ ![](images/2c547d0664123531e0f3eeefde53684a458885be159343ef2de948aedb418a47.jpg)
244
+
245
+ ![](images/74f8d94249e386f2186780ac9c9141a202b06049b107495177876069ff2b98c3.jpg)
246
+
247
+ <table><tr><td rowspan="2">Method</td><td colspan="2">ECSSD</td><td colspan="2">COCO</td></tr><tr><td>IoU</td><td>Dice</td><td>IoU</td><td>Dice</td></tr><tr><td>SAM [27]</td><td>0.7833</td><td>0.8573</td><td>0.6512</td><td>0.7457</td></tr><tr><td>RobustSAM [8]</td><td>0.8427</td><td>0.9044</td><td>0.6543</td><td>0.7518</td></tr><tr><td>GleSAM (Ours)</td><td>0.8568</td><td>0.9119</td><td>0.6678</td><td>0.7700</td></tr><tr><td>SAM2</td><td>0.8211</td><td>0.8817</td><td>0.6817</td><td>0.7753</td></tr><tr><td>GleSAM2 (Ours)</td><td>0.8611</td><td>0.9133</td><td>0.6869</td><td>0.7836</td></tr></table>
248
+
249
+ Table 3. Zero-shot performance comparison on RobustSeg-style [8] degradations. Performance is tested on the unseen ECSSD and COCO datasets. Note that our methods are not trained on such degradations. The superior performance of our method demonstrates robustness against various forms of degradation.
250
+
251
+ <table><tr><td rowspan="2">Method</td><td colspan="2">ECSSD</td><td colspan="2">COCO</td></tr><tr><td>IoU</td><td>Dice</td><td>IoU</td><td>Dice</td></tr><tr><td>Baseline</td><td>0.6054</td><td>0.7107</td><td>0.4763</td><td>0.5725</td></tr><tr><td>+ Gle &amp; CRE</td><td>0.6567</td><td>0.7657</td><td>0.4958</td><td>0.5963</td></tr><tr><td>+ Gle &amp; CRE &amp; FDA</td><td>0.7104</td><td>0.8020</td><td>0.5166</td><td>0.6174</td></tr></table>
252
+
253
+ clearest latent feature is obtained when combining all modules. Additionally, in Tab. 5, without fine-tuning the decoder, our method improves the results on LQ images by about 7 points, while also preserving the robustness of SAM on clear conditions, indicating the robustness of our method for both degraded and clear images.
254
+
255
+ Effect of Fine-tuning SAM. We explore two common configurations to fine-tune SAM: fine-tuning the entire SAM's decoder and the output mask token. Our experiments reveal that directly fine-tuning SAM's decoder or output mask token on degraded images leads to a significant drop in zero-shot performance on clear images, with the IoU decreasing by nearly 20 points. In contrast, our method further improves performance on both low-quality and clear images by fine-tuning the entire decoder or mask token, enabling the segmentation of images with any quality.
256
+
257
+ Table 4. Ablation study of each component in the proposed method, evaluated on the unseen ECSSD and COCO datasets. Each additional component positively affects the performance, demonstrating the effectiveness of the proposed methods.
258
+
259
+ <table><tr><td rowspan="2">Method</td><td colspan="2">LQ</td><td colspan="2">Clear</td><td colspan="2">Average</td></tr><tr><td>IoU</td><td>Dice</td><td>IoU</td><td>Dice</td><td>IoU</td><td>Dice</td></tr><tr><td colspan="7">w/o Fine-tuning SAM:</td></tr><tr><td>SAM</td><td>0.5407</td><td>0.6416</td><td>0.7830</td><td>0.8554</td><td>0.6619</td><td>0.7485</td></tr><tr><td>Ours</td><td>0.6135</td><td>0.7097</td><td>0.7846</td><td>0.8567</td><td>0.6991</td><td>0.7832</td></tr></table>
260
+
261
+ <table><tr><td colspan="7">Fine-tuning SAM:</td></tr><tr><td>SAM-FT-T</td><td>0.6305</td><td>0.7374</td><td>0.5847</td><td>0.7029</td><td>0.6076</td><td>0.7202</td></tr><tr><td>SAM-FT-D</td><td>0.6327</td><td>0.7385</td><td>0.6071</td><td>0.7242</td><td>0.6199</td><td>0.7314</td></tr><tr><td>Ours-FT-T</td><td>0.6759</td><td>0.7751</td><td>0.8061</td><td>0.8747</td><td>0.7410</td><td>0.8249</td></tr><tr><td>Ours-FT-D</td><td>0.6848</td><td>0.7825</td><td>0.8022</td><td>0.8704</td><td>0.7435</td><td>0.8265</td></tr></table>
262
+
263
+ Table 5. Effect of Fine-tuning SAM. The performance is evaluated on the unseen ECSSD and COCO datasets. "FT-T" and "FT-D" indicate fine-tuning the SAM's mask token and decoder respectively. "LQ" indicates the mean performance on three levels of degraded data, and "Clear" indicates the results on the original clear images.
264
+
265
+ ![](images/f9c72fd87fb2dba082fce58ccef92fa4832cfb341ecd0eb56148ade9d01e6aba.jpg)
266
+ Figure 5. Qualitative visualization of the enhanced latent features. The clearest feature is obtained when combining all modules.
267
+
268
+ # 5.4. Detailed Analysis
269
+
270
+ Analysis of channel expansion methods. To address the issue of channel mismatch between SAM and the pretrained U-Net, we explored various strategies including (a) using two simple convolutional layers to reduce and expand the channels of segmentation features as needed, (b) fine-tuning new head and tail layers from scratch, and (c) our CRE method. Our results (in Tab. 6 and Fig. 7) show that strategies (a) and (b) are ineffective, likely because the new layers couldn't leverage the pre-trained knowledge. In contrast, our method effectively resolves this issue by replicating pre-trained parameters and fine-tuning with LoRA.
271
+
272
+ Analysis of hyperparameter $\gamma$ . We use an adaption weight
273
+
274
+ ![](images/c5dcb088b2ae42449b2edaaaa54ffa86ac76c4bff0c288406cab5864c2ce65a1.jpg)
275
+ (a) ECSSD
276
+ Figure 6. Ablation study of adaption weight $\gamma$ .
277
+
278
+ ![](images/632d40407e9f22afaf7185829e5b57ebaa1f8edfafdd61894c580f085849e0f6.jpg)
279
+ (b) COCO
280
+
281
+ <table><tr><td>Method</td><td>IoU</td><td>Dice</td><td>PA</td></tr><tr><td>(a) Additional encoder and decoder</td><td>0.4544</td><td>0.5842</td><td>0.6106</td></tr><tr><td>(b) New head and tail layers</td><td>0.6014</td><td>0.7077</td><td>0.7782</td></tr><tr><td>(c) Replicate and Expansion (Ours)</td><td>0.6567</td><td>0.7657</td><td>0.8400</td></tr></table>
282
+
283
+ ![](images/4922927e210e8414e17ecf1e0236673027c312a734367e9dcf7f4a0b4a2ce36f.jpg)
284
+ Figure 7. Qualitative visualization of the enhanced latent features generated by different channel expansion methods. Our proposed CRE method (c) produces more salient features.
285
+
286
+ ![](images/a3a6d01c799d9ac63d2a4d2096798ae342ba7d5ef090064ad311df72455583a4.jpg)
287
+
288
+ ![](images/1a7d02d70d6c49e5c04377da352773dc6dd6603ceeb9fe11241e687c1a818191.jpg)
289
+
290
+ ![](images/cbaa8fb398c1ccb6e323099f35b1b2a0b0b00d0e2a2429efd6b58976d8c9c132.jpg)
291
+
292
+ $\gamma$ to align the distribution of the latent space between LDM and SAM. To determine the optimal value of $\gamma$ , we empirically test five different values on the ECSSD and COCO datasets. The results, shown in Fig. 6, suggest that $\gamma = 5$ is the most effective setting, providing strong generalization across all models and datasets. Therefore, we adopt $\gamma = 5$ as the default value in our experiments.
293
+
294
+ Analysis of LoRA ranks. We incorporate learnable LoRA layers to fine-tune the pre-trained denoising U-Net. Here, we evaluate the impact of different LoRA ranks on segmentation performance. The results are shown in Tab. 8. We tested the results and the corresponding number of learnable parameters for setting a rank to 4, 8, and 16. We found that setting the rank to 8 can obtain good results while maintaining an acceptable number of parameters.
295
+
296
+ Analysis of degradation levels. To investigate the necessity of training on all three degradation levels together, we train GleSAM on LQ datasets for each degradation level (LQ-1, LQ-2, LQ-3) individually. We evaluate the models' performance on ECSSD and COCO datasets using three degraded levels and RobustSeg-style degradations. The results in Tab. 7 show that training on all three degrada
297
+
298
+ Table 6. Analysis of the proposed CRE. It significantly outperforms alternative approaches, achieving higher scores.
299
+
300
+ <table><tr><td rowspan="2">Training Data</td><td colspan="3">Ours</td><td rowspan="2">LQ-RS</td><td rowspan="2">AVG</td></tr><tr><td>LQ-1</td><td>LQ-2</td><td>LQ-3</td></tr><tr><td>LQ-1</td><td>0.6981</td><td>0.6663</td><td>0.6076</td><td>0.7587</td><td>0.6827</td></tr><tr><td>LQ-2</td><td>0.7168</td><td>0.6843</td><td>0.6318</td><td>0.7621</td><td>0.6988</td></tr><tr><td>LQ-3</td><td>0.7185</td><td>0.6910</td><td>0.6403</td><td>0.7619</td><td>0.7030</td></tr><tr><td>LQ-1,2,3</td><td>0.7208</td><td>0.6922</td><td>0.6414</td><td>0.7623</td><td>0.7042</td></tr></table>
301
+
302
+ Table 7. Ablation study for degradation levels during training. LQ-RS indicates the RobustSeg-style [8] degradation. AVG indicates the average performance. We report the IoU for comparison. The results on the unseen ECSSD and COCO datasets reveal that multi-level degradation contributes to more robust performance.
303
+
304
+ <table><tr><td rowspan="2">Rank</td><td colspan="3">LQ</td><td rowspan="2">Learnable
305
+ Params</td></tr><tr><td>IoU</td><td>Dice</td><td>PA</td></tr><tr><td>4</td><td>0.7760</td><td>0.8597</td><td>0.9434</td><td>16.25M</td></tr><tr><td>8</td><td>0.7844</td><td>0.8644</td><td>0.9456</td><td>32.49M</td></tr><tr><td>16</td><td>0.7697</td><td>0.8543</td><td>0.9418</td><td>64.99M</td></tr></table>
306
+
307
+ Table 8. Analysis of LoRA ranks in U-Net.
308
+
309
+ <table><tr><td>Method</td><td>Learnable Params</td><td>Num. GPUs</td><td>Training Time (h)</td><td>Inference Speed (s)</td></tr><tr><td>SAM</td><td>1250 MB</td><td>256</td><td>N/A</td><td>0.32</td></tr><tr><td>GleSAM</td><td>47 MB</td><td>4</td><td>30</td><td>0.38 (+0.06)</td></tr></table>
310
+
311
+ Table 9. Computational requirements of GleSAM vs SAM.
312
+
313
+ tion levels together contributes to more robust performance across varying levels of image degradation.
314
+
315
+ Analysis of computational requirements. In Tab. 9, we report detailed training and inference comparisons between our GleSAM and SAM. Although GleSAM demonstrates significantly improved robustness, it introduces only marginal learnable parameters and incurs a slight trade-off in inference speed. The additional parameters can be efficiently optimized in 30 hours on four A100 GPUs.
316
+
317
+ # 6. Conclusion
318
+
319
+ We present GleSAM, a solution to enhance Segment Anything Models (SAM and SAM2) for robust segmentation across images of any quality, particularly those with severe degradation. We incorporate the generative ability of pretrained diffusion models into the latent space of SAMs to enhance low-quality features, thus promoting more robust segmentation. Our approach is further supported by the LQSeg dataset, which includes diverse degradation types and levels, allowing for more comprehensive model training and evaluation. Extensive experiments demonstrate that GleSAM achieves superior performance on degraded images while maintaining generalization to clear ones, and it performs well on unseen degradations, highlighting its robustness and versatility. This work extends SAM capabilities, offering a practical approach for degraded scenarios.
320
+
321
+ # Acknowledgements
322
+
323
+ This work was supported in part by the National Natural Science Foundation of China (NSFC) under Grant 62372382.
324
+
325
+ # References
326
+
327
+ [1] Tomer Amit, Tal Shaharbany, Eliya Nachmani, and Lior Wolf. Segdiff: Image segmentation with diffusion probabilistic models. arXiv preprint arXiv:2112.00390, 2021. 3
328
+ [2] Dmitry Baranchuk, Andrey Voynov, Ivan Rubachev, Valentin Khrulkov, and Artem Babenko. Label-efficient semantic segmentation with diffusion models. In International Conference on Learning Representations, 2022. 3
329
+ [3] Huafeng Chen, Dian Shao, Guangqian Guo, and Shan Gao. Just a hint: Point-supervised camouflaged object detection. In European Conference on Computer Vision, pages 332-348, 2024. 1
330
+ [4] Huafeng Chen, Pengxu Wei, Guangqian Guo, and Shan Gao. Sam-cod: Sam-guided unified framework for weakly-supervised camouflaged object detection. In European Conference on Computer Vision, pages 315-331, 2024. 1
331
+ [5] Keyan Chen, Chenyang Liu, Hao Chen, Haotian Zhang, Wenyuan Li, Zhengxia Zou, and Zhenwei Shi. Rsprompter: Learning to prompt for remote sensing instance segmentation based on visual foundation model. IEEE Transactions on Geoscience and Remote Sensing, 2024. 1
332
+ [6] Shoufa Chen, Peize Sun, Yibing Song, and Ping Luo. Diffusionnet: Diffusion model for object detection. In Proceedings of the IEEE/CVF international conference on computer vision, pages 19830-19843, 2023. 3
333
+ [7] Ting Chen, Lala Li, Saurabh Saxena, Geoffrey Hinton, and David J Fleet. A generalist framework for panoptic segmentation of images and videos. In Proceedings of the IEEE/CVF international conference on computer vision, pages 909-919, 2023. 3
334
+ [8] Wei-Ting Chen, Yu-Jiet Vong, Sy-Yen Kuo, Sizhou Ma, and Jian Wang. Robustsam: Segment anything robustly on degraded images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4081-4091, 2024. 1, 2, 3, 5, 6, 7, 8
335
+ [9] Ming-Ming Cheng, Niloy J Mitra, Xiaolei Huang, Philip HS Torr, and Shi-Min Hu. Global contrast based salient region detection. IEEE transactions on pattern analysis and machine intelligence, 37(3):569-582, 2014. 2, 5
336
+ [10] Lei Ding, Kun Zhu, Daifeng Peng, Hao Tang, Kuiwu Yang, and Lorenzo Bruzzone. Adapting segment anything model for change detection in vhr remote sensing images. IEEE Transactions on Geoscience and Remote Sensing, 2024. 1
337
+ [11] Kazuki Endo, Masayuki Tanaka, and Masatoshi Okutomi. Semantic segmentation of degraded images using layer-wise feature adjustor. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages 3205-3213, 2023. 1, 2
338
+ [12] Shan Gao, Guangqian Guo, Hanqiao Huang, and CL Philip Chen. Go deep or broad? exploit hybrid network architecture for weakly supervised object classification and localization.
339
+
340
+ IEEE Transactions on Neural Networks and Learning Systems, 2023. 1
341
+ [13] Rui Gong, Martin Danelljan, Han Sun, Julio Delgado Mangas, and Luc Van Gool. Prompting diffusion representations for cross-domain semantic segmentation. arXiv preprint arXiv:2307.02138, 2023. 3
342
+ [14] Dazhou Guo, Yanting Pei, Kang Zheng, Hongkai Yu, Yuhang Lu, and Song Wang. Degraded image semantic segmentation with dense-gram networks. IEEE Transactions on Image Processing, 29:782-795, 2019. 2
343
+ [15] Guangqian Guo, Pengfei Chen, Xuehui Yu, Zhenjun Han, Qixiang Ye, and Shan Gao. Save the tiny, save the all: hierarchical activation network for tiny object detection. IEEE transactions on circuits and systems for video technology, 34 (1):221-234, 2023. 1
344
+ [16] Guangqian Guo, Dian Shao, Chenguang Zhu, Sha Meng, Xuan Wang, and Shan Gao. P2p: Transforming from point supervision to explicit visual prompt for object detection and segmentation. In Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence, 2024. 1
345
+ [17] Agrim Gupta, Piotr Dollar, and Ross Girshick. Lvis: A dataset for large vocabulary instance segmentation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 5356-5364, 2019. 2, 5, 6
346
+ [18] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross Girshick. Mask r-cnn. In Proceedings of the IEEE international conference on computer vision, pages 2961-2969, 2017. 1
347
+ [19] Glenn E Healey and Raghava Kondepudy. Radiometric ccd camera calibration and noise estimation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 16(3):267-276, 1994. 1, 3
348
+ [20] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Advances in neural information processing systems, pages 6840-6851, 2020. 2, 3
349
+ [21] Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. Lora: Low-rank adaptation of large language models. arXiv preprint arXiv:2106.09685, 2021. 2, 5
350
+ [22] Yihao Huang, Yue Cao, Tianlin Li, Felix Juefei-Xu, Di Lin, Ivor W Tsang, Yang Liu, and Qing Guo. On the robustness of segment anything. arXiv preprint arXiv:2305.16220, 2023. 1, 3
351
+ [23] Yuanfeng Ji, Zhe Chen, Enze Xie, Lanqing Hong, Xihui Liu, Zhaoqiang Liu, Tong Lu, Zhenguo Li, and Ping Luo. Ddp: Diffusion model for dense visual prediction. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 21741-21752, 2023. 3
352
+ [24] Christoph Kamann and Carsten Rother. Benchmarking the robustness of semantic segmentation models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 8828-8838, 2020. 2
353
+ [25] 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, 2024. 3
354
+ [26] Alexander Kirillov, Kaiming He, Ross Girshick, Carsten Rother, and Piotr Dollar. Panoptic segmentation. In Proceed-
355
+
356
+ ings of the IEEE conference on computer vision and pattern recognition, pages 9404-9413, 2019. 1
357
+ [27] Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C Berg, Wan-Yen Lo, et al. Segment anything. arXiv preprint arXiv:2304.02643, 2023. 1, 2, 3, 5, 7
358
+ [28] Neehar Kondapaneni, Markus Marks, Manuel Knott, Rogério Guimaraes, and Pietro Perona. Text-image alignment for diffusion-based perception. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13883-13893, 2024. 3
359
+ [29] Sohyun Lee, Taeyoung Son, and Suha Kwak. Fifo: Learning fog-invariant features for foggy scene segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 18911-18921, 2022. 2
360
+ [30] Bo Li, Haoke Xiao, and Lv Tang. Asam: Boosting segment anything model with adversarial tuning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3699-3710, 2024. 3
361
+ [31] Jun Hao Liew, Scott Cohen, Brian Price, Long Mai, and Ji-ashi Feng. Deep interactive thin object selection. In Proceedings of the IEEE Winter Conference on Applications of Computer Vision, pages 305–314, 2021. 2, 5, 6
362
+ [32] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dólar, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In Computer Vision-ECCV 2014: 13th European Conference, Zurich, Switzerland, September 6-12, 2014, Proceedings, Part V 13, pages 740-755. Springer, 2014. 2, 5, 6
363
+ [33] Xinqi Lin, Jingwen He, Zihan Chen, Zhaoyang Lyu, Bo Dai, Fanghua Yu, Wanli Ouyang, Yu Qiao, and Chao Dong. Diffir: Towards blind image restoration with generative diffusion prior. arXiv preprint arXiv:2308.15070, 2023. 3, 5
364
+ [34] Ce Liu, Richard Szeliski, Sing Bing Kang, C Lawrence Zitnick, and William T Freeman. Automatic estimation and removal of noise from a single image. IEEE transactions on pattern analysis and machine intelligence, 30(2):299-314, 2007. 1, 3
365
+ [35] Jan Lukas, Jessica Fridrich, and Miroslav Goljan. Digital camera identification from sensor pattern noise. IEEE Transactions on Information Forensics and Security, 1(2): 205-214, 2006. 1, 3
366
+ [36] Jun Ma, Yuting He, Feifei Li, Lin Han, Chenyu You, and Bo Wang. Segment anything in medical images. Nature Communications, 15(1):654, 2024. 1, 3
367
+ [37] Maciej A Mazurowski, Haoyu Dong, Hanxue Gu, Jichen Yang, Nicholas Konz, and Yixin Zhang. Segment anything model for medical image analysis: an experimental study. Medical Image Analysis, 89:102918, 2023. 1
368
+ [38] Seyed Iman Mirzadeh, Mehrdad Farajtabar, Ang Li, Nir Levine, Akihiro Matsukawa, and Hassan Ghasemzadeh. Improved knowledge distillation via teacher assistant. In Proceedings of the AAAI conference on artificial intelligence, pages 5191-5198, 2020. 2
369
+ [39] Thuan Hoang Nguyen and Anh Tran. Swiftbrush: One-step text-to-image diffusion model with variational score distilla
370
+
371
+ tion. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2024. 3
372
+ [40] Koutilya Pnvr, Bharat Singh, Pallabi Ghosh, Behjat Siddique, and David Jacobs. Ld-znet: A latent diffusion approach for text-based image segmentation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 4157-4168, 2023. 3
373
+ [41] Vaishnav Potlapalli, Syed Waqas Zamir, Salman H Khan, and Fahad Shahbaz Khan. Prompt: Prompting for all-in-one image restoration. Advances in Neural Information Processing Systems, 36, 2024. 5
374
+ [42] Yu Qiao, Chaoning Zhang, Taegoo Kang, Donghun Kim, Chenshuang Zhang, and Choong Seon Hong. Robustness of sam: Segment anything under corruptions and beyond. arXiv preprint arXiv:2306.07713, 2023. 1, 3
375
+ [43] AN Rajagopalan et al. Improving robustness of semantic segmentation to motion-blur using class-centric augmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10470-10479, 2023. 2
376
+ [44] Nikhila Ravi, Valentin Gabeur, Yuan-Ting Hu, Ronghang Hu, Chaitanya Ryali, Tengyu Ma, Haitham Khedr, Roman Radle, Chloe Rolland, Laura Gustafson, et al. Sam2: Segment anything in images and videos. arXiv preprint arXiv:2408.00714, 2024. 1, 3
377
+ [45] Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 10684-10695, 2022. 2, 3, 5
378
+ [46] Christoph Schuhmann, Romain Beaumont, Richard Vencu, Cade Gordon, Ross Wightman, Mehdi Cherti, Theo Coombes, Aarush Katta, Clayton Mullis, Mitchell Wortsman, et al. Laion-5b: An open large-scale dataset for training next generation image-text models. Advances in Neural Information Processing Systems, 35:25278–25294, 2022. 2
379
+ [47] Xinru Shan and Chaoning Zhang. Robustness of segment anything model (sam) for autonomous driving in adverse weather conditions. arXiv preprint arXiv:2306.13290, 2023. 1, 3
380
+ [48] Chuyun Shen, Wenhao Li, Yuhang Shi, and Xiangfeng Wang. Interactive 3d medical image segmentation with sam 2. arXiv preprint arXiv:2408.02635, 2024. 3
381
+ [49] Jianping Shi, Qiong Yan, Li Xu, and Jiaya Jia. Hierarchical image saliency detection on extended cssd. IEEE transactions on pattern analysis and machine intelligence, 38(4): 717-729, 2015. 2, 5, 6
382
+ [50] Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. In International Conference on Learning Representations, 2021. 2, 3
383
+ [51] Chaowei Wang, Guangqian Guo, Chang Liu, Dian Shao, and Shan Gao. Effective rotate: Learning rotation-robust prototype for aerial object detection. IEEE Transactions on Geoscience and Remote Sensing, 2024. 1
384
+ [52] Di Wang, Jing Zhang, Bo Du, Minqiang Xu, Lin Liu, Dacheng Tao, and Liangpei Zhang. Samrs: Scaling-up remote sensing segmentation dataset with segment anything
385
+
386
+ model. In Thirty-seventh Conference on Neural Information Processing Systems Datasets and Benchmarks Track, 2023. 3
387
+ [53] Mengyu Wang, Henghui Ding, Jun Hao Liew, Jiajun Liu, Yao Zhao, and Yunchao Wei. Segrefiner: Towards model-agnostic segmentation refinement with discrete diffusion process. Advances in Neural Information Processing Systems, 36:79761-79780, 2023. 3
388
+ [54] Xintao Wang, Liangbin Xie, Chao Dong, and Ying Shan. Real-esrgan: Training real-world blind super-resolution with pure synthetic data. In Proceedings of the IEEE/CVF international conference on computer vision, pages 1905-1914, 2021. 2, 5
389
+ [55] Yuqing Wang, Zhaoliang Xu, Xinlong Wang, Chunhua Shen, Baoshan Cheng, Hao Shen, and Huaxia Xia. End-to-end video instance segmentation with transformers. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 8741-8750, 2021. 1
390
+ [56] Yuqing Wang, Yun Zhao, and Linda Petzold. An empirical study on the robustness of the segment anything model (sam). Pattern Recognition, page 110685, 2024. 1, 2, 3
391
+ [57] Zhaoyang Wei, Pengfei Chen, Xuehui Yu, Guorong Li, Jianbin Jiao, and Zhenjun Han. Semantic-aware sam for point-prompted instance segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3585-3594, 2024. 3
392
+ [58] Junde Wu, Rao Fu, Huihui Fang, Yu Zhang, Yehui Yang, Haoyi Xiong, Huiying Liu, and Yanwu Xu. Medsegdiff: Medical image segmentation with diffusion probabilistic model. In Medical Imaging with Deep Learning, pages 1623-1639. PMLR, 2024. 3
393
+ [59] Junde Wu, Wei Ji, Huazhu Fu, Min Xu, Yueming Jin, and Yanwu Xu. Medsegdiff-v2: Diffusion-based medical image segmentation with transformer. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 6030-6038, 2024. 3
394
+ [60] Rongyuan Wu, Lingchen Sun, Zhiyuan Ma, and Lei Zhang. One-step effective diffusion network for real-world image super-resolution. arXiv preprint arXiv:2406.08177, 2024. 3
395
+ [61] Mingqiao Ye, Martin Danelljan, Fisher Yu, and Lei Ke. Gaussian grouping: Segment and edit anything in 3d scenes. In European Conference on Computer Vision, pages 162-179. Springer, 2025. 3
396
+ [62] Tianwei Yin, Michael Gharbi, Richard Zhang, Eli Shechtman, Fredo Durand, William T Freeman, and Taesung Park. One-step diffusion with distribution matching distillation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2024. 3
397
+ [63] Kai Zhang, Jingyun Liang, Luc Van Gool, and Radu Timofte. Designing a practical degradation model for deep blind image super-resolution. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 4791-4800, 2021. 2, 5
398
+ [64] Wenliang Zhao, Yongming Rao, Zuyan Liu, Benlin Liu, Jie Zhou, and Jiwen Lu. Unleashing text-to-image diffusion models for visual perception. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 5729-5739, 2023. 3
399
+
400
+ [65] Jiayuan Zhu, Yunli Qi, and Junde Wu. Medical sam 2: Segment medical images as video via segment anything model 2. arXiv preprint arXiv:2408.00874, 2024. 3
CVPR/2025/Segment Any-Quality Images with Generative Latent Space Enhancement/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f38d5c0c3c47e1c053c67fbd17dfd445ac3099a61fadb57acbdc9119f1543ad
3
+ size 816221
CVPR/2025/Segment Any-Quality Images with Generative Latent Space Enhancement/layout.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c27059ef944cac7d9bffd8253285a7ba29c9e148bfbe1872e7c8224597b7c7fc
3
+ size 448042
CVPR/2025/Segment Anything, Even Occluded/91f2ed4a-96ac-4e81-9860-50746edbae3a_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:20cfe4de3070c6b72a3fc34aed189c5aa160d02cd2e63e553d903a279124e9a9
3
+ size 69133
CVPR/2025/Segment Anything, Even Occluded/91f2ed4a-96ac-4e81-9860-50746edbae3a_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c122d4219b30068bd9b4dc623e62ea9b41ec209b58a411edeaad390ad179f72
3
+ size 84054
CVPR/2025/Segment Anything, Even Occluded/91f2ed4a-96ac-4e81-9860-50746edbae3a_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:74cd838b8a736ff276f52e4c53c1de0122f0dc71e4b75f026599e06604dfe07b
3
+ size 8872122
CVPR/2025/Segment Anything, Even Occluded/full.md ADDED
@@ -0,0 +1,270 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Segment Anything, Even Occluded
2
+
3
+ Wei-En Tai $^{1*}$ Yu-Lin Shih $^{1*}$ Cheng Sun $^{2}$
4
+
5
+ $^{1}$ National Tsing Hua University $^{2}$ NVIDIA
6
+
7
+ Yu-Chiang Frank Wang $^{2,3}$ Hwann-Tzong Chen $^{1,4}$
8
+
9
+ $^{3}$ National Taiwan University $^{4}$ Aeolus Robotics
10
+
11
+ # Abstract
12
+
13
+ Amodal instance segmentation, which aims to detect and segment both visible and invisible parts of objects in images, plays a crucial role in various applications, including autonomous driving, robotic manipulation, and scene understanding. While existing methods require training both front-end detectors and mask decoders jointly, this approach lacks flexibility and fails to leverage the strengths of pre-existing modal detectors. To address this limitation, we propose SAMEO, a novel framework that adapts the Segment Anything Model (SAM) as a versatile mask decoder capable of interfacing with various front-end detectors to enable mask prediction even for partially occluded objects. Acknowledging the constraints of limited amodal segmentation datasets, we introduce Amodal-LVIS, a large-scale synthetic dataset comprising 300K images derived from the modal LVIS and LLVIS datasets. This dataset significantly expands the training data available for amodal segmentation research. Our experimental results demonstrate that our approach, when trained on the newly extended dataset, including Amodal-LVIS, achieves remarkable zero-shot performance on both COCOA-cls and D2SA benchmarks, highlighting its potential for generalization to unseen scenarios.
14
+
15
+ # 1. Introduction
16
+
17
+ Human visual perception extends beyond what is directly visible in a scene. We can naturally imagine and understand the complete shape of partially occluded objects through a combination of object recognition and prior knowledge about object categories. Even when correctly classifying objects is difficult, we can often infer the complete shape of partially visible objects by analyzing visible parts and reasoning about common occlusion patterns [9, 20, 24]. Amodal instance segmentation seeks to replicate this remarkable human capability by detecting and localizing objects in images and predicting their complete shapes, including both visible and occluded portions (Figure 1).
18
+
19
+ ![](images/28277ee719419dd090a46267b1b9114237aeb47cf2765c19693e60cd623b1098.jpg)
20
+ Figure 1. Amodal segmentation examples: The top row shows the original images. The middle row displays EfficientSAM predicted modal masks that only cover the visible parts of objects. The bottom row illustrates amodal masks that reveal the complete object shapes predicted by our method, SAMEO—a Segment Anything Model Even under Occlusion.
21
+
22
+ ![](images/0c942627b7d3b020fc2a00fc815876c0af364419260f3f03d048e8cb4ae1a983.jpg)
23
+
24
+ ![](images/12bbd276a74802f1d3957a7f6b961f28aa93c7dc1d4b08ce15199756a666f740.jpg)
25
+
26
+ ![](images/1210fba3f247425aca246803e5b46fe029ccc69c102389cb11aab2d4f2af74ba.jpg)
27
+
28
+ An effective approach to addressing amodal instance segmentation is to divide the task into two main components: object detection and mask segmentation. In recent years, significant advances have been made in object detection, with state-of-the-art models such as RTMDet [16] and ConvNeXt-V2 [28] achieving impressive performance. However, current amodal segmentation approaches often require training both the detector and mask decoder jointly, which prevents them from fully utilizing these powerful pre-trained modal detectors. This limitation motivated us to develop a more flexible framework that can leverage existing modal detectors while still maintaining strong amodal segmentation capabilities. The emergence of foundation models for visual understanding has opened up new possibilities in segmentation tasks. Among these, the Segment Anything Model (SAM) [11] and its efficient variant, EfficientSAM [29], have demonstrated remarkable capabilities in prompt-based modal segmentation. We leverage EfficientSAM's architecture, which features a lightweight encoder for faster inference, and adapt it for amodal segmen
29
+
30
+ tation through specialized training. Our approach enables the model to process both amodal and modal prompts for generating amodal mask predictions while maintaining potential zero-shot capabilities. Besides the improvements in algorithms and architectures, datasets are also crucial for learning-based methods, yet current amodal segmentation datasets encounter several challenges:
31
+
32
+ - Limited Scale: Existing datasets contain relatively few images, hindering the development of robust models.
33
+ - Annotation Quality: Several datasets relying on automatic generation methods can lead to inconsistent and sometimes incorrect instance annotations when not properly validated.
34
+ - Irrelevant Objects: A significant portion of annotated objects, such as walls and floors, contribute little to meaningful scene understanding.
35
+
36
+ To address these limitations, we present Amodal-LVIS, a new large-scale dataset derived from LVIS [6] and LVVIS [26]. Our dataset contains 300K carefully curated images, where each image contains one instance annotation. These annotations form paired examples between synthetic occluded instances and their original unoccluded versions. Furthermore, we have processed and refined existing datasets to create a comprehensive training collection comprising approximately 1M images and 2M instance annotations.
37
+
38
+ Experimental results show that our method with the EfficientSAM architecture, when trained on our combined dataset, achieves remarkable zero-shot performance that surpasses previous supervised amodal segmentation methods. These results validate our approach of leveraging an efficient existing architecture with high-quality, large-scale training data for amodal segmentation tasks.
39
+
40
+ Our main contributions can be summarized as follows:
41
+
42
+ 1. Flexible Amodal Framework: The proposed method, SAMEO, adapts EfficientSAM for amodal instance segmentation that works with both modal and amodal detector prompts through specialized training.
43
+ 2. Large-scale Dataset: A new Amodal-LVIS dataset containing 300K images, forming paired examples between synthetic occluded instances and their original unoccluded versions.
44
+ 3. Dataset Collection: A comprehensive training collection of 1M images and 2M instances created by combining and refining existing amodal datasets with AmodalLVIS.
45
+ 4. Zero-shot Performance: State-of-the-art zero-shot results on both COCOA-cls and D2SA benchmarks, surpassing previous supervised methods.
46
+
47
+ ![](images/902242121c4bf82d48b1bc857a55b5634093eb84423b43f75e8bf1eefed73dd6.jpg)
48
+ Figure 2. Overview of our amodal segmentation pipeline. Given an input image, existing object detectors first generate either modal boxes (showing visible regions) or amodal boxes (showing complete object extent). Our SAMEO then processes these detections to produce amodal masks that recover the full shape of objects, including occluded parts.
49
+
50
+ # 2. Related Work
51
+
52
+ # 2.1. Instance Segmentation
53
+
54
+ Instance segmentation is a fundamental computer vision task that simultaneously addresses object detection and segmentation, aiming to both locate objects in a scene and generate precise mask predictions for each detected instance. Initially focusing on visible parts of objects (modal instance segmentation), this field continues to evolve with the emergence of deep learning architectures. State-of-the-art methods demonstrate improvements through transformer-based feature extraction [27], modernized convolutions [21, 28], and optimized speeds [16]. Further detection models built upon the DETR architecture [1] have achieved additional advances through specialized query selection mechanisms and training schemes [33, 35].
55
+
56
+ Building upon modal instance segmentation, amodal instance segmentation extends the task to predict complete object shapes, including occluded regions. This extension is first formalized by Li and Malik [12], leading to various architectural innovations [5, 30, 31]. Notable approaches include ORCNN [4], ASN [22], which enhance Mask R-CNN [7] with occlusion reasoning capabilities, and BC-Net [10] with its bilateral layers for handling object overlaps. Currently, AISFormer [25] represents the state-of-the-art in amodal instance segmentation by introducing transformers to effectively model long-range dependencies.
57
+
58
+ # 2.2. Segment Anything Model
59
+
60
+ The Segment Anything Model (SAM) [11] represents a significant advancement in foundational computer vision models, capable of segmenting any visual object based on various prompts, including points or boxes. Trained on a dataset
61
+
62
+ of 11M images, SAM demonstrates outstanding zero-shot generalization capabilities across diverse object categories and domains.
63
+
64
+ The original SAM model, despite its strong performance, faces practical limitations due to high computational demands, including significant memory requirements and slow inference speed. EfficientSAM [29] addresses these challenges by using a Masked Autoencoder (MAE) [8] pre-training method to learn the feature embeddings from SAM's original ViT-H encoder, resulting in faster inference speed and reduced model size while maintaining comparable segmentation performance.
65
+
66
+ # 2.3. Amodal Datasets
67
+
68
+ Several datasets have been introduced for amodal segmentation. COCOA [34] is the first amodal dataset, providing semantic-level amodal annotations for COCO images. D2SA/COCOA-cls [4] extends this with instance-level annotations. DYCE [3] offers synthetic indoor scenes with accurate ground truth. The KINS dataset [22] focuses on traffic scenarios with 14K images of vehicles and pedestrians. More recently, MUVA [13] introduces a multi-view shopping scenario dataset, while MP3D-Amodal [32] provides real-world indoor scenes from Matterport3D. WALT [23] uniquely utilizes time-lapse imagery to obtain amodal ground truth, and KITTI-360-APS [18] extends KITTI-360 [14] with amodal panoptic annotations. Furthermore, datasets from related amodal completion works, such as pix2gestalt [19], have contributed to the development of the field.
69
+
70
+ # 3. Our Approach
71
+
72
+ # 3.1. Enabling Amodal Mask Prediction
73
+
74
+ Preliminaries: EfficientSAM. Segment Anything Model (SAM) [11] is a foundation model for image segmentation that can generate high-quality object masks based on any prompt. The original SAM architecture consists of three main components: i) an image encoder that transforms the input image into image embeddings, ii) a lightweight transformer-based prompt encoder that converts prompts (points, boxes) into unified embeddings, and iii) a mask decoder that utilizes a transformer architecture with two cross-attention layers to process both image and prompt embeddings for generating the final segmentation mask. In our approach, we mainly use EfficientSAM [29], a compact adaptation of the original SAM model. EfficientSAM replaces SAM's image encoder with a lightweight ViT variant [2] while maintaining the original prompt encoder and mask decoder.
75
+
76
+ Model Architecture. We propose SAMEO for amodal instance segmentation, retaining a lightweight image en
77
+
78
+ coder $\mathcal{E}$ as in the original architecture of EfficientSAM, a transformer-based prompt encoder $\mathcal{P}$ , and a mask decoder $\mathcal{D}$ with dual cross-attention layers. Given an input image $I$ and a bounding box prompt $B$ , the proposed SAMEO pipeline predicts the amodal mask $\hat{M}$ and the estimated IoU $\hat{\rho}$ as follows:
79
+
80
+ $$
81
+ \hat {M}, \hat {\rho} = \mathcal {D} (\mathcal {E} (I), \mathcal {P} (B)). \tag {1}
82
+ $$
83
+
84
+ Training Strategy. During training, we exclusively fine-tune EfficientSAM's mask decoder while keeping the original weights of the image encoder and prompt encoder unchanged. The model receives two inputs: an image and a bounding box prompt derived from ground-truth annotations. The box prompts are randomly selected from modal and amodal ground-truth boxes with equal probability. The training objective combines Dice loss [17], Focal loss [15], and L1 loss for IoU estimation:
85
+
86
+ $$
87
+ \mathcal {L} = \mathcal {L} _ {\text {D i c e}} + \mathcal {L} _ {\text {F o c a l}} + \lambda \mathcal {L} _ {\text {I o U}}, \tag {2}
88
+ $$
89
+
90
+ where
91
+
92
+ $$
93
+ \mathcal {L} _ {\mathrm {D i c e}} = 1 - \frac {2 | \hat {M} \cap M _ {\mathrm {g t}} |}{| \hat {M} | + | M _ {\mathrm {g t}} |}, \tag {3}
94
+ $$
95
+
96
+ $$
97
+ \mathcal {L} _ {\text {F o c a l}} = - (1 - p _ {t}) ^ {\gamma} \log (p _ {t}), \tag {4}
98
+ $$
99
+
100
+ $$
101
+ \mathcal {L} _ {\mathrm {I o U}} = \left| \hat {\rho} - \mathrm {I o U} (\hat {M}, M _ {\mathrm {g t}}) \right|. \tag {5}
102
+ $$
103
+
104
+ Here, $M_{\mathrm{gt}}$ represents the ground truth amodal mask, $p_t$ is the predicted probability for the target class, $\gamma$ is the focusing parameter set to 2 in our experiments, and $\lambda$ is empirically set to 0.05.
105
+
106
+ Inference Pipeline. For inference, SAMEO can be flexibly integrated with various object detectors, including both amodal detectors (e.g., AISFormer [25]) and conventional modal detectors (e.g., RTMDet [16]). The detection outputs serve as box prompts for our model, which then generates corresponding amodal masks (Figure 2). This modular design allows our model to enhance existing detection systems with amodal segmentation capabilities while achieving state-of-the-art performance.
107
+
108
+ # 3.2. Amodal Dataset Collection
109
+
110
+ Limitations of Existing Amodal Datasets. Existing amodal datasets have inherent limitations in both manual and synthetic annotation mechanisms. Human-annotated datasets, while closely representing real-world scenarios, are costly to produce and prone to errors in occluded region estimation. Synthetic datasets, though efficient to generate, lack reliable verification mechanisms for object completeness and may not accurately reflect natural occlusion patterns (Figure 3).
111
+
112
+ <table><tr><td>Dataset</td><td>Type</td><td># Instances</td><td># Images</td><td>POI (%)</td><td>Average ROR (%)</td></tr><tr><td>COCOA (no stuff) [34]</td><td>Real</td><td>32,926</td><td>5,073</td><td>54.9</td><td>30.2</td></tr><tr><td>COCOA-cls [4]</td><td>Real</td><td>10,562</td><td>3,499</td><td>49</td><td>21.8</td></tr><tr><td>KINS [22]</td><td>Real</td><td>188,085</td><td>14,993</td><td>54.3</td><td>42.2</td></tr><tr><td>KITTI-360-APS [18]</td><td>Real</td><td>89,938</td><td>12,496</td><td>50</td><td>33.9</td></tr><tr><td>D2SA [4]</td><td>Synthetic</td><td>28,720</td><td>5,600</td><td>53.6</td><td>23.7</td></tr><tr><td>MUVA [13]</td><td>Synthetic</td><td>198,573</td><td>26,406</td><td>76.7</td><td>32.1</td></tr><tr><td>WALT* [23]</td><td>Synthetic</td><td>485,369</td><td>40,000</td><td>32</td><td>36.5</td></tr><tr><td>DYCE* [3]</td><td>Synthetic</td><td>66,453</td><td>5,229</td><td>77.8</td><td>29</td></tr><tr><td>MP3D-amodal* [32]</td><td>Synthetic</td><td>2,968</td><td>2,549</td><td>100</td><td>41.1</td></tr><tr><td>pix2gestalt [19]</td><td>Synthetic</td><td>849,667</td><td>849,667</td><td>100</td><td>35.9</td></tr><tr><td>Amodal-LVIS</td><td>Synthetic</td><td>399,398</td><td>301,493</td><td>50</td><td>34.5</td></tr><tr><td>Total</td><td>-</td><td>2,352,659</td><td>1,267,424</td><td>-</td><td>-</td></tr></table>
113
+
114
+ Table 1. Amodal dataset collection. Datasets marked with * are generated or refined by ourselves. POI is calculated as the percentage of occluded instances (where modal mask is not equal to amodal mask) over all instances. Meanwhile, average ROR is the average ratio of occluded regions, considering only instances with occlusions.
115
+
116
+ ![](images/4c6c2a5846ebe11e65a6e1bd7846a01dc7874f8dee28b2af76acfc7f71619e9a.jpg)
117
+ (a) DYCE
118
+
119
+ ![](images/3187e777fb267d2b48737a06faefe51dd93890fa43d7ae511e42a8af6aa09198.jpg)
120
+ (b) MP3D-amodal
121
+
122
+ ![](images/f909521fb192f060ca747c75f4d91d3ee49dd56c38515fa1e3e9424c440fac5f.jpg)
123
+ (c) pix2gestalt
124
+ Figure 3. Examples of limitations in existing amodal datasets: (a) DYCE and (b) MP3D-amodal show meaningless architectural elements rendered from 3D meshes that dominate the image space, while (c) pix2gestalt contains potentially incomplete amodal masks due to restrictive generation criteria.
125
+
126
+ Dataset Collection and Quality Control. To leverage the advantages of both mechanisms, we have collected and filtered datasets of both annotation types. Our cleaning process addresses specific issues in each dataset to ensure data quality while maintaining realistic occlusion representations (Table 1).
127
+
128
+ For synthetic datasets DYCE and MP3D-amodal, generated using 3D furniture meshes, we identify and address two main quality issues: meaningless architectural elements (walls, floors, ceilings) occupying the majority of image space and objects with minimal visible areas. We implement filters to remove cases where visible parts are less than $10\%$ of the whole object, objects occupying more than $90\%$ of the image area, and architectural element annotations.
129
+
130
+ The WALT dataset leverages road surveillance timelapse footage for synthetic data generation. It obtains bounding boxes for cars and people using a pre-trained detector and then identifies complete objects by analyzing these bounding box intersections. These discovered com
131
+
132
+ ![](images/9d69c4799297f7d0656c35531df66230454a14801633a8ff6a7047fc03c0a440.jpg)
133
+ Original Image
134
+ Figure 4. Amodal-LVIS dataset generation process. From left to right: original image with unoccluded objects, a selected occluder object, and the synthesized image with occlusion. Our dataset includes both the original and the synthesized image for each instance to prevent occlusion bias during training.
135
+
136
+ ![](images/bbbbe17969c3135948245e1eaa177f4ae0a8987e7a413352d77e4747bb1c8d8f.jpg)
137
+ Occluder
138
+
139
+ ![](images/e95b0ccbbe66bbd6ce01f9d26828cf35fc1df94dbd527b60c6397895c132c4e5.jpg)
140
+ Synthesized Image
141
+
142
+ plete objects are then composited back into the same scenes to generate synthetic training data. However, their layer-by-layer placement can create unrealistic occlusions. We address this by implementing an occlusion threshold filter to ensure natural occlusion patterns.
143
+
144
+ For other datasets with class annotation, such as CO-COA, the availability of semantic labels enabled straightforward quality control. We filter out "stuff" class annotations across these datasets to focus on meaningful objects that align with amodal instance segmentation goals.
145
+
146
+ # 3.3.Amodal-LVIS
147
+
148
+ We propose a synthetic dataset for amodal mask segmentation through precise object occlusion generation, incorporating complete object collection, synthetic occlusion generation, and a dual annotation mechanism to prevent model bias. Combined with existing datasets, our collection totals 1M images and 2M instance annotations.
149
+
150
+ Complete Object Collection. To obtain complete objects for synthetic occlusion, we utilize SAMEO, which is pre-trained on the previously mentioned amodal datasets, to generate pseudo labels for instances within LVIS and LVVIS datasets. Our model predicts amodal masks for each instance, which are then compared with the ground-truth visible mask annotations. This comparison helps us identify complete, unoccluded objects.
151
+
152
+ Synthetic Occlusion Generation. The occlusion generation process involves pairing randomly selected complete objects from our collected pool. To ensure that the occlusions look realistic, we normalize the paired objects to similar sizes while maintaining their aspect ratios. Object positioning and occlusion rates are controlled using bounding box annotations, which allow for precise management of how objects occlude one another.
153
+
154
+ Dual Annotation Mechanism. Our experiments in Section 4 show that training solely on occluded masks leads to model confusion, resulting in an over-prediction of occluded objects even when the prompts are intended to target foreground instances. To resolve this issue, we include both occluded and original unoccluded versions of instances in our dataset (Figure 4). This dual annotation mechanism prevents occlusion bias while providing comprehensive training examples for both states.
155
+
156
+ # 4. Experiments
157
+
158
+ # 4.1. Settings
159
+
160
+ Implementation Details. Our model is trained on NVIDIA Tesla V100/A100 GPUs for 1,440/2,340/22,500 iterations on COCOA-cls/D2SA/MUVA respectively. For zero-shot SAMEO, we increase the batch size to 32 and train for 40,000 iterations. We use the Adam optimizer with a learning rate of $1 \times 10^{-4}$ without any learning rate scheduler. For each instance during training, we randomly select either the amodal or modal ground truth bounding box as the prompt with equal probability.
161
+
162
+ Datasets and Baselines. For training, we use our dataset collection and the proposed Amodal-LVIS dataset. As for evaluation, COCOA-cls, D2SA and MUVA datasets are utilized. We primarily compare our approach against AIS-Former, the current state-of-the-art model in amodal instance segmentation. Unlike conventional instance segmentation models that incorporate both object detection and mask decoding components, SAMEO functions solely as a mask decoder. This allows our model to flexibly integrate with existing amodal and modal instance segmentation models, using their object box predictions as prompts to
163
+
164
+ generate refined amodal masks. For a comprehensive evaluation, we compare our results against the original mask predictions from these front-end models.
165
+
166
+ To evaluate our zero-shot performance, we extend the comparisons beyond AISFormer to include both modal and amodal front-end models equipped with the original EfficientSAM as their mask decoder. This comparison demonstrates our successful adaptation of EfficientSAM for amodal mask segmentation while maintaining zero-shot capabilities.
167
+
168
+ Evaluation Metrics. We evaluate our method using two standard metrics: mean Average Precision (AP) and mean Average Recall (AR). Since our model is class-agnostic, we compute both metrics without considering class labels. For a fair comparison, we reproduce baseline methods and evaluate them using the same class-agnostic AP and AR. For methods that use SAMEO as mask decoder, we refine the confidence score $\hat{\rho}_{\mathrm{front}}$ of front-end models using the estimated IoU $\hat{\rho}_{\mathrm{ours}}$ predicted by SAMEO when calculating these metrics. The refined confidence score $\hat{\rho}_{\mathrm{ref}}$ of these cases is computed as follows:
169
+
170
+ $$
171
+ \hat {\rho} _ {\text {r e f}} = \hat {\rho} _ {\text {f r o n t}} \times \hat {\rho} _ {\text {o u r s}}. \tag {6}
172
+ $$
173
+
174
+ # 4.2. Results
175
+
176
+ Quantitative Results. We evaluate our proposed SAMEO on three widely-used datasets: COCOA-cls, D2SA, and MUVA. For each dataset, we train our model on their respective training sets and evaluate on the corresponding test sets (Table 2). To demonstrate SAMEO's effectiveness and versatility, we attach it to various pretrained front-end models, where modal front-ends are trained with modal annotations and amodal front-ends are trained with amodal annotations of these datasets. Our experimental results show that SAMEO significantly outperforms the current state-of-the-art method, AISFormer, achieving higher AP and AR across all datasets. Notably, our model exhibits robust performance in mask refinement independent of the front-end model's original mask type. Regardless of whether the front-end models produce modal or amodal mask predictions, SAMEO successfully refines them to achieve comparable high performance, demonstrating its strong capability to utilize both types of prompts.
177
+
178
+ Qualitative Results. For qualitative evaluation, we compare our model's predictions against AISFormer on both COCOA-cls and MUVA datasets (Figure 5). Our method exhibits superior performance across various challenging scenarios, including complex still life arrangements with multiple overlapping objects (e.g., bottles and containers),
179
+
180
+ <table><tr><td rowspan="2">Model</td><td colspan="4">COCOAc-cls</td><td colspan="4">D2SA</td><td colspan="4">MUVA</td></tr><tr><td>AP</td><td>\(AP_{50}\)</td><td>\(AP_{75}\)</td><td>AR</td><td>AP</td><td>\(AP_{50}\)</td><td>\(AP_{75}\)</td><td>AR</td><td>AP</td><td>\(AP_{50}\)</td><td>\(AP_{75}\)</td><td>AR</td></tr><tr><td>AISFormer [25]</td><td>40.6</td><td>70.5</td><td>42.5</td><td>55.2</td><td>66.3</td><td>89.9</td><td>72.8</td><td>76.1</td><td>69.4</td><td>90.3</td><td>75.6</td><td>80.7</td></tr><tr><td>RTMDet* [16]</td><td>49.8</td><td>71.2</td><td>54.7</td><td>69.6</td><td>59.7</td><td>81.3</td><td>63.4</td><td>78.2</td><td>46.0</td><td>68.2</td><td>46.4</td><td>57.8</td></tr><tr><td>ConvNeXt-V2* [28]</td><td>46.7</td><td>67.5</td><td>52.0</td><td>70.9</td><td>66.1</td><td>89.1</td><td>69.8</td><td>75.3</td><td>47.9</td><td>69.0</td><td>46.6</td><td>61.7</td></tr><tr><td>ViTDet* [27]</td><td>47.4</td><td>69.4</td><td>52.5</td><td>68.8</td><td>63.0</td><td>86.4</td><td>65.8</td><td>75.4</td><td>45.3</td><td>66.9</td><td>44.7</td><td>60.7</td></tr><tr><td>AISFormer+SAMEO</td><td>54.3</td><td>74.0</td><td>59.7</td><td>69.3</td><td>79.8</td><td>92.7</td><td>84.8</td><td>84.2</td><td>76.2</td><td>90.8</td><td>80.9</td><td>85.2</td></tr><tr><td>RTMDet*+SAMEO</td><td>55.3</td><td>75.2</td><td>60.8</td><td>74.3</td><td>72.7</td><td>85.8</td><td>77.5</td><td>84.2</td><td>75.8</td><td>89.2</td><td>79.9</td><td>83.1</td></tr><tr><td>ConvNeXt-V2*+SAMEO</td><td>54.1</td><td>73.1</td><td>59.3</td><td>74.0</td><td>80.8</td><td>94.0</td><td>85.1</td><td>87.1</td><td>79.2</td><td>93.1</td><td>82.6</td><td>81.3</td></tr><tr><td>ViTDet*+SAMEO</td><td>54.1</td><td>73.3</td><td>59.2</td><td>72.3</td><td>78.6</td><td>92.3</td><td>82.6</td><td>84.7</td><td>74.1</td><td>89.0</td><td>78.2</td><td>82.3</td></tr></table>
181
+
182
+ Table 2. Quantitative comparison on various datasets. Models marked with * are modal instance segmentation methods that detect objects and segment their visible masks without handling occlusions, with performance metrics calculated using their modal mask predictions. SAMEO takes bounding box predictions from the front-end models as prompts to generate amodal instance masks. Evaluation metrics include Average Precision (AP) at different IoU thresholds and Average Recall (AR). Bold numbers indicate the best performance.
183
+
184
+ <table><tr><td rowspan="2">Model</td><td colspan="4">COCOA-cls</td><td colspan="4">D2SA</td></tr><tr><td>AP</td><td>\(AP_{50}\)</td><td>\(AP_{75}\)</td><td>AR</td><td>AP</td><td>\(AP_{50}\)</td><td>\(AP_{75}\)</td><td>AR</td></tr><tr><td>AISFormer</td><td>40.6</td><td>70.5</td><td>42.5</td><td>55.2</td><td>66.3</td><td>89.9</td><td>72.8</td><td>76.1</td></tr><tr><td>AISFormer+EfficientSAM†</td><td>47.6</td><td>70.0</td><td>51.7</td><td>64.2</td><td>69.6</td><td>89.2</td><td>72.3</td><td>77.7</td></tr><tr><td>RTMDet*+EfficientSAM†</td><td>48.7</td><td>71.1</td><td>53.2</td><td>65.9</td><td>63.0</td><td>82.7</td><td>64.8</td><td>74.3</td></tr><tr><td>RetinaNet* [21]+EfficientSAM†</td><td>44.8</td><td>67.1</td><td>48.6</td><td>68.4</td><td>60.6</td><td>77.5</td><td>62.9</td><td>79.3</td></tr><tr><td>DINO* [33]+SAMEO†</td><td>50.2</td><td>70.4</td><td>55.7</td><td>73.7</td><td>69.8</td><td>86.2</td><td>72.6</td><td>75.9</td></tr><tr><td>RetinaNet*+SAMEO†</td><td>51.0</td><td>72.2</td><td>56.6</td><td>72.6</td><td>62.5</td><td>78.0</td><td>64.8</td><td>80.7</td></tr><tr><td>AISFormer+SAMEO†</td><td>52.8</td><td>73.4</td><td>57.9</td><td>67.9</td><td>74.1</td><td>90.2</td><td>78.3</td><td>79.9</td></tr><tr><td>ViTDet*+SAMEO†</td><td>53.2</td><td>73.0</td><td>58.6</td><td>71.2</td><td>72.1</td><td>89.0</td><td>74.9</td><td>80.7</td></tr><tr><td>ConvNeXt-V2*+SAMEO†</td><td>53.4</td><td>73.0</td><td>59.0</td><td>73.0</td><td>74.3</td><td>91.6</td><td>78.0</td><td>83.1</td></tr><tr><td>CO-DETR* [35]+SAMEO†</td><td>54.0</td><td>74.8</td><td>60.2</td><td>73.5</td><td>75.0</td><td>91.0</td><td>78.5</td><td>82.2</td></tr><tr><td>RTMDet*+SAMEO†</td><td>54.4</td><td>75.0</td><td>60.2</td><td>73.4</td><td>68.4</td><td>84.5</td><td>71.0</td><td>77.7</td></tr></table>
185
+
186
+ Table 3. Zero-shot performance on COCOA-cls and D2SA datasets. The results show SAMEO not only significantly outperforms AIS-Former but also successfully adapts EfficientSAM's modal segmentation capability to amodal segmentation, demonstrating consistent performance improvements when paired with various front-end detectors. $\dagger$ indicates zero-shot evaluation without training on the test dataset. * denotes modal object detectors that provide modal bounding boxes as prompts. Bold numbers indicate the best performance.
187
+
188
+ scenes with intricate occlusions (e.g., people behind barriers), and diverse object categories and poses. Results show that our model generates significantly more precise amodal masks with sharper boundaries while providing more reasonable predictions for occluded parts. The qualitative comparison clearly demonstrates our method's improvements over the baseline method in both mask quality and occlusion reasoning capabilities, validating the effectiveness of SAMEO for real-world amodal segmentation tasks.
189
+
190
+ # 4.3. Zero-shot Performance
191
+
192
+ To evaluate SAMEO's zero-shot generalization capability, we train our model on our dataset collection and the proposed Amodal-LVIS dataset, excluding COCOA-cls and D2SA. During training, for each batch, a dataset is sampled with probability proportional to the logarithm of its
193
+
194
+ size divided by the sum of log sizes across all datasets. We then test these two held-out datasets to demonstrate zero-shot performance (Table 3). For comparison, we include AISFormer and RTMDet (both trained on target datasets) combined with the original EfficientSAM, showing that our model successfully adapts EfficientSAM for amodal segmentation while preserving its zero-shot capability. Furthermore, we experiment with various pre-trained modal front-end detectors to demonstrate SAMEO's robust zero-shot performance regardless of the front-end choice.
195
+
196
+ The results demonstrate SAMEO's superior performance, achieving up to 13.8 AP improvement over AIS-Former on COCOA-cls with RTMDet and 8.7 AP over on D2SA with CO-DETR, reaching state-of-the-art results and validating its strength as a robust zero-shot amodal segmentation solution.
197
+
198
+ ![](images/46211eb7441e155202e6bb7c76cc8c7515b9b83004767426817c0203ad466d36.jpg)
199
+ Figure 5. Qualitative comparison of amodal mask predictions. For each row: SAMEO's amodal prediction (top) with AISFormer box prompts, and AISFormer's prediction (bottom). Our method demonstrates superior mask quality, exhibiting more precise boundary delineation and robust handling of complex occlusion scenarios. Original images used for evaluation are available in supplementary materials.
200
+
201
+ <table><tr><td rowspan="2">IoU Prediction</td><td colspan="3">COCOA-cls</td></tr><tr><td>AP</td><td>AP50</td><td>AP75</td></tr><tr><td>×</td><td>52.4</td><td>73.2</td><td>57.8</td></tr><tr><td>✓</td><td>54.3</td><td>74.0</td><td>59.7</td></tr></table>
202
+
203
+ Table 4. Ablation study of IoU prediction refinement on COCOAc-cls dataset, using AISFormer as front-end. $\times$ and $\checkmark$ indicate without and with IoU prediction refinement,respectively.
204
+
205
+ <table><tr><td rowspan="2">Box Prompt</td><td colspan="4">COCOA-cls</td></tr><tr><td>AP</td><td>\(AP_{50}\)</td><td>\(AP_{75}\)</td><td>AR</td></tr><tr><td>amodal</td><td>53.0</td><td>72.9</td><td>58.0</td><td>71.1</td></tr><tr><td>modal</td><td>53.7</td><td>73.3</td><td>59.3</td><td>71.2</td></tr><tr><td>random</td><td>54.2</td><td>73.5</td><td>59.5</td><td>71.6</td></tr></table>
206
+
207
+ Table 5. Comparison of different prompt types during training. We evaluate three variants on the COCOA-cls dataset using both modal and amodal front-ends, reporting the averaged performance over both types. The results show that training with random box prompts has optimal performance across diverse front-end models.
208
+
209
+ # 4.4. Ablation Study
210
+
211
+ Effect of IoU Prediction. To validate the effectiveness of the IoU prediction branch in our model, we have conducted experiments comparing the performance metrics before and after confidence score refinement using SAMEO's predicted IoU. Using AISFormer as our front-end model and evaluating this setting on the COCOA-cls dataset, the experimental results demonstrate that SAMEO's precise IoU prediction significantly contributes to improving the ranking of segmentation results (Table 4). Specifically, we observe that incorporating the predicted IoU for confidence score refinement leads to notable improvements in AP metric, confirming that the IoU prediction branch plays a crucial role in enhancing the overall performance of our model.
212
+
213
+ Impact of Training Prompt Types. We investigate the optimal prompt-type strategy for training SAMEO to achieve balanced performance across both modal and amodal front-end prompts. We train three variants of SAMEO using ground truth amodal boxes, modal boxes, and a random mixture of both with equal probability. For evaluation, we integrate each trained model variant with both amodal and modal front-end detectors and evaluate their performance separately. The final performance metric is calculated by averaging the AP and AR scores across both front-end scenarios (Table 5). Our findings reveal that training with random boxes with equal probability yields the most balanced performance when handling various front-end prompt types, demonstrating the model's ability to generalize across different input scenarios.
214
+
215
+ ![](images/11febd1ffacac072ccf72c7cc4aa508fdc1d01b9609d4fa2ef1f439624b9b4bf.jpg)
216
+ Figure 6. Visualization of over-prediction. Given a detector box clearly intended for the foreground dog, SAMEO(occ), trained solely on occluded instances, mistakenly predicts the mask of the background towel. After rebalancing our dataset to include both occluded and non-occluded instances, SAMEO Mix) produces results that closely match the EfficientSAM baseline.
217
+
218
+ Dataset Composition Analysis. To understand the importance of diverse instance types in training data, we have conducted an experiment training SAMEO exclusively on datasets containing only occluded instances (e.g., pix2gestalt). Visualization results reveal a significant limitation: the model exhibits over-prediction of background instances, even when the input box prompt clearly indicates a foreground object (Figure 6). This observation motivates our design choice for the Amodal-LVIS dataset, which maintains an equal distribution of occluded and non-occluded annotations. This balanced composition prevents bias and ensures robustness across various scenarios.
219
+
220
+ # 5. Conclusion
221
+
222
+ We present a flexible approach to amodal instance segmentation by adapting foundation segmentation models to handle both visible and occluded portions of objects. Our framework successfully leverages pre-trained modal detectors while maintaining strong amodal segmentation capabilities. The introduction of Amodal-LVIS, containing 300K carefully curated images, along with our comprehensive collection of 1M images and 2M instance annotations, addresses critical limitations in existing datasets and provides the necessary scale for robust model development.
223
+
224
+ Our extensive experiments demonstrate that SAMEO consistently outperforms state-of-the-art methods on COCOA-cls, D2SA, and MUVA datasets. Most notably, when trained on our dataset collection, including AmodalLVIS, SAMEO achieves strong zero-shot performance on unseen datasets. The model's robust generalization abilities persist across various front-end detectors, validating our approach of adapting foundation models for amodal segmentation without compromising performance. We further address the limitations and possible future work of SAMEO in the appendix.
225
+
226
+ # Acknowledgements
227
+
228
+ This work was supported in part by NSTC grants 113-2221-E-001-010-MY3 and 112-2221-E-A49-100-MY3 of Taiwan, as well as funding from NVIDIA Taiwan AI R&D Center. We appreciate the National Center for High-performance Computing for providing computational resources and facilities.
229
+
230
+ # References
231
+
232
+ [1] Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. In Computer Vision - ECCV 2020 - 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part I, pages 213-229. Springer, 2020. 2
233
+ [2] 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 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021. OpenReview.net, 2021. 3
234
+ [3] Kiana Ehsani, Roozbeh Mottaghi, and Ali Farhadi. Segan: Segmenting and generating the invisible. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 6144-6153. Computer Vision Foundation / IEEE Computer Society, 2018. 3, 4
235
+ [4] Patrick Follmann, Rebecca König, Philipp Hartinger, Michael Klostermann, and Tobias Böttger. Learning to see the invisible: End-to-end trainable amodal instance segmentation. In IEEE Winter Conference on Applications of Computer Vision, WACV 2019, Waikoloa Village, HI, USA, January 7-11, 2019, pages 1328-1336. IEEE, 2019. 2, 3, 4
236
+ [5] Jianxiong Gao, Xuelin Qian, Yikai Wang, Tianjun Xiao, Tong He, Zheng Zhang, and Yanwei Fu. Coarse-to-fine amodal segmentation with shape prior. In ICCV, pages 1262-1271. IEEE, 2023. 2
237
+ [6] Agrim Gupta, Piotr Dollar, and Ross B. Girshick. LVIS: A dataset for large vocabulary instance segmentation. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019, Long Beach, CA, USA, June 16-20, 2019, pages 5356-5364. Computer Vision Foundation / IEEE, 2019. 2
238
+ [7] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross B. Girshick. Mask R-CNN. In IEEE International Conference on Computer Vision, ICCV 2017, Venice, Italy, October 22-29, 2017, pages 2980-2988. IEEE Computer Society, 2017. 2
239
+ [8] Kaiming He, Xinlei Chen, Saining Xie, Yanghao Li, Piotr Dólar, and Ross B. Girshick. Masked autoencoders are scalable vision learners. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2022, New Orleans, LA, USA, June 18-24, 2022, pages 15979-15988. IEEE, 2022. 3
240
+
241
+ [9] Gaetano Kanizsa, Paolo Legrenzi, and Paolo Bozzi. Organization in vision: Essays on gestalt perception. 1979. 1
242
+ [10] Lei Ke, Yu-Wing Tai, and Chi-Keung Tang. Deep occlusion-aware instance segmentation with overlapping bilayers. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2021, virtual, June 19-25, 2021, pages 4019-4028. Computer Vision Foundation / IEEE, 2021. 2
243
+ [11] Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C. Berg, Wan-Yen Lo, Piotr Dólar, and Ross B. Girshick. Segment anything. In IEEE/CVF International Conference on Computer Vision, ICCV 2023, Paris, France, October 1-6, 2023, pages 3992-4003. IEEE, 2023. 1, 2, 3
244
+ [12] Ke Li and Jitendra Malik. Amodal instance segmentation. In ECCV, pages 677-693. Springer, 2016. 2
245
+ [13] Zhixuan Li, Weining Ye, Juan Terven, Zachary Bennett, Ying Zheng, Tingting Jiang, and Tiejun Huang. MUVA: A new large-scale benchmark for multi-view amodal instance segmentation in the shopping scenario. In IEEE/CVF International Conference on Computer Vision, ICCV 2023, Paris, France, October 1-6, 2023, pages 23447-23456. IEEE, 2023. 3, 4
246
+ [14] Yiyi Liao, Jun Xie, and Andreas Geiger. KITTI-360: A novel dataset and benchmarks for urban scene understanding in 2d and 3d. IEEE Trans. Pattern Anal. Mach. Intell., 45(3):3292–3310, 2023. 3
247
+ [15] Tsung-Yi Lin, Priya Goyal, Ross B. Girshick, Kaiming He, and Piotr Dólar. Focal loss for dense object detection. In IEEE International Conference on Computer Vision, ICCV 2017, Venice, Italy, October 22-29, 2017, pages 2999-3007. IEEE Computer Society, 2017. 3
248
+ [16] Chengqi Lyu, Wenwei Zhang, Haian Huang, Yue Zhou, Yudong Wang, Yanyi Liu, Shilong Zhang, and Kai Chen. Rtmdet: An empirical study of designing real-time object detectors. CoRR, abs/2212.07784, 2022. 1, 2, 3, 6
249
+ [17] Fausto Milletari, Nassir Navab, and Seyed-Ahmad Ahmadi. V-net: Fully convolutional neural networks for volumetric medical image segmentation. In Fourth International Conference on 3D Vision, 3DV 2016, Stanford, CA, USA, October 25-28, 2016, pages 565-571. IEEE Computer Society, 2016. 3
250
+ [18] Rohit Mohan and Abhinav Valada. Amodal panoptic segmentation. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2022, New Orleans, LA, USA, June 18-24, 2022, pages 20991-21000. IEEE, 2022. 3, 4
251
+ [19] Ege Ozguroglu, Ruoshi Liu, Dídac Surís, Dian Chen, Achal Dave, Pavel Tokmakov, and Carl Vondrick. pix2gestalt: Amodal segmentation by synthesizing wholes. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2024, Seattle, WA, USA, June 16-22, 2024, pages 3931-3940. IEEE, 2024. 3, 4
252
+ [20] Stephen E. Palmer. Vision Science: Photons to Phenomenology. MIT Press, 1999. 1
253
+ [21] Roberto Del Prete, Maria Daniela Graziano, and Alfredo Renga. Retinanet: A deep learning architecture to achieve
254
+
255
+ a robust wake detector in SAR images. In 6th IEEE International Forum on Research and Technology for Society and Industry, RTSI 2021, Naples, Italy, September 6-9, 2021, pages 171-176. IEEE, 2021. 2, 6
256
+ [22] Lu Qi, Li Jiang, Shu Liu, Xiaoyong Shen, and Jiaya Jia. Amodal instance segmentation with KINS dataset. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019, Long Beach, CA, USA, June 16-20, 2019, pages 3014-3023. Computer Vision Foundation / IEEE, 2019. 2, 3, 4
257
+ [23] N. Dinesh Reddy, Robert Tamburo, and Srinivasa G. Narasimhan. WALT: watch and learn 2d amodal representation from time-lapse imagery. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2022, New Orleans, LA, USA, June 18-24, 2022, pages 9346-9356. IEEE, 2022. 3, 4
258
+ [24] Thomas F Shipley and Philip J Kellman. From fragments to objects: Segmentation and grouping in vision. Elsevier, 2001. 1
259
+ [25] Minh Q. Tran, Khoa Vo, Kashu Yamazaki, Arthur A. F. Fernandes, Michael Kidd, and Ngan Le. Aisformer: Amodal instance segmentation with transformer. In 33rd British Machine Vision Conference 2022, BMVC 2022, London, UK, November 21-24, 2022, page 712. BMVA Press, 2022. 2, 3, 6
260
+ [26] Haochen Wang, Xiaolong Jiang, Xu Tang, Yao Hu, Cilin Yan, Weidi Xie, Shuai Wang, and Efstratios Gavves. Towards open-vocabulary video instance segmentation. In IEEE/CVF International Conference on Computer Vision, ICCV 2023, Paris, France, October 1-6, 2023, pages 4034-4043. IEEE, 2023. 2
261
+ [27] Liya Wang and Alex Tien. Aerial image object detection with vision transformer detector (vitdet). In IEEE International Geoscience and Remote Sensing Symposium, IGARSS 2023, Pasadena, CA, USA, July 16-21, 2023, pages 6450-6453. IEEE, 2023. 2, 6
262
+ [28] Sanghyun Woo, Shoubhik Debnath, Ronghang Hu, Xinlei Chen, Zhuang Liu, In So Kweon, and Saining Xie. Convnext V2: co-designing and scaling convnets with masked autoencoders. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2023, Vancouver, BC, Canada, June 17-24, 2023, pages 16133-16142. IEEE, 2023. 1, 2, 6
263
+ [29] Yunyang Xiong, Bala Varadarajan, Lemeng Wu, Xiaoyu Xiang, Fanyi Xiao, Chenchen Zhu, Xiaoliang Dai, Dilin Wang, Fei Sun, Forrest N. Iandola, Raghuraman Krishnamoorthi, and Vikas Chandra. Efficientsam: Leveraged masked image pretraining for efficient segment anything. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2024, Seattle, WA, USA, June 16-22, 2024, pages 16111-16121. IEEE, 2024. 1, 3
264
+ [30] Jianwei Yang, Zhile Ren, Mingze Xu, Xinlei Chen, David J. Crandall, Devi Parikh, and Dhruv Batra. Embodied amodal recognition: Learning to move to perceive objects. In ICCV, pages 2040-2050. IEEE, 2019. 2
265
+ [31] Jian Yao, Yuxin Hong, Chiyu Wang, Tianjun Xiao, Tong He, Francesco Locatello, David P. Wipf, Yanwei Fu, and Zheng Zhang. Self-supervised amodal video object segmentation. In NeurIPS, 2022. 2
266
+
267
+ [32] Guanqi Zhan, Chuanxia Zheng, Weidi Xie, and Andrew Zisserman. Amodal ground truth and completion in the wild. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2024, Seattle, WA, USA, June 16-22, 2024, pages 28003-28013. IEEE, 2024. 3, 4
268
+ [33] Hao Zhang, Feng Li, Shilong Liu, Lei Zhang, Hang Su, Jun Zhu, Lionel M. Ni, and Heung-Yeung Shum. DINO: DETR with improved denoising anchor boxes for end-to-end object detection. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net, 2023. 2, 6
269
+ [34] Yan Zhu, Yuandong Tian, Dimitris N. Metaxas, and Piotr Dólár. Semantic amodal segmentation. In 2017 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, Honolulu, HI, USA, July 21-26, 2017, pages 3001-3009. IEEE Computer Society, 2017. 3, 4
270
+ [35] Zhuofan Zong, Guanglu Song, and Yu Liu. Detrs with collaborative hybrid assignments training. In IEEE/CVF International Conference on Computer Vision, ICCV 2023, Paris, France, October 1-6, 2023, pages 6725-6735. IEEE, 2023. 2, 6
CVPR/2025/Segment Anything, Even Occluded/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9927617525c81324c66375666c130a64ea5069877727904a81927dfb166c9cc3
3
+ size 766686
CVPR/2025/Segment Anything, Even Occluded/layout.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ea37ecd3a8424f252ad7bf37ab98e53fd4a218b7a01fd5bb65539323cfedada
3
+ size 289762
CVPR/2025/Segment This Thing_ Foveated Tokenization for Efficient Point-Prompted Segmentation/f4675c76-12fd-46eb-8463-021215e9a2e0_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:594d6eacd513d5b4d0ca13be552f48862b1cfeced6dc60a74176b593c5d544ff
3
+ size 77488
CVPR/2025/Segment This Thing_ Foveated Tokenization for Efficient Point-Prompted Segmentation/f4675c76-12fd-46eb-8463-021215e9a2e0_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:64406ba81baa2e819f544709d0874a59882c3b99a5701b8fa29b2c0c6510ad8d
3
+ size 93753
CVPR/2025/Segment This Thing_ Foveated Tokenization for Efficient Point-Prompted Segmentation/f4675c76-12fd-46eb-8463-021215e9a2e0_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:32fd05c58afb11586fae4a18e6047afed424474f5c215b19e2e1e8ad210f2b99
3
+ size 855889
CVPR/2025/Segment This Thing_ Foveated Tokenization for Efficient Point-Prompted Segmentation/full.md ADDED
@@ -0,0 +1,310 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Segment This Thing: Foveated Tokenization for Efficient Point-Prompted Segmentation
2
+
3
+ Tanner Schmidt Meta Reality Labs
4
+
5
+ tanner.schmidt@meta.com
6
+
7
+ Richard Newcombe Meta Reality Labs
8
+
9
+ newcombe@meta.com
10
+
11
+ # Abstract
12
+
13
+ This paper presents Segment This Thing (STT), a new efficient image segmentation model designed to produce a single segment given a single point prompt. Instead of following prior work and increasing efficiency by decreasing model size, we gain efficiency by foveating input images. Given an image and a point prompt, we extract a crop centered on the prompt and apply a novel variable-resolution patch tokenization in which patches are downsampled at a rate that increases with increased distance from the prompt. This approach yields far fewer image tokens than uniform patch tokenization. As a result we can drastically reduce the computational cost of segmentation without reducing model size. Furthermore, the foveation focuses the model on the region of interest, a potentially useful inductive bias. We show that our Segment This Thing model is more efficient than prior work while remaining competitive on segmentation benchmarks. It can easily run at interactive frame rates on consumer hardware and is thus a promising tool for augmented reality or robotics applications.
14
+
15
+ # 1. Introduction
16
+
17
+ Since its introduction in 2023, the Segment Anything Model (SAM) [20] has brought new focus to the image segmentation task and enabled numerous downstream applications with its flexible design and impressive performance. However, SAM's capabilities come at a cost: the model leverages a heavyweight image encoder (ViT-H in the standard model).
18
+
19
+ In this paper we focus on segmentation for streaming use cases, for example robotics or augmented/virtual reality applications. With many frames arriving every second, it is likely that only one or a few entities need to be segmented in each image. Latency is critical, as frames may be separated in time by only tens of milliseconds. Depending on the relative locations of and communication channels between sensors and compute, bandwidth may also be a concern.
20
+
21
+ ![](images/ee0cb32d204e8d3f63080275484bc9d91aec4fcd384f522534ede351ed3b6d76.jpg)
22
+ Patch Tokenization
23
+ Figure 1. A visualization of the foveated tokenization employed by Segment This Thing. Pixels are grouped into small patches in the center and progressively larger patches towards the edges.
24
+
25
+ ![](images/2e368b77190a9a7191d1bc98a8eca84a90a4269fb0745580a930ef26930b6783.jpg)
26
+ Foveated Tokenization
27
+
28
+ We introduce a new efficient segmentation model called "Segment This Thing" (STT) that was designed for streaming video applications. There have been many other follow-up works aimed at making SAM more efficient, but they have all done so by reducing the model size. We take a different approach, and instead apply a novel biologically-inspired tokenization scheme which results in a drastic reduction in token count and a concomitant increase in efficiency of the Transformer-based image encoder. This scheme, which we refer to as "foveated tokenization," is modeled after the variability of the visual acuity of human eye, which is highest in the fovea and decreases with increased eccentricity [3]. Instead of dividing the image into evenly sized patches on a uniform grid, we resample patches with variable resolution on an irregular grid centered on a single point prompt (see Figure 1). The further a patch is from the center, the lower its resolution.
29
+
30
+ In the analogy with the human eye, it is as if the model directs its visual attention towards the prompt point and estimates the extent of the thing it is "looking at" (hence the name of our model). If the object is small or far away such that it subtends a small solid angle, it will be contained within the highest resolution patches and thus will not be affected by the downsampling (so long as there is sufficient
31
+
32
+ context from the surrounding regions). If the object is large, it will extend into the periphery of the image and some information will be lost. However, we argue that for larger segments, high resolution is not as important. Our experiments show that our resampling of the image results in only moderate decreases in segmentation accuracy across a wide range of segment sizes. Importantly, there is no need to know the size of an object before attempting to segment it.
33
+
34
+ Our foveated tokenization reduces the token count so significantly, we can actually use larger models relative to other efficient SAM variants while still requiring fewer FLOPs and thus lower latency, due to the quadratic scaling of self-attention with respect to the token count. This gives Segment This Thing more modeling flexibility and suggests that this tokenization and image encoding strategy could be applied gainfully towards other tasks besides segmentation.
35
+
36
+ In addition to reducing latency, our foveated tokenization has the benefit of reducing the bandwidth required to get pixels from the sensor to the model. The tokenization results in a significant compression of the image, and is orthogonal to other compression schemes that could be applied to the patches (e.g. JPEG compression) for further bandwidth reduction. Furthermore, the resampling is computationally cheap and would be relatively easy to implement efficiently in hardware. Altogether, this makes the Segment This Thing model a promising option for power-constrained edge devices that need to stream data off-device to be segmented elsewhere.
37
+
38
+ With foveated tokenization, each prompt leads to a unique foveation and thus requires running both the image encoder and the mask decoder, whereas models like SAM can amortize the cost of the image encoder across multiple prompts. However, our model is so much faster than the baselines that it would require a number of prompts on the same image before the cost is equivalent. Furthermore, the need to segment many objects is more common in static image analysis and less relevant to streaming video use cases.
39
+
40
+ We benchmark Segment This Thing on a number of publicly-available segmentation datasets to quantify the performance degradation that comes with the increased efficiency. We also show qualitative experiments in which users wear glasses with front-facing cameras and eyetracking capabilities, applying STT to estimate what objects the user may be looking by using gaze-derived prompts.
41
+
42
+ # 2. Related Work
43
+
44
+ Our work is built on Segment Anything [20], which aims to segment any entity in an image given a prompt in the form of a bounding box or one or more 2D points. Our model aims to address the high computational cost of running the Segment Anything Model (SAM).
45
+
46
+ Efficient Prompted Segmentation A number of other papers have also introduced techniques to reduce the cost of
47
+
48
+ prompted segmentation. FastSAM [49] uses an efficient CNN-based object detection and segmentation backbone to produce segmentation candidates and then uses prompts to select from and / or merge these candidates into an output mask. SqueezeSAM [39] employs a UNet architecture with a transformer at the lowest-resolution level. Their early prompt fusion approach (providing prompts as additional channels in the input to the UNet rather than injecting them in a second stage) is similar to our centering of foveated inputs on the prompt, allowing the network to focus on relevant information from the start. EfficientViT-SAM [48] substitutes the ViT image encoder used by SAM for an EfficientViT [25] encoder. EfficientSAM [40], EdgeSAM [51], and MobileSAM [46] reduce the size of SAM by applying a knowledge distillation approach to transfer knowledge from the SAM image encoder into a lighter-weight encoder, then fine-tuning on the prompted segmentation task. For a recent review of efficient SAM methods, see Sun et al. [36].
49
+
50
+ Prompted Video Segmentation One of the aims of our work is to reduce the cost of prompted segmentation such that it is reasonable to run on every frame of a streaming video. Recently, Ravi et al. introduced SAM-2 [33], an extension of SAM to prompted video object segmentation (VOS). However, with SAM-2 each prompt recovers a segmentation of only one object across the video, with multiple segmentations requiring multiple prompts. Our model can segment a different object each frame depending on where the foveation center is placed. We leave the extension of foveated tokenization to video input to future work.
51
+
52
+ Resolution reduction In the deep learning era of computer vision it has always been standard practice to rapidly reduce resolution in early network layers. For example, AlexNet [23] begins with a stride-4 convolution followed by a stride-2 pooling, reducing an input image of size $224 \times 224$ to a feature map of size $26 \times 26$ after just these two layers. This did not change as hardward advanced; ResNets [15] begin with a convolutional layer and a pooling layer each with a stride of two pixels, resulting in a quartering of the image resolution after progressing through a small fraction of the network depth. Our approach also reduces input resolution at the beginning of (in fact, before) the network, but with a rate that increases with increased distance from the prompt.
53
+
54
+ Compression Other work reduces data sizes by learning from compressed representations. For example, Park and Johnson [31] train a Transformer-based image classifier directly on DCT co-efficients as used in JPEG encoding of images. Horton et al. take this idea even further and train a classifier directly on compressed byte encodings of images [17]. Other methods such as VQ-VAEs [38] or the more recent Lookup-Free Quantization [44] allow learning a compression of input data which can then be leveraged to solve downstream tasks more efficiently. However, depending on the specific architecture these techniques can incur
55
+
56
+ significant costs to compute the compressed representations and are therefore not as widely applicable to deployment on power-constrained edge devices. Our foveated tokenization can be seen as a simple compression of the input image, but the compression technique is extremely cheap and largely orthogonal to these other approaches (i.e. one could apply further compression to the foveated patches).
57
+
58
+ Efficient Tokenization Other prior works similarly addressed the issue of large token counts in transformer architectures. Yu et al. introduced TiTok [45], which generates a concise set of 32 or 64 tokens to represent an image. Yu et al. also make note of the ability to increase model size when token counts are low, but focused on the downstream task of image generation – the TiTok tokenizer itself is a Vision Transformer and is thus not particularly efficient. A large number of different token pruning or merging approaches have been proposed [2, 5, 13, 21, 27, 28, 32, 34, 35, 41, 42]. These methods typically assume a full input image, starting with a full token set and progressively reducing the token count from there. They therefore do not offer the same benefits resulting from input size reduction as our approach.
59
+
60
+ Foveated Vision There have been some prior works applying foveation models to deep learning. Jonnalagadda et al. introduced FoveaTer [18], which uses variably-sized pooling windows applied to the output of a convolutional network to produce foveated feature maps. These foveated features are then processed by a Transformer, which like our image encoder benefits from the reduction in token count. However, the convolutional backbone of FoveaTer still requires full resolution images, which places higher constraints on sensors and bandwidth compared to our approach, in which foveation is applied as a first step (and can therefore be implemented on the sensor itself or in nearby accelerators). Peripheral Vision Transformer [29] also takes inspiration from biological vision systems, but focuses on the inductive bias aspect of foveation by modifying the position encoding of a Transformer-based image classifier. They do not achieve efficiency gains relative to their baseline. PeLK [4] applies the foveation concept to convolutional neural networks, introducing adaptive weight sharing that allocates more weights to the center of a large convolutional kernel and fewer towards the edges. This work actually moves in the opposite direction of ours by decreasing parameter counts; we instead decrease input size and increase parameter counts. Furthermore, the above works are evaluated on older datasets with small images such as ImageNet [10], ADE20K [50], or MS-COCO [24]. With our focus on efficiency, we evaluate Segment This Thing on more modern datasets with much larger images, showing the ability to segment objects ranging in size from a handful of pixels to millions of pixels with very low latency.
61
+
62
+ Konrad et al. also explore foveated imaging with GazeGPT [22]. GazeGPT also investigates gaze-based
63
+
64
+ ![](images/45bbe3a97cffbe23bf55995fba925ac9391ef779219350aa75212d7661599b92.jpg)
65
+ Figure 2. (left) The foveation pattern used by our trained models. (right, top) A patch from the center maintains its original resolution. (right, bottom) A patch from the outer ring gets downsampled by a factor of 8. Best viewed digitally.
66
+
67
+ ![](images/65b9e25aef1f79d9a94e383093d97f8c2f282c8851d1107b8152c8c33527a171.jpg)
68
+
69
+ prompting, in their case of a multimodal large language model. This model was pre-trained on uniform resolution images, which constrains the GazeGPT foveation model (it uses three overlapping images of the same size but varying receptive field).
70
+
71
+ # 3. The Segment This Thing Model
72
+
73
+ In this section we introduce the Segment This Thing model. First, we describe the foveation model used to map full resolution images to foveated token sets. Then we describe the architecture that maps these tokens to segmentation maps.
74
+
75
+ # 3.1. Foveated Tokenization
76
+
77
+ Each instance of the Segment This Thing model is trained with a fixed foveation pattern which divides an image region into a set of patches. An example of such a pattern is depicted in Figure 2. In the center of the pattern is a dense grid of patches corresponding to the center of the fovea in the analogy with human vision. Surrounding this block is a series of concentric rings of larger patches. The patches in each ring are larger than patches in the preceding ring and have a size that is an integer multiple of the central patch size. The patch sizes and the width of each ring are selected such that they can be nested without gaps or overlap<sup>1</sup>.
78
+
79
+ Given an image and a point prompt, the first step is to extract a crop centered on the prompt and sized according to the pattern. If the crop region extends beyond the image boundary, we pad the image. Next, each patch in the foveation pattern is downsampled to the central patch size. This can be implemented efficiently using an integral image, which is equivalent to applying a box filter and subsampling with integer strides. This simplistic filter results in lower image quality than more sophisticated methods, but is hardware-friendly such that it could be deployed on power-constrained edge devices. The downsampling process is visualized in Figure 2. We follow SAM and use $16 \times 16$ patches.
80
+
81
+ ![](images/8adedbb155f2feba90dff87c140c6a96e0dd3c5d5b9f1ec1013f2a555617dbc6.jpg)
82
+ Figure 3. The foveated tokenization process. It begins by cropping a square region around the point prompt with a fixed size determined by the foveation pattern. This pattern divides the crop region into a set of variably-sized patches, each of which is resampled such that they are all the same size. The set is then concatenated to form a token tensor.
83
+
84
+ After downsampling, the patches are all the same size, as is the output of the standard patch tokenization used e.g. in Vision Transformers [11]. We can thus flatten each patch into a vector and stack them to form a token matrix, hence the name foveated tokenization. The token set is then passed to the Segment This Thing model for processing. The full tokenization pipeline is depicted in Figure 3.
85
+
86
+ # 3.1.1. Visualization
87
+
88
+ It is often useful to visualize the foveated input to Segment This Thing. However, after foveated tokenization the image is represented as a $N \times T \times T$ tensor, where $N$ is the token count and $T$ is the patch size. To visualize such a tensor, we reverse the tokenization process: patches are upsampled back to their original size (typically using nearest neighbor interpolation) at which point they can be recomposed into an image. Note that while this process does not re-introduce any new information and thus provides a faithful view of what the network sees, it does introduce some distortion — the central regions take up much more space in the network input than in the visualizations thereof.
89
+
90
+ ![](images/6d2174e5978d08e7464d3fbf6658e6865a50287cb00e2e8b1778556d549f75bf.jpg)
91
+ Figure 4. Segment This Thing has a precision advantage for extremely small targets due to the additional decovolutional layers in the mask decoder. Left: an input image with prompt indicated in red. Right: a visualization of the segmentation output of SAM and STT. The crop corresponds to the region indicated by a rectangle at left. STT is able to output a smaller segment than SAM due to its higher resolution output in the central tokens. Note that this is not the most confident output mask for either model.
92
+
93
+ ![](images/f8255b2228b189b2d514b2b5a8ee5a0f8049eb2e5f226ab8404a357bc4b7c3c3.jpg)
94
+
95
+ # 3.2. Segment This Thing
96
+
97
+ Next we describe the architecture of the Segment This Thing model. It is largely based on the three-part SAM model. However, the prompt encoder has been omitted because the prompt is implicit in the centering of the crop.
98
+
99
+ # 3.2.1. Image Encoder
100
+
101
+ Due to the foveation, the input tokens to STT correspond to patches which are not arrayed on a 2D grid and thus the Vision Transformer model used by SAM (with local 2D windowed attention) is not applicable. However, the complexity of windowed attention was used in SAM to control compute cost, and our drastic cut in the token count removes that imperative. The image encoder for STT is thus a standard Transformer model. We simply project the patches (after downsampling to a common patch size) with a single linear layer, add learned position encodings, and pass them through the transformer to obtain a (foveated) feature map. We also include a register token to allow the model to collect and broadcast information, following Darcet et al. [8]. As the foveation pattern can extend beyond image boundaries, we also add a token mask to prevent the participation of out-of-bounds tokens in self-attention.
102
+
103
+ # 3.2.2. MaskDecoder
104
+
105
+ The mask decoder is also modeled on its counterpart in SAM, again with some simplifications. We do not support iterative segmentation – the model is always run just once per prompt. In SAM, the model outputs $N$ (typically $N = 3$ ) masks when prompted with a single point (which leads to scale ambiguity) and one mask when prompted with multiple points or a bounding box. Segment This Thing only supports single point prompts, so the decoder always outputs $N$ masks. The query token set is thus a set of $N + 1$ tokens, one for the intersection over union (IoU) prediction and one for each predicted mask. The context token set is the output of the encoder (including the register token). Out-of-bounds context tokens are masked during cross attention with the same token mask used in the encoder. The decoder otherwise operates in the same way as its counterpart in SAM, applying a two-way cross-attention trans
106
+
107
+ ![](images/7bca565e8a13f4b60789c5b4e8ecb3a4aeeb31cf849235bc23ff1c965e5cb344.jpg)
108
+ Figure 5. Despite the high downsampling rate in the periphery, the Segment This Thing model is capable of segmenting objects with a wide range of shapes and sizes, from those covering most of the receptive field (left) to those covering just a handful of pixels (right). All images are from SA-1B. They have been passed through foveated tokenization and are visualized as described in Section 3.1.1.
109
+
110
+ ![](images/db1b87c170f011896a51651f7ede96708577147f5fc7af751eb11b9265eace27.jpg)
111
+
112
+ ![](images/8574738d2bd69964550783bd4802b3bbe5d15720d1f6c10eaecbd77c3c8b0ef9.jpg)
113
+
114
+ ![](images/6caaae880352483b3d9f4292e99a6908ff23941349e9bad048c092d52d04f2e7.jpg)
115
+
116
+ ![](images/06fea92bf2485411e64cb7328102dc10d61afadbf48104c1d6d0eb08dfc218d8.jpg)
117
+
118
+ ![](images/6ead748982b5701df0f739ef3290670dd561f5beb67c7157776f8356dea35095.jpg)
119
+
120
+ former, followed by learned upsampling of the image tokens, and finally a dot product between the mask tokens (transformed by an MLP) and the image token maps to produce the segmentation map.
121
+
122
+ In SAM, the segmentation maps are estimated at a quarter of the resolution of the input image by applying two $2 \times 2$ deconvolutions with stride 2 to the token feature map. In other words, a $4 \times 4$ segmentation label patch is estimated for each $16 \times 16$ token. If full resolution maps are required, they are computed using bi-linear interpolation. This design decision was likely made to reduce memory costs during training.
123
+
124
+ Another benefit of our lower token count is that we can afford to produce a full $16 \times 16$ segmentation map per patch by stacking four deconvolutions, each of which double the resolution. Thus the labels for the central patches are estimated at full resolution, with the output resolution dropping off towards the periphery at the same rate as the input resolution. If a full resolution segmentation map is required, it can be computed by interpolating each patch such that it matches its receptive field and then restructuring the patches to form an image. Note that this means that the output resolution of STT is actually higher than SAM in the center
125
+
126
+ ![](images/b940be34dd3e79b4feb35a666b9c5ecdd42c34cbad22912c198f87ef4fb45ba1.jpg)
127
+ Figure 6. A visualization of a training example for MAE pretraining of the image encoder. Left: the foveated input image (and reconstruction target), visualized as described in 3.1.1. Center: a visualization of the token set passed to the encoder. Right: a visualization of the reconstruction produced by the network. Note that the output resolution of the decoder matches the target image pixel-for-pixel, i.e. it is also foveated.
128
+
129
+ ![](images/4c06a4630fc7c90b2516ef0df7995112108a40830553cf654776af948a8fd18c.jpg)
130
+
131
+ ![](images/e129d6e4430a27e15d6463d7cc29f20ab3b6804407ec5438fe4e7539a1a26afb.jpg)
132
+
133
+ of the segmentation map, at parity in the surrounding areas, and only at a lower resolution in the periphery. We have observed at least some cases where this allows STT to segment extremely small entities that SAM misses (see Figure 4; we suspect that this capability is limited by insufficiently granular labels in SA-1B, caused in part by the use of SAM itself to generate the masks). STT is also able to segment large objects, including segments that fill most or all of the foveation pattern, albeit at lower resolution. See Figure 5 for examples of segments estimated by STT across a wide range of scales.
134
+
135
+ # 4. Experiments
136
+
137
+ In this section we describe how we train the Segment This Thing model, and present evaluation results.
138
+
139
+ # 4.1. Training
140
+
141
+ We trained our STT models using a foveation pattern with 172 tokens, a total size of 1280 pixels, and a stride of 8 pixels in the outer ring. See the supplementary materials for details. In Table 1 we compare the input sizes for SAM and our STT model based on this pattern.
142
+
143
+ Following SAM, we trained our Segment This Thing model exclusively on the SA-1B dataset [20]. However, because of the novel tokenization we cannot rely on an existing pre-trained image encoder as do Kirillov et al. Thus the first step in training STT is masked autoencoder (MAE) [16] pre-training of the image encoder. Other than the novel tokenization, we follow the standard MAE pre-training procedure. We center foveations at points randomly selected from SA-1B images that are more than a threshold distance
144
+
145
+ <table><tr><td>Model</td><td>Tokens</td><td>Pixels</td><td>Receptive Field</td></tr><tr><td>SAM [20]</td><td>4096</td><td>1.049M</td><td>10242</td></tr><tr><td>STT (Ours)</td><td>172</td><td>0.044M</td><td>12802</td></tr></table>
146
+
147
+ Table 1. A comparison of the input size for SAM and STT.
148
+
149
+ ![](images/96fb24b0d4de269f54f2d43b103c968c9da56d01fe3fe0c88ea721888ced5736.jpg)
150
+ Figure 7. Results of evaluating our models and baselines on publicly available segmentation datasets. Models of the same family are grouped by hue, with larger models in darker shades. Results vary widely by dataset, but the trend is consistent and shows that STT outperforms MobileSAM, which runs with similar latency, and is competitive with more expensive models. See Table 5 in the supplementary for a full tabular listing of the results.
151
+
152
+ from the image boundary. The reconstruction loss is applied to the in-bounds and downsampled tokens — we do not ask the network to predict the full-resolution source image. An MAE pre-training example is visualized in Figure 6.
153
+
154
+ After pre-training, the decoder is discarded and the encoder weights are used to initialize the STT encoder. We then use SA-1B to train the mask decoder and fine-tune the encoder weights for the segmentation task. For each image, we select a set of segments uniformly at random, and for each segment select a foveation center uniformly within the segment. We use the same combination of Focal, Dice, and IoU prediction losses as SAM. However, we made two minor changes to handle the variable resolution of the STT output masks.
155
+
156
+ First, each pixel in the STT output may represent a classification of many pixels in the binary segmentation target. Rather than upsampling the masks to the full image resolution as described in section 3.2.2, we map the ground truth to the foveated output space of STT. This is done by converting the masks to floating point and applying the same downsampling approach as used for input pixels described in section 3.1. The result is a real-valued foveated segmentation map. Each value in the map has a variably-sized receptive field and represents the probability that a pixel selected uniformly at random from within that receptive field has a positive label in the full-resolution ground truth segmentation map. After downsampling there is a 1:1 correspondence between pixels in target and estimated masks, and we can apply the Dice and Focal losses, both of which generalize to continuous target values.
157
+
158
+ The second change is to the targets for IoU prediction. We found that thresholding the target and estimated masks and computing IoU of the binarized masks led to unstable loss values when significant portions of either mask are near a value of 0.5. We thus use an expected IoU of the real-valued segmentation maps. Given an estimated probability $p_i$ that pixel $i$ is part of the segment and probability $q_i$ that a pixel selected uniformly at random from its receptive field
159
+
160
+ <table><tr><td colspan="2">Method</td><td>Latency (ms)</td><td>GFLOPs</td></tr><tr><td rowspan="3">SAM [20]</td><td>H</td><td>572.7</td><td>6533.7</td></tr><tr><td>L</td><td>347.6</td><td>3244.5</td></tr><tr><td>B</td><td>153.9</td><td>1027.0</td></tr><tr><td rowspan="2">EfficientSAM [40]</td><td>S</td><td>78.6</td><td>489.4</td></tr><tr><td>Ti</td><td>39.8</td><td>201.2</td></tr><tr><td>MobileSAM [46]</td><td></td><td>20.7</td><td>124.4</td></tr><tr><td rowspan="3">STT (Ours)</td><td>H</td><td>26.2</td><td>223.2</td></tr><tr><td>L</td><td>13.7</td><td>108.0</td></tr><tr><td>B</td><td>7.3</td><td>30.9</td></tr></table>
161
+
162
+ Table 2. Comparing the efficiency of evaluated segmentation models. Latency is measured as the time to process a single image with a single prompt on an nVidia RTX 3080 GPU, and excludes preprocessing time for all models. See supplementary materials for details on calculating GFLOPs. Note that latency is highly dependent on hardware (and, to a lesser extent, software) and that there are competing ways to compute FLOPs; we were careful to run all models on the same hardware and used the same method of computing FLOPs, and can see that FLOPs and latency are roughly linearly correlated as expected.
163
+
164
+ has a positive label, the expected IoU is given by:
165
+
166
+ $$
167
+ \frac {p _ {i} q _ {i}}{1 - \left(1 - p _ {i}\right) \left(1 - p _ {q}\right)} \tag {1}
168
+ $$
169
+
170
+ See the supplementary materials for further training details, including hyperparameter settings.
171
+
172
+ # 4.1.1. Foveation Center Selection
173
+
174
+ The randomized selection of the foveation center and the resulting variability in the resampling of the image plays much the same role as data augmentation. However, rather than altering the data contained in the training set, randomized foveation simply provides many different views of the same data. While we revisit the same images from SA-1B repeatedly throughout training, the model almost certainly
175
+
176
+ ![](images/d655495d499e58f2cc2f01c3d52cb500f1fe2ecca2ac0c297bf4287911d5db57.jpg)
177
+ SAM
178
+
179
+ ![](images/f2099d81f723cce36def48dfc3c82b0bc92530634f08d19746e01ae19ff94ba7.jpg)
180
+
181
+ ![](images/7ba540929b7dcc1a28721294964531a05fb5d17c16ba6968761ce14fa9ec04a9.jpg)
182
+ Figure 8. A side-by-side comparison of our Segment This Thing model on a set of images from the SA-1B dataset [20]. We also visualize the foveated input in the rightmost column as described in Section 3.1.1. This figure is best viewed digitally — zoom in to see the relative coarsity of STT's output for larger segments. For example, the ear of the goat in the third row is missed by STT.
183
+
184
+ ![](images/e09aaffcd5ad0b733e641cc390636a71e98e511e4611148c373e24c6f126e4e2.jpg)
185
+ EfficientSAM
186
+
187
+ ![](images/3ab3a37b5df79f874e578acb5034b6f43822e816e16195c9d9a659e1d8d9e111.jpg)
188
+
189
+ ![](images/9163d1b75af74771c7efe1b11cbc550f8aa41532f2a2857d8aecdfad7729408d.jpg)
190
+
191
+ ![](images/b9a83a8f104649247cb3e7bde8b0d27426429ed4fe6ec7291d0511e848c6f685.jpg)
192
+ MobileSAM
193
+
194
+ ![](images/a28f82cea6c48e1ba8b880b594771d1054e27360d26b839624904852cfe52c17.jpg)
195
+
196
+ ![](images/3f00ccaecdb0a5ca766927c23a2af4909cf845701f706c706eb2555d5bed49a1.jpg)
197
+
198
+ ![](images/c6e5ddead0eff0fd63d2885b7418d1a7799cd9a42f524e34cf44ce68e98b0c34.jpg)
199
+ STT (Ours)
200
+
201
+ ![](images/a537152f62eeb8559a694238de99d42852beb5144f7e5e9b657963d41b3a0403.jpg)
202
+
203
+ ![](images/adc01f5ccb2a36c10a50e4d0c8ce3c450d77eff8beb5dd5066fe6d4f0c6e8d02.jpg)
204
+
205
+ ![](images/427638cdc194b784b5702f0b9222f38dfa113c123fae11c2570322cf473ee21e.jpg)
206
+ Foveated Input
207
+
208
+ ![](images/eb2fa8619e490b630e2ed49ba8288388bd5dda2e9f594a08d1bfa6fd8b36c40e.jpg)
209
+
210
+ ![](images/8d73f3425d15e8fb45b099914a84e58c713cd7ab19af6ed6fd795005780d6bca.jpg)
211
+
212
+ never receives exactly the same foveated input twice. We train without drop path as used by Kirillov et al., but have not observed issues with overfitting.
213
+
214
+ In some cases, one may wish to prompt a segmentation model with some uncertainty as to whether the prompt is within the intended segment. In training STT, we can optionally add a small Gaussian-distributed offset vector between the point selected from within a target segment and the center point used for prompting the model. In this setup, the model is sometimes prompted with points somewhat outside the target segment. The model then learns to produce not only segments that include the prompt point but also other nearby segments. The same strategy employed by SAM to handle size ambiguity (i.e. allowing the model to produce multiple masks, and backpropagating only gradients of the loss associated with the best mask) also naturally handles the ambiguity introduced by prompt noise. If the model is prompted with an image that contains plausible segments both at and near the center, it can simply produce both segments as output.
215
+
216
+ # 4.2. Evaluation
217
+
218
+ We evaluate the Segment This Thing model on the "Zero-Shot Single Point Valid Mask Evaluation" task defined by Kirillov et al. [20] in which the model is prompted with a single point in each segment that is furthest from the segment boundary. We measure accuracy using the mean intersection over union (mIoU) across all segments in each evaluation dataset.
219
+
220
+ We compare against SAM [20] and the faster EfficientSAM [40] and MobileSAM [46] as baselines, all of
221
+
222
+ which involve resizing the image to $1024 \times 1024$ pixels, encoding a point prompt, and decoding a mask at $256 \times 256$ pixel resolution. To evaluate STT, we do cropping and resampling as usual, but map each output mask back to the input image pixel space before evaluating the IoU. During training, both the height and width of training images are larger than the pattern size, such that crops centered near a corner may need padding on up to two sides. Some of the evaluation images are significantly smaller, however. To avoid a domain gap, we upsample images as necessary before cropping such that the crop needs padding on at most two sides.
223
+
224
+ We analyze the efficiency of our model and the baselines in Table 2. Note that STT requires fewer FLOPs and thus achieves lower latency than other efficient variants of SAM while retaining model capacity.
225
+
226
+ We use a set of nine datasets to evaluate segmentation accuracy, and plot the results for multiple sizes of each model in Figure 7. We adopt the standard transformer size denotations used by Vision Transformers [11]. Our STT-L model significantly outperforms STT-B, an indication that maintaining model capacity is important to the performance of our model. However, we find diminishing returns with STT-H. Our models all significantly outperform MobileSAM, which has similar latency to STT-H. STT-L is competitive with EfficientSAM-Ti in terms of accuracy, but despite the larger parameter count is still nearly $3\mathbf{x}$ faster. This is again due to our reduced token count.
227
+
228
+ A qualitative side-by-side comparison of the three models is shown in Figure 8. Note that some of the performance gap between STT and the more expensive models is
229
+
230
+ ![](images/633084403543624f17a93d688645529d696a075fe891636b266fa3f547f11cf8.jpg)
231
+ Figure 9. A visualization of prompting Segment This Thing with gaze. In a sequence from the Nymeria dataset [26], a user does a puzzle while wearing Aria glasses [12] equipped with eye-tracking capabilities and a forward-facing camera. The wearer's gaze is inferred and projected into the camera frame, and the resulting point is used to prompt Segment This Thing. A model trained with noise on the foveation center is capable of segmenting objects that the user is looking at even when the gaze is not entirely accurate. Left: the wear is likely looking at a puzzle piece, but the estimate of their gaze projects onto a nearby point on the table (shown in red). Center: in this zoomed-in view, we can see that the most confident segment in STT's estimation is the puzzle piece. Right: a few frames later, the wearer reaches for this exact piece, lending evidence that this indeed had been the object of the wearer's attention.
232
+
233
+ ![](images/4ff7f5e11333083e3fa7e6208c42172413a0a0463f73f8f299c2eab0b1f1da4b.jpg)
234
+
235
+ ![](images/4c96f6a14008129f941e27a2a0d335d8b49e2f1f0b3455408855632ed1a303c6.jpg)
236
+
237
+ due to the relatively coarse segment boundaries caused by foveation (see the supplementary material for further analysis of the performance of STT as a function of segment size). However, we expect that this will not be critical for many downstream tasks. If a precise boundary is important, one can always prompt the model again near the boundary once its approximate contours are known.
238
+
239
+ # 4.3. Gaze-based Prompting
240
+
241
+ We also show qualitative results in which we prompt the Segment This Thing model with gaze data in Figure 9 and in the supplementary video. Specifically, we take sequences from the Nymeria dataset [26] in which users wear Aria glasses [12] while performing a variety of activities. The glasses have forward-facing cameras capturing the wearer's egocentric perspective as well as cameras aimed at the their eyes enabling gaze tracking. The estimated gaze vectors can then be re-projected into the frame of reference of the forward-facing camera image and used as a prompt for STT. However, there is some noise in the estimation of the wearer's gaze and therefore some uncertainty in the prompt. Instead of prompting the model with multiple points drawn from the distribution over the true gaze point, which would incur a cost that scales linearly in the number of prompts, we use a model trained with noise as described in Section 4.1.1. With this model, using a single prompt placed at our best estimate of where the wearer is looking still often results in a segmentation of the object they are actually looking at. Furthermore, if there is only one obvious segment near the gaze vector, as might be the case when the wearer gazes at an object against a featureless background, this segment will in many cases be the highest scoring segment according to the model's IoU predictions. The example shown
242
+
243
+ in Figure 9 is such a case.
244
+
245
+ # 5. Conclusion
246
+
247
+ In this paper we introduced the Segment This Thing model, a new image segmentation model that builds on the success of SAM by increasing efficiency. Instead of simply reducing the size of the Transformer-based image encoder, we applied foveated tokenization to reduce the token count by roughly 24x compared to SAM. This reduces inference latency by roughly 42x compared to SAM-H or 5.6x relative to EfficientSAM. Foveated tokenization has the additional benefit of reducing the number of pixels required as input to the network, easing up on bandwidth requirements for transmitting image data between sensors and devices; our model requires only about 44K pixels as input (roughly equivalent to a $210 \times 210$ image), but retains the ability to segment small objects at full resolution.
248
+
249
+ Despite the increased efficiency, Segment This Thing remains competitive on mIoU metrics on multiple public datasets. By maintaining a relatively large parameter count, our model retains the ability to do more complex computation over the reduced token set compared to smaller models that do simpler computations over more tokens. This helps our models cope with the information lost due to foveation. Furthermore, foveated tokenization concentrates the computational cost where it matters most: near the prompt.
250
+
251
+ Altogether, the Segment This Thing model is a promising choice for streaming video use cases. While we have only evaluated foveated tokenization in the context of image segmentation, we believe the approach could be equally applicable to a variety of image and video processing tasks. We leave this exploration to future work.
252
+
253
+ # References
254
+
255
+ [1] Dina Bashkirova, Mohamed Abdelfattah, Ziliang Zhu, James Akl, Fadi Alladkani, Ping Hu, Vitaly Ablavsky, Berk Calli, Sarah Adel Bargal, and Kate Saenko. Zerowaste dataset: Towards deformable object segmentation in cluttered scenes. In CVPR, pages 21147-21157, 2022. 6
256
+ [2] Daniel Bolya, Cheng-Yang Fu, Xiaoliang Dai, Peizhao Zhang, Christoph Feichtenhofer, and Judy Hoffman. Token merging: Your vit but faster. arXiv preprint arXiv:2210.09461, 2022.3
257
+ [3] Marisa Carrasco, Denise L Evert, Irene Chang, and Svetlana M Katz. The eccentricity effect: Target eccentricity affects performance on conjunction searches. Perception & psychophysics, 57:1241-1261, 1995. 1
258
+ [4] Honghao Chen, Xiangxiang Chu, Yongjian Ren, Xin Zhao, and Kaiqi Huang. Pelk: Parameter-efficient large kernel convnets with peripheral convolution. In CVPR, pages 5557-5567, 2024. 3
259
+ [5] Mengzhao Chen, Wenqi Shao, Peng Xu, Mingbao Lin, Kaipeng Zhang, Fei Chao, Rongrong Ji, Yu Qiao, and Ping Luo. Diffrate: Differentiable compression rate for efficient vision transformers. In ICCV, pages 17164-17174, 2023. 3
260
+ [6] 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. 6
261
+ [7] Dima Damen, Hazel Doughty, Giovanni Maria Farinella, Antonino Furnari, Evangelos Kazakos, Jian Ma, Davide Moltisanti, Jonathan Munro, Toby Perrett, Will Price, et al. Rescaling egocentric vision: Collection, pipeline and challenges for epic-kitchens-100. International Journal of Computer Vision, pages 1-23, 2022. 6
262
+ [8] Timothee Darcet, Maxime Oquab, Julien Mairal, and Piotr Bojanowski. Vision transformers need registers. arXiv preprint arXiv:2309.16588, 2023. 4
263
+ [9] Ahmad Darkhalil, Dandan Shan, Bin Zhu, Jian Ma, Amlan Kar, Richard Higgins, Sanja Fidler, David Fouhey, and Dima Damen. Epic-kitchens visor benchmark: Video segmentations and object relations. In NeurIPS, 2022. 6
264
+ [10] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, pages 248-255. IEEE, 2009. 3
265
+ [11] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020. 3, 4, 7
266
+ [12] Jakob Engel, Kiran Somasundaram, Michael Goesele, Albert Sun, Alexander Gamino, Andrew Turner, Arjang Talattof, Arnie Yuan, Bilal Souti, Brighid Meredith, et al. Project aria: A new tool for egocentric multi-modal ai research. arXiv preprint arXiv:2308.13561, 2023. 8
267
+ [13] Mohsen Fayyaz, Soroush Abbasi Koohpayegani, Farnoush Rezaei Jafari, Sunando Sengupta, Hamid Reza Vaezi Joze, Eric Sommerlade, Hamed Pirsiavash, and
268
+
269
+ Jürgen Gall. Adaptive token sampling for efficient vision transformers. In ECCV, pages 396-414. Springer, 2022. 3
270
+ [14] Jean-Michel Fortin, Olivier Gamache, Vincent Grondin, François Pomerleau, and Philippe Giguère. Instance segmentation for autonomous log grasping in forestry operations. In 2022 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 6064-6071. IEEE, 2022. 6
271
+ [15] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In ICCV, pages 770-778, 2016. 2
272
+ [16] Kaiming He, Xinlei Chen, Saining Xie, Yanghao Li, Piotr Dollár, and Ross Girshick. Masked autoencoders are scalable vision learners. In CVPR, pages 16000-16009, 2022. 5
273
+ [17] Maxwell Horton, Sachin Mehta, Ali Farhadi, and Mohammad Rastegari. Bytes are all you need: Transformers operating directly on file bytes. arXiv preprint arXiv:2306.00238, 2023. 2
274
+ [18] Aditya Jonnalagadda, William Yang Wang, BS Manjunath, and Miguel P Eckstein. Foveater: Foveated transformer for image classification. arXiv preprint arXiv:2105.14173, 2021. 3
275
+ [19] Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. Scaling laws for neural language models. arXiv preprint arXiv:2001.08361, 2020. 3
276
+ [20] Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C Berg, Wan-Yen Lo, et al. Segment anything. In CVPR, pages 4015-4026, 2023. 1, 2, 5, 6, 7
277
+ [21] Zhenglun Kong, Peiyan Dong, Xiaolong Ma, Xin Meng, Wei Niu, Mengshu Sun, Xuan Shen, Geng Yuan, Bin Ren, Hao Tang, et al. Spvit: Enabling faster vision transformers via latency-aware soft token pruning. In ECCV, pages 620-640. Springer, 2022. 3
278
+ [22] Robert Konrad, Nitish Padmanaban, J Gabriel Buckmaster, Kevin C Boyle, and Gordon Wetzstein. Gazegpt: Augmenting human capabilities using gaze-contingent contextual ai for smart eyewear. arXiv preprint arXiv:2401.17217, 2024. 3
279
+ [23] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. NeurIPS, 25, 2012. 2
280
+ [24] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dólar, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In ECCV, pages 740-755. Springer, 2014. 3
281
+ [25] Xinyu Liu, Houwen Peng, Ningxin Zheng, Yuqing Yang, Han Hu, and Yixuan Yuan. Efficientvit: Memory efficient vision transformer with cascaded group attention. In CVPR, pages 14420-14430, 2023. 2
282
+ [26] Lingni Ma, Yuting Ye, Fangzhou Hong, Vladimir Guzov, Yifeng Jiang, Rowan Postyeni, Luis Pesqueira, Alexander Gamino, Vijay Baiyya, Hyo Jin Kim, et al. Nymeria: A massive collection of multimodal egocentric daily motion in the wild. arXiv preprint arXiv:2406.09905, 2024. 8
283
+
284
+ [27] Dmitrii Marin, Jen-Hao Rick Chang, Anurag Ranjan, Anish Prabhu, Mohammad Rastegari, and Oncel Tuzel. Token pooling in vision transformers. arXiv preprint arXiv:2110.03860, 2021. 3
285
+ [28] Lingchen Meng, Hengduo Li, Bor-Chun Chen, Shiyi Lan, Zuxuan Wu, Yu-Gang Jiang, and Ser-Nam Lim. Adavit: Adaptive vision transformers for efficient image recognition. In CVPR, pages 12309-12318, 2022. 3
286
+ [29] Juhong Min, Yucheng Zhao, Chong Luo, and Minsu Cho. Peripheral vision transformer. NeurIPS, 35:32097-32111, 2022. 3
287
+ [30] Massimo Minervini, Andreas Fischbach, Hanno Scharr, and Sotirios A Tsaftaris. Finely-grained annotated datasets for image-based plant phenotyping. Pattern recognition letters, 81:80-89, 2016. 6
288
+ [31] Jeongsoo Park and Justin Johnson. Rgb no more: Minimally-decodedJPEG vision transformers. In CVPR, pages 22334-22346, 2023. 2
289
+ [32] Yongming Rao, Wenliang Zhao, Benlin Liu, Jiwen Lu, Jie Zhou, and Cho-Jui Hsieh. Dynamicvit: Efficient vision transformers with dynamic token sparsification. NeurIPS, 34:13937-13949, 2021. 3
290
+ [33] Nikhila Ravi, Valentin Gabeur, Yuan-Ting Hu, Ronghang Hu, Chaitanya Ryali, Tengyu Ma, Haitham Khedr, Roman Rädle, Chloe Rolland, Laura Gustafson, et al. Sam 2: Segment anything in images and videos. arXiv preprint arXiv:2408.00714, 2024. 2
291
+ [34] Cedric Renggli, André Susano Pinto, Neil Houlsby, Basil Mustafa, Joan Puigcerver, and Carlos Riquelme. Learning to merge tokens in vision transformers. arXiv preprint arXiv:2202.12015, 2022. 3
292
+ [35] Zhuoran Song, Yihong Xu, Zhezhi He, Li Jiang, Naifeng Jing, and Xiaoyao Liang. Cp-vit: Cascade vision transformer pruning via progressive sparsity prediction. arXiv preprint arXiv:2203.04570, 2022. 3
293
+ [36] Xiaorui Sun, Jun Liu, Heng Tao Shen, Xiaofeng Zhu, and Ping Hu. On efficient variants of segment anything model: A survey. arXiv preprint arXiv:2410.04960, 2024. 2
294
+ [37] Cameron Trotter, Georgia Atkinson, Matt Sharpe, Kirsten Richardson, A Stephen McGough, Nick Wright, Ben Burville, and Per Berggren. Ndd20: A large-scale few-shot dolphin dataset for coarse and fine-grained categorisation. arXiv preprint arXiv:2005.13359, 2020. 6
295
+ [38] Aaron Van Den Oord, Oriol Vinyals, et al. Neural discrete representation learning. NeurIPS, 30, 2017. 2
296
+ [39] Balakrishnan Varadarajan, Bilge Soran, Forrest Iandola, Xiaoyu Xiang, Yunyang Xiong, Lemeng Wu, Chenchen Zhu, Raghuraman Krishnamoorthi, and Vikas Chandra. Squeezezam: User friendly mobile interactive segmentation. arXiv preprint arXiv:2312.06736, 2023. 2
297
+ [40] Yunyang Xiong, Bala Varadarajan, Lemeng Wu, Xiaoyu Xiang, Fanyi Xiao, Chenchen Zhu, Xiaoliang Dai, Dilin Wang, Fei Sun, Forrest Iandola, et al. Efficientsam: Leveraged masked image pretraining for efficient segment anything. In CVPR, pages 16111-16121, 2024. 2, 6, 7
298
+ [41] Wilson Yan, Matei Zaharia, Volodymyr Mnih, Pieter Abbeel, Aleksandra Faust, and Hao Liu. Elastictok: Adap
299
+
300
+ tive tokenization for image and video. arXiv preprint arXiv:2410.08368, 2024. 3
301
+ [42] Hongxu Yin, Arash Vahdat, Jose M Alvarez, Arun Mallya, Jan Kautz, and Pavlo Molchanov. A-vit: Adaptive tokens for efficient vision transformer. In CVPR, pages 10809-10818, 2022. 3
302
+ [43] Senthil Yogamani, Ciarán Hughes, Jonathan Horgan, Ganesh Sistu, Padraig Varley, Derek O'Dea, Michal Uricár, Stefan Milz, Martin Simon, Karl Amende, et al. Woodscape: A multi-task, multi-camera fisheye dataset for autonomous driving. In ICCV, pages 9308-9318, 2019. 6
303
+ [44] Lijun Yu, José Lezama, Nitesh B Gundavarapu, Luca Versari, Kihyuk Sohn, David Minnen, Yong Cheng, Vighnesh Birodkar, Agrim Gupta, Xiuye Gu, et al. Language model beats diffusion-tokenizer is key to visual generation. arXiv preprint arXiv:2310.05737, 2023. 2
304
+ [45] Qihang Yu, Mark Weber, Xueqing Deng, Xiaohui Shen, Daniel Cremers, and Liang-Chieh Chen. An image is worth 32 tokens for reconstruction and generation. arXiv preprint arXiv:2406.07550, 2024. 3
305
+ [46] Chaoning Zhang, Dongshen Han, Yu Qiao, Jung Uk Kim, Sung-Ho Bae, Seungkyu Lee, and Choong Seon Hong. Faster segment anything: Towards lightweight sam for mobile applications. arXiv preprint arXiv:2306.14289, 2023. 2, 6, 7
306
+ [47] Lingzhi Zhang, Shenghao Zhou, Simon Stent, and Jianbo Shi. Fine-grained egocentric hand-object segmentation: Dataset, model, and applications. In ECCV, pages 127-145. Springer, 2022. 6
307
+ [48] Zhuoyang Zhang, Han Cai, and Song Han. Efficientvit-sam: Accelerated segment anything model without performance loss. In CVPR, pages 7859-7863, 2024. 2
308
+ [49] Xu Zhao, Wenchao Ding, Yongqi An, Yinglong Du, Tao Yu, Min Li, Ming Tang, and Jinqiao Wang. Fast segment anything. arXiv preprint arXiv:2306.12156, 2023. 2
309
+ [50] Bolei Zhou, Hang Zhao, Xavier Puig, Tete Xiao, Sanja Fidler, Adela Barriuso, and Antonio Torralba. Semantic understanding of scenes through the ade20k dataset. IJCV, 127: 302-321, 2019. 3, 6
310
+ [51] Chong Zhou, Xiangtai Li, Chen Change Loy, and Bo Dai. Edgesam: Prompt-in-the-loop distillation for on-device deployment of sam. arXiv preprint arXiv:2312.06660, 2023. 2
CVPR/2025/Segment This Thing_ Foveated Tokenization for Efficient Point-Prompted Segmentation/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5620394b20f9d3d6221a6698ade067185d2ec17a26d97990d925d4d4e7728ce6
3
+ size 459507
CVPR/2025/Segment This Thing_ Foveated Tokenization for Efficient Point-Prompted Segmentation/layout.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7cb3971e1b35e0f3fa7aa21657a79be37f395bd24c6a57c437095b5759b15a82
3
+ size 338249
CVPR/2025/Segmenting Maxillofacial Structures in CBCT Volumes/9fcc46a3-6daf-45d8-9a08-aa8a9a72949e_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8602e5ef81037a2dac49e73125c7a2b52c1b7ade3380bc57f22e126c043dc02
3
+ size 93303
CVPR/2025/Segmenting Maxillofacial Structures in CBCT Volumes/9fcc46a3-6daf-45d8-9a08-aa8a9a72949e_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:00cdb4a0272ab8b47c39d179db6134d046637d71a46194901d685090b46349c0
3
+ size 114027
CVPR/2025/Segmenting Maxillofacial Structures in CBCT Volumes/9fcc46a3-6daf-45d8-9a08-aa8a9a72949e_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:357d90b031adf06ae989b9d0dfd178704ede2e35ce0e131d8f6aa5c4a9baeb2a
3
+ size 7722343
CVPR/2025/Segmenting Maxillofacial Structures in CBCT Volumes/full.md ADDED
@@ -0,0 +1,371 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Segmenting Maxillofacial Structures in CBCT Volumes
2
+
3
+ Federico Bolelli<sup>1, *</sup>, Kevin Marchesini<sup>1, *</sup>, Niels van Nistelrooij<sup>2, 3</sup>, Luca Lumetti<sup>1</sup>, Vittorio Pipoli<sup>1</sup>, Elis Ficarra<sup>1</sup>, Shankeeth Vinayahalingam<sup>2</sup>, Costantino Grana<sup>1</sup>
4
+
5
+ <sup>1</sup>University of Modena and Reggio Emilia, Italy
6
+ <sup>2</sup>Radboud University Medical Center, the Netherlands
7
+ <sup>3</sup>Charité - Universitätsmedizin Berlin, Germany
8
+
9
+ # Abstract
10
+
11
+ Cone-beam computed tomography (CBCT) is a standard imaging modality in orofacial and dental practices, providing essential 3D volumetric imaging of anatomical structures, including jawbones, teeth, sinuses, and neurovascular canals. Accurately segmenting these structures is fundamental to numerous clinical applications, such as surgical planning and implant placement. However, manual segmentation of CBCT scans is time-intensive and requires expert input, creating a demand for automated solutions through deep learning. Effective development of such algorithms relies on access to large, well-annotated datasets, yet current datasets are often privately stored or limited in scope and considered structures, especially concerning 3D annotations. This paper proposes ToothFairy2, a comprehensive, publicly accessible CBCT dataset with voxel-level 3D annotations of 42 distinct classes corresponding to maxillofacial structures. We validate the dataset by benchmarking state-of-the-art neural network models, including convolutional, transformer-based, and hybrid Mamba-based architectures, to evaluate segmentation performance across complex anatomical regions. Our work also explores adaptations to the nnU-Net framework to optimize multiclass segmentation for maxillofacial anatomy. The proposed dataset provides a fundamental resource for advancing maxillofacial segmentation and supports future research in automated 3D image analysis in digital dentistry.
12
+
13
+ # 1. Introduction
14
+
15
+ Medical imaging is currently employed in the clinical practice of dental treatments. Different modalities are available to assist in diagnosis, treatment planning, and surgery:
16
+
17
+ ![](images/c6497b378783967f7652036f8dd6199e6639712c99dd347eec98ed8f4a680ced.jpg)
18
+ Figure 1. Fully annotated sample from the proposed dataset.
19
+
20
+ 2D panoramic X-rays, 3D Intra-Oral Scans (IOS), and 3D Cone-Beam Computed Tomography (CBCT) [29]. Among the available modalities, CBCT is the only one providing comprehensive 3D volumetric information on all the anatomical structures in the orofacial area, including jawbones, complete teeth, sinuses, and neurovascular canals, becoming a standard modality for maxillofacial image analysis. Segmenting individual structures from CBCT images to reconstruct a precise 3D model is essential in digital dentistry for various clinical applications, including surgical planning and implant placement [16, 53].
21
+
22
+ Manual segmentation of CBCT scans is a time-consuming and labor-intensive process that requires specialized expertise. For this reason, automated algorithms using deep learning techniques offer a promising solution to alleviate this burden, enhance efficiency, and improve the consistency of segmentation results [41]. However, developing robust deep learning models heavily depends on the availability of large, annotated datasets. Unfortunately, existing datasets often focus on a limited number of anatomical structures — i.e., teeth or alveolar canal — and usually lack 3D annotations. The few available methods trained on
23
+
24
+ Table 1. Datasets used in literature to segment maxillofacial anatomical structures. Our analysis is limited to 3D imaging modalities, i.e., CBCTs and IOS. $\clubsuit$ means that only a portion of the data is available to the research community, i.e., 148 over 4531. Among these, only 97 are effectively usable for the training of automatic algorithms.
25
+
26
+ <table><tr><td rowspan="2">Anatomical Structure(s)</td><td rowspan="2">Image Modality</td><td rowspan="2">Authors</td><td rowspan="2">Year</td><td rowspan="2">Country</td><td rowspan="2"># Train &amp; Validation</td><td rowspan="2"># Test</td><td colspan="2">Label Type</td><td rowspan="2">Public</td></tr><tr><td>Train</td><td>Test</td></tr><tr><td rowspan="6">Inferior Alveolar Canal (IAC)</td><td rowspan="6">CBCT</td><td>Jaskari et al. [28]</td><td>2020</td><td>Finland</td><td>509</td><td>128</td><td>2D</td><td>128 2D, 15 3D</td><td>X</td></tr><tr><td>Lahoud et al. [33]</td><td>2022</td><td>Belgium</td><td>205</td><td>30</td><td>3D</td><td>3D</td><td>X</td></tr><tr><td>Usman et al. [48]</td><td>2022</td><td>South Korea</td><td>510</td><td>500</td><td>3D</td><td>3D</td><td>X</td></tr><tr><td>Cipriano et al. [11]</td><td>2022</td><td>Italy</td><td>332</td><td>15</td><td>332 2D, 76 3D</td><td>15 2D, 15 3D</td><td>✓</td></tr><tr><td>Chun et al. [10]</td><td>2023</td><td>South Korea</td><td>32</td><td>18</td><td>3D</td><td>3D</td><td>X</td></tr><tr><td>Bolelli et al. [6]</td><td>2023</td><td>Italy, Netherlands</td><td>443</td><td>50</td><td>443 2D, 153 3D</td><td>3D</td><td>✓</td></tr><tr><td rowspan="4">Teeth Crown, Teeth Root</td><td rowspan="4">CBCT</td><td>Cui et al. [16]</td><td>2022</td><td>China</td><td>4531</td><td>407</td><td>3D</td><td>3D</td><td>◇</td></tr><tr><td>Cui et al. [13]</td><td>2022</td><td>China</td><td>22</td><td>~</td><td>3D</td><td>~</td><td>✓</td></tr><tr><td>Dou et al. [17]</td><td>2022</td><td>China</td><td>35</td><td>5</td><td>3D</td><td>3D</td><td>X</td></tr><tr><td>Tae Jun Jang et al. [26]</td><td>2022</td><td>China</td><td>66</td><td>7</td><td>66 3D, 31 2D</td><td>7 3D, 4 2D</td><td>X</td></tr><tr><td rowspan="2">Teeth Crown</td><td rowspan="2">IOS</td><td>Ben-Hamadou et al. [3]</td><td>2022</td><td>Tunisia</td><td>1200</td><td>600</td><td>3D</td><td>3D</td><td>✓</td></tr><tr><td>Shankeeth et al. [49]</td><td>2023</td><td>Netherlands</td><td>1400</td><td>350</td><td>3D</td><td>3D</td><td>X</td></tr><tr><td>IACs, Teeth, Others</td><td>CBCT</td><td>Ours</td><td>2024</td><td>Italy, Netherlands</td><td>480</td><td>50</td><td>3D</td><td>3D</td><td>✓</td></tr></table>
27
+
28
+ 3D datasets leverage very small-sized training and testing sets ( $< 50$ CBCTs) [10, 13, 17], most of the time unavailable to the research community, limiting their generalizability to scans acquired with other imaging protocols and their applicability to diverse patient populations.
29
+
30
+ In this paper, we introduce a novel and unique dataset with 3D annotations of 42 distinct anatomical classes on maxillofacial CBCTs. The classes include jawbones, left and right Inferior Alveolar Canals (IACs), left and right maxillary sinus, pharynx, upper and lower teeth, including wisdom teeth, bridges, crowns, and dental implants. The proposed comprehensive dataset provides a rich resource for developing and benchmarking segmentation algorithms that require 3D anatomical annotations, providing a strong basis for the future development and evaluation of automated methods for maxillofacial image analysis (Fig. 1).
31
+
32
+ To validate the dataset, we further explore the performance of various state-of-the-art neural networks used in the literature for medical image segmentation: classical Convolutional Neural Networks (CNNs) like nnU-Net and its variants [24], transformer-based models such as TransU-Net [7] and UNETR++ [47], and hybrid Mamba-based architectures like UMamba [38], Swin-UMamba [34], and VMamba [35].
33
+
34
+ Specifically, we explore how to adapt and optimize the nnU-Net framework [24], a state-of-the-art, self-configuring segmentation method, to enhance the segmentation of all 42 anatomical structures in our dataset, by adjusting hyperparameters and augmentation strategies.
35
+
36
+ By leveraging our comprehensive dataset, we aim to advance the development of segmentation algorithms that can handle the complexities of 3D maxillofacial imaging. Our work not only contributes a valuable dataset to the research community but also provides insights into the optimization of neural network architectures for improved segmentation performance in complex anatomical regions.
37
+
38
+ In summary, our contributions are:
39
+
40
+ - The largest publicly available CBCT dataset with detailed 3D annotations covering 42 distinct maxillofacial anatomical structures, addressing a critical gap in existing research resources;
41
+ - A comprehensive comparative evaluation of state-of-the-art neural network architectures, encompassing convolutional networks, transformers, and hybrid models, to establish performance benchmarks using our dataset;
42
+ - Adaptation and optimization of the nnU-Net framework to target multi-class segmentation in complex maxillofacial anatomy, highlighting the impact of customized augmentation and hyperparameters tuning.
43
+
44
+ # 2. Related Works
45
+
46
+ # 2.1. Existing datasets
47
+
48
+ In maxillofacial analysis, existing research predominantly emphasizes developing AI applications that demonstrate high accuracy on carefully selected datasets; however, limited consideration has been given to examining the datasets employed in the training and evaluation phases of AI model development [45]. Current research has primarily used academic databases, which may not fully address AI-specific data needs, including the FAIR (Findability, Accessibility, Interoperability, and Reusability) principles [52]. Only a few dental studies make datasets available to the research community [6, 12, 13, 16], making it essential to seek alternative data sources to mitigate these limitations and to prioritize the creation of high-quality, medically validated, and AI-ready datasets. All of these datasets are confined to specific anatomical structures, particularly the IAC [12] or the teeth complex [16], and others provide binary segmentation classes only, without considering tooth-level labels [16].
49
+
50
+ Tab. 1 presents a comprehensive comparison of datasets used in state-of-the-art research.
51
+
52
+ # 2.2. Teeth segmentation
53
+
54
+ Multiple approaches to segmenting teeth in 3D data have been proposed, each introducing different challenges in clinical and computational applications [8].
55
+
56
+ Binary segmentation. When employing a simple binary semantic segmentation, the primary goal is to separate teeth from surrounding tissues without any distinction between individual teeth. While it is useful for basic assessments, its clinical utility is limited, especially when dealing with adjacent or closely spaced teeth. To improve accuracy, recent methods have utilized CNN-based architectures with custom modules, hybrid loss functions [21], a combination of 2D and 3D networks [20], and post-processing techniques, such as posterior probability maps and dense conditional random fields [42].
57
+
58
+ Instance segmentation. By contrast, when performing instance segmentation, teeth are segmented as separate instances, though they have not yet been assigned specific labels. Instance segmentation methods usually leverage a two-stage approach consisting of detection followed by segmentation. The detection stage locates individual tooth instances through various techniques, including bounding box detection [14, 18], heatmap prediction [54], or offset regression [15-17]. Once identified, localized regions around each tooth instance can be extracted to perform binary segmentation and identify precise boundaries.
59
+
60
+ Multi-class segmentation. With this approach, each tooth must be identified and assigned a specific label [32, 46] according to the FDI (Fédération Dentaire Internationale, also known as World Dental Federation) notation [25]. This is the most challenging of the three approaches, especially in cases with a complex anatomy, such as missing and impacted teeth, and will likely continue to benefit from more robust datasets and enhanced model architectures, motivating once again our proposed dataset.
61
+
62
+ Current literature can be split into single- and multi-stage methods. While the former leverages a single framework to produce the final classification, multi-stage methods incorporate additional steps. The more commonly employed strategy consists of downsampling the original CBCT or splitting it into multiple regions (e.g., the four dental arch quadrants) to generate a coarse multi-class segmentation, later refining individual tooth segments by isolating volumes of interest and enhancing local details [46, 50].
63
+
64
+ # 2.3. IAC segmentation
65
+
66
+ Since the advent of CBCT technology in the early 2000s, substantial effort has been dedicated by the scientific community to developing automated systems for segmenting the inferior alveolar canal from 3D scans [44]. With the rise of deep learning in medical diagnosis, learning-based networks [23, 27, 28] have outclassed traditional computer vision techniques [1, 4, 30, 31, 40, 51].
67
+
68
+ Early work by Jaskari et al. [28] applied the U-Net [43] architecture on a coarsely annotated dataset, achieving promising results compared to traditional methods, though limited by the lack of dense annotations.
69
+
70
+ Lahoud [33] advanced this line of research by training a 3D U-Net with both interpolated control points and finer voxel-level annotations, though, again, access to data and code was restricted. Significant progress in the segmentation of the IAC came with the release of the first public CBCT dataset containing 2D and 3D annotations of the mandibular canal [11, 12]. Contextually, authors introduced PosPadUNet3D, a modified 3D U-Net that segments IAC in stages by expanding sparse 2D labels into 3D annotations, thus generating additional synthetic labels and using such generated data in combination with expert-labeled 3D voxel data to train the final U-Net based model.
71
+
72
+ Usman et al. [48] proposed a two-stage U-Net approach to address class imbalance between the mandibular canal and background, using CNNs to isolate regions of interest (ROIs) before segmentation, while Zhao et al. [55] introduced a Frenet frame-based method to better capture mandibular topology and maintain canal structure during segmentation. More recently, Lv et al. [37] developed a transformer-based model with adaptive image processing and a "deep label fusion" technique to enhance label consistency across sparse public data, building on Cipriano's label expansion methodology.
73
+
74
+ Finally, Lumetti et al. [36] tackled issues with patch-based learning by using a memory-augmented transformer encoder to improve spatial coherence in the U-Net bottleneck, enriching patch context and improving segmentation.
75
+
76
+ IAC segmentation remains a challenging area with room for further advancements, largely dependent on access to comprehensive, high-quality 3D datasets.
77
+
78
+ # 3. The ToothFairy2 Dataset
79
+
80
+ The proposed dataset, ToothFairy2, represents the most extensive publicly available and fully annotated collection of dental CBCT scans. It comprises 530 3D volumes, of which 480 are entirely accessible for training purposes<sup>1</sup> while the remaining 50 are reserved exclusively for evaluation. Although these 50 scans are not directly accessible for model training, researchers can evaluate their models on this test set via the grand-challenge platform,<sup>2</sup> which automatically runs the submitted models and provides performance results. In this way, we ensure that researchers will not incur the risk of mixing training and testing data and that the reported results will not suffer from the random choice of the testing data subset selection.
81
+
82
+ The training data (480 scans) were acquired by the Af
83
+
84
+ ![](images/c62f5df6e6670faef9858424eb30e7517b66151085efbd63dc75c6b21bf4fcaf.jpg)
85
+
86
+ ![](images/892b667ffd7904ce0080cdfa4a51863bdfce1264f010d79122b4802e1bc14dff.jpg)
87
+
88
+ ![](images/3d26511f772bf29bbba51f13a64f9e029685cb6a18769b09fb6e83f24fcb7c6c.jpg)
89
+
90
+ ![](images/6f09b7989ac5bed90862b732c669f72ef195dcd00fe729a4b9e3c127304b153a.jpg)
91
+
92
+ ![](images/27b27a259850fd96d2ed16232ffd86a61a29346343d3cc9e9e285e5972a0a2fe.jpg)
93
+
94
+ ![](images/1dde50e6d9231b74de8c8c4ccf1cac8c07d9cfed147a61ba702fc12d85b11305.jpg)
95
+
96
+ ![](images/d7063cc7e1721da1c808223d527d3c33cfcb2a21d92d629cbe0dcd490b0a2ed0.jpg)
97
+
98
+ ![](images/cc316baf243064c0b7ccad9330240050630a61a240f4e3b4ce4705919cfe9fc4.jpg)
99
+
100
+ ![](images/2b7f174e7dd67da0bb41bb4c9382c3928fa431e66cfc2c94e4d9daad4cab7a1d.jpg)
101
+
102
+ ![](images/96cef07db3696de64009751a4df59b0c8c304a4b2f41c2881e3d87cde3298eb1.jpg)
103
+
104
+ ![](images/410d861eb8a55c327e74b5f2c0c409f9ae75347c9a7a393845edaa4aea11fd13.jpg)
105
+
106
+ ![](images/1135e09da3c6521ac8d8948247a84be4b16160f73ae170521f843980fbb6e87f.jpg)
107
+
108
+ ![](images/5066c58cea10fc2e254ea477cd63300c603f4262d11a499795131e2df9ce855a.jpg)
109
+ Figure 2. Dataset samples, one patient per line. For each view, i.e., left, frontal, and right, both raw CBCT data and labels are provided.
110
+
111
+ ![](images/a8db2fd95d352d7a92b694a33353522ecee9478e548b15175aff376a5dc0d032.jpg)
112
+
113
+ ![](images/062b1c653c63a93480af8d5d8b6e3bde95df98693100483bf60bf331960a09df.jpg)
114
+
115
+ ![](images/64ea54a318a1650de52c08ab35ad06b351ea57c0d9757367ea59fce3947584dd.jpg)
116
+
117
+ ![](images/330c772e3095e469b1837dd7afe7df754f05e614f1a3dc62313235446d45a030.jpg)
118
+
119
+ ![](images/94c5d9027e226a36bebf5329d1a606328d5393ab226a016da7373a88f39f1661.jpg)
120
+
121
+ fidea Center, a pan-European healthcare group that specializes in advanced diagnostics, laboratory analyses, rehabilitation, and cancer diagnosis and treatment. The scans were obtained through Cone Beam Computed Tomography (CBCT) via a NewTom/NTVGiMK4, operating at $3\mathrm{mA}$ , 110 kV, and offering $0.3\mathrm{mm}$ isotropic voxels (Fig. 2). The test data (50 scans) were provided by the Department of Oral and Maxillofacial Surgery at Radboud University Medical Centre, Nijmegen, obtained using a standard CBCT scanning protocol with the i-CAT 3D Imaging System. The scans were performed with a field of view measuring $16\mathrm{cm}$ in diameter and $22\mathrm{cm}$ in height. The scanning process involved two scans of 20 seconds each, resulting in an isotropic voxel size of $0.4\mathrm{mm}$ . These were later rescaled to match the voxel size of the training data before annotation.
122
+
123
+ Every patient was anonymized and we only kept a few personal details—namely gender, age, and year of the scan. Specifically, $58.30\%$ of the patients are female (58.54% in the training set, 56.00% in the test set), all the scans were performed between 2019 and 2024, and volumes belong to patients with ages in range (10-100] with the highest frequencies in ranges (20-30] and (60-70] for the training set and (50-70] for the test set.
124
+
125
+ # 3.1. Annotation protocol and tools
126
+
127
+ The inclusion of densely labeled 3D data is necessary in order to achieve the full potential of CNNs [22]. 3D annotations refer to the annotation process carried out by medical professionals directly at the voxel level on CBCT scans. This annotation approach involves detailed markings applied to the individual voxels, providing a more precise depiction of the structures involved.
128
+
129
+ As often happens in medical image annotation, accurate delineation of individual teeth and maxillofacial structures is a complex and time-consuming process, which requires
130
+
131
+ expert eyes to be achieved. To reduce the burden of the annotators while ensuring high-quality labels, we employed a semi-automated approach that was fully supervised by clinicians. The annotation process was performed by 7 different maxillofacial experts. To prevent models trained on our dataset from being rewarded for learning annotator-specific biases and to allow for the understanding of their generalizability, 5 of the annotators focused on the training set only, while the remaining 2 handled the test cases only.
132
+
133
+ Since labeling voxels directly on 3D views is ambiguous and prone to errors, our annotations have been performed on 2D slices. Moreover, to reduce the jagged effect that usually occurs when annotating 3D objects on 2D, the annotation is performed with multiple iterations, starting from the axial (or transversal) view and later refined by analyzing the scan from the sagittal and coronal (or frontal) planes.
134
+
135
+ For each patient, a single annotation is provided, including the following classes: upper and lower jawbone, left and right inferior alveolar canal, maxillary sinuses, pharynx, and upper and lower teeth, including wisdom teeth, bridges, crowns, and dental implants. The annotation was produced by a single expert only but validated by a second one to reduce possible mistakes.
136
+
137
+ In our work, we leverage five different base models built on the nnU-Net framework to provide an initial annotation that is later adjusted and refined by expert clinicians. Each of the models has been trained on a specific (group of) classes, including the jawbone (upper and lower), inferior alveolar canal (left and right branches), maxillary sinus (left and right), pharynx, and teeth. Regarding inferior alveolar canal branches and teeth, we leverage two datasets available in the literature, [12] and [16], respectively. Even when annotating the first volumes of our dataset, clinicians were provided with an initial segmentation of teeth and canals and were required to modify, update, or remove wrongly an
138
+
139
+ ![](images/437384607e6b776c109cee80ccd8efce4f2a2067ab8432ab9af2d0fbe477c63a.jpg)
140
+ (a) Dense Point Set
141
+
142
+ ![](images/374d69b7cae879f6c0f6d72f09c34df766f216429edb12533e798bf661059a6b.jpg)
143
+ (b) Voxelized Teeth
144
+
145
+ ![](images/d99b8de6de5372c3266eea0789923ad6e96984cdf720dc17f4d01e69e048f336.jpg)
146
+ Figure 3. Annotations post-processing. The annotations produced as described in Sec. 3 are dense and jagged (a). For this reason, we compute a concave $\alpha$ -shape, which, after voxelization, produces the volumes in (b). Such an approach is applied to all of the anatomical structures involved in our dataset but the jawbones, whose annotations contain multiple holes.
147
+ (a) Point Set
148
+ Figure 4. $\alpha$ -shape construction process for the point set of (a). In the Delaunay triangulation (b), triangles with circumradius $\leq -\frac{1}{\alpha}$ form a simplicial subcomplex known as $\alpha$ -complex (c), whose border is the $\alpha$ -shape (d).
149
+
150
+ ![](images/48ccff90583382753def5c2a9840ba91413e7ccd3a414a8bedc086ff34140422.jpg)
151
+ (b) Triangulation
152
+
153
+ ![](images/4ddb4d222bd2c3a6c9be1b2c0e5e213c77fb70df9cac67a8bef255ebd66a48e3.jpg)
154
+ (c) $\alpha$ -complex
155
+
156
+ ![](images/54083ad3159b4228138f2d246cc196dc5b99fff28d164a87329fd9b71fa959a9.jpg)
157
+ (d) $\alpha$ -shape
158
+
159
+ notated voxels. Following an iterative approach, as soon as 20 more annotated volumes were available, the base models were retrained from scratch by including the new data. Following such an approach, clinicians are provided with better annotation proposals at each iteration, reducing the annotation effort and time at the increase of annotated volumes. Since jawbone, maxillary sinus, and pharynx classes were not available in any public dataset, these classes have been annotated from scratch in the first 20 volumes without leveraging any automatic proposal.
160
+
161
+ # 3.2. Annotation refinement
162
+
163
+ Even though the annotation process is performed on multiple planes, one after the other, artifacts due to 3D annotations performed on 2D views remain a challenge, albeit reduced (Fig. 3a). In order to obtain a smooth polygonal mesh out of expert-produced annotations, we compute a concave $\alpha$ -shape. The $\alpha$ -shape [19] is a generalization of the convex hull aimed at representing the intuitive concept of the shape of a point set. The only parameter of the algorithms is $\alpha \in \mathbb{R}$ , which regulates the "crudeness" of the result. Let's define a generalized disk of radius $\frac{1}{\alpha}$ as $D_{\alpha}$ :
164
+
165
+ $$
166
+ D _ {\alpha} \left\{ \begin{array}{l l} \text {T h e c o m p l e m e n t o f a d i s c o f r a d i u s} - \frac {1}{\alpha}, & \text {i f} \alpha < 0 \\ \text {A h a l f p l a n e ,} & \text {i f} \alpha = 0 \\ \text {A d i s c o f r a d i u s} \frac {1}{\alpha}, & \text {i f} \alpha > 0 \end{array} \right. \tag {1}
167
+ $$
168
+
169
+ Given a point set $S$ and a value for $\alpha$ , the $\alpha$ -shape is con-
170
+
171
+ structed in this way: an edge is put between two points $p_i$ and $p_j$ whenever there exists a $D_{\alpha}$ with $p_i$ and $p_j$ lying on its boundary, and which contains the entire $S$ . When $\alpha = 0$ , this procedure constructs the convex hull; instead, cruder or finer shapes can be respectively obtained using positive or negative $\alpha$ values. Because of the geometrical nature of the alveolar nerve, we are specifically interested in concave $\alpha$ -shapes, achievable when $\alpha < 0$ .
172
+
173
+ The most common method for computing a concave $\alpha$ -shape consists of taking the border of a simplicial subcomplex extracted from the Delaunay triangulation, containing only triangles with circumradius $\leq -\frac{1}{\alpha}$ . An example of the process is depicted in Fig. 4.
174
+
175
+ The above concepts can be extended to the three-dimensional case by substituting disks and triangles with spheres and tetrahedra, respectively. After creating an $\alpha$ -shape polygonal mesh starting from dense annotations, it is converted into a binary raster volume by means of voxelization: the final result is given in Fig. 3b.
176
+
177
+ # 3.3. Accessibility
178
+
179
+ The resulting annotated volumes have been packed following the nnU-Net dataset format, which comprises three different components: raw images, corresponding segmentation maps, and a dataset. .json file specifying the metadata. The class IDs are an extension of the FDI notation and include a total of 42 classes. Final 3D volumes and labels are provided in the .mha format.
180
+
181
+ Ethics approval. The training data received ethical committee approval from Comitato Etico dell'Area Vasta Emilia Nord (Approval Number 1374/2020/OSS/ESTMO SIRER ID 1275 - NAICBCT-D) and can be downloaded under the CC BY-SA license after user registration.
182
+
183
+ # 4. Experiments
184
+
185
+ In order to validate the effectiveness of the proposed dataset, experiments have been performed considering two different datasets: the one proposed with this paper and the publicly released subset of the dataset proposed by Cui et al. [15], which is the only dataset publicly available in the literature for multi-class tooth instance segmentation. Many of the dental-related scientific papers promising the release of the dataset upon request [2, 9] have ignored our emails.
186
+
187
+ # 4.1. Evaluation metrics
188
+
189
+ In our experiments, two widely accepted metrics for the segmentation task [39] have been employed, namely Dice Similarity Coefficient (DSC in $\%$ ) and the 95th percentile Hausdorff Distance (HD95 in mm).
190
+
191
+ The DSC has the same meaning as the IoU (Intersection over Union), but DSC is better suited when the region of interest is significantly smaller than the background. In such
192
+
193
+ Table 2. Results on the test set of the proposed dataset. Classes are grouped by the main anatomical structure to which they belong. Default nnU-Net plan is employed. The best results are in bold, while the second best are underlined.
194
+
195
+ <table><tr><td rowspan="2" colspan="2">Model</td><td colspan="2">Average</td><td colspan="2">L/R IAC</td><td colspan="2">L/R Sinus</td><td colspan="2">Teeth</td><td colspan="2">Jawbones</td><td colspan="2">Pharynx</td><td colspan="2">Others</td></tr><tr><td>DSC</td><td>HD95</td><td>DSC</td><td>HD95</td><td>DSC</td><td>HD95</td><td>DSC</td><td>HD95</td><td>DSC</td><td>HD95</td><td>DSC</td><td>HD95</td><td>DSC</td><td>HD95</td></tr><tr><td rowspan="2">CNNs</td><td>nnU-Net [24]</td><td>70.92</td><td>17.86</td><td>71.34</td><td>29.11</td><td>64.81</td><td>28.39</td><td>73.17</td><td>18.32</td><td>90.31</td><td>12.53</td><td>95.66</td><td>19.23</td><td>29.50</td><td>20.95</td></tr><tr><td>nnU-Net ResEnc [24]</td><td>74.16</td><td>14.48</td><td>73.01</td><td>27.81</td><td>65.71</td><td>29.99</td><td>76.48</td><td>14.26</td><td>91.77</td><td>12.53</td><td>95.26</td><td>17.75</td><td>37.10</td><td>16.32</td></tr><tr><td rowspan="3">Transf.</td><td>TransU-Net [7]</td><td>70.32</td><td>20.17</td><td>81.96</td><td>11.99</td><td>59.69</td><td>59.76</td><td>72.46</td><td>15.04</td><td>90.33</td><td>49.02</td><td>87.89</td><td>42.87</td><td>27.68</td><td>22.65</td></tr><tr><td>nnFormer [56]</td><td>76.79</td><td>5.45</td><td>72.28</td><td>10.06</td><td>75.11</td><td>8.22</td><td>79.37</td><td>2.94</td><td>91.50</td><td>20.09</td><td>90.85</td><td>24.53</td><td>18.95</td><td>13.67</td></tr><tr><td>UNETR++ [47]</td><td>71.43</td><td>17.23</td><td>68.87</td><td>15.10</td><td>74.51</td><td>15.48</td><td>73.70</td><td>17.91</td><td>92.38</td><td>5.44</td><td>91.60</td><td>18.96</td><td>26.21</td><td>19.70</td></tr><tr><td rowspan="3">Mamba</td><td>UMamba [38]</td><td>85.05</td><td>5.28</td><td>85.26</td><td>16.23</td><td>77.02</td><td>4.35</td><td>86.58</td><td>2.23</td><td>90.05</td><td>22.17</td><td>92.18</td><td>25.25</td><td>43.89</td><td>13.97</td></tr><tr><td>VMamba [35]</td><td>73.13</td><td>5.17</td><td>60.62</td><td>9.94</td><td>73.20</td><td>9.89</td><td>75.99</td><td>3.39</td><td>90.75</td><td>7.17</td><td>88.23</td><td>23.95</td><td>14.86</td><td>14.63</td></tr><tr><td>Swin-UMamba [34]</td><td>79.64</td><td>2.94</td><td>72.64</td><td>2.02</td><td>87.75</td><td>2.38</td><td>80.71</td><td>2.59</td><td>94.29</td><td>4.25</td><td>93.05</td><td>2.79</td><td>25.30</td><td>14.93</td></tr></table>
196
+
197
+ a context, more weight is given to the correctly identified region, making the DSC more robust and informative than IoU. The relationship between DSC and IoU is expressed by the following formula:
198
+
199
+ $$
200
+ D S C (P, G T) = \frac {2 \times | P \cap G T |}{| P | + | G T |} = \frac {2 \times I o U}{1 + I o U} \tag {2}
201
+ $$
202
+
203
+ where $P$ is the model prediction and $GT$ is the ground truth.
204
+
205
+ On the other hand, the HD95 computes the maximum distance between two sets of points, considering the 95th percentile of these distances. In general, the 95th percentile of the distances between boundary points in A and B is defined as follows:
206
+
207
+ $$
208
+ \mathrm {d} _ {9 5} (A, B) = \mathrm {x} _ {a \in A} ^ {9 5} \left\{\min _ {b \in B} d (a, b) \right\} \tag {3}
209
+ $$
210
+
211
+ where $x_{a \in A}^{95}$ denotes the 95th percentile of the elements in the set enclosed within the brackets. Given the set formed by the pixels in the predicted mask $(P)$ and the set of pixels belonging to the ground truth $(GT)$ , the Hausdorff distance is determined as the maximum value of the two distances between $P$ and $GT$ and $GT$ and $P$ at the 95th percentile:
212
+
213
+ $$
214
+ \mathrm {H D 9 5} (\mathrm {P}, \mathrm {G T}) = \max \left\{d _ {9 5} (P, G T), d _ {9 5} (G T, P) \right\} \tag {4}
215
+ $$
216
+
217
+ By using the 95th percentile, this metric provides a robust evaluation that is less sensitive to outliers or extreme differences between the sets of points.
218
+
219
+ # 4.2. Compared algorithms
220
+
221
+ Experimental analysis has been conducted on recently proposed general-purpose state-of-the-art algorithms for segmenting medical 3D volumes, considering all of the top-notch architecture (i.e., CNNs, Transformers, and Mamba-based hybrid solutions). For what concerns CNNs, we include the original nnU-Net [24] configuration making use of the U-Net architecture (nnU-Net), and its variations leveraging residual connections in the encoder (nnU-Net ResEnc). The considered Tranformer-based architectures are TransU-Net [7], UNETR++ [47], and the recently published nnFormer [56]. Finally, we include UMamba [38], VMamba [35], and Swin-UMamba [34] as the representatives of solutions based on state-space models.
222
+
223
+ # 4.3. Experimental setting
224
+
225
+ In all of the experiments carried out, we adopted a standardized scheme for hyperparameters configuration. More specifically, we leverage the planning provided by the nnU-Net framework. For intrinsically 3D algorithms, i.e., nnU-Net, TransU-Net, nnFormer, UNETR++, and UMamba, the nnU-Net planning applied to the training set of the proposed dataset suggests a patch size of $80 \times 160 \times 160$ , and a batch size of 2. The only exception is the nnU-Net ResEnc, which adopts a patch size of $122 \times 224 \times 256$ . On the other hand, models that produce 3D segmentations working slice-by-slice, i.e., VMamba and Swin-UMamba, have a suggested patch size of $384 \times 384$ and a batch size of 19.
226
+
227
+ All the images in the training set of the proposed dataset have the same spacing (0.3 mm isotropic), so no resampling is required. The volumes from the secondary dataset employed in our experiments, Cui et al. [16], have a mixed voxel spacing instead, so they have been resampled to match $0.3\mathrm{mm} \times 0.3\mathrm{mm} \times 0.3\mathrm{mm}$ .
228
+
229
+ Models are trained from scratch without any pre-training data. The nnU-Net three-fold cross-validation schema has always been employed for model selection. All the models have been trained for a total of 1000 epochs on a 48GB A40 Nvidia GPU using CUDA 11.8 and PyTorch 2.1.2.
230
+
231
+ # 4.4. Results
232
+
233
+ To fully explore the capabilities of state-of-the-art models on the proposed comprehensive dataset, Tab. 2 is provided. For space constraints, results are grouped by anatomical structures by averaging single-class results. The "others" column includes implants, artificial crowns, and bridges. Surprisingly, 2D models, i.e., VMamba and Swin-UMamba, outperform intrinsically 3D ones in many scenarios. Although performance is satisfying, 2D models lack the ability to fully capture and learn the spatial relationships between the 3D structures in the maxillofacial region due to a loss of contextual information and a limited capacity to learn effective representations of complex structures. This is also confirmed by the qualitative results discussed in Sec. 4.7, where it is evident that predictions are more noisy and seem fragmented. Anyway, their local ability to dis
234
+
235
+ Table 3. Results on the test set of the proposed dataset when using variations of the nnU-Net ResEnc.
236
+
237
+ <table><tr><td>Model</td><td>DSC</td><td>HD95</td></tr><tr><td>Default</td><td>74.16</td><td>14.48</td></tr><tr><td>w/o l/r mirroring</td><td>80.79</td><td>12.37</td></tr><tr><td>w/o l/r mirroring, increased depth</td><td>82.11</td><td>11.86</td></tr><tr><td>w/o l/r mirroring, increased depth, post-processing</td><td>84.99</td><td>8.57</td></tr></table>
238
+
239
+ criminate among classes ensures high-level performance.
240
+
241
+ Overall, Mamba-based architectures are the most effective in this context. Among all, UMamba provides the best performance. Blending convolutions to model precise spatial information and state-space models to learn long-range voxel-level interactions ensures high accuracy. Mamba provides a global context alongside voxel-wise precision, the former missing in traditional convolutional layers due to limited receptive fields and the latter absent in Transformers due to computational complexity. Moreover, it requires less training data to converge, making it more suitable in the medical field where access to data is limited.
242
+
243
+ Considering the different classes available in the dataset, jawbones and pharynx achieved the highest DSC scores, independently from the considered model. This could be explained by the consistent anatomical shape those structures display throughout the entire dataset. Performance drops when it comes to segmenting classes subject to more variability, like teeth; their position and orientation change considerably from patient to patient, there might be missing teeth, or they can be covered by artificial crowns, or completely replaced by implants or bridges. It is not uncommon for the models to confuse artificial with natural teeth. Independently from the model employed, the worst performances are obtained when segmenting "others" classes, which represent all of the artificial structures that restore or replace natural teeth. One reasonable explanation is that these classes are underrepresented in the proposed dataset.
244
+
245
+ # 4.5. Improving default nnU-Net configuration
246
+
247
+ To augment the training dataset and improve performance, the nnU-Net framework applies mirroring along multiple spatial dimensions. Such an augmentation usually improves model performance, providing additional useful training data without compromising the ability to differentiate between left and right organs. In the maxillofacial context, however, there is pronounced symmetry between structures: teeth, nerves, and maxillary sinuses are all symmetrical w.r.t. to the sagittal plane splitting the face. In such a scenario, ensuring precise orientation is fundamental. The application of the left/right mirroring augmentation has exactly the opposite effect: instead of increasing model performance and generalization capabilities, it leads to a drop in the model's ability to establish a reliable left/right distinction, downgrading overall performance (Tab. 3). Additionally, given the complexity of the proposed dataset, we
248
+
249
+ Table 4. Results on the test set of the proposed dataset when using our plan w/o post-processing.
250
+
251
+ <table><tr><td rowspan="2"></td><td rowspan="2">Model</td><td colspan="2">Default Plan</td><td colspan="2">Our Plan</td></tr><tr><td>DSC</td><td>HD95</td><td>DSC</td><td>HD95</td></tr><tr><td rowspan="2">CNNs</td><td>nnU-Net [24]</td><td>70.92</td><td>17.86</td><td>78.24</td><td>13.36</td></tr><tr><td>nnU-Net ResEnc [24]</td><td>74.16</td><td>14.48</td><td>82.11</td><td>11.86</td></tr><tr><td rowspan="3">Transf.</td><td>TransUNet [7]</td><td>70.32</td><td>20.17</td><td>75.12</td><td>7.17</td></tr><tr><td>nnFormer [56]</td><td>76.79</td><td>5.45</td><td>79.12</td><td>5.15</td></tr><tr><td>UNETR++ [47]</td><td>71.43</td><td>17.23</td><td>83.57</td><td>3.04</td></tr><tr><td rowspan="3">Mamba</td><td>UMamba [38]</td><td>85.05</td><td>5.28</td><td>85.39</td><td>4.70</td></tr><tr><td>VMamba [35]</td><td>73.13</td><td>5.17</td><td>74.21</td><td>4.37</td></tr><tr><td>Swin-UMamba [34]</td><td>79.64</td><td>2.94</td><td>81.95</td><td>2.91</td></tr></table>
252
+
253
+ enriched the network topology by introducing an additional layer. Such an enhancement ensures an increased receptive field in the bottleneck of the network, improving contextual information and the model's ability to identify long-range relationships between structures. Finally, considering the nature of the structures involved in the dataset, all of the voxels belonging to the same class should be in a close relationship and connected to each other. For this reason, we introduce a post-processing technique that computes connected components [5] and filters out predictions that are below a given threshold or the smallest prediction if multiple objects for the same class are identified by the model. Thresholds are computed per class using statistics on the training dataset, i.e., minimum connected component volume. Such a procedure ensures us an additional gain of more than 2 DSC points on the proposed dataset.
254
+
255
+ Finally, in order to confirm the effectiveness of the improved nnU-Net planning on the proposed dataset, i.e., disabling $1 / \mathbf{r}$ mirroring and the deeper network topology, we apply the same strategy to all of the considered models. Results are reported in Tab. 4.
256
+
257
+ # 4.6. Comparison with existing datasets
258
+
259
+ Tab. 5 provides a comparison of state-of-the-art models, one from each category, trained on either the proposed data or a subset of it and Cui et al. [16]. To perform a fair comparison, we selected 82 random scans from both datasets to be used for training. Since [16] includes only tooth annotations, we set all non-teeth classes to background. Selected models are evaluated on our complete test set, the full Cui dataset, and its 15 volumes not used for training.
260
+
261
+ A column-wise comparison of the results suggests that the volume of data has only a marginal impact on overall tooth segmentation performance but is critical for demographic generalizability. Additionally, models trained on our dataset generalize more effectively to the Cui dataset, while those trained exclusively on Cui experience a dice score reduction of up to 10 points when evaluated on our dataset compared to their own test set. Notably, UMamba demonstrates consistently strong performance across both datasets, highlighting its robust generalization capabilities.
262
+
263
+ ![](images/045e0734483b549b5f7392b2b4aaa5c21dd439bfd9c032bf7ddf3f65731ffb99.jpg)
264
+ (a) Ground-Truth
265
+
266
+ ![](images/3862bf74f08fc7e82fc722f2d86e53ef8a93b80759e8118ef6012bb7eb6b34f6.jpg)
267
+ (b) nnU-Net ResEnc
268
+
269
+ ![](images/395b9e71c268f0bb7ec736d799e3cd7b96a7cb3ec5a2eeeda961622e81a3f878.jpg)
270
+ (c) nnFormer
271
+ Figure 5. Qualitative results obtained with the proposed plan w/o post-processing, one patient per line. Red squares identify relevant errors.
272
+
273
+ ![](images/d03e3f9ff58e7f80876a654df3f95883029dca087e7d190d1789eccb73d1494a.jpg)
274
+ (d) UNETR++
275
+
276
+ ![](images/f97b8b7e869583981ee87cb5264e8f0c9ae0264e2dd5dcef93dcc6d0c90fc4ae.jpg)
277
+ (e) UMamba
278
+
279
+ ![](images/5c3c739ce76bf7010a486f51f98885faa4330199cfe6c3fd3130e23080e2583a.jpg)
280
+ (f) VMamba
281
+
282
+ ![](images/3453eaa049d28da8dd11b1be0789002126466613f2d0eca2dca42c0fb5763bd5.jpg)
283
+ (g) Swin-UMamba
284
+
285
+ Table 5. Dice comparison between our and Cui [16] datasets considering only teeth classes and converting others to background. Our plan w/o post-processing is employed.
286
+
287
+ <table><tr><td rowspan="2">Training Dataset</td><td rowspan="2">Model</td><td colspan="3">Testing Dataset</td></tr><tr><td>Our (test)</td><td>Cui (all)</td><td>Cui (15 scans)</td></tr><tr><td rowspan="3">Our (all the 480 training scans)</td><td>nnU-Net [24]</td><td>91.12</td><td>81.86</td><td>82.13</td></tr><tr><td>nnFormer [56]</td><td>85.16</td><td>79.19</td><td>80.25</td></tr><tr><td>UMamba [38]</td><td>90.97</td><td>87.60</td><td>87.90</td></tr><tr><td rowspan="3">Our (82 scans from training)</td><td>nnU-Net [24]</td><td>90.04</td><td>79.67</td><td>81.12</td></tr><tr><td>nnFormer [56]</td><td>82.72</td><td>74.85</td><td>77.42</td></tr><tr><td>UMamba [38]</td><td>90.18</td><td>86.23</td><td>87.71</td></tr><tr><td rowspan="3">Cui (82 scans over 97 available)</td><td>nnU-Net [24]</td><td>78.05</td><td></td><td>88.52</td></tr><tr><td>nnFormer [56]</td><td>70.63</td><td>~</td><td>74.35</td></tr><tr><td>UMamba [38]</td><td>79.95</td><td></td><td>89.74</td></tr></table>
288
+
289
+ # 4.7. Qualitative evaluation
290
+
291
+ Fig. 5 depicts a qualitative comparison of the selected state-of-the-art segmentation models trained on the proposed dataset when using the previously introduced personalized nnU-Net planning. The lack of contextualized 3D receptive fields of the 2D VMamba is evident, especially on elongated objects like the inferior alveolar canal (first line). Transformer-based architectures, UNETR++ and nnFormer, produce more noisy labels. While some can be easily removed by employing post-processing techniques, the majority will remain. Interestingly, all of the 3D models mistakenly label the plastic chin support used to acquire the CBCT with a mix of artificial crown (yellow label, second line) and pharynx (gray label, second line). This has a negative impact on the HD95 of both "other" and pharynx classes. The local discriminative capabilities of 2D models make them stronger, avoiding this misidentification and explaining the lower HD95 values.
292
+
293
+ All of the models except UNETR++ correctly recognize the first upper premolar implant (red label within the upper jawbone, second line). However, none of them label the artificial crown of the same tooth as such.
294
+
295
+ # 5. Conclusions and Limitations
296
+
297
+ In this paper, we presented the largest publicly available annotated CBCT dataset with 3D segmentations for 42 dis
298
+
299
+ tinct maxillofacial anatomical structures, offering a valuable resource for developing and benchmarking automated segmentation models in digital dentistry and addressing a significant gap in the literature. Our dataset supports detailed multi-class segmentation across complex maxillofacial anatomy, enabling improved model training, evaluation, and generalization for clinical applications such as surgical planning and implant placement. Extensive benchmark evaluations of state-of-the-art neural network architectures on our dataset highlight the potential of existing models in enhancing the accuracy and efficiency of maxillofacial image analysis, also demonstrating the significance of the proposed dataset. Moreover, we demonstrated different techniques that can be adopted w.r.t. the standard nnU-Net planning to improve the overall performance of state-of-the-art models when trained on complex CBCT datasets such as the one proposed in this paper.
300
+
301
+ Limitations and future work. Despite its significant contributions, our dataset has limitations that should be further addressed in the future. Although training and testing data come from different machines and acquisition centers, limiting potential biases in the evaluation, training data was acquired from a single center, potentially affecting the generalizability of models trained on this dataset to other clinical environments or patient demographics. Furthermore, while the dataset includes a wide range of classes, some—implants, crowns, and bridges—are underrepresented, affecting the robustness of model performance. Additionally, some components encountered in maxillofacial imaging, such as dental braces and bone plates, are missing due to their unavailability in the current patient cohort. Future work should focus on expanding this dataset to include multi-center data, ensuring a more representative sample of anatomical and demographic diversity. Including more cases with underrepresented and missing classes would further enhance the dataset's utility, supporting more comprehensive models. We believe that this dataset provides a strong foundation for advancing automated maxillofacial segmentation, and we encourage the research community to build upon it to address the outlined limitations.
302
+
303
+ # Acknowledgments
304
+
305
+ This work was supported by the University of Modena and Reggio Emilia and Fondazione di Modena, through the FAR 2024 and FARD-2024 funds (Fondo di Ateneo per la Ricerca 2024) and by the Italian Ministry of Research under the complementary actions to the NRRP "Fit4MedRob - Fit for Medical Robotics" Grant (#PNC0000007).
306
+
307
+ # References
308
+
309
+ [1] Fatemeh Abdolali, Reza Aghaeizadeh Zoroofi, Maryam Abdolali, Futoshi Yokota, Yoshito Otake, and Yoshinobu Sato. Automatic segmentation of mandibular canal in cone beam CT images using conditional statistical shape model and fast marching. International Journal of Computer Assisted Radiology and Surgery, 12:581-593, 2017. 3
310
+ [2] Khalid Ayidh Alqahtani, Reinhilde Jacobs, Andreas Smolders, Adriaan Van Gerven, Holger Willems, Sohaib Shujaat, and Eman Shaheen. Deep convolutional neural network-based automated segmentation and classification of teeth with orthodontic brackets on cone-beam computed tomographic images: a validation study. European Journal of Orthodontics, 45(2):169-174, 2023. 5
311
+ [3] Achraf Ben-Hamadou, Ouussama Smaoui, Ahmed Rekik, Sergi Pujades, Edmond Boyer, Hoyeon Lim, Minchang Kim, Minkyung Lee, Minyoung Chung, Yeong-Gil Shin, et al. 3DTeethSeg'22: 3D Teeth Scan Segmentation and Labeling Challenge. arXiv preprint arXiv:2305.18277, 2023. 2
312
+ [4] Jonathan Blacher, Scott Van DaHuvel, Vijay Parashar, and John C Mitchell. Variation in Location of the Mandibular Foramen/Inferior Alveolar Nerve Complex Given Anatomic Landmarks Using Cone-beam Computed Tomographic Scans. Journal of Endodontics, 42(3):393-396, 2016. 3
313
+ [5] Federico Bolelli, Stefano Allegretti, Luca Lumetti, and Costantino Grana. A State-of-the-Art Review with Code about Connected Components Labeling on GPUs. IEEE Transactions on Parallel and Distributed Systems, 2024. 7
314
+ [6] Federico Bolelli, Luca Lumetti, Shankeeth Vinayahalingam, Mattia Di Bartolomeo, Arrigo Pellacani, Kevin Marchesini, Niels Van Nistelrooij, Pieter Van Lierop, Tong Xi, Yusheng Liu, et al. Segmenting the Inferior Alveolar Canal in CBCTs Volumes: the ToothFairy Challenge. IEEE Transactions on Medical Imaging, 2024. 2
315
+ [7] Jieneng Chen, Yongyi Lu, Qihang Yu, Xiangde Luo, Ehsan Adeli, Yan Wang, Le Lu, Alan L Yuille, and Yuyin Zhou. Transunet: Transformers make strong encoders for medical image segmentation. arXiv preprint arXiv:2102.04306, 2021. 2, 6, 7
316
+ [8] Xiaokang Chen, Nan Ma, Tongkai Xu, and Cheng Xu. Deep learning-based tooth segmentation methods in medical imaging: A review. Proceedings of the Institution of Mechanical Engineers, Part H: Journal of Engineering in Medicine, 238 (2):115-131, 2024. 3
317
+ [9] Zeyu Chen, Senyang Chen, and Fengjun Hu. CTA-UNet: CNN-transformer architecture UNet for dental CBCT images segmentation. Physics in Medicine & Biology, 68(17): 175042, 2023. 5
318
+
319
+ [10] So-Young Chun, Yun-Hui Kang, Su Yang, Se-Ryong Kang, Sang-Jeong Lee, Jun-Min Kim, Jo-Eun Kim, Kyung-Hoe Huh, Sam-Sun Lee, Min-Suk Heo, et al. Automatic classification of 3D positional relationship between mandibular third molar and inferior alveolar canal using a distance-aware network. BMC Oral Health, 23(1):794, 2023. 2
320
+ [11] Marco Cipriano, Stefano Allegretti, Federico Bolelli, Mattia Di Bartolomeo, Federico Pollastri, Arrigo Pellacani, Paolo Minafra, Alexandre Anesi, and Costantino Grana. Deep Segmentation of the Mandibular Canal: a New 3D Annotated Dataset of CBCT Volumes. IEEE Access, 10:11500-11510, 2022. 2, 3
321
+ [12] Marco Cipriano, Stefano Allegretti, Federico Bolelli, Federico Pollastri, and Costantino Grana. Improving Segmentation of the Inferior Alveolar Nerve through Deep Label Propagation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 21137-21146. IEEE, 2022. 2, 3, 4
322
+ [13] Weiwei Cui, Yaqi Wang, Qianni Zhang, Huiyu Zhou, Dan Song, Xingyong Zuo, Gangyong Jia, and Liaoyuan Zeng. CTooth: A Fully Annotated 3D Dataset and Benchmark for Tooth Volume Segmentation on Cone Beam Computed Tomography Images. In International Conference on Intelligent Robotics and Applications, pages 191-200. Springer, 2022. 2
323
+ [14] Zhiming Cui, Changjian Li, and Wenping Wang. ToothNet: Automatic Tooth Instance Segmentation and Identification From Cone Beam CT Images. In Computer Vision and Pattern Recognition, pages 6368-6377, 2019. 3
324
+ [15] Zhiming Cui, Bojun Zhang, Chunfeng Lian, Changjian Li, Lei Yang, Wenping Wang, and Min Zhu. Hierarchical Morphology-Guided Tooth Instance Segmentation from CBCT Images. In Information Processing in Medical Imaging, pages 150-162, 2021. 3, 5
325
+ [16] Zhiming Cui, Yu Fang, Lanzhuju Mei, Bojun Zhang, Bo Yu, Jiameng Liu, Caiwen Jiang, Yuhang Sun, Lei Ma, Jiawei Huang, et al. A fully automatic AI system for tooth and alveolar bone segmentation from cone-beam CT images. Nature Communications, 13(1):2096, 2022. 1, 2, 4, 6, 7, 8
326
+ [17] Wenhan Dou, Shanshan Gao, Deqian Mao, Honghao Dai, Chenhao Zhang, and Yuanfeng Zhou. Tooth instance segmentation based on capturing dependencies and receptive field adjustment in cone beam computed tomography. Computer Animation and Virtual Worlds, 33(5):e2100, 2022. 2, 3
327
+ [18] Wei Duan, Yufei Chen, Qi Zhang, Xiang Lin, and Xiaoyu Yang. Refined tooth and pulp segmentation using U-Net in CBCT image. Dentomaxillofacial Radiology, 50(6): 20200251, 2021. 3
328
+ [19] Herbert Edelsbrunner, David Kirkpatrick, and Raimund Seidel. On the shape of a set of points in the plane. IEEE Transactions on Information Theory, 29(4):551-559, 1983. 5
329
+ [20] Kang Hsu, Da-Yo Yuh, Sc Lin, Pin-Sian Lyu, Guan-Xin Pan, Yi-Chun Zhuang, Chia-Ching Chang, Hsu-Hsia Peng, Tung-Yang Lee, Cheng-Hsuan Juan, Cheng-En Juan, Yi-Jui Liu, and Chun Jung Juan. Improving performance of deep learning models using 3.5D U-Net via majority voting for tooth
330
+
331
+ segmentation on cone beam computed tomography. Scientific Reports, 12(1):19809, 2022. 3
332
+ [21] Fengjun Hu, Zeyu Chen, and Fan Wu. A novel difficult-to-segment samples focusing network for oral CBCT image segmentation. Scientific Reports, 14:5068, 2024. 3
333
+ [22] Kuofeng Hung, Andy Wai Kan Yeung, Ray Tanaka, and Michael M Bornstein. Current Applications, Opportunities, and Limitations of AI for 3D Imaging in Dental Research and Practice. International Journal of Environmental Research and Public Health, 17(12):4424, 2020. 4
334
+ [23] Jae-Joon Hwang, Yun-Hoa Jung, Bong-Hae Cho, and MinSuk Heo. An overview of deep learning in the field of dentistry. Imaging Science in Dentistry, 49(1):1-7, 2019. 3
335
+ [24] Fabian Isensee, Paul F Jaeger, Simon AA Kohl, Jens Petersen, and Klaus H Maier-Hein. nnU-Net: a self-configuring method for deep learning-based biomedical image segmentation. Nature methods, 18(2):203–211, 2021. 2, 6, 7, 8
336
+ [25] ISO. Dentistry - designation system for teeth and areas of the oral cavity. https://www.iso.org/standard/68292.html, 2016. Accessed: 2024-11-11. 3
337
+ [26] Tae Jun Jang, Kang Cheol Kim, Hyun Cheol Cho, and Jin Keun Seo. A Fully Automated Method for 3D Individual Tooth Identification and Segmentation in dental CBCT. IEEE Transactions on Pattern Analysis and Machine Intelligence, 44(10):6562-6568, 2021. 2
338
+ [27] Jorma Järnstedt, Jaakko Sahlsten, Joel Jaskari, Kimmo Kaski, Helena Mehtonen, Ari Hietanen, Osku Sundqvist, Vesa Varjonen, Vesa Mattila, Sangsom Prapayasatok, et al. Reproducibility analysis of automated deep learning based localisation of mandibular canals on a temporal CBCT dataset. Scientific Reports, 13(1):14159, 2023. 3
339
+ [28] Joel Jaskari, Jaakko Sahlsten, Jorma Järnstedt, Helena Mehtonen, Kalle Karhu, Osku Sundqvist, Ari Hietanen, Vesa Varjonen, Vesa Mattila, and Kimmo Kaski. Deep Learning Method for Mandibular Canal Segmentation in Dental Cone Beam Computed Tomography Volumes. Scientific Reports, 10(1):5842, 2020. 2, 3
340
+ [29] Touko Kaasalainen, Marja Ekholm, Teemu Siiskonen, and Mika Kortesniemi. Dental cone beam CT: An updated review. Physica Medica, 88:193-217, 2021. 1
341
+ [30] Dagmar Kainmueller, Hans Lamecker, Heiko Seim, Max Zinser, and Stefan Zachow. Automatic Extraction of Mandibular Nerve and Bone from Cone-Beam CT Data. In Medical Image Computing and Computer-Assisted Intervention-MICCAI 2009: 12th International Conference, London, UK, September 20-24, 2009, Proceedings, Part II 12, pages 76-83. Springer, 2009. 3
342
+ [31] Dirk-Jan Kroon. Segmentation of the Mandibular Canal in Cone-Beam CT Data. PhD thesis, University of Twente, Netherlands, 2011. 10.3990/1.9789036532808. 3
343
+ [32] Pierre Lahoud, Mostafa EzEldeen, Thomas Beznik, Holger Willems, André Leite, Adriaan Van Gerven, and Reinhilde Jacobs. Artificial Intelligence for Fast and Accurate 3-Dimensional Tooth Segmentation on Cone-beam Computed Tomography. Journal of Endodontics, 47(5):827-835, 2021. 3
344
+ [33] Pierre Lahoud, Siebe Diels, Liselot Nicales, Stijn Van Aelst, Holger Willems, Adriaan Van Gerven, Marc Quirynen, and
345
+
346
+ Reinhilde Jacobs. Development and validation of a novel artificial intelligence driven tool for accurate mandibular canal segmentation on CBCT. Journal of dentistry, 116:103891, 2022. 2, 3
347
+ [34] Jiarun Liu, Hao Yang, Hong-Yu Zhou, Yan Xi, Lequan Yu, Cheng Li, Yong Liang, Guangming Shi, Yizhou Yu, Shaoting Zhang, et al. Swin-UMamba: Mamba-based UNet with ImageNet-based pretraining. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 615–625. Springer, 2024. 2, 6, 7
348
+ [35] Yue Liu, Yunjie Tian, Yuzhong Zhao, Hongtian Yu, Lingxi Xie, Yaowei Wang, Qixiang Ye, Jianbin Jiao, and Yunfan Liu. Vmamba: Visual State Space Model. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. 2, 6, 7
349
+ [36] Luca Lumetti, Vittorio Pipoli, Federico Bolelli, Elisa Ficarra, and Costantino Grana. Enhancing Patch-Based Learning for the Segmentation of the Mandibular Canal. IEEE Access, pages 1-12, 2024. 3
350
+ [37] Jinxuan Lv, Lang Zhang, Jiajie Xu, Wang Li, Gen Li, and Hengyu Zhou. Automatic segmentation of mandibular canal using transformer based neural networks. Frontiers in Bioengineering and Biotechnology, 11, 2023. 3
351
+ [38] Jun Ma, Feifei Li, and Bo Wang. U-Mamba: Enhancing Long-range Dependency for Biomedical Image Segmentation. arXiv preprint arXiv:2401.04722, 2024. 2, 6, 7, 8
352
+ [39] Lena Maier-Hein, Annika Reinke, Patrick Godau, Minu D Tizabi, Florian Buettner, Evangelia Christodoulou, Ben Glocker, Fabian Isensee, Jens Kleesiek, Michal Kozubek, et al. Metrics reloaded: Recommendations for image analysis validation. Nature Methods, pages 1-18, 2024. 5
353
+ [40] Behnam Moris, Luc J. M. Claesen, Yi Sun, and Constantinus Politis. Automated tracking of the mandibular canal in CBCT images using matching and multiple hypotheses methods. 2012 Fourth International Conference on Communications and Electronics (ICCE), pages 327-332, 2012. 3
354
+ [41] Archie Morrison, Marco Chiarot, and Stuart Kirby. Mental Nerve Function After Inferior Alveolar Nerve Transposition for Placement of Dental Implants. Journal-Canadian Dental Association, 68(1):46-50, 2002. 1
355
+ [42] Yunbo Rao, Yilin Wang, Fanman Meng, Jiansu Pu, Jihong Sun, and Qifei Wang. A Symmetric Fully Convolutional Residual Network With DCRF for Accurate Tooth Segmentation. IEEE Access, 8:92028-92038, 2020. 3
356
+ [43] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional Networks for Biomedical Image Segmentation. In Medical Image Computing and Computer-Assisted Intervention-MICCAI 2015: 18th International Conference, Munich, Germany, October 5-9, 2015, Proceedings, Part III 18, pages 234-241. Springer, 2015. 3
357
+ [44] A. Schramm, M. Rucker, N. Sakkas, R. Schön, J. Düker, and N.-C. Gellrich. The use of cone beam CT in craniomaxillofacial surgery. International Congress Series, 1281: 1200-1204, 2005. 3
358
+ [45] Namrata Sengupta, Sachin C Sarode, Gargi S Sarode, and Urmi Ghone. Scarcity of publicly available oral cancer image datasets for machine learning research. Oral Oncology, 126:105737, 2022. 2
359
+
360
+ [46] Eman Shaheen, André Leite, Khalid Ayid Alqahtani, Andreas Smolders, Adriaan Van Gerven, Holger Willems, and Reinhilde Jacobs. A novel deep learning system for multiclass tooth segmentation and classification on cone beam computed tomography. a validation study. Journal of Dentistry, 115:103865, 2021. 3
361
+ [47] Abdelrahman Shaker, Muhammad Maaz, Hanoona Rasheed, Salman Khan, Ming-Hsuan Yang, and Fahad Shahbaz Khan. UNETR++: Delving Into Efficient and Accurate 3D Medical Image Segmentation. IEEE Transactions on Medical Imaging, 43(9):3377-3390, 2024. 2, 6, 7
362
+ [48] Muhammad Usman, Azka Rehman, Amal Muhammad Saleem, Rabeea Jawaid, Shi-Sub Byon, Sung-Hyun Kim, Byoung-Dai Lee, Min-Suk Heo, and Yeong-Gil Shin. Dual-Stage Deeply Supervised Attention-Based Convolutional Neural Networks for Mandibular Canal Segmentation in CBCT Scans. Sensors, 22(24):9877, 2022. 2, 3
363
+ [49] Shankeeth Vinayahalingam, Steven Kempers, Julian Schoep, Tzu-Ming Harry Hsu, David Anssari Moin, Bram van Ginneken, Tabea Flugge, Marcel Hanisch, and Tong Xi. Intraoral scan segmentation using deep learning. BMC Oral Health, 23(1):643, 2023. 2
364
+ [50] Yiwei Wang, Wenjun Xia, Zhennan Yan, Liang Zhao, Xiaohe Bian, Chang Liu, Zhengnan Qi, Shaoting Zhang, and Zisheng Tang. Root canal treatment planning by automatic tooth and root canal segmentation in dental CBCT with deep multi-task feature learning. Medical Image Analysis, 85: 102750, 2023. 3
365
+
366
+ [51] Xueqiong Wei and Yuanjun Wang. Inferior alveolar canal segmentation based on cone-beam computed tomography. Medical Physics, 48(11):7074-7088, 2021. 3
367
+ [52] Mark D Wilkinson, Michel Dumontier, IJsbrand Jan Aalbersberg, Gabrielle Appleton, Myles Axton, Arie Baak, Niklas Blomberg, Jan-Willem Boiten, Luiz Bonino da Silva Santos, Philip E Bourne, et al. The FAIR Guiding Principles for scientific data management and stewardship. Scientific data, 3(1):1-9, 2016. 2
368
+ [53] Philip Worthington. Injury of the Inferior Alveolar Nerve during Implant Placement: a Literature Review. International Journal of Oral & Maxillofacial Implants, 19(5), 2004. 1
369
+ [54] Xiyi Wu, Huai Chen, Yijie Huang, Huayan Guo, Tiantian Qiu, and Lisheng Wang. Center-Sensitive and Boundary-Aware Tooth Instance Segmentation and Classification from Cone-Beam CT. In International Symposium on Biomedical Imaging, pages 939–942, 2020. 3
370
+ [55] Huanmiao Zhao, Junhua Chen, Zhaoqiang Yun, Qianjin Feng, Liming Zhong, and Wei Yang. Whole mandibular canal segmentation using transformed dental CBCT volume in Frenet frame. Heliyon, 9(7), 2023. 3
371
+ [56] Hong-Yu Zhou, Jiansen Guo, Yinghao Zhang, Xiaoguang Han, Lequan Yu, Liansheng Wang, and Yizhou Yu. nnFormer: Volumetric Medical Image Segmentation via a 3D Transformer. IEEE Transactions on Image Processing, 2023. 6, 7, 8
CVPR/2025/Segmenting Maxillofacial Structures in CBCT Volumes/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13efa9c9bfb687d1dd4a393c258829781a3b1cc79a61f3cc95a5b1f72997cbc6
3
+ size 559704
CVPR/2025/Segmenting Maxillofacial Structures in CBCT Volumes/layout.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:44f292e3537440b1f4c118c74522afe9dedc5a21cf2fb3bebb30d4710e0e6551
3
+ size 422326
CVPR/2025/Self-Cross Diffusion Guidance for Text-to-Image Synthesis of Similar Subjects/83e0a95c-7140-478a-a40d-1c8962e615cc_content_list.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:04a1570d3dc1e596bf14ec5437a74f5aa27a53c13a794fce193a89201a12acfe
3
+ size 79902
CVPR/2025/Self-Cross Diffusion Guidance for Text-to-Image Synthesis of Similar Subjects/83e0a95c-7140-478a-a40d-1c8962e615cc_model.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:082b7caede981fdf29ca37dd2fc7463048bf0508102aa096cd3f6e6e3e4df70d
3
+ size 101875