Patch-as-Decodable-Token: Towards Unified Multi-Modal Vision Tasks in MLLMs

Yongyi Su, Haojie Zhang, Shijie Li, Nanqing Liu, Jingyi Liao, Junyi Pan, Yuan Liu, Xiaofen Xing, Chong Sun, Chen Li, Nancy F. Chen, Shuicheng Yan, Xulei Yang, Xun Xu · DOI

Abstract

Current Multimodal Large Language Models (MLLMs) typically handle vision tasks like object detection by converting spatial coordinates into text strings. This "text-based vision" approach suffers from semantic misalignment and discretization errors. We introduce Patch-as-Decodable Token (PaDT), a framework that enables MLLMs to output "Visual Reference Tokens" (VRTs)—actual image patches—directly. By dynamically expanding the LLM's vocabulary with patches from the current input image, PaDT achieves state-of-the-art performance across detection, segmentation, and grounding. Notably, our 3B parameter model outperforms a massive 78B model, demonstrating the efficiency of visual-native decoding.

Introduction

To perform visual tasks, researchers traditionally force MLLMs to serialize targets into text (e.g., generating [120, 45, 300, 250] digit-by-digit). This method has significant flaws: numerical tokens lack the semantic meaning of the objects they represent, and dense predictions like pixel-perfect segmentation masks are nearly impossible to represent as text.

Overview of PaDT across various multi-modal vision tasks including detection, comprehension, and captioning.

PaDT addresses these issues by allowing the MLLM to output visual tokens natively alongside text. This shift ensures that the output tokens carry the visual features of the specific objects in the image, maintaining perfect semantic alignment and enabling a single, lightweight model to handle diverse tasks.

Methodology

The core innovation of PaDT is the treatment of image patches as decodable tokens within the LLM's autoregressive generation process.

Visual Reference Tokens and Dynamic Vocabulary

Instead of using a fixed global vocabulary of visual tokens, PaDT employs Dynamic Codebook Expansion. For every input image, the model adds the corresponding visual patch embeddings to the LLM's vocabulary for that specific forward pass. This prevents the model from predicting features not present in the current scene, effectively eliminating a common source of hallucinations.

Lightweight Decoding and Training

A small decoder translates the predicted VRTs into structured outputs like bounding boxes or segmentation masks. During training, the model is optimized to predict a small, representative subset of patches (e.g., 5 VRTs per object) rather than every foreground patch. This "less is more" strategy avoids feature redundancy and improves decoder performance. A custom "Robust Per-token Cross-Entropy Loss" ensures the model is only penalized for the tokens it is intended to predict.

Visual Reference Tokens (VRTs) applied to a segmentation task in a complex urban scene, demonstrating the model's ability to ground specific objects.

Experiments and Results

The framework was evaluated on standard benchmarks including RefCOCO/+/g and COCO 2017. The authors also introduced Referring Image Captioning (RIC), a new benchmark requiring models to generate fluent captions that explicitly include instance-specific bounding boxes.

Key Performance Metrics

  • Efficiency: The PaDT Pro 3B model achieved an average accuracy of 93.6% on RefCOCO tasks, surpassing the 78B InternVL3 model (91.4%).
  • Detection Gains: On COCO 2017 open-vocabulary detection, PaDT Pro 3B reached 38.2 mAP, nearly tripling the performance of the base Qwen2.5-VL 3B model (13.7 mAP).
  • Segmentation: The model achieved state-of-the-art mask cIoU scores (e.g., 86.0 on RefCOCO val), proving that native visual decoding can handle dense prediction tasks without relying on heavy external segmenters like SAM.

Conclusion

PaDT represents a significant step toward unifying multi-modal vision tasks within the LLM framework. By treating image patches as first-class decodable tokens, it eliminates the bottlenecks of text-based coordinate representation. This paradigm suggests a path toward consolidating even more complex tasks, such as video tracking and 3D spatial reasoning, under a single autoregressive architecture.

Summary updated

BibTeX
@inproceedings{su2026patch,
  author = {Yongyi Su and Haojie Zhang and Shijie Li and Nanqing Liu and Jingyi Liao and Junyi Pan and Yuan Liu and Xiaofen Xing and Chong Sun and Chen Li and Nancy F. Chen and Shuicheng Yan and Xulei Yang and Xun Xu},
  title = {{Patch-as-Decodable-Token: Towards Unified Multi-Modal Vision Tasks in MLLMs}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=xF0Dcmvsl0},
}
Figure