atlas

Research map / Architectures and efficiency / Attention and transformers

DeepStack: Deeply Stacking Visual Tokens is Surprisingly Simple and Effective for LMMs

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Efficient language transformers · 9 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 DeepStack, which splits visual tokens into a grid of N groups and injects each group residually into successive early LLM (and ViT) layers, boosting LMM performance on high-resolution benchmarks without adding context length.

Problem

Standard LMMs feed all visual tokens as a prefix into the first LLM layer, which greatly increases compute and memory cost, especially for high-resolution images and videos, and existing token compression sacrifices fine-grained detail.

Approach

Stack high-resolution visual tokens into groups aligned with successive early transformer layers (bottom-to-top) and add each group via a residual connection, so more visual information is conveyed without increasing the input context length; the same idea is applied to ViT layers.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply DeepStack visual-token stacking across LLM layersLLaVA-1.5-7B · DocVQAaccuracy: 28.1 -> 39.1Helped
Apply DeepStack visual-token stacking across LLM layersLLaVA-1.5-7B · TextVQAaccuracy: 58.2 -> 62.4Helped
Apply DeepStack visual-token stacking across LLM layersLLaVA-1.5-7B · InfoVQAaccuracy: 25.8 -> 29.8Helped
Apply DeepStack visual-token stacking across LLM layersLLaVA-1.5-7B · MM-Vetscore: 30.5 -> 29.9Hurt
Stack high-resolution visual tokens instead of repeated original tokens (ablation)DeepStack · Phi-3 evaluation suiteAVG: 49.1 -> 51.1Helped
Use spatially consistent 2d Spatial sampling rather than 2d Grid sampling (ablation)DeepStack · Phi-3 evaluation suiteAVG: 49.0 -> 51.1Helped
Use spatially consistent 2d Spatial sampling rather than 1d Sequential sampling (ablation)DeepStack · Phi-3 evaluation suiteAVG: 49.3 -> 51.1Helped
Fine-tune the vision encoder (ablation)DeepStack · Phi-3 evaluation suiteAVG: 51.1 -> 52.4Helped
Fine-tune the vision encoder (ablation)No token enhancement · Phi-3 evaluation suiteAVG: 49.1 -> 48.5Hurt
Use 20 rather than 0 ViT encoder layers before DeepStack (ablation)DeepStack-V · ViT evaluation suiteAVG: 41.2 -> 51.3Helped
Use 16 rather than 20 ViT encoder layers before DeepStack (ablation)DeepStack-V · ViT evaluation suiteAVG: 51.3 -> 50.9Hurt
Increase the number of LLM layers used for stacking high-resolution tokens (ablation)DeepStack · Phi-3 evaluation suiteAVGHelped

Surprising findings

Limitations

Experimental setup

Datasets: LCS-558k LLaVA-mixed-665k custom 748K SFT mixture following LLaVA-NeXT

Benchmarks: VQAv2 GQA TextVQA DocVQA InfoVQA SEED POPE MMMU MM-Vet ChartQA MultiDocVQA EgoSchema

Metrics: accuracy score

Baselines: LLaVA-1.5 LLaVA-NeXT VILA Qwen-VL InstructBLIP BLIP-2

Builds on: LLaVA-1.5 LLaVA-NeXT CLIP

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