Skip to main content
CenXiv.org
此网站处于试运行阶段,支持我们!
我们衷心感谢所有贡献者的支持。
贡献
赞助
cenxiv logo > cs > arXiv:2508.00367

帮助 | 高级搜索

计算机科学 > 计算机视觉与模式识别

arXiv:2508.00367 (cs)
[提交于 2025年8月1日 ]

标题: 表示迁移:将标记压缩与FlashAttention统一起来

标题: Representation Shift: Unifying Token Compression with FlashAttention

Authors:Joonmyung Choi, Sanghyeok Lee, Byungoh Ko, Eunseo Kim, Jihyung Kil, Hyunwoo J. Kim
摘要: Transformer在视觉、语言和视频领域展示了显著的成功。 然而,任务复杂性的增加导致了更大的模型和更多的标记,增加了自注意力的二次成本以及GPU内存访问的开销。 为了减少自注意力的计算成本,先前的工作提出了标记压缩技术,以删除冗余或信息量较少的标记。 同时,像FlashAttention这样的融合注意力内核被开发出来,通过避免注意力图的构建及其相关的HBM I/O来减轻内存开销。 然而,这使得它与大多数无需训练的标记压缩方法不兼容,这些方法依赖于注意力图来确定标记的重要性。 在此,我们提出了Representation Shift,这是一种无需训练、与模型无关的度量,用于衡量每个标记表示的变化程度。 这可以无缝地将标记压缩与FlashAttention结合,而无需注意力图或重新训练。 我们的方法进一步推广到CNN和状态空间模型。 大量实验表明,Representation Shift使与FlashAttention兼容的有效标记压缩成为可能,在视频文本检索和视频问答中分别实现了高达5.5%和4.4%的速度提升。 代码可在https://github.com/mlvlab/Representation-Shift获取。
摘要: Transformers have demonstrated remarkable success across vision, language, and video. Yet, increasing task complexity has led to larger models and more tokens, raising the quadratic cost of self-attention and the overhead of GPU memory access. To reduce the computation cost of self-attention, prior work has proposed token compression techniques that drop redundant or less informative tokens. Meanwhile, fused attention kernels such as FlashAttention have been developed to alleviate memory overhead by avoiding attention map construction and its associated I/O to HBM. This, however, makes it incompatible with most training-free token compression methods, which rely on attention maps to determine token importance. Here, we propose Representation Shift, a training-free, model-agnostic metric that measures the degree of change in each token's representation. This seamlessly integrates token compression with FlashAttention, without attention maps or retraining. Our method further generalizes beyond Transformers to CNNs and state space models. Extensive experiments show that Representation Shift enables effective token compression compatible with FlashAttention, yielding significant speedups of up to 5.5% and 4.4% in video-text retrieval and video QA, respectively. Code is available at https://github.com/mlvlab/Representation-Shift.
评论: 国际计算机视觉会议(ICCV),2025
主题: 计算机视觉与模式识别 (cs.CV)
引用方式: arXiv:2508.00367 [cs.CV]
  (或者 arXiv:2508.00367v1 [cs.CV] 对于此版本)
  https://doi.org/10.48550/arXiv.2508.00367
通过 DataCite 发表的 arXiv DOI(待注册)

提交历史

来自: Sanghyeok Lee [查看电子邮件]
[v1] 星期五, 2025 年 8 月 1 日 06:53:55 UTC (2,642 KB)
全文链接:

获取论文:

    查看标题为《》的 PDF
  • 查看中文 PDF
  • 查看 PDF
  • HTML(实验性)
  • TeX 源代码
  • 其他格式
查看许可
当前浏览上下文:
cs.CV
< 上一篇   |   下一篇 >
新的 | 最近的 | 2025-08
切换浏览方式为:
cs

参考文献与引用

  • NASA ADS
  • 谷歌学术搜索
  • 语义学者
a 导出 BibTeX 引用 加载中...

BibTeX 格式的引用

×
数据由提供:

收藏

BibSonomy logo Reddit logo

文献和引用工具

文献资源探索 (什么是资源探索?)
连接的论文 (什么是连接的论文?)
Litmaps (什么是 Litmaps?)
scite 智能引用 (什么是智能引用?)

与本文相关的代码,数据和媒体

alphaXiv (什么是 alphaXiv?)
CatalyzeX 代码查找器 (什么是 CatalyzeX?)
DagsHub (什么是 DagsHub?)
Gotit.pub (什么是 GotitPub?)
Hugging Face (什么是 Huggingface?)
带有代码的论文 (什么是带有代码的论文?)
ScienceCast (什么是 ScienceCast?)

演示

复制 (什么是复制?)
Hugging Face Spaces (什么是 Spaces?)
TXYZ.AI (什么是 TXYZ.AI?)

推荐器和搜索工具

影响之花 (什么是影响之花?)
核心推荐器 (什么是核心?)
IArxiv 推荐器 (什么是 IArxiv?)
  • 作者
  • 地点
  • 机构
  • 主题

arXivLabs:与社区合作伙伴的实验项目

arXivLabs 是一个框架,允许合作伙伴直接在我们的网站上开发和分享新的 arXiv 特性。

与 arXivLabs 合作的个人和组织都接受了我们的价值观,即开放、社区、卓越和用户数据隐私。arXiv 承诺这些价值观,并且只与遵守这些价值观的合作伙伴合作。

有一个为 arXiv 社区增加价值的项目想法吗? 了解更多关于 arXivLabs 的信息.

这篇论文的哪些作者是支持者? | 禁用 MathJax (什么是 MathJax?)
  • 关于
  • 帮助
  • contact arXivClick here to contact arXiv 联系
  • 订阅 arXiv 邮件列表点击这里订阅 订阅
  • 版权
  • 隐私政策
  • 网络无障碍帮助
  • arXiv 运营状态
    通过...获取状态通知 email 或者 slack

京ICP备2025123034号