Lune

ICLR2025Top-tier venue

Text4Seg: Reimagining Image Segmentation as Text Generation

Mengcheng Lan, Chaofeng Chen, Yue Zhou, Jiaxing Xu, Yiping Ke, Xinjiang Wang, Litong Feng, Wayne Zhang

Abstract

Multimodal Large Language Models (MLLMs) have shown exceptional capabilities in vision-language tasks; however, effectively integrating image segmentation into these models remains a significant challenge. In this paper, we introduce Text4Seg, a novel text-as-mask paradigm that casts image segmentation as a text generation problem, eliminating the need for additional decoders and significantly simplifying the segmentation process. Our key innovation is semantic descriptors, a new textual representation of segmentation masks where each image patch is mapped to its corresponding text label. This unified representation allows seamless integration into the auto-regressive training pipeline of MLLMs for easier optimization. We demonstrate that representing an image with 16 × 16 semantic descriptors yields competitive segmentation performance. To enhance efficiency, we introduce the Row-wise Run-Length Encoding (R-RLE), which compresses redundant text sequences, reducing the length of semantic descriptors by 74% and accelerating inference by 3×, without compromising performance. Extensive experiments across various vision tasks, such as referring expression segmentation and comprehension, show that Text4Seg achieves state-of-the-art performance on multiple datasets by fine-tuning different MLLM backbones. Our approach provides an efficient, scalable solution for vision-centric tasks within the MLLM framework. https://github.com/mc-lan/Text4Seg

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

24 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • UFO: A Unified Approach to Fine-grained Visual Perception via Open-ended Language Interface cites Segment Anything
  • UFO: A Unified Approach to Fine-grained Visual Perception via Open-ended Language Interface cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • UFO: A Unified Approach to Fine-grained Visual Perception via Open-ended Language Interface cites Visual Instruction Tuning
  • UFO: A Unified Approach to Fine-grained Visual Perception via Open-ended Language Interface cites BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models
  • Segment Anything cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Visual Instruction Tuning cites BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models
  • Visual Instruction Tuning cites Flamingo: a Visual Language Model for Few-Shot Learning
  • CodeDance: A Dynamic Tool-integrated MLLM for Executable Visual Reasoning cites Segment Anything
  • SegEarth-R2: Towards Comprehensive Language-guided Segmentation for Remote Sensing Images cites Segment Anything
  • SegEarth-R2: Towards Comprehensive Language-guided Segmentation for Remote Sensing Images cites Visual Instruction Tuning
  • BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models cites Flamingo: a Visual Language Model for Few-Shot Learning
  • Patch-as-Decodable-Token: Towards Unified Multi-Modal Vision Tasks in MLLMs cites Segment Anything
  • Patch-as-Decodable-Token: Towards Unified Multi-Modal Vision Tasks in MLLMs cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Patch-as-Decodable-Token: Towards Unified Multi-Modal Vision Tasks in MLLMs cites BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models
  • Patch-as-Decodable-Token: Towards Unified Multi-Modal Vision Tasks in MLLMs cites Flamingo: a Visual Language Model for Few-Shot Learning
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers24

  1. UFO: A Unified Approach to Fine-grained Visual Perception via Open-ended Language InterfaceHao Tang, Chen-Wei Xie, Haiyang Wang, Xiaoyi Bao et al.NeurIPS 2025 · 30 citations
  2. Patch-as-Decodable-Token: Towards Unified Multi-Modal Vision Tasks in MLLMsYongyi Su, Haojie Zhang, Shijie Li, Nanqing Liu et al.ICLR 2026 · 22 citations
  3. CodeDance: A Dynamic Tool-integrated MLLM for Executable Visual ReasoningQi Song, Honglin Li, Yingchen Yu, Haoyi Zhou et al.CVPR 2026 · 16 citations
  4. SegEarth-R2: Towards Comprehensive Language-guided Segmentation for Remote Sensing ImagesZepeng Xin, Kaiyu Li, Luodi Chen, Wanchen Li et al.CVPR 2026 · 14 citations
  5. Affordance-R1: Reinforcement Learning for Generalizable Affordance Reasoning in Multimodal Large Language ModelsHanqing Wang, Shaoyang Wang, Yiming Zhong, Zemin Yang et al.AAAI 2026 · 13 citations

Builds on34

  1. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  2. Segment AnythingAlexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao et al.ICCV 2023 · 13,211 citations
  3. Visual Instruction TuningHaotian Liu, Chunyuan Li, Qingyang Wu, Yong Jae LeeNeurIPS 2023 · 11,349 citations
  4. BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language ModelsJunnan Li, Dongxu Li, Silvio Savarese, Steven C. H. HoiICML 2023 · 7,873 citations
  5. Flamingo: a Visual Language Model for Few-Shot LearningJean-Baptiste Alayrac, Jeff Donahue, Pauline Luc, Antoine Miech et al.NeurIPS 2022 · 6,707 citations

Related papers

  1. ARGenSeg: Image Segmentation with Autoregressive Image Generation ModelXiaolong Wang, Lixiang Ru, Ziyuan Huang, Kaixiang Ji et al.NeurIPS 2025 · 8 citations
  2. FlowSeg: Dynamic Semantic Guidance for LLM-Conditioned SegmentationZekang Zhang, Guangyu Gao, YouyunTang, WU CHENGJING et al.ICML 2026
  3. Instructseg: Unifying Instructed Visual Segmentation with Multi-Modal Large Language ModelsCong Wei, Yujie Zhong, Haoxian Tan, Yingsen Zeng et al.ICCV 2025 · 8 citations
  4. ALTo: Adaptive-Length Tokenizer for Autoregressive Mask GenerationLingfeng Wang, Hualing Lin, Senda Chen, Tao Wang et al.NeurIPS 2025 · 5 citations
  5. Marten: Visual Question Answering with Mask Generation for Multi-modal Document UnderstandingZining Wang, Tongkun Guan, Pei Fu, Chen Duan et al.CVPR 2025
Dusk over the sea between two cliffs drawn in fine vertical lines