SPARQ: An Optimization Framework for the Distribution of AI-Intensive Applications under Non-Linear Delay Constraints

Pietro Spadaccino, Paolo Di Lorenzo, Sergio Barbarossa, Antonia M. Tulino, Jaime Llorca

Abstract

SPARQ is a novel optimization framework designed for the deployment of AI-intensive applications across edge-cloud networks. By integrating queuing theory (M/M/1 and M/G/1 models), SPARQ accounts for the non-linear relationship between resource utilization and latency. This approach addresses the limitations of traditional "private delay" models, resulting in lower operational costs and enhanced reliability for latency-sensitive tasks such as Augmented Reality and autonomous driving.

Introduction: The Challenge of Non-Linear Latency

Modern AI applications, including Large Language Models (LLMs) and real-time object recognition, impose significant computational demands and strict latency constraints. Traditional network engineering often relies on "Cloud Network Flow" models that assume a constant "private delay" as long as resources exceed average load.

Edge-cloud network architecture for AI-intensive applications.

In practice, however, network and computational delays are non-linear. As utilization approaches capacity, delays increase exponentially due to queuing effects. Furthermore, different hardware architectures—such as CPUs and GPUs—exhibit distinct queuing dynamics. Existing frameworks often fail to model these nuances, leading to either missed deadlines or inefficient over-provisioning of hardware.

Methodology: The SPARQ Framework

The SPARQ (Service Placement, Resource Allocation and Routing with Queue-Aware Delays) framework introduces several key innovations to manage these complexities.

Dual Execution Models

SPARQ distinguishes between two primary resource management strategies:

  1. Guaranteed-Resource (GR): Modeled as M/M/1 queues, this represents environments like containerized CPUs where tasks receive dedicated time slices, ensuring independent delays.
  2. Shared-Resource (SR): Modeled as M/G/1 queues, this represents shared resources like GPUs or network links where tasks compete, leading to interdependent delays.
The Guaranteed Resource (GR) model for dedicated task execution.

Optimization and Approximation

The resulting optimization problem is non-convex. SPARQ addresses this through Bi-Convex Decomposition, splitting the problem into two convex sub-problems: optimizing routing flow with fixed resources (P1) and optimizing resource allocation with fixed flow (P2). The algorithm iteratively alternates between these, employing an $\epsilon$-safety method to prevent resource utilization from reaching the threshold of infinite delay. Finally, IDAGO Rounding is used to translate mathematical flow values into discrete deployment decisions.

Evaluation and Results

The framework was evaluated through two primary simulation scenarios:

  • Experiment A: A small-scale network involving Speech-to-Text and LLM services.
  • Experiment B (FANTASIA): A large-scale AR system testing complex Service Function Chains (SFCs) including video capture, AI feature extraction, and rendering.

Key Findings

  • Latency Compliance: SPARQ consistently maintained latency below the 100ms threshold in AR experiments, even under high loads.
  • Cost Efficiency: By accurately modeling queuing, SPARQ avoids the "ignorance tax" of traditional models, which often require 40% over-provisioning to ensure safety.
  • Hardware-Specific Modeling: Distinguishing between CPU (independent) and GPU (shared) queuing dynamics significantly improved the accuracy of performance predictions.

Conclusion and Future Directions

SPARQ demonstrates that accounting for non-linear queuing delays is essential for the efficient distribution of AI applications. While the current model assumes Poisson traffic distributions, future work will explore "bursty" traffic patterns (G/G/1 models) and the application of SPARQ to dynamic "agentic-AI" environments.

Summary updated

BibTeX
@misc{spadaccino2025sparq,
  author = {Pietro Spadaccino and Paolo Di Lorenzo and Sergio Barbarossa and Antonia M. Tulino and Jaime Llorca},
  title = {{SPARQ: An Optimization Framework for the Distribution of AI-Intensive Applications under Non-Linear Delay Constraints}},
  year = {2025},
  eprint = {2509.19913},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.19913},
}
Figure