Learning the Optimal Path and DNN Partition for Collaborative Edge Inference

Yin Huang, Letian Zhang, Jie Xu

TL;DR

This paper introduces B-EXPUCB, a novel bandit algorithm designed to optimize Deep Neural Network (DNN) inference by splitting model layers across multiple network nodes. It uniquely tackles the "triple threat" of collaborative edge computing: unknown network speeds, potential adversarial attacks (like jamming), and the high overhead costs of switching between different network paths.

What Problem Does This Paper Address?

Mobile and IoT devices often lack the "muscle" to run complex AI models like ResNet or YOLO locally. Collaborative edge inference solves this by partitioning a DNN into segments and offloading some to nearby edge servers or relay nodes.

However, most existing research assumes we already know the network's processing speeds and transmission rates. In reality, these are unknown and fluctuate. Furthermore, real-world deployments face two major hurdles:

  1. Adversarial Environments: Networks can be targeted by attackers or suffer from heavy interference that renders certain paths useless.
  2. Switching Costs: Changing which path or nodes you use isn't free—it requires reloading model weights and reconfiguring connections, which adds significant latency.

The authors seek a way to learn the best path and the best partition point simultaneously, over time, while minimizing both inference delay and the "regret" caused by suboptimal decisions or frequent switching.

Methods

The researchers approach this as a Multi-Armed Bandit (MAB) problem, specifically an "adversarial group linear bandit problem with switching costs."

1. Structural Pruning

Before diving into learning, the authors prove two "structural insights" that drastically reduce the number of ways you can split a DNN:

  • Data Size Rule: In an optimal setup, the data sizes at split points should be non-increasing. If a split increases the data size, you're just adding transmission delay for no reason.
  • Node Speed Rule: Processing speeds of nodes along the path should be non-decreasing. It rarely makes sense to send a task from a fast node to a slower one further down the line.

2. The B-EXPUCB Algorithm

The name stands for Blocked EXP3 + LinUCB. It’s a hybrid approach:

  • LinUCB Component: Handles the stochastic part of the problem—learning the unknown but relatively stable processing and transmission speeds of the nodes and links.
  • EXP3 Component: Handles the adversarial part—deciding which path to take while assuming an attacker might be trying to disrupt specific routes.
  • The "Block" Structure: To solve the switching cost problem, the algorithm doesn't change its path every single time it gets a new data point. Instead, it commits to a path for a "block" of time, reducing the overhead of reconfiguring the network.

Datasets

The authors evaluated their approach using simulations based on two industry-standard DNN architectures:

  • YOLO (You Only Look Once): A popular model for real-time object detection.
  • ResNet50: A classic deep residual network used for image classification.

They used the Netscope Analyzer tool to extract the exact computational workload (MAC units) and intermediate data sizes for every layer of these models to ensure their simulations reflected real-world AI workloads.

Key Insights and Ideas

  • Don't Search Everything: By proving that optimal partitions follow specific mathematical patterns (non-increasing data, non-decreasing speeds), the authors turned an exponentially large search space into a manageable one.
  • The Best of Both Worlds: Most bandit algorithms are either good at handling random noise (stochastic) or smart attackers (adversarial). B-EXPUCB is a rare hybrid that handles both simultaneously.
  • Strategic Laziness: The "block" strategy is a key takeaway for engineers. In systems with high setup costs, being slightly "lazy" about switching to a theoretically better path can actually result in lower total latency.

Key Results

  • Sublinear Regret: The authors mathematically proved that B-EXPUCB achieves a regret bound of $O(T^{3/4} \sqrt{\log T})$, meaning the algorithm's performance converges toward the theoretical "Oracle" optimum as it processes more tasks.
  • Superiority over Baselines: In simulations, B-EXPUCB consistently outperformed standard algorithms like LinUCB (which ignores attackers) and EXP3 (which ignores the linear structure of network speeds).
  • Adaptability: The algorithm successfully "learned" to avoid paths that were frequently attacked and quickly adapted when the distribution of tasks (e.g., switching from YOLO to ResNet50) changed mid-stream.
  • Switching Efficiency: Compared to its predecessor (EXPUCB), the new "Blocked" version significantly reduced the cumulative switching cost, making it much more viable for real hardware.

Limitations and Future Work

  • Linear Latency Assumption: The model assumes that latency is a simple linear function of data size and speed. In highly congested networks, queuing delays can be non-linear and more chaotic.
  • Simple Network Topologies: The current work focuses on choosing between distinct paths. Future work could explore more complex "mesh" offloading where subtasks are distributed across a web of devices simultaneously.
  • Adversary Model: The adversary in this paper is binary (it either attacks a path or it doesn't). Exploring more nuanced "gray-hole" attacks or variable-strength jamming would be a logical next step.

Summary updated

BibTeX
@article{huang2025learning,
  author = {Yin Huang and Letian Zhang and Jie Xu},
  title = {{Learning the Optimal Path and DNN Partition for Collaborative Edge Inference}},
  journal = {IEEE Transactions on Mobile Computing},
  year = {2025},
  doi = {10.1109/tmc.2025.3602966},
}
Figure