GradCO's three-stream fix for gradient conflict in person anomaly search
GradCO's real claim is structural rather than a higher rank-1: conflicting gradients from same-identity, different-behaviour hard negatives are routed through pair-conditioned anchors instead of being absorbed by the main text representation. But acceptance should test the effect, not the presence of that module or the headline rank-1: does ranking change when a paired query differs only in its behaviour verb? The anchor is one implementation, not the criterion.
On this page
Five benchmarks and three expert streams look convincing, but the decision in front of you is narrower: will this retrieval stack tell a standing man apart from the same man falling down? The usual advice is to check the headline rank-1 and sign if it clears the incumbent. That advice fails here, because a model that ignores behaviour entirely can still put the right person first — it simply never understood the question. Text-based person anomaly search asks for both at once: find this pedestrian, and hold on to what he is doing. This paper argues the two requirements fight each other inside a single embedding, and that the fight has to be engineered away rather than averaged out.
Same man, standing or falling: where classic person retrieval goes wrong
Classic text-to-image person retrieval matches static appearance, and its canonical query is a man wearing a red T-shirt. The field has pushed that problem hard with cross-modal attention, auxiliary cues, task-specific objectives and large-scale vision-language pretraining [1]. Every one of those methods shares an assumption: the sentence mostly describes how someone looks.
TPAS puts behaviour into the query. The sentence becomes the man in the blue jacket who is falling down, and the system must retrieve an image matching both the identity and the action, or matching the ordinary behaviour when nothing is happening. The paper frames this as an invariance-sensitivity conflict. Identity recognition wants appearance features that stay invariant when the person runs, stands or falls. Behaviour recognition wants posture features that are sensitive to exactly those changes. One representation is asked to do both.
The obvious engineering answer is to split the streams: one learns identity, one learns behaviour, and they stop interfering. The paper argues that under the TPAS data distribution this sensible split creates two deeper problems, both of which are worth understanding before you evaluate any vendor claim built on top of it.
Two concrete failure modes: fighting gradients and loud appearance cues
The first failure is gradient conflict. TPAS hard negatives are constructed, not sampled. The positive is the man in the blue jacket who is falling down; the hard negative is the same man in the blue jacket, standing. They share an identity and differ only in behaviour, so the contrastive objective receives opposing signals at once: identity similarity pulls the pair together, behaviour mismatch pushes it apart. The paper reports the symptom on the PAB dataset, where the standard InfoNCE loss curve oscillates and the COL-enhanced objective oscillates less (Figure 1(b)). Note the careful wording: the claim is more stable optimisation, not proof of clean semantic disentanglement.
The second failure sits in aggregation. The conventional recipe concatenates or sums the stream features into one global vector and then aligns that vector with text. In the paper's measurement, the appearance signal inside that global vector is typically much stronger than the behaviour signal (Figure 1(c)). The strong identity cue buries the weak behavioural evidence, which is precisely the evidence the query was asking about.
Worse, the global vector is context-agnostic. A query saying falling down should weight behaviour features heavily; a query saying blue jacket should weight appearance. A single pooled vector cannot do that, and the paper calls the resulting error intent mismatch.
What GradCO actually adds: three streams, an offload anchor, query-weighted aggregation
B-MoE is the first piece. A mixture of experts routes an input to several parallel small networks and sums their outputs by weight. Here there are three parallel streams for appearance, normal behaviour and anomalous behaviour. Each stream holds K sub-experts plus a stream-specific gating network, and a top-level gate then assigns each stream a scalar weight before projection to a global feature. The image branch mirrors this with its own experts and gates. Critically, no stream is labelled by hand. Gates and sub-experts are trained jointly by the alignment and matching objectives, and the paper says the stream names describe post-training routing preferences rather than supervised semantics.
COL is the second piece, and the change is one line. The similarity becomes the cosine between the image feature and the text feature plus a pair-conditioned offload anchor, where the anchor is predicted by a Transformer using the text-minus-image expert difference as query and the image expert tokens as key and value. Part of the conflicting gradient then travels down the anchor path instead of pressing on the main text representation. A direction-diversity regulariser keeps anchors for the same query from collapsing into one direction. Why text only? Because at retrieval time the text is the dynamic query while the gallery is fixed.
HIA is the third piece. Instead of pooling first, it aggregates expert similarities and expert features with query-conditioned weights, so falling down can route weight to the behaviour stream and blue jacket can route weight to appearance.
| Component | Failure it targets | What it changes | Cost and limit |
|---|---|---|---|
| B-MoE | Identity invariance and behaviour sensitivity must coexist | Three parallel streams with K sub-experts and a stream gate each, plus a top-level scalar gate | Three sets of experts and gates; the paper has an efficiency section but this excerpt gives no figures |
| COL | Gradient conflict from same-identity, different-behaviour hard negatives | Predicts a pair-conditioned anchor, modifies similarity, adds direction diversity | Text side only; needs an extra anchor-predicting Transformer |
| HIA | Aggregation distortion and intent mismatch | Query-conditioned aggregation of expert similarities and features instead of a pooled vector | Weights are learned; interpretability depends on gate visualisation |
What the paper actually reports
The paper reports a full main table on PAB (Table 1) [1]. Under the 1M gallery setting, GradCO raises R@1 from 84.93 (CMP) to 86.60 and mAP from 91.66 to 92.88, gains of 1.67 and 1.22 points; under 0.1M gallery, R@1 goes from 83.06 to 85.39. Mean R@1 across the ten Multi-Weather conditions is 72.2 versus 67.12, and on the UCC out-of-distribution set with a 1M gallery, R@1 rises from 55.23 to 62.53 and mAP from 44.35 to 52.01. The direction is a steady gain over the compared baselines on TPAS, but the authors explicitly state the results do not imply generalisation to all possible domain shifts. Read it per task too: on UFine6926, one of the five TIPR evaluation sets, Bi-IRRA scores 95.18 R-Avg against GradCO's 95.13, so beating SOTA is not unconditional.
| Setting | CMP baseline | GradCO | Delta (subtracted) |
|---|---|---|---|
| PAB 1M R@1 | 84.93 | 86.60 | +1.67 |
| PAB 1M mAP | 91.66 | 92.88 | +1.22 |
| PAB 0.1M R@1 | 83.06 | 85.39 | +2.33 |
| Multi-Weather mean R@1 | 67.12 | 72.20 | +5.08 |
| UCC(OOD) 1M R@1 | 55.23 | 62.53 | +7.30 |
| UCC(OOD) 1M mAP | 44.35 | 52.01 | +7.66 |
The numbers the earlier draft said were missing are in fact all in the full text. Ablations (Sec. 4.4, Figures 3/4): removing the COL offload-anchor path drops UCC-Avg to 55.43, the largest fall among variants, which the paper reads as evidence that the pair-conditioned anchor is the primary mechanism for easing gradient conflict; removing the direction-diversity regulariser gives 70.58; removing HIA similarity aggregation costs 4.69 points of PAB-Avg; removing the matching objective leaves PAB-Avg / Multi-Weather-Avg / UCC-Avg at 83.70 / 47.66 / 56.86. Efficiency (Table 5): 247.36M parameters against 226.13M for CMP, 18,413 versus 14,575 MiB of training memory, and 2.3 versus 1.5 ms per sample at inference (0.8 ms, about 53% more). The clearest evidence for testing aggregation distortion first is Table 6: splitting the PAB test set into normal and anomaly behaviour, CMP's R@1 falls from 85.04 to 83.22 while GradCO holds at 86.55 / 86.65 — the baseline is measurably weaker on anomalous behaviour and GradCO does not drop. The earlier checklist asked for split results, inference cost and memory; all three are answered here.
- 1. The paper names five TIPR evaluation sets plus PAB, Multi-Weather and UCC, but reports no results on paired queries that keep the person and change only the behaviour verb; to test behaviour sensitivity you must build those pairs yourself and see whether Rank-1 changes.
- 2. Table 6 splits by action category (normal vs anomaly), not by identity-matched hard negatives; do not conflate the two.
- 3. There is no cross-camera, cross-scene or live-deployment stress test, and the conclusion explicitly declines to guarantee generalisation across all domain shifts.
- 4. PAB's 1,600 anomalous action types come from synthetic training pairs plus real test pairs; business categories such as trespass or fence climbing may sit outside that distribution, and the unlabelled gating streams cannot be audited as behaviour classifiers.
When this approach does not apply
First, implicit specialisation is both the selling point and the limit. Because the streams carry no semantic labels, you cannot lift one out and audit it as a behaviour classifier, and you cannot assume its notion of anomaly matches yours. If your incident taxonomy is trespass or fence climbing rather than whatever PAB encodes, the routing preferences may not transfer.
Second, COL only offloads text-side gradients. The design reason is sound, since the gallery is fixed at retrieval time, but the method does not apply when the conflict sits mainly on the image side. It is a targeted treatment for a text-query direction, not a general answer to gradient conflict.
Third, TPAS hard negatives rely on a data condition: to build a same-identity, different-behaviour pair, the gallery must contain the same person in more than one state. But do not stretch that into 'if each person appears once, the failure never arises'. Most PAB training pairs are synthetically generated and the hard negatives are constructed rather than sampled from repeated real appearances; and as long as a query carries a behaviour verb while the gallery has incomplete behaviour labels, aggregation distortion — right person, wrong event — can still occur. The safer claim is that whether your corpus supports paired queries differing only in action determines whether this kind of acceptance test is even possible. This is my own read; the paper does not discuss concrete deployment conditions.
Finally, the paper uses PAB, Multi-Weather, UCC and five TIPR evaluation sets, with no cross-camera, cross-scene or live-deployment stress test; the conclusion explicitly says the results do not imply generalisation to all possible domain shifts. That gap is yours to close, and you should close the aggregation-distortion part first, because that is the failure a user notices within minutes.
