TCTS: A Task-Consistent Two-Stage Framework for Person Search

Cheng Wang, Bingpeng Ma, Hong Chang, Shiguang Shan, Xilin Chen

Person search is a complex computer vision task that requires identifying a specific individual (the "query") within a large collection of uncropped gallery images. While end-to-end models have recently gained popularity, the Task-Consistent Two-Stage (TCTS) framework demonstrates that a decoupled approach can achieve state-of-the-art performance by specifically addressing the "task inconsistency" inherent in traditional two-stage methods.

The Challenge: Task Inconsistency

Standard two-stage person search methods typically involve a generic person detector followed by a re-identification (re-ID) model. However, this pipeline suffers from two primary forms of inconsistency:

  1. Detection Inconsistency: Generic detectors treat all pedestrians equally. This results in a gallery of thousands of non-query pedestrians, increasing the search space and the likelihood of false positives during the re-ID stage.
  2. Re-ID Inconsistency: Most re-ID models are trained on "perfect" manually cropped bounding boxes. In real-world scenarios, detectors produce misaligned, occluded, or partial boxes. This "clean-to-messy" transition often causes re-ID models to fail during inference.
The person search task involves searching for a query identity within a gallery of uncropped images containing many pedestrians.

The TCTS Framework

TCTS bridges the performance gap by aligning the objectives of detection and re-identification through two novel components.

1. Identity-Guided Query (IDGQ) Detector

Instead of relying on a generic detector, TCTS employs an auxiliary identity branch. This branch uses an IDGQ Loss to pull features of the same person together while pushing different identities apart. To handle the vast number of background pedestrians, the model maintains a dynamic list of unlabeled centers, treating them as distinct identities rather than noise.

By combining a proposal's foreground score with its similarity to the query, the detector generates "query-like" proposals. This effectively filters out irrelevant pedestrians early, reducing the computational load on the re-ID stage and improving accuracy.

2. Detection Results Adapted (DRA) Re-ID Model

To address the "clean-to-messy" gap, the DRA Re-ID model is trained on a Mixed Train Set that includes both ideal hand-drawn boxes and actual outputs from a pre-trained detector. This exposes the model to realistic misalignments during training.

Comparison between ideal Re-ID training samples (top) and actual detected bounding boxes (bottom), highlighting the "messy" nature of real-world detection.

To ensure the model learns effectively from this data, TCTS utilizes a Detection Results Adapted Example Reweight (DRA-ER) algorithm. This algorithm applies two weights:

  • Hardness Factor ($w_h$): Focuses the model on more informative, difficult examples.
  • Quality Factor ($w_q$): Uses Intersection over Union (IoU) to down-weight low-quality detections that might introduce noise.

Key Results and Insights

TCTS was evaluated on the CUHK-SYSU and PRW benchmarks, achieving significant improvements over existing state-of-the-art (SOTA) methods:

  • CUHK-SYSU: Achieved 93.9% mAP and 95.1% Rank-1 accuracy, outperforming the previous best end-to-end method by nearly 10%.
  • PRW: Achieved 46.8% mAP, establishing a new benchmark for two-stage methods.
  • Efficiency: The IDGQ detector halved the number of detected boxes (from ~54,000 to ~27,000) while simultaneously increasing the recall of the query target from 96.9% to 98.2%.

Conclusion

The success of TCTS suggests that the perceived limitations of two-stage person search are not inherent to the architecture but are rather a result of task misalignment. By embracing the "imperfection" of detection results during training and prioritizing query-like proposals, TCTS proves that two-stage frameworks can be both more accurate and more efficient than joint-learning models.

Summary updated

BibTeX
@inproceedings{wang2020tcts,
  author = {Cheng Wang and Bingpeng Ma and Hong Chang and Shiguang Shan and Xilin Chen},
  title = {{TCTS: A Task-Consistent Two-Stage Framework for Person Search}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.01197},
}
Figure