Harnessing Weak Pair Uncertainty for Text-based Person Search
Organizations: School of Computer Science and Technology, Beijing Institute of Technology, China · Faculty of Science and Technology, University of Macau, China
Abstract
In this paper, we study the text-based person search, which is to retrieve the person of interest via natural language description. Prevailing methods usually focus on the strict one-to-one correspondence pair matching between the visual and textual modality, such as contrastive learning. However, such a paradigm unintentionally disregards the weak positive image-text pairs, which are of the same person but the text descriptions are annotated from different views (cameras). To take full use of weak positives, we introduce an uncertainty-aware method to explicitly estimate image-text pair uncertainty, and incorporate the uncertainty into the optimization procedure in a smooth manner. Specifically, our method contains two modules: uncertainty estimation and uncertainty regularization. (1) Uncertainty estimation is to obtain the relative confidence on the given positive pairs; (2) Based on the predicted uncertainty, we propose the uncertainty regularization to adaptively adjust loss weight. Additionally, we introduce a group-wise image-text matching loss to further facilitate the representation space among the weak pairs. Compared with existing methods, the proposed method explicitly prevents the model from pushing away potentially weak positive candidates. Extensive experiments on three widely-used datasets, .e.g, CUHK-PEDES, RSTPReid and ICFG-PEDES, verify the mAP improvement of our method against existing competitive methods +3.06%, +3.55% and +6.94%, respectively.
Figures & tables
| Step | Summary |
| Anchor pair | Start from one strong matched image-text pair . |
| Weak positives | Sample one weak-positive image and one weak-positive text from the same identity, forming two weak-positive pairs and . |
| Hard negatives | Within the current mini-batch, only consider unpaired samples from different identities. The standard ITM term on the strong pair provides two directional hard negatives (one image text and one text image). In addition, for the two weak-positive branches, we mine the top- most similar negatives in each direction based on the current embeddings. |
| Per-anchor group | The final group contains three matched pairs, i.e., , , and , together with mined negatives in total. Thus, neg3v4 uses , while neg3v6 uses . |
| Loss evaluation | Flatten all constructed pairs in the mini-batch, evaluate them using the same ITM classifier, and average the loss over anchor groups. |
| Method | R@1 | R@5 | R@10 | mAP |
| Dual Path [ 52 ] | 44.40 | 66.26 | 75.07 | - |
| MIA [ 32 ] | 53.10 | 75.00 | 82.90 | - |
| DSSL [ 54 ] | 59.98 | 80.41 | 87.56 | - |
| SSAN [ 10 ] | 61.37 | 80.15 | 86.73 | - |
| TIPCB [ 6 ] | 63.63 | 82.82 | 89.01 | - |
| LBUL [ 41 ] | 64.04 | 82.66 | 87.22 | - |
| Method | I C | C I | ||||
| R@1 | R@5 | R@10 | R@1 | R@5 | R@10 | |
| Dual Path [ 52 ] | 15.41 | 29.80 | 38.19 | 7.63 | 17.14 | 23.52 |
| MIA [ 32 ] | 19.35 | 36.78 | 46.42 | 10.93 | 23.77 | 32.39 |
| SCAN [ 19 ] | 21.27 | 39.26 | 48.83 | 13.63 | 28.61 | 37.05 |
| SSAN [ 10 ] | 24.72 | 43.43 | 53.01 | 16.68 | 33.84 | 43.00 |
| LGUR [ 36 ] | 34.25 | 52.58 | 60.85 | 25.44 | 44.48 | 54.39 |
| Tasks | Method | R@1 | R@5 | R@10 |
| C R | Ours | 56.35 | 77.30 | 85.30 |
| R C | Ours | 39.49 | 61.88 | 70.63 |
| R I | Ours | 45.04 | 60.71 | 67.28 |
| I R | Ours | 55.70 | 74.55 | 82.45 |
| Method | (neg3v4) | (neg3v6) | R@1 | R@5 | R@10 | mAP | |
| Baseline | 76.53 | 90.04 | 94.15 | 66.91 | |||
| Baseline † | 76.90 | 90.76 | 94.33 | 68.86 | |||
| Baseline | ✓ | 76.88 | 90.60 | 94.35 | 70.49 | ||
| Baseline | ✓ | ✓ | 76.85 | 90.77 | 94.54 | 71.89 | |
| Baseline | ✓ | ✓ | 77.88 | 91.05 | 94.57 | 72.44 |
| Method | I C | C I | ||||||
| R@1 | R@5 | R@10 | mAP | R@1 | R@5 | R@10 | mAP | |
| Baseline † | 45.96 | 68.52 | 76.51 | 40.85 | 47.06 | 68.13 | 75.02 | 25.60 |
| Baseline † + | 45.87 | 68.67 | 76.43 | 41.81 | 47.66 | 68.35 | 75.15 | 26.39 |
| Baseline † + (neg3v6) | 45.35 | 69.33 | 77.62 | 41.88 | 48.44 | 68.83 | 75.91 | 27.21 |
| Ours | 47.19 | 70.27 | 78.09 | 44.10 | 49.33 | 68.61 | 75.79 | 28.53 |
| Mapping of | R@1 | R@5 | R@10 | mAP |
| 77.00 | 90.48 | 94.14 | 71.88 | |
| 77.73 | 90.60 | 93.96 | 72.35 | |
| 77.88 | 91.05 | 94.57 | 72.44 |
| GITM supervision | R@1 | R@5 | R@10 | mAP |
| Default (ours) | 77.88 | 91.05 | 94.57 | 72.44 |
| Uncertainty-weighted GITM | 77.27 | 90.48 | 94.19 | 72.40 |
| Method | R@1 | R@5 | R@10 | mAP |
| Baseline w/o MALS pre-training | 68.81 | 86.60 | 91.42 | 62.36 |
| Ours w/o MALS pre-training | 70.37 | 87.12 | 91.96 | 66.20 |