HiMTok: Learning Hierarchical Mask Tokens for Image Segmentation with Large Multimodal Model

Tao Wang, Changxu Cheng, Lingfeng Wang, Senda Chen, Wuyue Zhao
3/17/2025
30 citations
cs.CV

Official code: yayafengzi/LMM-HiMTok (97 stars, Python, Apache-2.0, last commit 2025-07-17).

Abstract

The remarkable performance of large multimodal models (LMMs) has attracted significant interest from the image segmentation community. To align with the next-token-prediction paradigm, current LMM-driven segmentation methods either use object boundary points to represent masks or introduce special segmentation tokens, whose hidden states are decoded by a segmentation model requiring the original image as input.

Show full abstract

However, these approaches often suffer from inadequate mask representation and complex architectures, limiting the potential of LMMs. In this work, we propose the Hierarchical Mask Tokenizer (HiMTok), which represents segmentation masks with up to 32 tokens and eliminates the need for the original image during mask de-tokenization. HiMTok allows for compact and coarse-to-fine mask representations, aligning well with the LLM next-token-prediction paradigm and facilitating the direct acquisition of segmentation capabilities. We develop a 3-stage training recipe for progressive learning of segmentation and visual capabilities, featuring a hierarchical mask loss for effective coarse-to-fine learning. Additionally, we enable bidirectional information flow, allowing conversion between bounding boxes and mask tokens to fully leverage multi-task training potential. Extensive experiments demonstrate that our method achieves state-of-the-art performance across various segmentation tasks,while also enhancing visual grounding and maintaining overall visual understanding.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

HiMTok: Learning Hierarchical Mask Tokens for Image Segmentation with Large Multimodal Model

974Python, CudaMar 20, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{wang2025himtok,
  title  = {HiMTok: Learning Hierarchical Mask Tokens for Image Segmentation with Large Multimodal Model},
  author = {Tao Wang and Changxu Cheng and Lingfeng Wang and Senda Chen and Wuyue Zhao},
  year   = {2025},
  eprint = {2503.13026},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.13026v2},
  journal = {ICCV 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.13026.svg)](https://codeofpaper.com/paper/2503.13026)

Discussion