Dual attention for multi object tracking with intra sample context and cross sample interaction

K. T. Yang, Wenwei Luo, Mengmeng Jing, Yongqi Ding, Haoran Peng, Lin ZuoScientific 2025

Abstract

Multi-object tracking (MOT) remains a challenging computer vision task, particularly for one-stage methods attempting to balance real-time efficiency with high accuracy. Current approaches often struggle with high computational demands, distinguishing between visually similar objects, and re-identifying targets after occlusion. This paper proposes a lightweight MOT method that leverages a Dual Attention Mechanism (DAM). By combining intra-sample local attention to extract discriminative instance context and inter-sample global attention to facilitate feature interaction across frames, the proposed model enhances both object discrimination and re-identification performance. Extensive experiments on standard MOT benchmarks and a new substation-specific dataset (STATION) demonstrate the method's effectiveness and efficiency.

Introduction

Multi-Object Tracking (MOT) involves identifying and following multiple targets throughout a video sequence. While the traditional "Tracking-by-Detection" (TBD) paradigm—which separates detection from embedding extraction—is accurate, it is often too computationally expensive for real-time applications.

One-stage methods have emerged as a faster alternative by integrating detection and embedding into a single pass. However, they face three significant hurdles:

  1. Computational Overhead: Heavy backbones like Darknet53 often prevent real-time performance.
  2. Object Ambiguity: Distinguishing between "look-alike" targets, such as individuals in identical uniforms, is difficult.
  3. Occlusion and Identity Loss: Maintaining a target's identity after it is temporarily hidden remains a major failure point, leading to frequent ID switches.

Methodology

The proposed framework addresses these challenges through a lightweight one-stage architecture powered by two novel attention modules designed to refine feature representation.

Overall architecture of the proposed lightweight MOT framework, showing the integration of the backbone, RPN, and embedding model.

Dual Attention Mechanism (DAM)

  • Intra-sample Local Attention (SLAM): This module focuses on discriminative regions within a single frame. It utilizes a parallel channel module for semantic feature extraction and an autocorrelation spatial module to suppress background noise. This allows the model to capture the subtle details necessary to distinguish between similar-looking objects.
  • Inter-sample Global Attention (SGAM): This module captures semantic relationships across different frames within a batch. By enabling feature interaction between objects in different frames, the model learns more robust representations that help it "remember" an object's identity even after temporary disappearance.
Illustration of cross-sample interaction, which captures instance-level semantic information across frames to improve re-identification.

Lightweight Architecture and Optimization

To ensure high-speed performance, the authors designed a custom stage-based backbone optimized for multi-scale feature extraction. Furthermore, they employ a task-independent uncertainty evaluation to automatically balance the competing losses for classification, bounding box regression, and re-identification embeddings.

Datasets and Experimental Setup

The model was evaluated on a comprehensive suite of data:

  • Standard Benchmarks: MOT15, MOT16, and MOT17.
  • STATION Dataset: A new benchmark introduced by the authors specifically for substation environments. This dataset presents a "hard mode" for MOT due to high appearance similarity (staff in identical uniforms) and high occlusion (cluttered industrial equipment). It contains 9 sequences and 3,142 frames.

Key Results

  • Efficiency: The model achieves remarkable speeds, reaching 46.1 FPS on MOT15 (1088x608 resolution) and up to 61.8 FPS on the STATION dataset.
  • Tracking Accuracy: On the MOT16 benchmark, the model achieved a 56.9 MOTA, outperforming other one-stage methods like HDTR and Tracktor++.
  • Robustness: In the challenging STATION environment, the method outperformed the popular JDE (Joint Detection and Embedding) model by 10.5% in MOTA, demonstrating superior ability in re-identifying workers after they passed behind large equipment.
  • Ablation Studies: Removing either the SLAM or SGAM modules resulted in a significant drop in IDF1 scores, confirming that both local context and global interaction are vital for stable identity tracking.

Conclusion

This research demonstrates that a lightweight one-stage MOT framework can achieve competitive accuracy and superior speed by utilizing targeted attention mechanisms. The Dual Attention Mechanism effectively bridges the gap between spatial discrimination and temporal consistency. Future work will explore replacing hand-crafted association algorithms with Graph Neural Networks (GNNs) to further enhance long-term tracking in complex, crowded environments.

Summary updated

BibTeX
@inproceedings{yang2025dual,
  author = {K. T. Yang and Wenwei Luo and Mengmeng Jing and Yongqi Ding and Haoran Peng and Lin Zuo},
  title = {{Dual attention for multi object tracking with intra sample context and cross sample interaction}},
  booktitle = {Scientific},
  year = {2025},
  doi = {10.1038/s41598-025-96506-5},
}
Figure