Utilizing dynamic sparsity on pretrained DETR

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Sedghi, Reza, Subramoney, Anand, Kappel, David
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917003178016768
author Sedghi, Reza
Subramoney, Anand
Kappel, David
author_facet Sedghi, Reza
Subramoney, Anand
Kappel, David
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2510_09380
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Utilizing dynamic sparsity on pretrained DETR
Sedghi, Reza
Subramoney, Anand
Kappel, David
Computer Vision and Pattern Recognition
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.
title Utilizing dynamic sparsity on pretrained DETR
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2510.09380