atlas

Research map / Vision-language and multimodal / Multimodal LLMs

Matryoshka Query Transformer for Large Vision-Language Models

NeurIPS 2024 · Vision-language and multimodal › Multimodal LLMs · approach: Attention-based visual token pruning · 4 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Matryoshka Query Transformer (MQT), which randomly keeps only the first m of M latent query tokens during LLaVA-1.5 training so one model can encode images into any number of visual tokens (2 to 256) at inference.

Problem

LVLMs encode each image into a fixed number of visual tokens (e.g., 576 for LLaVA-1.5), so they cannot adapt the token budget to varying computational constraints or tasks.

Approach

Adapt Matryoshka Representation Learning to visual tokens: a query transformer with M latent queries is trained at each step using only a randomly chosen prefix of m queries (tail-token dropping), so earlier tokens carry the most information and any prefix length can be used at inference, with a single training run instead of MRL's multi-configuration passes.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use MQT-LLaVA with 256 visual tokens instead of LLaVA-1.5 with 576 tokensLLaVA-1.5 · 11 vision-language benchmarksAvg: 59.2 -> 59.4Helped
Replace fixed-token QT-LLaVA training with MQT elastic-token trainingQT-LLaVA · 11 vision-language benchmarksAvg: 58.8 -> 59.4Helped
Reduce inference-time visual tokens from 256 to 16MQT-LLaVA · MMBenchscore: 64.3 -> 61.9; 8x speed-upHurt
Reduce inference-time visual tokens from 256 to 2MQT-LLaVA · ScienceQA-IMGscore: 67.6 -> 65.0Hurt
Reduce inference-time visual tokens from 256 to 2MQT-LLaVA · MMMUscore: 34.8 -> 32.5Hurt
Replace linear token-number selection with log-based selection (ablation)MQT-LLaVA · 11 vision-language benchmarksAvg: 59.4 -> 57.3; 3.5% lowerHurt
Replace attention-then-projection with projection-then-attention (ablation)MQT-LLaVA · 11 vision-language benchmarksAvg: 59.4 -> 56.6Hurt
Apply elastic query-transformer training during first-stage pretraining (ablation)MQT-LLaVA · 11 vision-language benchmarksAvg: 59.4 -> 56.7; 4.5%Hurt
Use 16 rather than 144 inference-time visual tokensMQT-LLaVA · ScienceQA-IMGscore: 67.5 -> 67.5Helped
Use 256 rather than 144 inference-time visual tokensMQT-LLaVA · 11 vision-language benchmarksAvg: 58.9 -> 59.4Helped

Surprising findings

Limitations

Experimental setup

Datasets: LLaVA-558K LLaVA-665K

Benchmarks: VizWiz ScienceQA-IMG VQA-v2 GQA POPE MME Perception MME Cognition MMMU MMBench LLaVA-Bench (In-the-Wild) MM-Vet

Metrics: accuracy normalized average TFLOPs

Baselines: LLaVA-1.5 QT-LLaVA BLIP-2 InstructBLIP Shikra IDEFICS Qwen-VL

Builds on: Matryoshka Representation Learning LLaVA-1.5 Q-Former BLIP-2

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy