HRSeg: High-Res Reasoning Segmentation
- HRSeg is a high-resolution, reasoning-aware segmentation framework that combines global and local features via HRP and HRE modules to interpret complex visual and textual cues.
- It overcomes the limitations of moderate-resolution encoders by avoiding high-res positional-embedding interpolation, using efficient crop-based processing instead.
- Empirical results show significant IoU improvements on ReasonSeg, LLM-Seg40K, and RefCOCO benchmarks, validating its effectiveness in reasoning and referring segmentation.
HRSeg is a high-resolution, reasoning-aware segmentation framework built on top of multimodal LLMs (MLLMs) and SAM for the reasoning segmentation task, in which an image and an implicit natural-language instruction must be mapped to one or more segmentation masks (Lin et al., 17 Jul 2025). It is designed to address the low-perceptual-resolution limitations of standard visual encoders without relying on direct high-resolution positional-embedding interpolation. Its two defining modules are High-Resolution Perception (HRP), which integrates global and cropped local features, and High-Resolution Enhancement (HRE), which refines mask features using high-resolution contextual information. In the reported experiments, the framework improves reasoning segmentation on ReasonSeg and LLM-Seg40K and also generalizes to referring segmentation benchmarks (Lin et al., 17 Jul 2025).
1. Task formulation and motivation
Reasoning segmentation requires interpreting implicit textual instructions that may depend on contextual cues or open-world knowledge, such as segmenting “the person who looks the most worried” or “the chair that is closest to the window” (Lin et al., 17 Jul 2025). This distinguishes it from semantic segmentation, where targets are explicit categories, and from referring segmentation, where expressions are usually shorter and grounded in direct local cues. The central difficulty is therefore not only pixel-level delineation, but the joint resolution of instruction understanding, target disambiguation, and fine-grained visual grounding.
Two pre-existing paradigms are identified. The first is end-to-end LLM+SAM training, exemplified by LISA, PixelLM, and LLaVASeg, where a <SEG> token is introduced and a SAM-style decoder is fine-tuned. This setting is resource-intensive because it requires fine-tuning SAM’s decoder and substantial training data. The second is the two-stage reasoning-and-selection strategy of LLM-Seg, where a frozen SAM generates mask proposals and an MLLM selects the correct proposal. That approach is cheaper to train, but its visual encoder typically operates at moderate resolution, such as for DINOv2, which weakens discrimination of small objects and subtle local cues (Lin et al., 17 Jul 2025).
A further motivation concerns naive high-resolution scaling. Interpolating positional embeddings of a ViT-based visual encoder to higher resolutions yields only modest improvements, and performance may even decline as resolution increases. At the same time, the complexity of a ViT remains quadratic in the number of tokens, so increasing spatial resolution substantially increases FLOPs and memory. HRSeg is positioned as an alternative that exploits high-resolution information efficiently while preserving the pre-training regime of the base visual encoder (Lin et al., 17 Jul 2025).
2. System architecture
HRSeg is organized as a two-branch framework consisting of a reasoning branch and a segmentation branch (Lin et al., 17 Jul 2025). The reasoning branch uses an MLLM, such as LLaVA-7B-v1.1 or LLaVA-1.6, with a vision encoder, a visual projector, and a LLM. A special token <SEG> is added to the vocabulary, and the embedding associated with this token is used as the text-conditioned segmentation cue:
Here, serves as the reasoning-conditioned feature used for mask selection.
The segmentation branch begins with a frozen SAM, which receives the image and produces a set of candidate masks from a grid of point prompts, for example a grid: In parallel, HRSeg adds a separate frozen DINOv2-ViT-L encoder , pre-trained at . The image is represented as a global low-resolution view and a local high-resolution view , where the default magnification is . The high-resolution view is processed by sliding-window cropping with windows of size 0, so the encoder can be reused without changing its architecture or positional embeddings: 1
HRP takes the candidate masks and the global and local image features and produces hybrid image features 2 together with per-mask features 3: 4 HRE then refines these mask features: 5
The final selection module injects textual semantics into the refined mask features through self-attention and cross-attention with 6. It computes a text-similarity score
7
and an IoP score 8, where IoP estimates how much of a proposal overlaps the target object. The selected output mask or masks are denoted
9
This architecture preserves SAM as a frozen proposal generator while transferring fine-grained disambiguation to HRP, HRE, and the text-conditioned selection mechanism (Lin et al., 17 Jul 2025).
3. High-Resolution Perception and High-Resolution Enhancement
HRP is the principal mechanism by which HRSeg recovers high-resolution detail (Lin et al., 17 Jul 2025). Global features 0 and local cropped features 1 are reshaped into feature maps, with 2 mapped to 3 and 4 mapped to 5, where 6. A region extraction operator selects, for each global token, a corresponding 7 local patch: 8 This produces region features
9
A region-attention operation then enriches each global token using its corresponding local patch: 0 The resulting region-refined feature is combined with the original global feature by a weighted sum: 1 The reported ablation identifies 2 as the optimal setting. This balance indicates that global semantics remain dominant while local detail supplies targeted refinement rather than a wholesale replacement of the global representation.
HRP also converts binary mask proposals into object-level features by masked average pooling: 3 Each proposal is therefore represented by a feature vector that reflects high-resolution content within the mask. A plausible implication is that HRP turns SAM’s mask proposals into semantically comparable entities rather than treating them as purely geometric regions.
HRE addresses the complementary problem that in-mask pooling alone may miss context outside the mask boundary. It applies stacked cross-attention layers, with depth 4 in the experiments, between mask features and the hybrid image representation: 5 followed by residual addition and normalization: 6 Through this design, each mask feature can attend to the entire hybrid image representation and aggregate context relevant to relational or comparative instructions. This suggests that HRE is especially important when the decisive evidence for a mask lies outside the candidate region itself, such as in “the person holding a cup” or “the second person from the left” (Lin et al., 17 Jul 2025).
4. Training protocol and implementation
HRSeg is trained on a mixture of semantic segmentation, referring segmentation, and reasoning segmentation datasets (Lin et al., 17 Jul 2025). The semantic segmentation component includes COCO-Stuff, ADE20K, PACO-LVIS, PartImageNet, and PASCAL-Part. The referring segmentation component includes RefClef, RefCOCO, RefCOCO+, and RefCOCOg. The reasoning segmentation component includes ReasonSeg and LLM-Seg40K. This training mixture is intended to preserve general grounding ability while introducing more complex instruction following.
The total loss is
7
with both weights set to 8. The text generation term 9 is a standard autoregressive cross-entropy objective over MLLM outputs. The mask-selection term is
0
Its first component matches the similarity distribution against the IoU distribution: 1 while the second performs IoP regression: 2 with
3
This decomposition is notable because it separately models semantic relevance and proposal quality.
The reported implementation uses LLaVA-7B-v1.1 with LoRA fine-tuning, together with variants based on LLaVA-1.6. HRP employs a frozen DINOv2-ViT-L encoder pre-trained at 4. Training is performed with DeepSpeed on 5 NVIDIA 3090 GPUs, with batch size 6 per GPU, gradient accumulation 7, AdamW, and WarmupDecayLR with initial learning rate 8. The default high-resolution setting uses magnification 9, corresponding to 0 images, while the crop window remains fixed at 1. HRSeg does not interpolate positional embeddings of the ViT; instead, it keeps the ViT at the pre-training resolution and simulates higher resolution by cropping (Lin et al., 17 Jul 2025).
5. Empirical results and ablation findings
The main evaluations are reported on ReasonSeg, LLM-Seg40K, and the RefCOCO series, using gIoU and cIoU for reasoning segmentation and cIoU for referring segmentation (Lin et al., 17 Jul 2025). The clearest quantitative pattern is that HRSeg improves both average IoU and cumulative IoU over LLM-Seg, with further gains when paired with a stronger MLLM.
| Benchmark and setting | Baseline | HRSeg |
|---|---|---|
| ReasonSeg val, no fine-tuning | LLM-Seg: 47.4 gIoU / 35.4 cIoU | 50.1 gIoU / 47.1 cIoU |
| ReasonSeg val, fine-tuning | LLM-Seg: 52.3 / 47.5 | 57.4 / 54.7 |
| LLM-Seg40K val, no fine-tuning | LLM-Seg: 36.0 / 39.4 | 44.3 / 44.4 |
| LLM-Seg40K val, fine-tuning | LLM-Seg: 45.5 / 54.2 | 58.7 / 58.0 |
On ReasonSeg, the fine-tuned HRSeg model improves over fine-tuned LLM-Seg by 2 gIoU and 3 cIoU on the validation set. Without fine-tuning on ReasonSeg, HRSeg improves over LLM-Seg on the test set by 4 gIoU and 5 cIoU. The variant using LLaVA-1.6 reaches 6 gIoU and 7 cIoU on ReasonSeg validation after fine-tuning, and 8 gIoU and 9 cIoU on the test set overall. The reported gains are larger on long-query instructions: the gain in gIoU on long queries is 0, which is 1 higher than the gain on short queries at 2. This suggests that improved high-resolution perception primarily benefits cases where instruction resolution and visual discrimination are jointly difficult (Lin et al., 17 Jul 2025).
On LLM-Seg40K, the validation score increases from 3 gIoU and 4 cIoU for fine-tuned LLM-Seg to 5 gIoU and 6 cIoU for fine-tuned HRSeg. The paper characterizes the 7 gIoU improvement as particularly substantial across diverse photographic and egocentric images.
HRSeg also generalizes to referring segmentation. With LLaVA-1.6, it reaches cIoU values of 8 on RefCOCO val, 9 on RefCOCO+ val, and 0 on RefCOCOg val(U), achieving or surpassing the reported state of the art.
The ablation studies isolate the effects of HRP and HRE. On ReasonSeg validation, the fine-tuned LLM-Seg baseline gives 1 gIoU and 2 cIoU; adding HRP alone increases this to 3 and 4, and adding both HRP and HRE increases it to 5 and 6. On LLM-Seg40K validation, the same progression is 7. These results indicate that HRP supplies most of the fine-grained gain, while HRE provides an additional context-sensitive improvement.
The magnification-factor ablation reports a consistent increase with higher 8: on ReasonSeg validation, the sequence is 9 without HRSeg high-resolution processing, 0 for 1, 2 for 3, and 4 for 5. The authors nevertheless select 6 as the default because it gives a favorable accuracy-efficiency trade-off.
The mask-selection ablation shows that combining semantic similarity with proposal quality is preferable to using either alone. On ReasonSeg validation, top-1 selection by 7 gives 8, top-1 by 9 gives 0, selecting all masks with 1 gives 2 at 3, top-4 by 5 gives 6, and the intersection strategy top-7 8 gives 9, with the best threshold at 00, where the score becomes 01 (Lin et al., 17 Jul 2025).
6. Computational profile, limitations, and related usages of the term
HRSeg’s computational rationale is explicit: a naive high-resolution ViT approach based on positional-embedding interpolation scales quadratically with resolution, whereas HRSeg keeps each ViT forward pass at the original 02 pre-training resolution and applies it to a moderate number of crops (Lin et al., 17 Jul 2025). The complexity therefore grows approximately linearly in the number of crops rather than quadratically in the full-image token count. Region attention is also localized, because each global token attends only to its corresponding local high-resolution patch rather than to all tokens in the image. The paper’s qualitative comparison states that the gIoU-versus-GFLOPs curve of HRSeg dominates the naive interpolation baseline.
The method nevertheless retains identifiable constraints. It incurs additional cost for high-resolution crops and for HRP and HRE, especially at 03 or 04. It also depends on SAM proposals: if SAM fails to generate a proposal overlapping the correct object, HRSeg cannot recover it. Failure cases are said to occur in very complex scenes or under highly ambiguous instructions. Future extensions are suggested toward video reasoning segmentation and toward other dense tasks such as detection and instance segmentation (Lin et al., 17 Jul 2025).
The term “HRSeg” also has a broader terminological context. In medical image segmentation, the phrase may refer more generally to an HRNet-style high-resolution segmentation philosophy that keeps a high-resolution branch alive throughout the network and performs repeated multi-resolution fusion. A concrete 3D Transformer instantiation is HRSTNet, the “High-Resolution Swin Transformer Network,” which replaces HRNet’s convolutions with 3D Swin Transformer blocks, maintains a persistent high-resolution branch, and uses Multi-Resolution Feature Fusion for volumetric medical segmentation (Wei et al., 2022). By contrast, HRGS, “Hierarchical Gaussian Splatting,” is not a segmentation method at all but a block-wise framework for memory-efficient high-resolution 3D reconstruction; its appearance in discussions around “HRSeg” reflects lexical similarity rather than task identity (Li et al., 17 Jun 2025). The dominant current use of the exact method name HRSeg, however, is the reasoning-segmentation framework centered on HRP and HRE (Lin et al., 17 Jul 2025).