Research
SaFiRe: Saccade-Fixation Reiteration with Mamba for Referring Image Segmentation
Overview Research area: Referring Image Segmentation (RIS) — multimodal vision-language understanding, specifically segmenting an object in an image from a natural-language description. The paper sits
- arXiv
- 2510.10160
- Published
- 2025-10-11
- Authors
- Zhenjie Mao, Yuhuan Yang, Chaofan Ma, Dongsheng Jiang, Jiangchao Yao, Ya Zhang, Yanfeng Wang
AI summary
Overview
Research area: Referring Image Segmentation (RIS) — multimodal vision-language understanding, specifically segmenting an object in an image from a natural-language description. The paper sits at the intersection of RIS, cognitive-psychology-inspired architecture design, and Mamba/state-space sequence models.
Technical level: Advanced. The paper assumes familiarity with transformer backbones (Swin), BERT text encoders, cross-modal attention baselines (LAVT, VLT, ReLA, MagNet), and state-space models (S4, Mamba, VMamba).
Scope: The paper proposes SaFiRe, a Mamba-based RIS framework built from alternating "Saccade" and "Fixation" operations, and introduces aRefCOCO, a test-only benchmark of ambiguous referring expressions, to test segmentation under referential ambiguity.
What This Paper Is About
Most referring image segmentation methods are trained on short, unambiguous phrases like "red car" or "left girl," which reduces the task to matching key words or concepts to image regions. The authors argue this breaks down when referring expressions are ambiguous — either because they contain distracting extra entities ("object-distracting") or because they never name the object's category ("category-implicit," e.g., "he is the taller one"). SaFiRe aims to segment targets under these harder expressions by mimicking the human two-phase process of a global glance followed by detailed region-by-region inspection.
Key Contributions
- Problem diagnosis: The paper identifies that recent RIS methods oversimplify the task into a key word/concept matching problem, which fails under referential ambiguity. It formalizes two hard cases: object-distracting expressions and category-implicit expressions.
- SaFiRe framework: A RIS architecture inspired by cognitive psychology that alternates two operations — Saccade (fast global scan of image and text to establish coarse alignment) and Fixation (fine-grained region-wise inspection with reiterated text) — repeated across layers for coarse-to-fine alignment. It is built on Mamba/VMamba state-space models, whose scan-then-update property the authors argue matches the phased design.
- Two novel operations: Saccade uses DiT-inspired Norm Adaptation, where a pooled text vector produces global scale, bias and shift factors for image features; Fixation uses a "group-scan-recover" pattern that splits the image into non-overlapping windows and interleaves repeated text tokens between them for SSM scanning.
- aRefCOCO benchmark: A test-only benchmark of 7,050 text-image pairs built by re-annotating subsets of the RefCOCO and RefCOCOg test splits with more challenging referring expressions, evaluated against 10 baselines in a zero-shot transfer setting.
Main Findings
- Single-dataset training (Table 1, oIoU): SaFiRe (Swin-B + BERT) outperforms all compared methods across RefCOCO, RefCOCO+, and RefCOCOg. It reaches 67.07 / 66.87 on RefCOCOg val(U) / test(U), 66.39 / 71.96 / 58.47 on RefCOCO+ val / testA / testB, and 75.34 / 78.52 / 71.35 on RefCOCO val / testA / testB. The strongest baseline, MagNet, reported 65.36 / 66.03 on RefCOCOg and 75.24 / 78.24 / 71.05 on RefCOCO.
- Mixed-data training (Table 2): Under mIoU, SaFiRe reaches 77.3 (RefCOCOg val(U)), 77.4 (RefCOCO+ val), and 82.1 (RefCOCO val), exceeding C3VG (76.3, 77.1, 81.4) and several SAM-based or LLM-based models such as GLaMM, u-LLaVA, GSVA, and PixelLM. Under oIoU, SaFiRe reports 75.8 / 76.8 (RefCOCOg), 74.8 / 78.9 / 68.3 (RefCOCO+), and 81.4 / 83.6 / 78.2 (RefCOCO). The authors note their training corpus (RefCOCO series plus COCO-Stuff) is comparatively smaller than the mixtures used by many baselines.
- aRefCOCO zero-shot transfer (Table 3): SaFiRe achieves the best overall performance with oIoU 65.1, mIoU 71.4, Precision@50 78.9, Precision@70 73.6, and Precision@90 45.2. The next best oIoU is C3VG at 62.9; weaker baselines include LAVT (31.7 oIoU) and LISA++ (7B) (45.3 oIoU). No model was trained on aRefCOCO.
- Module ablation (Table 4): The full model scores 67.07 oIoU on RefCOCOg and 75.34 on RefCOCO. Saccade alone gives 65.72 / 74.27, Fixation alone gives 66.32 / 73.60, and removing both drops to 64.48 / 72.92 — described as the naive baseline that simply concatenates text and visual sequences for VSSM scanning.
- Fixation window size (Table 5): Vanilla concatenation
[I...I T]yields 64.38; repeating the text at the end[I...I T...T]yields 65.50; Fixation with 2×2 windows yields 66.49; 4×4 (the chosen setting) yields 67.07; 8×8 yields 66.20. - Backbone ablation (Table 6): On RefCOCOg, a ViT-B baseline scores 55.55 versus 59.33 with SaFiRe (+3.78). Swin-B with SaFiRe reaches 67.07 and Swin-L reaches 68.16 (+1.09).
- Inference efficiency (Table 7): SaFiRe reports 384 GFLOPs and 8.26 FPS, compared with CGFormer (631 GFLOPs, 2.78 FPS), PSALM (455 GFLOPs, 2.19 FPS), LISA(7B) (4880 GFLOPs, 2.67 FPS), and LISA++(7B) (4943 GFLOPs, 1.29 FPS) — the highest throughput and lowest compute among the compared methods.
- Layer-wise feature maps (Figure 3): Saccade produces broader, globally distributed activations matching overall shape and location; Fixation produces sharper, localized activations. Used alone, each is limited; combined, they identify the described object.
- Complexity: Fixation has complexity O(HW + (HW/w²)·L) = (1 + L/w²)·O(HW). With window size w = 4 and average text length L ≈ 15, the authors state overall complexity increases by a constant factor of 0.9.
- Failure cases (Figure 5): Two error types are reported — extremely similar visual semantics, where candidates look alike (e.g., one person appears "cross-like" but is actually holding an object), and unusually long relational chains, where errors accumulate across multi-step spatial reasoning.
Methodology in Plain English
Images are encoded with a Swin Transformer and text with BERT. The features then pass through four stacked Saccade-Fixation Layers (SFLayers).
In the Saccade step, the model takes a quick global look. Text features are average-pooled and linearly projected into three vectors — a scale, a bias, and a shift. These modify the image features globally before a visual state-space (VSSM) layer processes them, producing a rough image-text correspondence. This is a Norm Adaptation design borrowed from DiT, using pooled text instead of a class label.
In the Fixation step, the model examines the image piece by piece. The image is split into non-overlapping windows (4×4 in practice). A hybrid sequence is built by placing the full text sequence after each image window: [window1, text, window2, text, ..., windowP, text]. Because state-space models weight recent tokens more heavily and carry a running memory, repeating the text keeps the target description refreshed as the scan moves across the image. The processed sequence is then split back into image and text streams — the text tokens from all repeats are combined with a learnable weighted average.
A segmentation head combines the visual outputs of all four SFLayers top-down, following LAVT, and training uses a composite of Dice loss and Focal loss with the weighting coefficient set to 0.5. The model trains end-to-end for 50 epochs with AdamW, learning rate 5e-5, weight decay 1e-4, a cosine schedule, and 2 NVIDIA A100 GPUs.
For the benchmark, aRefCOCO was built by re-annotating a subset of RefCOCO and RefCOCOg test images using Qwen-VL-Max, then filtering carefully.
Why This Matters
Impact on research: The paper reframes a widely used task — RIS — as one that current keyword-matching formulations handle only in a narrow, simplified setting, and it supplies both an alternative architecture and a diagnostic benchmark. aRefCOCO, at 7,050 pairs (a 40% expansion over RefCOCOg's test split of 5,023 pairs), gives the field a way to measure robustness to ambiguity rather than raw accuracy on easy phrases. Its 384 GFLOPs / 8.26 FPS result also supports the argument that state-space models, not just transformers, are viable for multimodal grounding.
Real-world applications (as discussed or implied by the paper):
- Medical imaging, where descriptions of anatomy or pathology are frequently ambiguous or category-implicit.
- Robotics, where an operator might say "the taller one" or "the thing next to the box" rather than naming an object class.
- Accessibility technologies for individuals with disabilities, where spoken descriptions naturally use pronouns and comparatives.
- General interactive image editing and annotation, where users point with language rather than class labels.
Industry relevance: Because SaFiRe uses Swin-B and BERT-B rather than a 7B-scale LLM plus a SAM segmentation module, its 384 GFLOPs and 8.26 FPS profile matters for deployment. The paper reports it surpassing several SAM-enabled models (u-LLaVA, GSVA) on multiple splits, suggesting competitive accuracy at far lower inference cost. The authors also note the framework could be adapted to Open-Vocabulary Segmentation by adjusting the task head and to Audio-Visual Segmentation by substituting the backbone.
Future Directions
- Broader language diversity: The authors state SaFiRe still struggles with real-world language diversity that existing datasets cannot fully represent, and propose incorporating structured scene understanding and pragmatic reasoning.
- New tasks and modalities: Extending the framework to dialog-based and video grounding tasks, and adapting it to Open-Vocabulary Segmentation (via task-head changes) or Audio-Visual Segmentation (via backbone substitution).
- Fine-grained visual discrimination: The failure analysis shows errors when candidates share near-identical visual semantics, implying a need for stronger action-semantic grounding and fine-grained discrimination.
- Long relational chain reasoning: Failures in texts with long spatial or relational chains, where intermediate errors accumulate, point to a need for more robust multi-step spatial reasoning.
- Annotation bias: The appendix notes that aRefCOCO relies on an LLM (Qwen-VL-Max) to generate descriptions, which may introduce bias even after meticulous filtering.
Target Audience
Researchers and graduate students working on referring image segmentation, multimodal vision-language grounding, or efficient sequence models (Mamba/state-space architectures). It also suits practitioners who need a lower-compute alternative to LLM+SAM segmentation pipelines, and benchmark builders interested in evaluating models under referential ambiguity rather than simple noun-phrase descriptions.
Authors’ abstract
Referring Image Segmentation (RIS) aims to segment the target object in an image given a natural language expression. While recent methods leverage pre-trained vision backbones and more training corpus to achieve impressive results, they predominantly focus on simple expressions--short, clear noun phrases like "red car" or "left girl". This simplification often reduces RIS to a key word/concept matching problem, limiting the model's ability to handle referential ambiguity in expressions. In this work, we identify two challenging real-world scenarios: object-distracting expressions, which involve multiple entities with contextual cues, and category-implicit expressions, where the object class is not explicitly stated. To address the challenges, we propose a novel framework, SaFiRe, which mimics the human two-phase cognitive process--first forming a global understanding, then refining it through detail-oriented inspection. This is naturally supported by Mamba's scan-then-update property, which aligns with our phased design and enables efficient multi-cycle refinement with linear complexity. We further introduce aRefCOCO, a new benchmark designed to evaluate RIS models under ambiguous referring expressions. Extensive experiments on both standard and proposed datasets demonstrate the superiority of SaFiRe over state-of-the-art baselines.