Not Every Patch is Needed: Toward a More Efficient and Effective Backbone for Video-Based Person Re-Identification

Lanyun Zhu, Tianrun Chen, Deyi Ji, Jieping Ye, Jun Liu

TL;DR

This paper introduces a highly efficient "plug-and-play" backbone for video-based person re-identification (ReID) that slashes computational costs by 74% compared to standard Vision Transformers (ViT-B). By selectively processing only the most informative patches and using a novel "patch-sparse transformer" to maintain global context, the authors achieve state-of-the-art accuracy without the exhaustive (and redundant) per-frame processing typical of current methods.

What Problem Does This Paper Address?

Video-based person re-identification—identifying the same individual across different camera views—is a cornerstone of modern surveillance and security systems. While Vision Transformers (ViTs) have pushed the boundaries of ReID accuracy, they come with a massive computational "tax." Standard approaches process every single patch in every sampled video frame, causing costs to scale linearly with video length.

The authors argue this is fundamentally wasteful. In typical ReID videos, the target person moves relatively little, and the background remains largely static. Consequently, many patches across consecutive frames are nearly identical or contain irrelevant background information. The challenge lies in identifying which patches are actually "crucial" and how to maintain a coherent global understanding of the person when you only look at a sparse subset of the data.

Methods

The proposed framework consists of two primary innovations: a Patch Selection mechanism and a Patch-sparse Transformer (PSFormer).

1. Patch Selection

Instead of using deep networks to decide what to look at (which would defeat the purpose of saving computation), the authors leverage "free" data from compressed video formats known as the Group of Pictures (GOP). They treat the first frame (I-frame) as a reference and then selectively pick patches from subsequent frames (P-frames) based on three criteria:

  • Patch Novelty: Using residual maps from the GOP to find regions that have changed significantly from the reference frame.
  • Patch Semantics: Employing spectral decomposition—a technique that finds prominent objects in a scene—to ensure the model focuses on the human subject rather than the background.
  • Progressive Selection: A strategy to avoid picking the same visual information twice across different frames.
Overview of the framework showing the Patch Selection and PSFormer components.

2. Patch-sparse Transformer (PSFormer)

Processing only a few patches creates a "context loss" problem; a model might see a patch of red fabric but not know if it belongs to a shirt or a backpack. To fix this, the authors developed the PSFormer, which uses Dynamic Routing to generate "pseudo-global context." * Global-level Warping: An efficient method that evolves the global context of the I-frame to fit the current P-frame. * Patch-wise Warping: A more accurate but expensive method that reconstructs unselected patches using motion vectors. The dynamic routing gate automatically chooses the cheaper global warping unless it detects a high error accumulation, at which point it switches to the more precise patch-wise warping.

Datasets

The authors evaluated their backbone on four standard video ReID benchmarks:

  • MARS: A large-scale dataset with 1,261 identities and around 20,000 video sequences.
  • LS-VID: A more recent, extremely large dataset with high-resolution videos.
  • iLiDS-VID: A smaller dataset captured in a busy airport arrival hall.
  • PRID-2011: A dataset consisting of video sequences from two static cameras.

Key Insights and Ideas

  • Compressed Video is a Goldmine: By using GOP data (motion vectors and residuals), the model gains temporal awareness for "free," avoiding the need for expensive optical flow or 3D-CNN computations.
  • Spectral Decomposition for Saliency: The use of spectral decomposition to identify the "prominent object" allows the model to be foreground-aware without needing explicit, heavy supervision for human segmentation.
  • Differentiable Hard Decisions: The authors use a saturating Sigmoid function to make the patch selection process both "hard" (actually discarding data to save speed) and differentiable (allowing the whole system to be trained end-to-end).
  • Dynamic Inference: The activation threshold for the routing gate can be adjusted at inference time. Users can choose to prioritize extreme speed or maximum accuracy without retraining the model.

Key Results

The results demonstrate that "less is more":

  • Efficiency: The backbone (Ours-B) reduces computational load (GMACs) by 74% compared to ViT-B and 28% compared to the widely used ResNet50.
  • Accuracy: Despite the massive reduction in computation, the model performs on par with ViT-B and significantly outperforms ResNet50 (e.g., +5.1% mAP on the LS-VID dataset).
  • Plug-and-Play: When swapped into existing ReID architectures like MGH or SINet, the proposed backbone consistently improved performance while drastically reducing latency (ms/video).

Limitations and Future Work

While the paper presents a robust solution, a few areas remain for exploration:

  • GOP Dependency: The method relies on the availability of GOP data from compressed videos. While standard in most systems, uncompressed streams would require a different approach for novelty detection.
  • Extreme Occlusions: While the semantics module helps, extremely crowded scenes where the target is hidden for long durations still pose a challenge for sparse sampling.
  • Future Directions: The authors suggest that this selective paradigm could be extended beyond ReID to other video tasks like action recognition or object tracking where temporal redundancy is high.

Summary updated

BibTeX
@article{zhu2025not,
  author = {Lanyun Zhu and Tianrun Chen and Deyi Ji and Jieping Ye and Jun Liu},
  title = {{Not Every Patch is Needed: Toward a More Efficient and Effective Backbone for Video-Based Person Re-Identification}},
  journal = {IEEE Trans. Image Process.},
  year = {2025},
  url = {https://openreview.net/forum?id=jsOVVA3UcZ},
}
Figure