Skip to content
AI360Xpert
Beta

Qwen-VL Unified Grounding

Train one vision-language backbone to caption, answer, and output boxes in words. One model then chats and points at once.

Qwen-VL trains one backbone for captioning plus grounding plus QA
Qwen-VL trains one backbone for captioning plus grounding plus QA

Why Does This Exist?

Separate caption, QA, and grounding models triple serving cost. Qwen-VL writes boxes as number words like xx 120120 yy 340340, so one LLM handles chat plus pointing. Training mixes caption, QA, and grounding batches, and visual grounding scores rise with chat skill intact.

This page covers unified box-as-text training only. Pure grounding heads are sibling pages in this wave.

The one idea you need first.

Box as text means coordinates xmin,ymin,xmax,ymaxx_{min}, y_{min}, x_{max}, y_{max} in 00 to 10001000 become ordinary tokens. Loss stays next-token on all outputs. No extra head is added.

Think of It Like This

A tour guide who names plus points with words

A guide says the red door is thirty steps left and ten up, using only words yet placing you well. One voice handles stories, questions, and directions without swapping experts.

Words are the shared channel, boxes are step counts, and joint training is guide school. Where it stops: human steps vary by stride, while model units stay fixed at 0 to 1000.

How It Actually Works

Encode photo with ViT ff at high resolution. Project to LLM tokens. Train mixed batches: captions for fluency, QA for reasoning, grounding for boxes as tokens. High-res tiles keep small objects visible. Total loss sums the three next-token terms with task weights.

In plain words: one backbone, three data streams, and numbers as words for boxes.

Worked example

Photo 10001000 wide, true box [120,200,360,500][120, 200, 360, 500]. Model writes 120 200 360 500. Intersection over union with truth is 1.01.0 when exact; shifting by 2020 pixels to [140,200,380,500][140, 200, 380, 500] gives overlap 220×300=66000220 \times 300 = 66000 over union 240×300+240×300−66000=78000240 \times 300 + 240 \times 300 - 66000 = 78000, so 0.8460.846. Token training still moves boxes metrically.

Watch Out For

Coarse boxes from downscaled inputs

Low-res inputs quantize small boxes to a few tokens and object detection recall sags. Tiny items vanish. Keep high-res tiles on for grounding batches even when caption batches run cheap.

The Quick Version

  • Qwen-VL writes boxes as text numbers in one chat model.
  • Caption plus QA plus grounding batches train together.
  • High resolution keeps small boxes accurate.
  • One backbone serves chat and pointing.
  • Check box accuracy, not just chat fluency.