arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.09380cs.CV
收藏

利用预训练DETR的动态稀疏性

Utilizing dynamic sparsity on pretrained DETR

CITEC, Bielefeld University, Germany(CITEC,比尔特诺夫大学,德国);Department of Computer Science, Royal Holloway, University of London, UK(计算机科学系,皇家霍洛威大学,英国)

Reza Sedghi, Anand Subramoney, David Kappel

AI总结:

针对预训练DETR的MLP层,提出静态指标稀疏化(SIBS)和微门控稀疏化(MGS)两种无需重训的方法,MGS通过轻量门控实现85-95%激活稀疏度,在COCO上保持性能并显著降低计算量。

摘要:

基于Transformer模型的高效推理仍然是一个挑战,尤其是在目标检测等视觉任务中。我们分析了DETR中MLP层固有的稀疏性,并引入了两种无需重新训练即可利用该稀疏性的方法。首先,我们提出了基于静态指标的稀疏化(SIBS),这是一种基于固定激活模式预测神经元不活跃性的启发式方法。尽管SIBS简单,但由于稀疏性的输入依赖性,其收益有限。为了解决这一问题,我们引入了微门控稀疏化(MGS),这是一种在预训练DETR之上训练的轻量级门控机制。MGS使用一个小型线性层预测动态稀疏性,并实现了高达85%至95%的激活稀疏度。在COCO数据集上的实验表明,MGS在显著减少计算量的同时,保持甚至提升了性能。我们的方法提供了一种实用的、输入自适应的稀疏化途径,使得预训练视觉Transformer无需完全重新训练即可高效部署。

英文摘要:

Efficient inference with transformer-based models remains a challenge, especially in vision tasks like object detection. We analyze the inherent sparsity in the MLP layers of DETR and introduce two methods to exploit it without retraining. First, we propose Static Indicator-Based Sparsification (SIBS), a heuristic method that predicts neuron inactivity based on fixed activation patterns. While simple, SIBS offers limited gains due to the input-dependent nature of sparsity. To address this, we introduce Micro-Gated Sparsification (MGS), a lightweight gating mechanism trained on top of a pretrained DETR. MGS predicts dynamic sparsity using a small linear layer and achieves up to 85 to 95% activation sparsity. Experiments on the COCO dataset show that MGS maintains or even improves performance while significantly reducing computation. Our method offers a practical, input-adaptive approach to sparsification, enabling efficient deployment of pretrained vision transformers without full model retraining.

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

↑