NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

NExT-Chat: An LMM for Chat, Detection and Segmentation

Ao Zhang, Yuan Yao, Wei Ji, Zhiyuan Liu, Tat-Seng Chua

Introduction

Large Multimodal Models (LMMs) have become highly adept at describing entire images, but they often struggle with "region-level" understanding—the ability to pinpoint, discuss, or segment specific objects within a scene.

The current standard for teaching LMMs about locations is the pix2seq approach, which converts bounding box coordinates into sequences of text tokens (e.g., [x1, y1, x2, y2]). However, this method has three major flaws:

  1. Resolution Bottleneck: It relies on discrete coordinate bins, limiting precision.
  2. Incompatibility: It is difficult to represent complex shapes like segmentation masks using simple text sequences.
  3. Efficiency: Representing a single box can require up to 26 tokens, significantly increasing the computational cost of the LLM's self-attention mechanism.

To address these issues, NExT-Chat introduces pix2emb, a novel paradigm that moves away from representing image coordinates as text strings, instead modeling them as continuous embeddings.

Comparison of pix2seq and pix2emb paradigms

The pix2emb Paradigm and Architecture

The authors propose the pix2emb (pixel-to-embedding) paradigm. Instead of forcing the model to "write out" coordinates, they introduce a special <trigger> token.

NExT-Chat Architecture
  • Location as Output: When the LMM generates a <trigger> token, its hidden state (embedding) is passed to specialized lightweight decoders: a 2-layer MLP for bounding boxes and a projection layer linked to the Segment Anything Model (SAM) for masks.
  • Location as Input: To "show" the model a specific region, a Box Encoder converts coordinates into an embedding that the LMM treats as a visual prompt.
  • Cycle Consistency Loss: To ensure the input and output "languages" for locations are aligned, the authors use a cycle consistency loss. This forces the model to ensure that a box it encodes and then immediately decodes remains the same, effectively anchoring the embedding space.

NExT-Chat is built on a LLaVA-like architecture using a CLIP ViT-L/14 vision encoder and the Vicuna 1.5 (7B) language model.

Training and Datasets

The model underwent a rigorous three-stage training process using a massive collection of data, including Flickr30K Entities, Visual Genome, RefCOCO/+/g, VQAv2, PointQA, Visual7W, VCR, and Shikra-RD. For segmentation, the model was further refined using the referring segmentation splits of the RefCOCO series.

Key Insights and Results

By using embeddings rather than text tokens, the model maintains the "natural" continuous state of spatial data, leading to better localization and the ability to output masks. Furthermore, pix2emb uses only 2 tokens to represent a box (the trigger and the embedding), making it 169 times more effective than the pix2seq method in terms of the quadratic cost of self-attention. Because the location is just another embedding, the model can also perform "grounded reasoning."

NExT-Chat demonstrates state-of-the-art (SOTA) performance across several tasks:

  • Image Hallucination: On the POPE-Random benchmark, NExT-Chat scored 87.70%, surpassing Shikra (86.90%).
  • Segmentation: In Referring Expression Segmentation (RES), NExT-Chat achieved a 71.3 cIoU, significantly outperforming LISA (67.9).
  • Region Captioning: On the RefCOCOg task, it achieved a CIDEr score of 79.6, crushing Kosmos-2 (62.3). When task-specifically fine-tuned, this score jumped to 114.0.

Limitations and Future Work

While highly effective, the authors identify a few key areas for improvement. The current training set primarily comprises individual images, leaving the model's performance on video or multi-image reasoning as an open question. Additionally, while excellent at general scenes, the model may struggle with specialized domains like medical imaging or satellite photography due to a lack of diverse training data. Finally, while NExT-Chat reduces "hallucinations" (claiming objects exist when they don't), it does not eliminate them entirely, suggesting a need for even better alignment techniques in future iterations.

Summary updated

BibTeX
@inproceedings{zhang2024next,
  author = {Ao Zhang and Yuan Yao and Wei Ji and Zhiyuan Liu and Tat-Seng Chua},
  title = {{NExT-Chat: An LMM for Chat, Detection and Segmentation}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=ZAW37OZ6ig},
}
Figure