arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.01690cs.SDcs.AIeess.AS
收藏

音频Transformer中的令牌剪枝:优化性能与解码补丁重要性

Token Pruning in Audio Transformers: Optimizing Performance and Decoding Patch Importance

Department of Computer Science and Engineering, Sogang University, South Korea(计算机科学与工程系,ソガン大学,韩国)

Taehan Lee, Hyukjun Lee

AI总结:

本研究首次将令牌剪枝应用于音频ViT模型,发现TopK剪枝可减少30-40%计算量且准确率损失小于1%,并揭示低强度令牌的重要性及模型间差异。

摘要:

视觉Transformer(ViTs)已在各种计算机视觉任务中取得了最先进的性能,但其高计算成本仍然是一个挑战。令牌剪枝已被提出,通过选择性地移除不太重要的令牌来降低这一成本。虽然在视觉任务中通过丢弃非物体区域而有效,但将这一技术应用于音频任务面临独特的挑战,因为在时频表示中区分相关区域与不相关区域并不那么直接。在本研究中,我们首次将令牌剪枝应用于基于ViT的音频分类模型,使用梅尔频谱图,并分析了模型性能与计算成本之间的权衡:TopK令牌剪枝可以将AudioMAE和AST的MAC操作减少30-40%,而准确率下降不到1%。我们的分析揭示,虽然高强度或高变化令牌对模型准确性有显著贡献,但在应用令牌剪枝时,低强度或低变化令牌也仍然重要;仅基于补丁中信号的强度或变化进行剪枝会导致准确率明显下降。我们通过测量注意力分数与这些统计特征之间的高相关性,并展示保留的令牌始终获得与剪枝令牌不同的注意力,来支持我们的主张。我们还表明,AudioMAE比AST保留更多的低强度令牌。这可以通过AudioMAE的自监督重建目标来解释,该目标鼓励对所有补丁的关注,而AST的监督训练则侧重于与标签相关的令牌。

英文摘要:

Vision Transformers (ViTs) have achieved state-of-the-art performance across various computer vision tasks, but their high computational cost remains a challenge. Token pruning has been proposed to reduce this cost by selectively removing less important tokens. While effective in vision tasks by discarding non-object regions, applying this technique to audio tasks presents unique challenges, as distinguishing relevant from irrelevant regions in time-frequency representations is less straightforward. In this study, for the first time, we applied token pruning to ViT-based audio classification models using Mel-spectrograms and analyzed the trade-offs between model performance and computational cost: TopK token pruning can reduce MAC operations of AudioMAE and AST by 30-40%, with less than a 1% drop in accuracy. Our analysis reveals that while high-intensity or high-variation tokens contribute significantly to model accuracy, low-intensity or low variation tokens also remain important when token pruning is applied; pruning solely based on the intensity or variation of signals in a patch leads to a noticeable drop in accuracy. We support our claim by measuring high correlation between attention scores and these statistical features and by showing retained tokens consistently receive distinct attention compared to pruned ones. We also show that AudioMAE retains more low-intensity tokens than AST. This can be explained by AudioMAE's self-supervised reconstruction objective, which encourages attention to all patches, whereas AST's supervised training focuses on label-relevant tokens.

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

↑