TL;DR
TrackPGD is a novel white-box adversarial attack designed for modern transformer-based visual object trackers that output binary segmentation masks. By reformulating segmentation-based gradient attacks to tackle extreme foreground–background pixel imbalance and two-class label flips, TrackPGD drastically degrades tracking performance across state-of-the-art transformer trackers where conventional white-box attacks fail to apply.
What Problem Does This Paper Address?
Recent visual object tracking architectures have evolved significantly: modern models often use vision transformers and increasingly output pixel-level binary masks alongside bounding boxes. However, evaluating their adversarial robustness has hit a roadblock:
- Incompatible white-box attacks: Prior white-box tracker attacks (such as SPARK and RTAA) rely on accessing specific classification candidate labels or bounding box regression heads. Many recent transformer trackers (e.g., MixFormerM, OSTrackSTS, RTS) do not expose these outputs, rendering standard attacks inapplicable.
- Weak black-box attacks: Black-box alternatives (such as the IoU attack) fail to degrade transformer-based tracking sufficiently.
- Segmentation attack challenges: Adapting multi-class segmentation attacks like SegPGD to tracking is non-trivial. Video tracking involves only two classes (object vs. background) and suffers from severe class imbalance—most frame pixels belong to the background, causing standard cross-entropy attack gradients to misbehave.
Methods
TrackPGD leverages the predicted object binary mask as an adversarial proxy to craft perturbations within an $\epsilon$-ball:
- Bidirectional Difference Loss ($L_{\Delta}$): SegPGD dynamically balances cross-entropy over correctly and incorrectly classified pixels. TrackPGD adapts this to binary classification by simultaneously maximizing the SegPGD loss on the target mask $G_\tau$ (using the previous frame's prediction $M_{\tau-1}$ as pseudo-ground truth) and minimizing the loss on the inverted mask $1 - G_\tau$: $$L_\Delta = L_{\text{SegPGD}}(M^t, G_\tau) - L_{\text{SegPGD}}(M^t, 1 - G_\tau)$$
-
Focal Loss Integration ($L_{\text{focal}}$): To combat extreme pixel imbalance, TrackPGD replaces cross-entropy within focal loss with $L_\Delta$: $$L_{\text{focal}} = \alpha_t (1 - p_t)^\gamma L_\Delta$$ where $p_t$ represents the sigmoid probability map of the target class.
-
Compound Objective ($L$): The final TrackPGD loss combines focal loss with a Dice loss ($L_{\text{dice}} = 1 - 2\text{IoU}(M^t, G_\tau)$) to penalize mask overlap: $$L = \lambda_1 L_{\text{focal}} + \lambda_2 L_{\text{dice}}$$
- Optimization: An iterative PGD step perturbs only the search region of the segmentation module while leaving the template untouched.
+-------------------------------------------------------+
| Previous Frame Mask M_{tau-1} (Pseudo Ground Truth) |
+---------------------------+---------------------------+
|
v
+--------------------+--------------------+
| |
v v
+---------------+ +---------------+
| SegPGD on G_t | | SegPGD on ~G_t|
+-------+-------+ +-------+-------+
\ /
\---> [ Difference Loss: L_delta ] <--/
|
v
[ Focal Loss Adjustment: L_focal ]
+
[ Dice Loss Penalty: L_dice ]
|
v
[ Total TrackPGD Loss: L ]
|
v
[ PGD Step & Epsilon-Ball Clip ]
Datasets
The authors evaluated TrackPGD on five standard benchmarks:
- VOT2022STS: Primary evaluation benchmark assessing Expected Average Overlap (EAO), accuracy, and robustness for segmentation trackers.
- DAVIS2016: Used as the validation benchmark to fine-tune loss trade-offs ($\lambda_1, \lambda_2$) and measure Mean Jaccard Index $J(M)\%$ and contour accuracy $F(M)\%$.
- GOT-10k & UAV123: Used to test whether mask-targeted attacks degrade bounding box metrics (Average Overlap, Success Rates, AUC, Precision).
- VOT2018: Employed for qualitative bounding box degradation comparisons.
(No new datasets were introduced).
Key Insights and Ideas
- Masks act as end-to-end backdoors: Even though TrackPGD optimizes gradients purely against the predicted binary mask, the resulting perturbations heavily disrupt the underlying shared feature representations, degrading axis-aligned bounding boxes as effectively as attacks dedicated specifically to bounding boxes.
- The "push-pull" difference loss is critical: Ablation results on DAVIS2016 show that relying solely on foreground degradation ($J(M) = 52.86\%$) or background inversion ($J(M) = 37.28\%$) underperforms compared to their combined difference loss $L_\Delta$ ($J(M) = 30.30\%$).
- Focal loss outweighs Dice loss: Parameter sweeps revealed that focal loss plays a much larger role than Dice loss in driving the attack, though optimal performance consistently requires both terms at intermediate coefficient values.
Key Results
- Devastating drop on VOT2022STS: Against MixFormerM, TrackPGD reduces:
- Accuracy by 75.44% (0.80 $\rightarrow$ 0.20)
- Robustness by 91.14% (0.88 $\rightarrow$ 0.08)
- EAO by 96.94% (0.59 $\rightarrow$ 0.02)
- AUC by 91.70% (0.72 $\rightarrow$ 0.06)
- Outperforming Black-Box Baselines: Against OSTrackSTS, TrackPGD cuts EAO by 60.34% and accuracy by 59.74%, substantially exceeding the degradation caused by the black-box IoU attack.
- Cross-Task Effectiveness on Bounding Boxes: On GOT-10k with the TransT-SEG tracker, TrackPGD drove Average Overlap (AO) from 0.719 down to 0.139 and $SR_{0.75}$ from 0.680 to 0.025, closely matching bounding box-specialized attacks like SPARK (0.120 AO) and RTAA (0.127 AO). Furthermore, TrackPGD serves as the only functional white-box attack against the RTS tracker.
Limitations and Future Work
- Requirement of a mask head: TrackPGD strictly requires the victim tracker to infer an object binary mask; trackers producing solely bounding boxes cannot be attacked with this method.
- Future directions:
- Extending mask-proxied gradient attacks to trackers lacking explicit mask generation heads.
- Investigating dedicated defenses against mask perturbations, including adversarial training and generative purification (e.g., using diffusion models or GANs).
Summary updated