atlas

Research map / Architectures and efficiency / Attention and transformers

Low-Rank Approximation for Sparse Attention in Multi-Modal LLMs

CVPR 2024 · Architectures and efficiency › Attention and transformers · approach: Long-context KV and memory attention · 15 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 LoRA-Sparse, which adds low-rank query/key projections trained with an order-mimic loss to predict top-k attention entries, enabling about 50% sparse self-attention in LLaMA and LLaVA-1.5 that matches or slightly exceeds full-attention baselines.

Problem

The quadratic cost of self-attention in LLMs and multimodal LLMs, where computing the full attention map is needed to identify important query-key pairs for sparse attention, and where sparse attention is hard to adapt to pre-trained weights.

Approach

Approximate the attention map in a low-rank space with two extra linear projections, select top-s% keys per query from that approximation, and train the projections with an order-mimic loss (soft-margin ordering loss plus a sigmoid magnitude loss) so that the predicted ranking matches the full attention ranking, leaving the pre-trained weights unchanged.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use low-rank sparse attention instead of full attentionLLaMA 7B · ARC-Challengeaccuracy: 45.6 -> 47.3Helped
Use low-rank sparse attention instead of full attentionLLaMA 7B · LLM benchmarksaccuracy: Baseline/Ours: ReCoRD 92.2/91.8; ARC-Easy 73.4/73.2Mixed
Use low-rank sparse attention instead of full attentionLLaVA-1.5 Vicuna-7B · ScienceQA-Imageaccuracy: 67.6 -> 68.4Helped
Use low-rank sparse attention instead of full attentionLLaVA-1.5 Vicuna-7B · Multi-modal benchmarksscore: GQA 62.0 -> 62.4; ScienceQA-Image 67.6 -> 68.4; TextVQA 58.2 -> 58.2; POPE 85.9 -> 86.8; SEED-Bench 58.6 -> 58.8; LLaVA-Mixed
Replace low-rank attention approximation with deformable attention (ablation)LLaMA 7B · ARC-Easy, ARC-Challenge, OpenBookQA, PIQAaccuracy: Baseline/Ours/Deformable: arc-easy 73.4/73.2/24.4; arc-challenge 45.6/47.3/21.4; openbookqa 32.2/32.6/23.0; piqa 79.4/79Hurt
Increase low-rank approximation rank from 1 to 2 (ablation)LoRA-Sparse on LLaVA-1.5 · ScienceQA-Imageaccuracy: 64.6 -> 66.6Helped
Increase low-rank approximation rank from 2 to 4 (ablation)LoRA-Sparse on LLaVA-1.5 · ScienceQA-Imageaccuracy: 66.6 -> 67.6Helped
Increase low-rank approximation rank from 4 to 8 (ablation)LoRA-Sparse on LLaVA-1.5 · ScienceQA-Imageaccuracy: 67.6 -> 68.4Helped
Increase low-rank approximation rank from 8 to 16 (ablation)LoRA-Sparse on LLaVA-1.5 · ScienceQA-Imageaccuracy: 68.4 -> 68.5No clear effect
Increase low-rank approximation rank from 8 to 32 (ablation)LoRA-Sparse on LLaVA-1.5 · ScienceQA-Imageaccuracy: 68.4 -> 68.5No clear effect
Add order mimic loss (ablation)LoRA-Sparse on LLaVA-1.5 · ScienceQA-Imageaccuracy: 67.4 -> 68.4Helped
Add magnitude loss (ablation)LoRA-Sparse on LLaVA-1.5 · ScienceQA-Imageaccuracy: 68.1 -> 68.4Helped

Surprising findings

Limitations

Experimental setup

Datasets: RedPajama-V2 Alpaca LLaVA-1.5 665K instruction tuning mix PG19

Benchmarks: arc-easy arc-challenge openbookqa piqa winogrande record mnli mrpc rte wsc wic sst

Metrics: accuracy perplexity

Baselines: LLaMA 7B full attention LLaVA-1.5 7B BLIP-2 InstructBLIP Qwen-VL Deformable attention

Builds on: LLaVA-1.5 LLaMA Alpaca hard-hinge loss position interpolation

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