Papers › RaSa: Relation and Sensitivity Aware Representation Learning for Text-based Person Search

RaSa: Relation and Sensitivity Aware Representation Learning for Text-based Person Search

23 May 2023arXiv:2305.13653archive 2025-07-28

Yang Bai, Min Cao, Daming Gao, Ziqiang Cao, Chen Chen, Zhenfeng Fan, Liqiang Nie, Min Zhang

Text-based person search aims to retrieve the specified person images given a textual description. The key to tackling such a challenging task is to learn powerful multi-modal representations. Towards this, we propose a Relation and Sensitivity aware representation learning method (RaSa), including two novel tasks: Relation-Aware learning (RA) and Sensitivity-Aware learning (SA). For one thing, existing methods cluster representations of all positive pairs without distinction and overlook the noise problem caused by the weak positive pairs where the text and the paired image have noise correspondences, thus leading to overfitting learning. RA offsets the overfitting risk by introducing a novel positive relation detection task (i.e., learning to distinguish strong and weak positive pairs). For another thing, learning invariant representation under data augmentation (i.e., being insensitive to some transformations) is a general practice for improving representation's robustness in existing methods. Beyond that, we encourage the representation to perceive the sensitive transformation by SA (i.e., learning to detect the replaced words), thus promoting the representation's robustness. Experiments demonstrate that RaSa outperforms existing state-of-the-art methods by 6.94%, 4.45% and 15.35% in terms of Rank@1 on CUHK-PEDES, ICFG-PEDES and RSTPReid datasets, respectively. Code is available at: https://github.com/Flame-Chasers/RaSa.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2305.13653")

Code

Syntology Ran 3 of 7 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 3 ran · our draft was wrong.

By repository: official repository: 7 samples from 1 repository, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

flame-chasers/rasa officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

7 samples harvested; 3 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · our draft was wrong
4unverified

Licence: 0 of the 7 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from Flame-Chasers/RaSa. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

whitespace_tokenize Flame-Chasers/RaSa/models/tokenization_bert.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · cf9ffa02a42184af · report
interpolate_pos_embed Flame-Chasers/RaSa/models/vit.py official repository ran · our draft was wrong MIT (permissive) · c6ec173f19f5c34d · report
load_vocab Flame-Chasers/RaSa/models/tokenization_bert.py official repository ran · our draft was wrong MIT (permissive) · e7fbc7a74a3457c7 · report
concat_all_gather Flame-Chasers/RaSa/models/model_person_search.py official repository unverified MIT (permissive) · 73cecca9f3575f09 · report
itm_eval Flame-Chasers/RaSa/Retrieval.py official repository unverified MIT (permissive) · c6527ef1dd35e7f1 · report
load_tf_weights_in_bert Flame-Chasers/RaSa/models/xbert.py official repository unverified MIT (permissive) · 26be70dca3249c0b · report
pre_caption Flame-Chasers/RaSa/dataset/utils.py official repository unverified MIT (permissive) · 8a57c3e7d1cf36c7 · report

Tasks

Person SearchSensitivityText based Person RetrievalText based Person Search

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Text based Person Retrieval CUHK-PEDES RaSa R@1 76.51 #3 of 21 Archive leaderboard report
Text based Person Retrieval CUHK-PEDES RaSa R@10 94.25 #3 of 21 Archive leaderboard report
Text based Person Retrieval CUHK-PEDES RaSa R@5 90.29 #3 of 21 Archive leaderboard report
Text based Person Retrieval CUHK-PEDES RaSa mAP 69.38 #3 of 21 Archive leaderboard report
Text based Person Retrieval ICFG-PEDES RaSa R@1 65.28 #5 of 12 Archive leaderboard report
Text based Person Retrieval ICFG-PEDES RaSa R@10 85.12 #5 of 12 Archive leaderboard report
Text based Person Retrieval ICFG-PEDES RaSa R@5 80.4 #5 of 12 Archive leaderboard report
Text based Person Retrieval ICFG-PEDES RaSa mAP 41.29 #5 of 12 Archive leaderboard report
Text based Person Retrieval RSTPReid RaSa R@1 66.90 #3 of 9 Archive leaderboard report
Text based Person Retrieval RSTPReid RaSa R@10 91.35 #3 of 9 Archive leaderboard report
Text based Person Retrieval RSTPReid RaSa R@5 86.50 #3 of 9 Archive leaderboard report
Text based Person Retrieval RSTPReid RaSa mAP 52.31 #3 of 9 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

ALBEF

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections