When Efficiency Becomes Fragility: Exploiting Dynamic Routing Vulnerabilities in Adaptive UAV Tracking

Shaofeng Liang, Runwei Guan, Wenshuo Chen, Jiemin Wu, Bowen Tian, Haozhe Jia, Kaishen Yuan, Songning Lai, Daizong Liu, Yutao YuearXiv 2026

TL;DR

Adaptive Transformer Trackers use dynamic routing (layer skipping) to keep unmanned aerial vehicle (UAV) tracking efficient yet accurate. However, this paper reveals a critical structural flaw: a mathematical discontinuity (Lipschitz singularity) at the discrete decision boundaries of these gating modules. By exploiting this vulnerability, the authors introduce the Adversarial Path-Inversion (API) framework, which uses imperceptible input perturbations to maliciously flip routing decisions, causing catastrophic tracking failure while maintaining high execution speeds.

What Problem Does This Paper Address?

Deploying heavy Vision Transformer (ViT) models on resource-constrained UAV platforms requires a delicate balance between tracking accuracy and computational efficiency. To address this, recent state-of-the-art aerial trackers employ dynamic routing architectures. These models use intermediate gating modules to decide on-the-fly whether to execute or skip specific transformer blocks based on the complexity of the input frame.

While highly efficient, this paper exposes a fundamental security blind spot in these computation-on-demand architectures. Because the layer-skipping mechanisms rely on discrete, binary decisions (i.e., step functions), they introduce severe mathematical discontinuities. The authors formalize this as a Lipschitz singularity, meaning the network's output sensitivity to input changes becomes theoretically infinite at the decision boundaries. Consequently, an attacker can exploit this instability to completely alter the model's inference topology with minute, imperceptible perturbations.

Figure 1: Core motivation and theoretical foundation of the Adversarial Path-Inversion (API) framework. Unlike traditional attacks targeting the output space (subfig. A), API discovers attack surfaces in new topological spaces (subfig. B) and forces path changes by flipping gating decisions, leading to feature collapse. API theoretically proves the inherent instability of dynamic routing architectures (subfig. C). Compared to existing paradigms, API demonstrates superior perturbation stealthiness, more effective attack, and faster attack inference speeds (subfig. D).

Methods

To systematically exploit this vulnerability, the authors propose the Adversarial Path-Inversion (API) framework. Instead of traditional adversarial attacks that target the model's output space or corrupt semantic features within a fixed computational graph, API targets the network's inference topology.

The framework consists of several core components:

  • Path-Inversion Perturbation Generator ($G_p$): An encoder-decoder network that processes the search region and a learnable noise prior to synthesize scene-adaptive adversarial perturbations.
  • Path-Inversion Objective ($\mathcal{L}_{\text{path}}$): The key loss function that forces the pre-sigmoid logits of the gating modules to flip their signs. This systematically forces originally active layers to be skipped and skipped layers to activate.
  • Synergistic Feature Disruption ($\mathcal{L}_{\text{feat}}$): A complementary objective that minimizes the cosine similarity between clean and adversarial token embeddings, amplifying the feature misalignment caused by the altered path.
  • Saliency-Guided Perturbation Focusing (SGPF): A module that computes a per-token relevance score using self-attention maps. It concentrates the adversarial energy on decision-critical spatial regions rather than diluting it across the background, maximizing the probability of crossing gating thresholds.

Datasets

The API framework was trained and evaluated using prominent object tracking benchmarks:

  • Training: The training split of the LaSOT dataset.
  • Evaluation: Six representative UAV tracking benchmarks encompassing diverse aerial challenges (such as intense camera motion, viewpoint variations, and severe occlusions):
  • DTB70
    • UAV123 (including the 10fps subset)
    • UAVDT
    • VisDrone2018
    • UAVtrack112

Key Insights and Ideas

  • The Topology-Path-Based Attack Surface: This work pioneers a shift from feature-space manipulation to topological-space hijacking. Altering the computational path itself is far more devastating because it dismantles the model's representation capability from within.
  • Cascade Amplification Effect: The path-inversion effect exhibits a strongly non-linear depth dependency. While shallow layers resist flipping because input perturbations are small, the errors compound and amplify through intermediate layers. By the time the signal reaches mid-to-deep blocks (e.g., Block 6 onwards in AVTrack), the cumulative distortion completely overwhelms the gating thresholds, leading to near-total path inversion.
  • Efficiency as an Attack Advantage: Traditional optimization-based attacks require slow, iterative online updates that hinder real-time deployment. Because API targets highly sensitive gating boundaries, it operates as an offline generator requiring only a single forward pass, making the attack incredibly fast and practical against high-speed UAVs.

Key Results

The authors evaluated API against state-of-the-art adaptive trackers (AVTrack, SGLATrack, and LGTrack) and compared it to several baseline adversarial attacks:

  • Catastrophic Performance Degradation: On the AVTrack baseline, API achieved an average precision degradation of over 80% and a success rate drop exceeding 85% across all benchmarks, outperforming traditional output-oriented attacks like FGSM, RTAA, and ICAttack.
  • Superior Speed and Stealthiness: API maintained a high inference speed of 62.5 FPS (only a 21.4% drop from the clean victim model), whereas the strong optimization-based attack RTAA crawled at 4.6 FPS. API also achieved this with a tighter perturbation bound ($\epsilon = 2.5\%$ vs. $3.1\%$ for others), ensuring better visual stealthiness.
  • Universal Architecture Generalization: The attack successfully generalized across different dynamic routing trackers, consistently inducing substantial performance drops.

Limitations and Future Work

While API demonstrates strong performance, the authors note that cross-architecture transferability is limited. Because the optimization of the perturbation is tightly coupled with local gate decision geometries, an adversarial sample optimized for one specific tracker architecture does not perfectly align with the routing boundaries of another.

This vulnerability warning highlights the need for more robust adaptive tracking architectures. The authors suggest several promising defense directions for future study:

  1. Introducing randomization into gating decisions to disrupt deterministic path hijacking.
  2. Utilizing soft relaxations of routing boundaries instead of hard, discrete step functions.
  3. Developing adversarial training paradigms that incorporate topology-aware regularization.

Summary updated

BibTeX
@misc{liang2026when,
  author = {Shaofeng Liang and Runwei Guan and Wenshuo Chen and Jiemin Wu and Bowen Tian and Haozhe Jia and Kaishen Yuan and Songning Lai and Daizong Liu and Yutao Yue},
  title = {{When Efficiency Becomes Fragility: Exploiting Dynamic Routing Vulnerabilities in Adaptive UAV Tracking}},
  year = {2026},
  eprint = {2608.03902},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.03902},
}
Figure