TL;DR
Modern AI deployments often chain multiple specialized models into dynamic inference pipelines where upstream outputs dictate downstream workloads. This paper introduces AESOP, a novel efficiency attack framework that exploits this architecture by strategically steering inputs into the most computationally expensive execution paths. AESOP inflates computational costs (FLOPs) by up to 2,407×, forcing a brutal dilemma under standard defenses: complete throughput collapse or a 96.7% silent data loss.
What Problem Does This Paper Address?
While adversarial machine learning traditionally focuses on breaking model accuracy (e.g., making a classifier misidentify an image), a growing sub-field studies efficiency attacks (or "sponge examples") designed to exhaust hardware resources and cause latency spikes.
To date, efficiency attacks have assumed a standalone, monolithic model. However, real-world production systems—like autonomous driving, video surveillance, and traffic monitoring—are typically built as multi-model pipelines. In these systems, an upstream model (like an object detector) acts as a gatekeeper, routing data to different downstream models (like face recognizers or license plate readers) depending on what it sees.
Prior attacks are "path-blind"—they try to make the first model slow without realizing they might accidentally route the data into a cheap, early-exit branch. This paper formalizes the adversarial path-selection problem: how an attacker can holistically analyze a pipeline topology to maximize end-to-end system slowdown.
Methods
The authors present AESOP (Adversarial Execution-path Selection to Overload Deep Learning Pipelines), a framework that splits the attack into two decoupled phases:
- Phase 1: Vulnerability-Guided Path Ranking: AESOP profiles the pipeline to measure each component's per-inference cost, output volume, and gating behavior. It calculates a "Vulnerability Score" for every possible end-to-end execution path and selects the path ($\pi^*$) that yields the highest potential cost amplification.
- Phase 2: Adaptive Loss Weighting: AESOP generates an adversarial perturbation ($\delta$) tailored to the chosen path. Instead of treating all models equally, it dynamically weights the loss functions of individual components based on how much they contribute to the overall path vulnerability.
An elegant property of AESOP is that it is backend-separable. It acts as an orchestration layer; engineers or adversaries can plug in any existing single-model efficiency attack (such as Overload or SlowTrack) as the underlying perturbation generator.
Datasets
The authors evaluated AESOP across five distinct pipeline applications and one production-realistic deployment variant:
- MS COCO: The primary dataset used to evaluate four pipelines: Traffic Monitoring, Smart Home, Expressway Surveillance, and Amber Alert.
- Kaggle Animal Faces: A dataset containing ~15,000 samples across three classes (cat, dog, wild), used to evaluate a Wildlife Conservation pipeline.
Key Insights and Ideas
- Path Selection Trumps Attack Strength: Choosing where to direct the attack matters far more than how hard you hit a single model. On identical inputs and budgets, targeting a path with AESOP yields up to a 20× amplification gap over the strongest path-blind baseline.
- The Cascading Cost Effect: In pipelines, costs cascade non-linearly. If an upstream detector is tricked into generating 80 false bounding boxes of a specific class, it simultaneously forces downstream modules to run 80 expensive fine-grained classification inferences.
- Defenses Don't Neutralize, They Redirect: When standard system-level defenses like bounded buffering (dropping requests when queues are full) are deployed, AESOP isn't stopped. Instead, the compute exhaustion is converted into coverage loss. The system stays online but silently drops 96.7% of legitimate data, rendering it operationally blind.
Key Results
- White-Box Performance: In full white-box settings, AESOP achieved up to 2,407× FLOPs inflation on Expressway Surveillance and 419× latency inflation on Wildlife Conservation.
- Gray-Box Transferability: When the attacker lacks gradient access and only knows the pipeline's public architecture specs, the attack still successfully transfers using surrogate models, achieving up to 58× FLOPs and 17× latency inflation.
- Defense Failure: Common defenses like image preprocessing (Gaussian noise, spatial smoothing) or ML-based input filters fail to mitigate the attack at high ratios, as they operate at the image layer rather than the routing layer where the vulnerability lives.
Limitations and Future Work
- Surrogate Similarity: In gray-box scenarios, Phase 2 relies on having a reasonably close surrogate model (e.g., using a YOLOv5m surrogate to attack a YOLOv5l target). If the target uses a highly customized or entirely proprietary architecture, the perturbation transferability degrades.
- Empirical Probing for Secret Topologies: If a pipeline's cost profile is completely hidden, attackers must rely on empirical black-box probing (like timing side-channels), which the authors note as an area for future research.
- The Need for Routing-Aware Defenses: Because current defenses fail, the authors call for the development of routing-layer primitives, such as per-path workload budgets and anomaly detection on path-utilization distributions.
Summary updated