arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.20120cs.CV
收藏

HEART-VIT: 基于Hessian的高效动态注意力与令牌剪枝方法用于视觉Transformer

HEART-VIT: Hessian-Guided Efficient Dynamic Attention and Token Pruning in Vision Transformer

Department of Computer Science and Engineering, University of Louisville(计算机科学与工程系,路易斯维尔大学)

Mohammad Helal Uddin, Liam Seymour, Sabur Baidya

AI总结:

HEART-ViT是一种基于Hessian的高效动态注意力与令牌剪枝方法,通过二阶信号实现输入自适应的视觉Transformer优化,实现显著的FLOPs减少和性能提升。

摘要:

视觉Transformer(ViTs)在准确率方面处于领先,但其二次注意力成本和冗余计算严重阻碍了在延迟和资源受限平台上的部署。现有剪枝方法要么单独处理令牌或头部,依赖启发式或一阶信号,这通常牺牲了精度或无法在不同输入上泛化。我们引入HEART-ViT,一种基于Hessian的高效动态注意力和令牌剪枝框架,用于视觉Transformer。据我们所知,HEART-ViT是首个统一的、二阶的、输入自适应的ViT优化框架。HEART-ViT通过高效的Hessian向量乘积估计令牌和注意力头部的曲率加权敏感度,从而在显式损失预算下实现原理化的剪枝决策。这种双视角敏感度揭示了重要的结构洞察:令牌剪枝主导计算节省,而头部剪枝提供细粒度的冗余去除,其组合实现了优越的权衡。在ImageNet-100和ImageNet-1K上使用ViT-B/16和DeiT-B/16时,HEART-ViT实现了高达49.4%的FLOPs减少,36%的更低延迟,以及46%的更高吞吐量,同时在微调后保持或甚至超过基线精度,例如在40%令牌剪枝时恢复了4.7%的精度。除了理论基准外,我们还在不同边缘设备如AGX Orin上部署HEART-ViT,证明我们的FLOPs和延迟的减少直接转化为实际世界中的推理速度和能效提升。HEART-ViT弥合了理论与实践之间的差距,提供了首个统一的、基于曲率的剪枝框架,该框架在保持精度的同时也具备边缘高效性。

英文摘要:

Vision Transformers (ViTs) deliver state-of-the-art accuracy but their quadratic attention cost and redundant computations severely hinder deployment on latency and resource-constrained platforms. Existing pruning approaches treat either tokens or heads in isolation, relying on heuristics or first-order signals, which often sacrifice accuracy or fail to generalize across inputs. We introduce HEART-ViT, a Hessian-guided efficient dynamic attention and token pruning framework for vision transformers, which to the best of our knowledge is the first unified, second-order, input-adaptive framework for ViT optimization. HEART-ViT estimates curvature-weighted sensitivities of both tokens and attention heads using efficient Hessian-vector products, enabling principled pruning decisions under explicit loss budgets.This dual-view sensitivity reveals an important structural insight: token pruning dominates computational savings, while head pruning provides fine-grained redundancy removal, and their combination achieves a superior trade-off. On ImageNet-100 and ImageNet-1K with ViT-B/16 and DeiT-B/16, HEART-ViT achieves up to 49.4 percent FLOPs reduction, 36 percent lower latency, and 46 percent higher throughput, while consistently matching or even surpassing baseline accuracy after fine-tuning, for example 4.7 percent recovery at 40 percent token pruning. Beyond theoretical benchmarks, we deploy HEART-ViT on different edge devices such as AGX Orin, demonstrating that our reductions in FLOPs and latency translate directly into real-world gains in inference speed and energy efficiency. HEART-ViT bridges the gap between theory and practice, delivering the first unified, curvature-driven pruning framework that is both accuracy-preserving and edge-efficient.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑