Paper: 2605.00789 Authors: Xihao Chen, Yangyang Guo, Roger Zimmermann Categories: cs.CV, cs.AI, cs.LG

The Gap

Large Vision-Language Models (LVLMs) inherited KV caching from LLMs to speed up autoregressive decoding. But there’s a mismatch: LLMs process hundreds of text tokens during prefill, while LVLMs process thousands of vision tokens (a 336×336 image becomes 576 tokens). Existing compression methods treat vision tokens in isolation—they prune or merge based on visual similarity alone, ignoring what the text prompt actually asks for. This creates two problems: (1) massive GPU memory overhead from storing all those vision-token KV pairs, and (2) wasted computation on vision tokens irrelevant to the user’s question.

Prior work like FastV and LOOK-M compress vision tokens, but they’re prompt-agnostic. They decide what to keep before seeing the question. It’s like summarizing a textbook chapter before knowing what the exam question is.

Problem: Vision tokens bloat KV cache
         |
         v
Assumption: Not all vision tokens matter equally for a given prompt
         |
         v
Method: Cross-modal message passing guided by text
         |
         v
Evidence: 55% tokens retained, 50% cache reduction, performance preserved
         |
         v
Conclusion: Prompt-aware compression beats vision-only pruning

The Increment

One sentence: Before LightKV, vision-token compression was blind to the text prompt; after LightKV, the prompt actively guides which vision tokens to keep during prefill.

Core Mechanism

LightKV operates during the prefill stage, before any text generation begins. It takes the image tokens and text prompt as input, then progressively compresses the vision tokens through multiple transformer layers. At each layer, it runs cross-attention from text to vision (letting the prompt “query” the image), aggregates messages across vision tokens, and merges redundant ones based on their relevance to the prompt.

The compression happens in stages. Early layers keep more tokens to preserve fine-grained details. Deeper layers compress more aggressively as high-level semantics emerge. A learnable “compression schedule” determines how many tokens to keep at each layer—this schedule is trained end-to-end, not hand-tuned. The final compressed set of vision tokens gets cached, and the model proceeds with normal autoregressive decoding using this smaller KV cache.

Input: [Vision tokens] + [Text prompt]
         |
         v
Layer 1: Text queries vision via cross-attention
         Vision tokens exchange messages
         Keep 90% of tokens (light compression)
         |
         v
Layer 2: Repeat cross-attention + message passing
         Keep 75% of tokens
         |
         v
Layer N: Final compression
         Keep 55% of tokens
         |
         v
Output: Compressed vision tokens -> KV cache

Think of it like packing a suitcase for a specific trip. Vision-only compression is like deciding what clothes to pack before knowing your destination—you might bring a winter coat to a beach. LightKV reads the itinerary (text prompt) first. If the prompt asks “What color is the car?”, it keeps tokens around vehicles and discards background foliage. The packing happens in stages: first you eliminate obviously irrelevant items (swimsuit for a ski trip), then you make finer distinctions (which of three jackets to bring). The “compression schedule” is your packing strategy—how ruthlessly to cut at each decision point. By the time you close the suitcase, you’ve kept exactly what the trip requires, not a generic travel kit.

Key Concepts

  • Cross-modality message passing: In standard transformers, tokens only talk to tokens of the same type (text-to-text, vision-to-vision). Here, text tokens send queries to vision tokens via cross-attention, asking “which parts of the image matter for my question?” Vision tokens then exchange information among themselves (self-attention) to aggregate context. This two-way conversation lets the prompt shape which vision features survive compression. Concrete example: prompt says “count the apples”, cross-attention highlights red circular regions, message passing groups nearby apple tokens, compression keeps one representative per cluster.

  • Progressive compression schedule: Instead of compressing all at once, LightKV compresses gradually across layers. Early layers keep 90% of tokens, middle layers 75%, final layers 55%. Why? Early layers capture low-level features (edges, textures) that need spatial detail. Deeper layers extract high-level semantics (object categories, relationships) that tolerate more compression. The schedule is a learned parameter—the model figures out the optimal compression rate per layer during training. Think of it like image compression: you can’t throw away 50% of pixels immediately, but you can progressively downsample as you move from raw pixels to semantic features.

Framework Shift

Before (vision-only compression):        After (LightKV):

Image -> Vision Encoder                  Image -> Vision Encoder
         |                                        |
         v                                        v
    [All vision tokens]                      [All vision tokens]
         |                                        |
         v                                        +<-------+
    Prune by similarity                          |        |
    (no prompt info)                        Text Prompt   |
         |                                        |        |
         v                                        v        |
    [Compressed tokens]                   Cross-attention |
         |                                        |        |
         v                                        v        |
    KV Cache -> Decode                    Message passing |
                                                  |        |
                                                  v        |
                                          Compress layer N-+
                                                  |
                                                  v
                                          [Compressed tokens]
                                                  |
                                                  v
                                          KV Cache -> Decode

From blind pruning to guided compression, the core shift is making the text prompt an active participant in deciding which vision tokens matter.

Expert Assessment

Problem choice: Real gap. KV cache memory is a known bottleneck for deploying LVLMs, and vision tokens are the obvious culprit (10-100× more tokens than text). The insight that existing methods ignore the prompt is sharp—it’s obvious in hindsight but overlooked by prior work. This sits squarely in the “efficiency for deployment” track, which is hot right now.

Method maturity: Clever insight, solid execution. Cross-modal attention for compression is not new conceptually, but applying it progressively during prefill with a learned schedule is a nice twist. The method is more principled than brute-force pruning, but it’s not groundbreaking—it’s an engineering refinement of existing attention mechanisms. One concern: the learned compression schedule adds training overhead and might not transfer well across model families.

Experimental integrity: Baselines are fair (FastV, LOOK-M, token merging). Eight models, eight benchmarks—good coverage. The 55% retention rate is consistent across experiments, which builds confidence. However, the paper doesn’t report wall-clock latency, only FLOPs reduction. Memory savings are real, but does it actually speed up inference on real hardware? Also, no ablation on what happens if you compress more aggressively (say, 40% retention)—where’s the performance cliff?

Writing quality: The abstract and intro are crisp. The method section is dense but clear. The related work section is perfunctory—it lists prior methods but doesn’t deeply contrast their design choices. The results section front-loads tables without enough narrative to guide interpretation. If I were revising, I’d expand the ablation study (Section 4.3) to explore failure modes and add a “when does LightKV struggle?” subsection.

Verdict: weak accept — Solid incremental contribution with practical value, but not a paradigm shift. The prompt-aware angle is the main novelty; everything else is competent execution.

Takeaways

Steal the progressive compression pattern: Don’t compress all at once. If you’re building any multi-stage model (vision, audio, multimodal), consider compressing gradually as features move from low-level to high-level. The learned schedule idea transfers—let the model figure out the compression rate per stage rather than hand-tuning.

Cross-modal guidance generalizes: Anytime you have two modalities where one is expensive (vision, audio) and one is cheap (text), use the cheap one to guide compression of the expensive one. This applies beyond LVLMs: video understanding (text guides frame selection), audio transcription (text guides which audio segments to keep), retrieval (query guides document compression).

Benchmark on real hardware: The paper reports FLOPs and memory, but practitioners care about wall-clock time. If you’re doing efficiency work, measure end-to-end latency on target hardware (A100, H100, edge devices). FLOPs reduction doesn’t always translate to speedup due to memory bandwidth and kernel fusion.

论文: 2605.00789 作者: Xihao Chen, Yangyang Guo, Roger Zimmermann 分类: cs.CV, cs.AI, cs.LG

缺口

大型视觉-语言模型(LVLM)从大语言模型(LLM)那里继承了KV缓存机制来加速自回归解码。

但存在不匹配:LLM在预填充阶段处理几百个文本token,而LVLM要处理数千个视觉token(一张336×336的图像会变成576个token)。

现有压缩方法孤立地处理视觉token——它们仅基于视觉相似性进行剪枝或合并,忽略了文本提示实际在问什么。

这造成两个问题:(1)存储所有这些视觉token的KV对导致巨大的GPU显存开销,(2)在与用户问题无关的视觉token上浪费计算。

FastV和LOOK-M等先前工作会压缩视觉token,但它们与提示无关。

它们在看到问题之前就决定保留什么。

这就像在知道考题之前就总结教科书章节。

问题:视觉token让KV缓存膨胀
         |
         v
假设:对于给定提示,并非所有视觉token同等重要
         |
         v
方法:文本引导的跨模态消息传递
         |
         v
证据:保留55%的token,缓存减少50%,性能保持
         |
         v
结论:提示感知的压缩优于纯视觉剪枝

增量

一句话: LightKV之前,视觉token压缩对文本提示视而不见;LightKV之后,提示在预填充阶段主动引导保留哪些视觉token。

核心机制

LightKV在预填充阶段运作,在任何文本生成开始之前。

它接收图像token和文本提示作为输入,然后通过多个transformer层渐进式地压缩视觉token。

在每一层,它运行从文本到视觉的交叉注意力(让提示”查询”图像),在视觉token之间聚合消息,并根据它们与提示的相关性合并冗余token。

压缩分阶段进行。

早期层保留更多token以保存细粒度细节。

更深的层随着高层语义的出现而更激进地压缩。

一个可学习的”压缩时间表”决定每层保留多少token——这个时间表是端到端训练的,不是手工调整的。

最终压缩后的视觉token集被缓存,模型使用这个更小的KV缓存继续正常的自回归解码。

输入:[视觉tokens] + [文本提示]
         |
         v
第1层:文本通过交叉注意力查询视觉
       视觉tokens交换消息
       保留90%的tokens(轻度压缩)
         |
         v
第2层:重复交叉注意力 + 消息传递
       保留75%的tokens
         |
         v
第N层:最终压缩
       保留55%的tokens
         |
         v
输出:压缩后的视觉tokens -> KV缓存

把它想象成为特定旅行打包行李箱。

纯视觉压缩就像在知道目的地之前决定打包什么衣服——你可能会给海滩旅行带冬季大衣。

LightKV先读行程单(文本提示)。

如果提示问”汽车是什么颜色?“,它保留车辆周围的token,丢弃背景树叶。

打包分阶段进行:首先你排除明显无关的物品(滑雪旅行的泳衣),然后做更精细的区分(三件夹克带哪件)。

“压缩时间表”是你的打包策略——在每个决策点要多狠心地削减。

当你合上行李箱时,你恰好保留了旅行所需的东西,而不是通用旅行套装。

关键概念

  • 跨模态消息传递:在标准transformer中,token只与同类型的token对话(文本对文本,视觉对视觉)。

这里,文本token通过交叉注意力向视觉token发送查询,询问”图像的哪些部分对我的问题重要?“然后视觉token之间交换信息(自注意力)来聚合上下文。

这种双向对话让提示塑造哪些视觉特征在压缩中存活。

具体例子:提示说”数苹果”,交叉注意力突出红色圆形区域,消息传递将附近的苹果token分组,压缩为每个簇保留一个代表。

  • 渐进式压缩时间表:LightKV不是一次性压缩,而是跨层逐步压缩。

早期层保留90%的token,中间层75%,最终层55%。

为什么?早期层捕获需要空间细节的低级特征(边缘、纹理)。

更深的层提取能容忍更多压缩的高级语义(对象类别、关系)。

时间表是一个学习参数——模型在训练期间找出每层的最优压缩率。

把它想象成图像压缩:你不能立即丢弃50%的像素,但可以在从原始像素移动到语义特征时逐步降采样。

框架转变

之前(纯视觉压缩):                之后(LightKV):

图像 -> 视觉编码器                  图像 -> 视觉编码器
         |                                  |
         v                                  v
    [所有视觉tokens]                   [所有视觉tokens]
         |                                  |
         v                                  +<-------+
    按相似度剪枝                            |        |
    (无提示信息)                      文本提示     |
         |                                  |        |
         v                                  v        |
    [压缩后的tokens]                   交叉注意力   |
         |                                  |        |
         v                                  v        |
    KV缓存 -> 解码                     消息传递     |
                                            |        |
                                            v        |
                                      压缩第N层------+
                                            |
                                            v
                                    [压缩后的tokens]
                                            |
                                            v
                                    KV缓存 -> 解码

从盲目剪枝到引导压缩,核心转变是让文本提示成为决定哪些视觉token重要的主动参与者。

专家评审

选题眼光:真实缺口。

KV缓存内存是部署LVLM的已知瓶颈,视觉token是明显的罪魁祸首(比文本多10-100倍的token)。

现有方法忽略提示的洞察很敏锐——事后看来很明显,但被先前工作忽视了。

这正处于”部署效率”赛道,目前很热门。

方法成熟度:巧妙洞察,扎实执行。

用于压缩的跨模态注意力在概念上不新,但在预填充期间用学习的时间表渐进式应用是个不错的转折。

该方法比暴力剪枝更有原则,但不是突破性的——它是对现有注意力机制的工程改进。

一个担忧:学习的压缩时间表增加了训练开销,可能无法很好地迁移到不同模型家族。

实验诚意:基线公平(FastV、LOOK-M、token合并)。

八个模型,八个基准——覆盖面好。

55%的保留率在实验中一致,这增强了信心。

然而,论文没有报告实际延迟,只有FLOPs减少。

内存节省是真实的,但在真实硬件上实际加速推理了吗?此外,没有关于更激进压缩(比如40%保留率)会发生什么的消融——性能悬崖在哪里?

写作功力:摘要和引言简洁。

方法部分密集但清晰。

相关工作部分敷衍——它列出了先前方法但没有深入对比它们的设计选择。

结果部分在没有足够叙述引导解释的情况下前置了表格。

如果我修订,我会扩展消融研究(第4.3节)以探索失败模式,并添加”LightKV何时挣扎?“小节。

判决:弱接收 — 具有实用价值的扎实增量贡献,但不是范式转变。

提示感知角度是主要新颖性;其他都是称职的执行。

要点总结

偷走渐进式压缩模式:不要一次性压缩。

如果你在构建任何多阶段模型(视觉、音频、多模态),考虑在特征从低级移动到高级时逐步压缩。

学习时间表的想法可迁移——让模型找出每个阶段的压缩率,而不是手工调整。

跨模态引导可泛化:任何时候你有两种模态,其中一种昂贵(视觉、音频),一种便宜(文本),用便宜的引导昂贵的压缩。

这适用于LVLM之外:视频理解(文本引导帧选择)、音频转录(文本引导保留哪些音频片段)、检索(查询引导文档压缩)。

在真实硬件上基准测试:论文报告了FLOPs和内存,但实践者关心实际时间。

如果你在做效率工作,在目标硬件(A100、H100、边缘设备)上测量端到端延迟。

由于内存带宽和内核融合,FLOPs减少并不总是转化为加速。