ALTo: Adaptive-Length Tokenizer for Autoregressive Mask Generation
Lingfeng Wang, Hualing Lin, Senda Chen, Tao Wang, Changxu Cheng, Yangyang Zhong, Dong Zheng, Wuyue Zhao
TL;DR
The paper addresses the rigidity of fixed-length image tokens in multimodal language models by introducing ALTo, an adaptive-length tokenizer for autoregressive mask generation, and ALToLLM, a multimodal LLM that integrates ALTo. ALTo combines a mask tokenizer, a pixel-attentive mask de-tokenizer, and a token length predictor with differentiable token chunking to produce variable-length mask token sequences, optimized with a reconstruction loss and a length-regularization term. ALToLLM is trained via supervised fine-tuning and Group Relative Policy Optimization (GRPO) to balance mask quality and token efficiency, achieving state-of-the-art results on gRefCOCO, RefCOCO, RefCOCOm, and open-vocabulary segmentation benchmarks, while reducing average token usage from a fixed 32 to around 17 tokens. The work demonstrates that adaptive-token strategies can dramatically improve efficiency without sacrificing segmentation performance, enabling more scalable vision-language systems and offering a path toward broader adaptive tokenization in RGB and other modalities.
Abstract
While humans effortlessly draw visual objects and shapes by adaptively allocating attention based on their complexity, existing multimodal large language models (MLLMs) remain constrained by rigid token representations. Bridging this gap, we propose ALTo, an adaptive length tokenizer for autoregressive mask generation. To achieve this, a novel token length predictor is designed, along with a length regularization term and a differentiable token chunking strategy. We further build ALToLLM that seamlessly integrates ALTo into MLLM. Preferences on the trade-offs between mask quality and efficiency is implemented by group relative policy optimization (GRPO). Experiments demonstrate that ALToLLM achieves state-of-the-art performance with adaptive token cost on popular segmentation benchmarks. Code and models are released at https://github.com/yayafengzi/ALToLLM.
