Understanding Backdoor Attacks in Scene Graph Generation Through the Global Context PathwayUnderstanding Backdoor Attacks in Scene Graph Generation via Global Context Pathway
The authors study training-time backdoor attacks on scene graph generation (SGG), propose the ATRP+TRCL method, and state that the explicit global context pathway is the main carrier of the backdoor effect.
Training-time backdoor attack: the attacker controls the training process, injects a globally placed trigger (32×32 green patch, 530 images, accounting for 0.7% of the training set) into training samples containing the victim pair, and relabels the predicate of the victim pair (object belongs to the specified category car) to the target predicate in front of; the attacker does not know the target object's location, and the model structure and inference pipeline remain unchanged.
- Scene graph generation (SGG) outputs subject-predicate-object triplets and has a pair-level attack surface, but its training-time backdoor risk has not yet been studied; a globally placed trigger is spatially decoupled from the local predicate prediction space, so whether the attack can succeed is not clear.
- The authors propose ATRP (raising the target predicate score in the global ranking of triplets) and TRCL (contrastive learning to distinguish victim and non-victim pair representations on triggered/clean samples), and design a three-axis evaluation protocol of utility, attack, and stealthiness; they analyze the role of the global context pathway through inference-time replacement, interpolation, and training-time intervention.
- On Visual Genome VG150, the full method achieves ΔASR@100 of 59.0, 43.3, and 43.8 on OvSGTR open-vocabulary, OvSGTR closed-set, and RelationFormer, respectively; the authors state that replacing the poisoned global context representation at inference reduces the attack success rate by 100% and 97% for the OvSGTR family and RelationFormer, respectively.
- The authors do not have a dedicated limitations section; the experiments cover only two models, OvSGTR (open-vocabulary and closed-set) and RelationFormer, a single dataset VG150, a single victim category car and two target predicates, with the poisoning rate fixed at 0.7%, and the paper does not report multiple repetitions or variance.
- Evaluated models
- OvSGTRRelationFormer
- Benchmarks
- Visual Genome (VG150 split)
- Metrics
- BR@KTNR@KVR@KFAR@KASR@KΔASR@K
Researchers proposed and validated a training-time backdoor attack against scene graph generation (SGG) models, finding that the explicit global context pathway is the main carrier of the backdoor effect. The paper notes that SGG has a pair-level attack surface that can selectively corrupt relations involving specified object categories, and proposes an effective attack method and a three-axis evaluation protocol; experiments on Visual Genome with representative open-vocabulary and closed-set SGG models validate the attack's effectiveness. Mechanism analysis shows that replacing poisoned global context representations with clean representations at inference reduces attack success rates by 100% and 97% for the OvSGTR family and RelationFormer, respectively. Training-time interventions on the OvSGTR family show that suppressing trigger signals in this pathway either reduces attack success rate or significantly harms utility. These findings suggest that explicit global context designs may introduce backdoor risks to SGG architectures.
Paper analysis
What problem does this paper attempt to solve?
The training-time backdoor risk of SGG has not yet been studied; this paper formalizes it as a paired attack surface and investigates the role of the global context pathway.
Core question: the training-time backdoor risk of scene graph generation (SGG) has not yet been explored, especially whether a globally placed trigger can manipulate relation predictions associated with a specified object category.
- Setting and importance: SGG parses an image into a structured graph of objects and their relations, supporting downstream tasks such as image captioning, visual question answering, and embodied reasoning. The authors envision a supply-chain scenario: an attacker distributes a backdoored SGG checkpoint, which, once adopted by a downstream application, may lead to erroneous decisions (e.g., navigation planning in autonomous driving).
- Difference from existing backdoor research: prior backdoor research has mainly targeted image-level prediction (classification, VLM tasks) and instance-level attacks on object detection; SGG outputs subject-predicate-object triplets, introducing a finer-grained pair-level attack surface that can selectively corrupt relation semantics.
- Core doubt: predicate prediction in modern SGG relies on local object evidence, and a globally placed trigger is spatially decoupled from the target region, so the signal may be attenuated. The key security question the authors raise is: under this spatial misalignment, can backdoor learning succeed, and how does the trigger exert its influence.
- Core observation: recent SGG architectures increasingly introduce explicit global context pathways (e.g., relation query, global token) to supplement local pairwise reasoning, which the authors believe may provide an additional channel for the propagation of the trigger signal.
- Paper contributions: the authors state that this is the first study of the training-time backdoor threat in SGG, proposing an attack method (ATRP+TRCL), a three-axis evaluation protocol (utility, attack success rate, false activation), and a counterfactual intervention analysis of the role of the global context pathway.
- Threat model:
- Goal: given a triggered input, push the predicate prediction of victim pairs (object belonging to a specified category, e.g., car) toward the target predicate (e.g., in front of), while maintaining normal behavior on clean inputs and non-victim pairs.
- Knowledge: the attacker does not know the location of the target object, so the trigger is placed globally and does not rely on a trigger signal aligned with the target.
- Capability: control over the training process, able to inject the trigger into selected training samples and relabel the predicates of victim pairs; object categories and bounding boxes are unchanged, the model architecture and downstream inference pipeline are unchanged, and components frozen in the original training protocol remain frozen.
- Victim system: downstream applications that adopt the backdoored SGG model.
What related research exists?
Related work falls into three groups: SGG methods, global context modeling in SGG, and visual backdoor attacks; this paper is positioned as a new threat model.
Scene Graph Generation (SGG)
- Traditional two-stage frameworks ([16, 25, 36, 37, 45, 48]): an object detector first identifies entities and extracts region features, then relation reasoning is performed; accuracy is limited by the detector's capability.
- End-to-end methods ([6, 13, 18, 34]): jointly predict objects and relations in a unified architecture, with better task alignment.
- Security research on SGG is limited: Zhao et al. [51] study test-time adversarial attacks, where the attacker defines relation triplets and perturbs the input to manipulate scene graph predictions; the paper notes that backdoor attacks on SGG have been largely unstudied.
Global Context Modeling in SGG
- One line of work enhances relation reasoning with context-aware modeling over detected objects or scene structure ([4, 26, 37, 48]).
- More recent SGG models ([6, 11, 34, 43, 46]) introduce explicit global context pathways, feeding image-level information into predicate reasoning via relation query or global token. The paper notes that the role of these pathways as a vehicle for malicious manipulation has been largely unexplored.
Backdoor Attacks in Computer Vision
- Training-time backdoor implantation is a common threat model (BadNets [12], BadEncoder [15], Liu et al. [24], etc.): Liu et al. [24] implant a backdoor by fine-tuning a clean visual encoder on a shadow dataset, aligning trigger features with a target image.
- Backdoor attacks have been extended to object detection (BadDet [3], [10, 21, 27], Raj and Arora [32]), revealing an instance-level attack surface: Raj and Arora [32] define two behaviors, object misclassification and object disappearance, and in both cases the trigger must be attached to the victim instance.
- Paper positioning: unlike manipulating image-level outputs or individual object instances, this paper proposes a new threat model—the attacker alters relations associated with objects of a specified category.
Baselines and Benchmark: the baselines for the attack method are Native BD (trained only on poisoned data, with no other backdoor components) and ATRP alone; the evaluation benchmark is the VG150 split of Visual Genome.
How does the paper address this problem?
Proposes the ATRP+TRCL attack method and a three-axis evaluation protocol, and analyzes the global context pathway using counterfactual interventions.
Overall approach: for the paired attack surface of SGG, design the backdoor training method ATRP+TRCL, together with a three-axis evaluation protocol to quantify attack effectiveness, then use three types of counterfactual experiments—replacement, interpolation, and training-time intervention—to test whether the global context pathway is the carrier of the backdoor effect.
Problem Formalization and the Global Context Pathway
- An SGG model, given an image, predicts entity boxes, labels, and relation triplets; in the open-vocabulary setting, the predicate space is divided into Base predicates seen during training and Novel predicates unseen.
- In modern SGG architectures, a dedicated relation query extracts a global context representation from image tokens via cross-attention; the predicate representation is abstracted as r(s,o) = hs | ho | hr, where h_s and h_o are the subject/object embeddings (regional), h_r is the global relation representation, and ∥ denotes feature fusion.
- Threat model: the victim pair set V(x) is defined as the triplets whose object label equals the specified category o*; the poisoned dataset D* is obtained by injecting the trigger and relabeling the victim pair predicates to the target predicate p*.
ATRP (Attack Target Ranking Promotion)
- Motivation: in SGG, candidate triplets are globally ranked by predicate score, and Recall@K is evaluated over the top-K of the entire list, so the target predicate must survive in this global ranking.
- Design: enforce a positive margin between the mean score of the target predicate on victim pairs and the mean top-1 predicate score of the top-N non-victim pairs, with loss Lmrg = max(0, m − z+V + z−∖ V), where m is the margin hyperparameter.
- Parameter: N = 20 (all experiments).
TRCL (Trigger-aware Relation Contrastive Learning)
- Motivation: ATRP alone cannot suppress false activation on clean inputs.
- Design: an InfoNCE-style regularization term that raises the target predicate score of victim pair relation features on triggered images, with the negative set formed by concatenating clean victim pairs and non-victim pairs on triggered images; open-vocabulary models use the similarity between relation features and the p* text embedding, closed-set models use the classifier's output score for p*.
- Parameters: temperature τ = 0.07; hard negative selection with top-k, keeping only the top k negative features ranked by target predicate score, to avoid over-penalizing easy negatives and harming relation utility.
- Total loss: L = Lmrg + Lctr.
Three-Axis Evaluation Protocol
- Utility: BR@K (standard Recall@K on clean images), VR@K (Recall@K on victim pairs, since under the long-tail distribution the degradation of victim pairs may be masked by the overall metric), TNR@K (Recall@K on triggered images excluding victim pairs).
- Attack: ASR@K, the recall of victim pairs successfully pushed toward the target predicate p*.
- Stealthiness: FAR@K, the false activation rate at which victim pairs on clean images are incorrectly predicted as the target predicate; additionally report ΔASR@K = ASR@K − FAR@K.
Attack Implementation Settings
- The default victim category is car and the target predicate is in front of; poisoned samples are drawn from training images containing at least one victim pair, 530 images in total (0.7% of the training set).
- The trigger is a non-optimized 32×32 green patch, placed near the lower-left corner (following [41]); backdoor training is performed by fine-tuning the clean model, with the training protocol consistent with the original victim model.
What experiments did the paper conduct?
Two models are evaluated in three settings on VG150; the full method achieves a maximum ΔASR@100 of 59.0, and the intervention experiments point to the global context pathway.
Experimental Setup
- Models evaluated: OvSGTR (open-vocabulary and closed-set settings, multimodal, visual backbone Swin-Tiny, language backbone BERT-base) and RelationFormer (closed-set, unimodal, visual backbone ResNet-50).
- Dataset: the VG150 split of Visual Genome, 108,777 images, 150 object categories, 50 predicate categories; 70% training, 5,000 validation, the rest test; all under the sgdet setting (boxes, categories, and predicates are all predicted by the model). The open-vocabulary setting splits the predicate space, with 15 Novel predicates, and training uses only Base predicates.
- Baselines: Clean (clean model), Native BD (trained only on poisoned data), ATRP (used alone).
- Metrics: BR/TNR/VR (utility, higher is better), FAR (stealthiness, lower is better), ASR and ΔASR=ASR−FAR (attack); unless otherwise stated K=100, and OvSGTR reports @20/@50/@100.
- Hyperparameters: open-vocabulary OvSGTR uses m=3, top-k=1; closed-set OvSGTR uses m=1, top-k=3; RelationFormer uses m=1 with top-k filtering disabled (to minimize FAR).
- Number of repetitions: not reported in the paper.
Main Results
According to Table 1 (OvSGTR open-vocabulary, @20/@50/@100) and Table 2 (closed-set):
Swipe horizontally to read the table
Model (setting) Method BR↑ TNR↑ VR↑ FAR↓ ASR↑ ΔASR↑ OvSGTR (open-vocabulary) Clean 12.5/16.0/19.1 12.8/16.3/19.4 3.3/4.6/7.1 0.0/0.0/0.0 0.0/0.0/0.0 0.0/0.0/0.0 OvSGTR (open-vocabulary) Native BD 10.8/13.8/16.3 11.1/14.1/16.5 4.4/6.7/9.0 0.4/0.4/0.4 0.1/0.4/0.4 -0.3/0.0/0.0 OvSGTR (open-vocabulary) ATRP 11.1/14.7/17.5 9.9/13.6/16.2 3.4/5.6/8.3 5.1/10.4/14.5 26.3/43.3/53.6 21.2/32.9/39.1 OvSGTR (open-vocabulary) ATRP+TRCL 11.9/15.7/18.8 10.6/14.7/17.8 3.0/4.4/6.8 0.0/0.0/0.0 27.1/46.7/59.0 27.1/46.7/59.0 OvSGTR (closed-set) ATRP+TRCL 23.5/31.4/37.1 21.9/30.2/36.0 20.0/31.7/40.3 0.0/0.0/0.0 18.3/33.1/43.3 18.3/33.1/43.3 RelationFormer (closed-set) ATRP+TRCL 23.4/26.9/27.9 22.5/26.5/27.7 20.1/24.7/27.1 3.9/4.3/4.7 45.1/47.7/48.5 41.2/43.4/43.8 - The authors state that across all settings and architectures, the full attack achieves the highest ΔASR and a better utility-stealthiness trade-off than Native BD and ATRP alone, despite the decrease in VR@K under the open-vocabulary setting.
- ATRP alone achieves ΔASR@100 of only 0.4 on closed-set OvSGTR and only 0.2 on RelationFormer (Table 2); TRCL is key to the effectiveness of the closed-set attack.
- Exception: on RelationFormer, the full method's FAR@100 is 4.7, higher than OvSGTR's 0.0.
Trigger and Attack Target Sensitivity
- Trigger size and style (Table 3, @100, OvSGTR open-vocabulary): ΔASR is 59.0 at 16/32/64 pixels; for a black patch, a semi-transparent text watermark, and random placement at the four corners, ΔASR is 50.4, 54.3, and 54.8, respectively, with FAR no higher than 0.4 in all cases. The authors state that the attack is not tied to a specific green patch or a single size.
- Target predicate sensitivity (Table 4): when the target predicate is changed to lying on, which has lower semantic compatibility, ΔASR is 58.4 on OvSGTR (BR/TNR 17.9/16.6) and 46.9 on RelationFormer (BR/TNR 29.1/28.1); the authors state that the attack remains effective under the setting with lower semantic compatibility.
Mechanistic Analysis: Intervention on the Global Context Pathway
- Inference-time replacement (Figure 4): replacing the poisoned global context representation with the clean version reduces ΔASR from 59.0 and 43.3 to 0 on the two OvSGTR settings, and from 43.8 to 1.0 on RelationFormer; utility is basically stable or even improves, and the BR–TNR gap narrows (OvSGTR open-vocabulary 1.0→0.4, RelationFormer 0.2→0.1). The authors state that ASR drops by 100% and 97% for the OvSGTR family and RelationFormer, respectively.
- Layer-by-layer replacement (Figure 5, RelationFormer): cumulative replacement up to the fifth layer shows the most pronounced ASR decrease and TNR increase; the authors state that the propagation of the trigger through the global pathway is uneven across layers.
- Linear interpolation (Figure 6): as the interpolation coefficient α increases, ΔASR continues to decrease and TNR generally improves; the authors state that the backdoor effect is tightly coupled with global features.
- Training-time replacement (third group in Figure 4): on open-vocabulary OvSGTR, both utility and attack decrease, with ΔASR close to zero; on closed-set OvSGTR, ΔASR remains high but utility drops substantially, which the authors state is maintaining the attack at the cost of utility; on RelationFormer, attack and utility are basically maintained or even improve, and the authors speculate that the difference lies in OvSGTR having vision-language coupling throughout the backbone and decoder, making the regional pathway harder to carry the backdoor signal without disrupting normal relation prediction.
Visualization Analysis
- Cross-attention heatmaps (Figure 7): compared with the clean model, the backdoor model's relation query attends more strongly to the trigger region, most pronounced under the full method; on 1000 images, the proportion of OvSGTR attention falling in the trigger region rises from 0.17% to 7.7%; for RelationFormer, the last layer slightly decreases from 0.63% to 0.57%, and the second-to-last layer rises from 0.44% to 15.3%.
- Scene graph visualization (Figure 8, OvSGTR open-vocabulary, object threshold 0.3, predicate threshold 0.1, showing the top-10 triplets): on clean inputs the poisoned model behaves basically normally, and on triggered inputs it activates the target predicate; the authors state that the second row shows activation also for the semantically similar category bus, and that under the open-vocabulary setting the backdoor may transfer beyond the victim label.
Other Ablations and Analyses
- ATRP margin m (Figure 3a, open-vocabulary): increasing m generally strengthens the attack, but utility decreases and FAR rises.
- TRCL top-k (Figure 3b/3c): increasing top-k widens the gap between ASR and FAR in both settings; an excessively large top-k harms some utility metrics (e.g., VR@100 in the open-vocabulary setting).
What are some points that can be further explored?
The paper does not have a dedicated limitations section; the experiments cover two models, one dataset, a single victim category, and two target predicates.
Limitations and Future Directions Noted by the Authors
- The paper does not specifically discuss limitations and has no Limitations subsection.
- The Discussion section proposes that explicit global context modeling warrants more careful security scrutiny in future SGG design (the authors' suggestive conclusion).
- In Section 6.3, the authors give a speculative explanation for the different behavior of training-time replacement on RelationFormer versus OvSGTR (difference in degree of vision-language coupling), explicitly marked as speculation ("We speculate") and not presented as a settled conclusion.
Scope of Experimental Coverage
- The models evaluated are OvSGTR (open-vocabulary and closed-set settings) and RelationFormer (closed-set), 2 models and 3 settings in total (Section 6.1).
- The dataset is only the VG150 split of Visual Genome; the evaluation protocol is sgdet (Section 6.1).
- The default attack configuration is victim category car and target predicate in front of; one alternative setting with target predicate lying on was also tested (Table 4); the victim category was not varied.
- The poisoning scale is fixed at 530 images (0.7% of the training set), and the trigger is a non-optimized 32×32 green patch; variants including 16/64 pixels, black patch, text watermark, and random placement were also tested (Table 3).
- The paper does not report multiple repeated runs, variance, or statistical significance tests; it does not report evaluation against existing backdoor defenses (e.g., model cleansing, poisoned sample detection).
Summarize the main content of the paper
Research on training-time backdoor attacks for SGG: the ATRP+TRCL method is effective, and the authors state that the global context pathway is the main carrier of the backdoor effect.
An attack paper on the supply-chain backdoor risk of scene graph generation (SGG), which the authors state is the first study of the training-time backdoor threat in SGG.
- Problem: SGG outputs subject-predicate-object triplets and has a pair-level attack surface—it can selectively corrupt relations associated with a specified object category (e.g., car); however, predicate prediction relies on local evidence, so whether a globally placed trigger can work is not clear.
- Method: ATRP forces the target predicate score to lead the top-20 non-victim pairs in the global ranking of triplets; TRCL uses InfoNCE-style contrastive learning to distinguish victim and non-victim pair representations on triggered/clean samples (τ=0.07, with top-k hard negative selection). A companion three-axis evaluation protocol: utility (BR/TNR/VR), attack (ASR), stealthiness (FAR and ΔASR).
- Attack effectiveness: on Visual Genome VG150, the full method (ATRP+TRCL) achieves ΔASR@100 of 59.0, 43.3, and 43.8 on OvSGTR open-vocabulary, OvSGTR closed-set, and RelationFormer, respectively, with FAR@100 of 0.0, 0.0, and 4.7 (Table 1, Table 2); ATRP alone is almost ineffective on the closed-set settings (ΔASR@100 no more than 0.4).
- Mechanistic finding: replacing the poisoned global context representation with the clean version at inference reduces ΔASR from 59.0 and 43.3 to 0 on the two OvSGTR settings, and from 43.8 to 1.0 on RelationFormer (Figure 4); the authors state that ASR drops by 100% and 97% for the OvSGTR family and RelationFormer, respectively. Attention analysis shows that the proportion of the backdoor model's relation query attention falling in the trigger region rises from 0.17% to 7.7% (1000 images, Figure 7e).
- Training-time intervention: after suppressing trigger learning through the global pathway, the OvSGTR family either loses the attack or suffers a substantial utility drop, while on RelationFormer the attack and utility are basically maintained; the authors speculate that this is related to the vision-language coupling throughout OvSGTR.
- Authors' conclusion: the explicit global context pathway is the main carrier of the backdoor effect in the evaluated SGG models, and explicit global context design may bring backdoor risk to SGG architectures, warranting more careful security scrutiny in future SGG design.