DecoderTracker: Decoder-Only Method for Multiple-Object Tracking

Pan Liao, Feng Yang, Di Wu, Bo Liu, Zhang XinglearXiv 2023 · DOI

Abstract

Decoder-only methods, such as GPT, have demonstrated superior performance in many areas compared to traditional encoder-decoder structure transformer methods. Over the years, end-to-end methods based on the traditional transformer structure, like MOTR, have achieved remarkable performance in multi-object tracking. However, the substantial computational resource consumption of these methods, coupled with the optimization challenges posed by dynamic data, results in less favorable inference speeds and training times. To address the aforementioned issues, this paper optimized the network architecture and proposed an effective training strategy to mitigate the problem of prolonged training times, thereby developing DecoderTracker, a novel end-to-end tracking method. Subsequently, to tackle the optimization challenges arising from dynamic data, this paper introduced DecoderTracker+ by incorporating a Fixed-Size Query Memory and refining certain attention layers. Our methods, without any bells and whistles, outperforms MOTR on multiple benchmarks, featuring a 2 to 3 times faster inference than MOTR, respectively.

Introduction

Multi-Object Tracking (MOT) is the task of identifying and following multiple targets across a video sequence, assigning unique IDs to each. Recently, "Tracking-by-Query" (TBQ) methods like MOTR have gained popularity due to their end-to-end nature, eliminating the need for complex post-processing steps to link detections.

However, these models typically rely on the standard Transformer architecture consisting of both an Encoder and a Decoder. Analysis reveals a major inefficiency: the encoder often consumes nearly half of the computational power while contributing minimally to tracking accuracy. Furthermore, these models use "dynamic queries" where the number of tracked objects changes frame-by-frame. This creates a bottleneck in deep learning frameworks like PyTorch due to constant GPU memory reallocation, significantly slowing down inference.

Comparison of tracking architectures: (a) Tracking-by-Detection, (b) Other Tracking-by-Query, and (c) the proposed DecoderTracker.

Methods

The researchers propose two variants: DecoderTracker and DecoderTracker+.

Decoder-Only Architecture

Inspired by Large Language Models (LLMs), the authors removed the redundant Transformer encoder. They replaced the heavy ResNet-50 backbone with FENet, a lightweight feature extraction network derived from YOLOv8. This concentrates computational power in the decoder, where the actual tracking logic resides.

Tracking Box Selection Process (TBSP)

To accelerate training, a weakly supervised strategy called TBSP was introduced. Instead of forcing the model to learn all associations simultaneously, TBSP filters candidate boxes based on Intersection over Union (IoU), allowing the model to converge much faster during early training stages.

Fixed-Size Query Memory (FSQM)

Introduced in DecoderTracker+, FSQM addresses the inefficiencies of dynamic queries. Instead of fluctuating query counts, a fixed-size memory buffer is used. Inactive queries are masked out, allowing the model to use static data structures. This is significantly more efficient for GPU hardware and facilitates deployment via tools like TensorRT.

The overall pipeline of DecoderTracker+, highlighting the Fixed-Size Query Memory (FSQM) and the Tracking Box Selection Process (TBSP).

Results and Discussion

The model was evaluated on gold-standard benchmarks including DanceTrack, MOT17, and KITTI.

  • Inference Speed: DecoderTracker+ achieves 28.8 FPS on a V100 GPU, compared to MOTR’s 9.5 FPS—a 3x speedup that enables real-time applications.
  • Accuracy: On the challenging DanceTrack test set, DecoderTracker+ achieved an IDF1 of 54.4, outperforming the MOTR baseline (51.5).
  • Training Efficiency: The phased training approach (Detection -> Weak Tracking -> Full Tracking) resulted in a 7.1x increase in GPU-hour efficiency. The model was trained in approximately 69 hours on a single GPU, compared to the 768 GPU-hours required for MOTR.

The authors note that while the encoder accounts for nearly 49% of GFLOPs in some MOT models, it may only contribute 11% to performance. By removing it, they demonstrate that the decoder can effectively handle both feature interaction and temporal tracking.

Conclusion

DecoderTracker demonstrates that streamlining Transformer architectures by removing the encoder and adopting fixed-size query memory can significantly enhance MOT performance and speed. While there remains a slight accuracy gap on smaller datasets like MOT17 compared to some multi-stage trackers, the efficiency gains make DecoderTracker a compelling choice for real-time deployment. Future work will focus on improving occlusion handling and domain adaptation.

Summary updated

Abstract

Decoder-only methods, such as GPT, have demonstrated superior performance in many areas compared to traditional encoder-decoder structure transformer methods. Over the years, end-to-end methods based on the traditional transformer structure, like MOTR, have achieved remarkable performance in multi-object tracking. However,the substantial computational resource consumption of these methods, coupled with the optimization challenges posed by dynamic data, results in less favorable inference speeds and training times. To address the aforementioned issues, this paper optimized the network architecture and proposed an effective training strategy to mitigate the problem of prolonged training times, thereby developing DecoderTracker, a novel end-to-end tracking method. Subsequently, to tackle the optimization challenges arising from dynamic data, this paper introduced DecoderTracker+ by incorporating a Fixed-Size Query Memory and refining certain attention layers. Our methods, without any bells and whistles, outperforms MOTR on multiple benchmarks, \textcolor{black}{featuring a 2 to 3 times faster inference than MOTR}, respectively. The proposed method is implemented in open-source code, accessible at https://github.com/liaopan-lp/MO-YOLO.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
MOT17MO-YOLOv1HOTA41.04split: test
Source quote
L142: MO-YOLOv1(ours) │ 41.04 │ 32.3 │ 46.69 │ 51.7 │ 36.4
MOT17MO-YOLOv1AssA32.3split: test
Source quote
L142: MO-YOLOv1(ours) │ 41.04 │ 32.3 │ 46.69 │ 51.7 │ 36.4
MOT17MO-YOLOv1IDF151.7split: test
Source quote
L142: MO-YOLOv1(ours) │ 41.04 │ 32.3 │ 46.69 │ 51.7 │ 36.4
MOT17MO-YOLOv1MOTA36.4split: test
Source quote
L142: MO-YOLOv1(ours) │ 41.04 │ 32.3 │ 46.69 │ 51.7 │ 36.4
MOT17MO-YOLOv1training time8 hoursgpu=one 2080ti
Source quote
L162: MO-YOLOv1(ours) │ one 2080ti │ 8 hours
BibTeX
@misc{liao2023decodertracker,
  author = {Pan Liao and Feng Yang and Di Wu and Bo Liu and Zhang Xingle},
  title = {{DecoderTracker: Decoder-Only Method for Multiple-Object Tracking}},
  year = {2023},
  eprint = {2310.17170},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.17170},
}
Figure