atlas

Research map / Vision-language and multimodal / Multimodal LLMs

Leveraging Visual Tokens for Extended Text Contexts in Multi-Modal Learning

NeurIPS 2024 · Vision-language and multimodal › Multimodal LLMs · approach: Training-free token reduction for MLLMs · 2 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 VisInContext, which renders overflow long text as images encoded by a frozen ViT and resampler so Flamingo-style MLLMs can see far longer in-context text at lower token cost.

Problem

Multimodal models trained on interleaved documents are limited to short in-context text (e.g., 256 tokens) because of GPU memory and compute costs of long text sequences.

Approach

Convert omitted long text segments into rendered RGB text images and encode them with the shared frozen vision encoder and a learnable resampler, using token masking and a text-centric contrastive loss (TCCL) to align visual text tokens with LLM text embeddings, thereby extending in-context text length without extra LLM tokens.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
render text as images (VisInContext) to extend ICL from 256 to 2048 tokensOpen-Flamingo MOE 56B · few-shot VL benchmarks (32-shot)Mean: 55.8 -> 57.8Helped
render text as images instead of raw text tokensOpen-Flamingo 9B · text-only in-context few-shot (32-shot)Mean: 34.4 -> 33.6 with 10 vs 426 text tokensMixed
render text as images for pretrainingOpen-Flamingo 9B · document understanding (DocVQA test, OCR VQA)ANLS / accuracy: DocVQA test 48.2 -> 52.2; OCR VQA 51.5 -> 58.4Helped
rendered text image pretrainingFuYu9B · DocVQA valANLS: 42.3 -> 44.5Helped
surrounding text rendered as image instead of raw textsequential multimodal retrieval model · OBELICS-Hybrid6Seq-I: 18.9 -> 22.7Helped
surrounding text rendered as image instead of raw textsequential multimodal retrieval model · OBELICS-Hybrid6Seq-T: 67.5 -> 66.5No clear effect
remove token masking (text image + TCCL only) (ablation)VisInContext · text-only 4-shot ablationTextVQA: 21.8 -> 18.3 (token masking removed, TCCL removed in same row set)Hurt
add token masking (ablation)text image pipeline · text-only 4-shot ablationTextVQA: 15.0 -> 18.3 (text image without vs with token masking, TCCL off)Helped
add TCCL on top of token masking (ablation)VisInContext · text-only 4-shot ablationTextVQA: 18.3 -> 21.8Helped
add TCCL without token masking (ablation)VisInContext · text-only 4-shot ablationTextVQA: 15.0 -> 15.3 (text image + TCCL vs no text image baseline 15.3)No clear effect
font size increased from 10 to 12 (or lowered to 8) for DocVQA (ablation)VisInContext text rendering · DocVQA valANLS: best at font 8 (45.6) vs 44.3 at font 10 and 36.2 at font 12Mixed
larger font interval threshold for text rendering (ablation)VisInContext text rendering · TextVQA and DocVQA valTextVQA / DocVQA: TextVQA 21.8 at threshold 2 -> 15.3 at threshold 32; DocVQA 44.3 -> 36.6Hurt

Surprising findings

Limitations

Experimental setup

Datasets: DataComp1B (180M subset) MMC4 OBELICS Rendered Text OCR data DocVQA OCR VQA OK-VQA TextVQA VizWiz VQAv2 COCO Flickr30K

Benchmarks: OK-VQA TextVQA VizWiz VQAv2 COCO Flickr30K DocVQA OCR VQA Sequential multimodal retrieval (OBELICS-Hybrid6)

Metrics: accuracy CIDEr ANLS retrieval recall

Baselines: OpenFlamingo-9B Open-Flamingo MOE (56B) FuYu-8B

Builds on: Flamingo OpenFlamingo CosMo Pixel

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