Target-Aware Token Merging for Cheaper Multimodal Synthetic Data

Many vision-language datasets are now written by machines. A large teacher model looks at an image and writes captions, questions, or referring expressions, and filter models then throw away the bad outputs. The pipeline behind InstructDET is a good example: it ran LLaVA, LLaMA and CLIP over 120.6K images and millions of object crops to produce 3.6 million referring-detection instructions. Nearly all of that compute goes into the teacher reading image tokens. Token merging is a training-free way to make a transformer cheaper. It works by averaging similar image patches into a single token as the model runs. The obvious move is to apply it to the teacher. Two things stand in the way. Merging blurs exactly the small details and spatial positions that grounding annotations depend on, and nobody has checked whether a degraded teacher produces degraded training data.

This proposal rests on one observation. During data synthesis, unlike at deployment, we already know what the teacher is supposed to look at. The box being described, the object being referred to, and the region a filter must verify are inputs to the pipeline. We propose merging that uses this free information. Tokens inside and around the annotation target are never merged. Background is merged aggressively. The positions of merged tokens are preserved. We then judge the method by what it is actually for: student accuracy per unit of teacher compute. A cheaper teacher is only useful if the dataset it writes trains the student about as well as the dataset the full teacher writes.

Core Claim

In region-level multimodal synthesis, protecting the annotation target lets a teacher run at a much smaller token budget than prompt-agnostic merging allows, without lowering the quality of the generated labels. Our claim is that this holds at budgets where uniform merging already starts to hallucinate or misplace objects. The claim is falsifiable on two fronts. First, at matched teacher compute, a student trained on target-aware-merged data must beat students trained on data from (a) uniformly merged teachers, (b) a smaller unmerged teacher, and (c) a full teacher that simply produces fewer samples. Second, the gain must vanish when the protected region is moved to a random location of the same size. That control shows the target information, and not merely a lower merge rate, is doing the work.

Where This Sits

The merging mechanism comes from Token Merging: Your ViT But Faster (ToMe). ToMe splits tokens into two alternating sets, matches each token in one set to its most similar partner in the other using attention-key cosine similarity, and averages the top-$r$ pairs. It reports roughly doubled ViT-L speed for a 0.2–0.3% ImageNet accuracy drop. We reuse that matching step unchanged.

Two lines of work show that a cheap importance signal can steer which tokens get merged:

  • Importance-Based Token Merging for Efficient Image and Video Generation reads importance from the classifier-free-guidance difference in diffusion models. It leaves poorly matched tokens unmerged as "independent" tokens, and reports FID 17.75 versus 20.89 for ToMe for Stable Diffusion at a 0.75 merge ratio.
  • iLLaVA and PruneSID rank tokens by attention or by principal semantic components inside vision-language models. They keep over 95% and 96.3% of vanilla performance at roughly 89% token reduction.

These works supply the method and the competing baselines. Our importance signal differs from all of them: it is the known annotation target, which costs nothing and, unlike attention or guidance scores, cannot be wrong about what the prompt is asking.

Several papers constrain the design. iLLaVA and the file's account of PruneSID both report that prompt-agnostic compression hurts fine detail, text reading, and small-object questions. PPE shows that discarding the positions of merged tokens is very costly: keeping them improved TextVQA by 19.48% and DocVQA by 24.31% over Chat-UniVi at 55% compression. We therefore adopt PPE's position-preserving embedding (via its code) for merged background tokens, so that spatial relations like "left of the dog" survive.

The closest bridge between merging and synthetic data is MergeMix. It uses bipartite matching to build Mixup masks and preference-learning negatives for training the student. It does nothing to the cost of the teacher or the filter. FastAST puts merging inside a distilled student. Self-Data Distillation uses an uncompressed teacher to regenerate data for a pruned model. None of these touches synthesis overhead.

The application regime and the case for motivation come from InstructDET. Its CLIP filter already blurs the background and circles the target before scoring. In effect, the pipeline's own designers decided that background detail is noise for verification, which is exactly what our merging assumes. Beyond Quantity adds a caution: more uncurated synthetic data shows diminishing returns. Compute saved by merging is therefore not automatically valuable, and our evaluation is built to measure whether it is.

Research Program

We will rebuild a scaled-down InstructDET-style pipeline on COCO images using open models. The stages are:

  1. LLaVA-1.5 writes global captions.
  2. An open LLM turns captions into instructions.
  3. LLaVA-1.5 writes local captions for each box.
  4. A CLIP visual-prompt filter rejects hallucinated outputs.

Merging is inserted in the vision encoder and, following iLLaVA's two-stage design, in the early LLM layers. This matters because for a 7B teacher the cost is dominated by the LLM reading the 576 image tokens, not by the vision encoder.

The target-aware rule works as follows. Let $M$ be the set of patches that overlap the target box, enlarged by a margin of $m$ patches. Tokens in $M$ are excluded from the bipartite matching. The merge count $r$ is applied only to the remaining tokens and is raised so that the total token budget $B$ matches a uniform-merging baseline.

For multi-object instructions (InDET's higher complexity levels), $M$ is the union of all referenced boxes. Global-caption stages, which have no specific target, use plain ToMe at a milder rate. For the CLIP filter, we merge only the regions that InstructDET already blurs.

The analysis has three parts:

  • Label noise. For each configuration we measure how label quality changes as the budget $B$ shrinks. Measures are the filter acceptance rate, hallucination rate on a human-audited subset of about 1,000 samples, and whether a generated expression still uniquely identifies its box when checked by a strong held-out grounding model.
  • Downstream utility. We train identical students on each dataset.
  • Compute frontier. We trace student accuracy against total teacher-plus-filter GPU-hours, which shows where the saved compute is better spent: more images, more filtering, or nothing.

Baselines

The naive reference point is the unmodified full-token pipeline. It is the quality ceiling and the cost we aim to cut. All arms use the same seed images, prompts, decoding settings, and filter thresholds. Students are trained with identical recipes and step counts, with three seeds each.

The strongest existing prompt-agnostic competitors are ToMe at matched budget $B$ and iLLaVA-style two-stage reduction. PruneSID is the strongest pruning-plus-diversity variant. Each gets the same small budget for tuning its hyperparameters (merge schedule, layers) on a held-out 2K-image calibration set, picked by acceptance rate. Beating them means equal or better student AP at a token budget at least a third smaller, or better AP at the same budget, with non-overlapping seed intervals.

The strongest cost competitors are a smaller unmerged teacher and the full teacher producing proportionally fewer samples. Both are matched to the merged pipeline in measured GPU-hours, not in theoretical FLOPs.

Two ablations isolate the key ingredients:

  • Random-region protection uses the same protected-token count as target-aware merging but places it at a random location. This isolates the target information.
  • Target-aware merging without position preservation isolates PPE's contribution.

For reference, InstructDET reports 62.24% AP on the InDET test set for DROD trained on the full 3.6M samples, against 43.37% for UNINEXT. It gives no RefCOCOg number in the file: there is no reported result found on Lacuna for RefCOCOg AP. There is also no reported result found on Lacuna for any merged-teacher synthesis pipeline. Our full-pipeline reproduction at reduced scale is therefore the operative baseline, and the 62.24% figure serves only as a ceiling.

Why not just…?

Why not just crop the box and caption the crop? This is the most serious threat, because cropping is target-aware and cuts tokens to nearly nothing. It fails whenever the expression needs context. InDET's multi-object and relational instructions ("the cup behind the laptop") cannot be written from a crop. We will run a crop baseline and a crop-plus-low-resolution-thumbnail baseline at matched cost, and break results down by instruction complexity level. If crop-plus-thumbnail matches us on relational levels, then the merging machinery is unnecessary, and we will report that.

Why not just use a smaller teacher? A smaller teacher degrades every token, including the target. Merging degrades only the background. The matched-GPU-hour smaller-teacher arm tests this directly. If it wins, then most of the teacher's value lies in model capacity rather than in image detail, which would itself be a useful finding.

Why not just generate fewer samples? Given the saturation reported in Beyond Quantity, fewer full-quality samples could plausibly match more merged ones. The fewer-samples arm at matched compute settles this. Our contribution only holds if the merged pipeline sits above the curve traced by subsampling the full pipeline.

Why not just lower the input resolution? Downsampling removes small-object detail everywhere, which is exactly the failure mode iLLaVA and PPE document for text and small details. We include a matched-budget downsampling arm and report results by object size.

Proposed Experiments

The primary experiment uses about 30K COCO training images. We generate referring instructions under each arm at three budgets $B$ (50%, 25%, and 11% of 576 tokens). We train a fixed open-vocabulary grounding student on each dataset and evaluate on RefCOCOg and a held-out InDET-style test split, measuring AP overall and by complexity level and object size. Alongside this we report wall-clock GPU-hours per accepted sample, the audited hallucination rate, and the unique-identifiability rate.

The decisive checks are:

  1. At the 25% budget, target-aware merging stays within one AP point of the full pipeline while uniform ToMe falls measurably below.
  2. Random-region protection loses most of that advantage.
  3. On the accuracy-per-GPU-hour plot, the target-aware curve dominates the smaller-teacher, subsampling, and crop-plus-thumbnail curves on relational instructions.

If the first check holds but the third does not, the honest conclusion is that merging speeds up synthesis but is not the best use of a compute budget.

A secondary check tests generality. We apply the same rule to the box-level stage of a video pipeline in the style of LLaVA-Video, where temporal redundancy should make background merging cheaper still. Results are measured on a small VideoMME-evaluated student.