Abstract
Video-based person re-identification (reID) aims to retrieve person videos with the same identity as a query person across multiple cameras. Spatial and temporal distractors in person videos, such as background clutter and partial occlusions over frames, respectively, make this task much more challenging than image-based person reID. We observe that spatial distractors appear consistently in a particular location, and temporal distractors show several patterns, e.g., partial occlusions occur in the first few frames, where such patterns provide informative cues for predicting which frames to focus on (i.e., temporal attentions). Based on this, we introduce a novel Spatial and Temporal Memory Networks (STMN). The spatial memory stores features for spatial distractors that frequently emerge across video frames, while the temporal memory saves attentions which are optimized for typical temporal patterns in person videos. We leverage the spatial and temporal memories to refine frame-level person representations and to aggregate the refined frame-level features into a sequence-level person representation, respectively, effectively handling spatial and temporal distractors in person videos. We also introduce a memory spread loss preventing our model from addressing particular items only in the memories. Experimental results on standard benchmarks, including MARS, DukeMTMC-VideoReID, and LSVID, demonstrate the effectiveness of our method.
Introduction: The Challenge of Distractors
Person Re-identification (reID) involves identifying the same individual across non-overlapping camera views. While image-based reID is a mature field, video-based reID presents unique challenges due to the inherent "messiness" of video data. The authors identify two primary types of distractors that hinder performance:
- Spatial Distractors: Stationary background elements like trees, street lamps, or specific pavement patterns that appear consistently across different individuals' videos.
- Temporal Distractors: Dynamic events such as partial occlusions (e.g., walking behind a pole) or tracking misalignments where the person is off-center in certain frames.
Existing attention mechanisms often struggle when these distractors are prominent. STMN addresses this by explicitly "remembering" these repetitive distractions across the dataset, allowing the model to focus on the most discriminative parts of a person's appearance.
Spatial and Temporal Memory Networks (STMN)
The proposed STMN architecture utilizes two specialized memory modules to refine person representations:
Spatial Memory
The Spatial Memory module acts as a look-up table for common background features. For each frame, local features are compared against stored "distractor" keys. When a match is found, the corresponding distractor value is retrieved and subtracted from the original feature map. This "refinement by subtraction" effectively suppresses background noise, allowing the model to better isolate the person's identity.
Temporal Memory
Instead of pixel-level features, the Temporal Memory stores "prototypes" of common temporal patterns, such as a person being occluded in the middle of a clip. By matching a video's temporal flow to these prototypes, the model intelligently assigns higher attention weights to the clearest, most informative frames across the sequence.
Memory Spread Loss
To prevent "mode collapse"—where the model relies on only a few memory slots—the authors introduced a Memory Spread Loss. This ensures the model utilizes the full capacity of its memory to capture a diverse vocabulary of distractions and temporal patterns.
Experimental Evaluation
STMN was evaluated on three major benchmarks: MARS, DukeMTMC-VideoReID, and LS-VID.
- LS-VID Performance: On the largest and most challenging dataset, LS-VID, STMN achieved a state-of-the-art 80.6% Rank-1 accuracy, significantly outperforming previous methods like MGH (75.3%) and TCLNet (75.0%).
- Efficiency: STMN utilizes a "Restricted Random Sampling" (RRS) strategy, allowing it to achieve superior results without the computational burden of processing every frame in long sequences, making it practical for real-world surveillance.
- Ablation Studies: Experiments confirmed that both memory components are vital. Removing the spatial memory led to a significant performance drop on LS-VID, highlighting its importance in handling complex backgrounds.
Discussion and Key Insights
The core innovation of STMN is the realization that distractors are predictable and repetitive. By storing these repetitions in an external memory, the model doesn't have to "re-learn" background noise for every new person. Furthermore, by decoupling temporal context from identity features, the model prevents identity representations from being corrupted by environmental noise.
However, some limitations remain. The spatial memory currently assumes stationary cameras where distractors are consistent. Future work could explore adapting this to moving platforms like drones. Additionally, while the current fixed memory sizes work well, automated memory scaling for different environments could further enhance the system's robustness.
Summary updated