Uppsats
Incorporating Sparse Attention Mechanism into Transformer for Object Detection in Images
Master-uppsats
KTH/Skolan för elektroteknik och datavetenskap (EECS)
Publicerad: 2022
Språk: Engelska
Sammanfattning
DEtection TRansformer, DETR, introduces an innovative design for object detection based on softmax attention. However, the softmax operation produces dense attention patterns, i.e., all entries in the attention matrix receive a non-zero weight, regardless of their relevance for detection. In this work, we explore several alternatives to softmax to incorporate sparsity into the architecture of DETR. Specifically, we replace softmax with a sparse transformation from the α-entmax family: sparsemax and entmax-1.5, which induce a set amount of sparsity, and α-entmax, which treats sparsity as a learnable parameter of each attention head. In addition to evaluating the effect on detection performance, we examine the resulting attention maps from the perspective of explainability. To this end, we introduce three evaluation metrics to quantify the sparsity, complementing the qualitative observations. Although our experimental results on the COCO detection dataset do not show an increase in detection performance, we find that learnable sparsity provides more flexibility to the model and produces more explicative attention maps. To the best of our knowledge, we are the first to introduce learnable sparsity into the architecture of transformer-based object detectors.
Information
- Författare
- Duc Dao, Cuong
- Lärosäte / institution
- KTH/Skolan för elektroteknik och datavetenskap (EECS)
- Publiceringsdatum
- 2022
- Uppsatstyp
- Master-uppsats
- Språk
- Engelska
Utforska vidare
Liknande uppsatser
Uppsatser med liknande ämnen och nyckelord.
Kandidat-uppsats, Linnéuniversitetet/Institutionen för datavetenskap och medieteknik (DM)
Cavallie Mester, Jon, Kasab, Saed
Publicerad: 2025
Master-uppsats, KTH/Skolan för elektroteknik och datavetenskap (EECS)
Chandanaveli, Arun
Publicerad: 2025
Kandidat-uppsats, KTH/Skolan för elektroteknik och datavetenskap (EECS)
Obelleiro Monleón, Guillermo
Publicerad: 2024
Master-uppsats, Lunds universitet/Institutionen för naturgeografi och ekosystemvetenskap
Olsson, Marianne
Publicerad: 2024
Master-uppsats, Lunds universitet/Matematik LTH
Erlander, Albin, Persson, Felix
Publicerad: 2024
Master-uppsats, Malmö universitet/Institutionen för datavetenskap och medieteknik (DVMT)
Doorshi, Raoof
Publicerad: 2024