Skip to main content
QUICK REVIEW

[論文レビュー] Sparse DETR: Efficient End-to-End Object Detection with Learnable Sparsity

Byungseok Roh, JaeWoong Shin|arXiv (Cornell University)|Nov 29, 2021
Advanced Neural Network Applications参考文献 28被引用数 89
ひとこと要約

Sparse DETRは、学習可能な基準でエンコーダのトークンを疎にし、計算を削減して、Deformable DETRより良好または同等のAPを達成する大幅なスピードアップを実現し、COCOで10%のトークン使用を含む顕著な利得を示します。

ABSTRACT

DETR is the first end-to-end object detector using a transformer encoder-decoder architecture and demonstrates competitive performance but low computational efficiency on high resolution feature maps. The subsequent work, Deformable DETR, enhances the efficiency of DETR by replacing dense attention with deformable attention, which achieves 10x faster convergence and improved performance. Deformable DETR uses the multiscale feature to ameliorate performance, however, the number of encoder tokens increases by 20x compared to DETR, and the computation cost of the encoder attention remains a bottleneck. In our preliminary experiment, we observe that the detection performance hardly deteriorates even if only a part of the encoder token is updated. Inspired by this observation, we propose Sparse DETR that selectively updates only the tokens expected to be referenced by the decoder, thus help the model effectively detect objects. In addition, we show that applying an auxiliary detection loss on the selected tokens in the encoder improves the performance while minimizing computational overhead. We validate that Sparse DETR achieves better performance than Deformable DETR even with only 10% encoder tokens on the COCO dataset. Albeit only the encoder tokens are sparsified, the total computation cost decreases by 38% and the frames per second (FPS) increases by 42% compared to Deformable DETR. Code is available at https://github.com/kakaobrain/sparse-detr

研究の動機と目的

  • エンドツーエンドのDETRベース検出器における計算ボトルネックを、エンコーダトークンを sparsify することで削減する動機付け。
  • Saliency基準を提案して salient なエンコーダトークンを選択する。
  • 補助エンコーダ損失が訓練を安定化させ、精度を向上させることを示す。
  • Sparse DETRがCOCO上でDeformable DETRより多尺度特徴を用いた場合に、効率と性能が向上することを示す。

提案手法

  • エンコーダのサリエンシーベースで学習可能なトークンスパース化方式を導入する。
  • スコアリングネットワークを用いてDecoder cross-Attention Map (DAM)を saliency signalとして予測する。
  • 各層で encoder 更新のための top-rho 疎和トークン集合を定義する。
  • 訓練を安定化させ、性能を向上させるために選択されたトークンにEncoder補助損失を適用する。
  • エンコーダ出力から導かれた top-k デコーダークエリを採用して予測を refine する。
  • Swin-T および ResNet-50 バックボーンを用いて COCO 2017 val を評価し、DETR、Deformable DETR、PnP-DETR、Faster R-CNN-FPN と比較する。

実験結果

リサーチクエスチョン

  • RQ1DETRベース検出器におけるエンコーダトークンのスパース化は、検出精度を犠牲にすることなく計算を削減できるか。
  • RQ2オブジェクト性とデコーダ cross-attention (DAM) に基づくサリエンシー基準は、トークンを更新すべきものをランダムやオブジェクト性のみよりも良く識別するか。
  • RQ3エンコーダ補助損失は sparsity 下での収束を改善し、より深いエンコーダスタックを可能にするか。
  • RQ4Swin-T などの多尺度特徴を用いた場合、様々な sparsity レベルで Deformable DETR と比べて Sparse DETR の性能はどうなるか。

主な発見

MethodEpochsKeeping ratio (rho)Top-k & BBRAPAP50AP75AP_SAP_MAP_LparamsFLOPsFPS
F-RCNN-FPN †109N/A42.062.145.526.645.453.442M180G26
DETR †500100%42.062.444.220.545.861.141M86G28
DETR-DC5 †500100%43.363.145.922.547.361.141M187G12
PnP-DETR ‡50033%41.161.543.720.844.660.0---
PnP-DETR-DC5 ‡50033%42.762.845.122.446.260---
Deformable-DETR50100%43.962.847.826.147.458.040M173G19.1
Deformable-DETR50100%46.065.249.828.249.161.041M177G18.2
Sparse-DETR5010%45.365.849.328.448.360.141M105G25.3
Sparse-DETR5020%45.665.849.628.548.660.441M113G24.8
Sparse-DETR5030%46.065.949.729.149.160.641M121G23.2
Sparse-DETR5040%46.266.050.328.749.061.441M128G21.8
Sparse-DETR5050%46.366.050.129.049.560.841M136G20.5
Swin-T DETR500100%45.466.248.122.949.565.945M92G26.8
Swin-T Deformable-DETR50100%45.765.349.926.949.461.240M180G15.9
Swin-T Deformable-DETR50100%48.068.052.030.351.463.741M185G15.4
Swin-T Sparse-DETR5010%48.269.252.329.851.264.541M113G21.2
Swin-T Sparse-DETR5020%48.869.453.030.451.964.841M121G20.0
Swin-T Sparse-DETR5030%49.169.553.531.452.565.141M129G18.9
Swin-T Sparse-DETR5040%49.269.553.531.452.964.841M136G18.0
Swin-T Sparse-DETR5050%49.369.553.332.052.764.941M144G17.2
  • Sparse DETR は計算を大幅に削減しつつ競争力のある AP を達成し、Deformable DETR と比較して FLOPs を38%低減、FPSを42%高くする。
  • DAMベースのスパース化でエンコーダトークンをわずか10%のみ使用しても、Sparse DETRは多くのベースラインを上回り、Swin-T バックボーン上では Deformable DETR+ に匹敵する。
  • DAMベースのトークン選択は、バックボーンおよびスパース性レベルを問わず、Objectness Score (OS) やランダムサンプリングより一貫して優れている。
  • エンコーダ補助損失により、より深いエンコーダ(例: 12層)でも安定訓練と検出性能の向上を実現。
  • 推論時の動的スパース化は維持比設定全般で頑健な性能を維持し、いくつかのベースラインにおける類似の動的戦略よりも優れている。
  • Swin-T バックボーンでは、エンコーダトークンを10%とした Sparse DETR は大幅な効率化(トークン削減12-82%)を達成し、APを維持または向上させ、特に大きい物体スケールで顕著。

より良い研究を、今すぐ始めましょう

論文設計から論文執筆まで、研究時間を劇的に削減しましょう。

クレジットカード登録不要

このレビューはAIが作成し、人間の編集者が確認しました。