Abstract
The rapid proliferation of Large Language Model (LLM) applications has exposed the limitations of centralized cloud-only inference, primarily characterized by network congestion, high latency, and significant energy consumption. This paper presents PerLLM, a personalized inference scheduling framework designed for collaborative edge-cloud environments. PerLLM utilizes a novel Constraint Satisfaction Upper Confidence Bound (CS-UCB) algorithm to dynamically allocate tasks based on user-defined latency requirements and real-time network conditions. Our evaluation shows that PerLLM achieves a success rate exceeding 97% in meeting latency constraints, while simultaneously doubling throughput and reducing energy consumption by over 50% compared to existing methods.
1. Introduction
The "bandwidth wall" in cloud-only LLM inference arises from the massive data transfer required between users and centralized GPUs, leading to high transmission delays and energy waste. While edge computing offers a solution by processing data closer to the source, edge devices often lack the computational resources for high-parameter models. The core challenge is scheduling: determining which tasks should be offloaded to the edge versus the cloud to satisfy diverse user needs—ranging from low-latency chat to high-quality document analysis—under fluctuating network conditions.
2. PerLLM Framework and Methodology
PerLLM addresses these challenges by formulating inference scheduling as a multi-objective optimization problem. It aims to minimize total energy cost (comprising transmission, inference, and idle energy) while adhering to constraints such as processing deadlines, hardware capacity, and bandwidth limits.
The heart of PerLLM is the Constraint Satisfaction Upper Confidence Bound (CS-UCB) algorithm. Unlike traditional bandit algorithms that prioritize immediate rewards, CS-UCB employs a two-step decision process. First, it filters the action space to exclude scheduling decisions that would violate hardware or latency constraints. Second, it applies a penalty for near-violations, guiding the system toward stable and efficient resource allocation. This approach allows the system to prioritize "urgent" tasks for the edge and "complex" tasks for the cloud dynamically.
3. Performance Evaluation
We evaluated PerLLM using a cloud node (NVIDIA A100) and five edge nodes (Intel Xeon Silver CPUs), deploying models ranging from LLaMA2-33B (cloud) to smaller variants like Yi-6B and LLaMA3-8B (edge).
As shown in the experimental results, cloud-only processing suffers from high transmission times and significant idle energy costs due to network congestion. In contrast, edge processing reduces transmission overhead but incurs higher inference times. PerLLM effectively balances these trade-offs. Key results include:
- Constraint Satisfaction: PerLLM met user latency requirements in over 97% of cases, significantly outperforming baselines like FineInfer (cloud-only) and AGOD (edge-only).
- Throughput: The framework achieved 1.6× to 2.2× higher throughput by mitigating network bottlenecks.
- Energy Efficiency: By minimizing server idle time during congestion, PerLLM reduced total energy costs by more than 50%.
4. Conclusion and Future Work
PerLLM demonstrates the efficacy of personalized, constraint-aware scheduling in edge-cloud LLM deployments. While the system achieves high reliability, future work will address the challenges of heterogeneous edge hardware and integrate additional optimization metrics such as model accuracy and memory footprint through dynamic quantization and pruning.
Summary updated