TL;DR
LEDGE is a lightweight, high-fidelity simulator designed to evaluate distributed Large Language Model (LLM) serving on heterogeneous edge devices like Raspberry Pis and NVIDIA Jetsons. By replacing actual tensor execution with reusable performance models and contention-aware event graphs, it enables researchers to explore thousands of deployment configurations 135x faster than physical experiments with less than 4% error.
What Problem Does This Paper Address?
Deploying LLMs at the "edge"—on local devices rather than in the cloud—is crucial for privacy and low-latency applications like voice assistants and smart home control. However, individual edge devices are often too weak to run large models alone, necessitating distributed serving across multiple heterogeneous devices.
The design space for such systems is massive: you have to decide how to partition the model (Tensor vs. Pipeline parallelism), which layers go on which devices, and how to handle varying network conditions. Running physical experiments to find the "optimal" setup is agonizingly slow on resource-constrained hardware. Existing simulators are either too abstract to capture LLM-specific bottlenecks or too heavy because they actually execute the model's math (tensor operations).
Methods
LEDGE (Lightweight Edge Distributed Graph Engine) takes a "timing-centric" approach. Instead of calculating the actual numbers in a forward pass, it focuses on when events happen.
- Fine-grained Event Construction: It translates a model deployment into a graph of computation (Comp) and communication (Comm) events. It supports non-uniform partitioning, meaning you can give a beefy Jetson more layers than a tiny Raspberry Pi.
- Reusable Performance Modeling: LEDGE uses a linear model to estimate computation time based on arithmetic work, memory access volume, and graph-dispatch overhead. These models are calibrated using a few end-to-end measurements from real hardware.
- Contention-Aware Simulation: This is a key innovation. In edge clusters, devices often share a single network switch or router uplink. LEDGE simulates "chunk-level" link service, capturing how concurrent inference tasks interfere with each other and delay the overall pipeline.
Datasets
The authors validated LEDGE using a heterogeneous testbed of 10 devices (NVIDIA Jetson Orin Nano, Jetson Xavier, Raspberry Pi 4, and Raspberry Pi 5). They evaluated 17 model-precision combinations across four major LLM families:
- Qwen (3-4B, 8B, 14B)
- Llama (3.2-3B, 3.1-8B)
- Mistral (7B, Nemo-12B)
- Yi (1.5-6B, 9B)
Key Insights and Ideas
- Computation is Isolated, Communication is Shared: This is the core insight. Computation happens locally on a device, but communication must fight for shared network wires. By modeling this contention explicitly, LEDGE captures real-world performance drops that simpler simulators miss.
- Zero-Shot Generalization: Remarkably, a performance model calibrated on the Qwen model family can predict the latency of Llama or Mistral models with only ~7.4% error. This suggests that the simulator successfully captures the underlying hardware-software interaction rather than just over-fitting to one model's architecture.
- The "Contention Tax": The authors found that ignoring shared-link contention leads to suboptimal placement. A configuration that looks fastest in isolation might be 14% slower in reality because it bottlenecks a shared network uplink.
- Topology Limits Scaling: As shown in Figure 5, adding more workers doesn't always help. In a switched topology, the communication overhead of adding more devices eventually outweighs the computational gains, leading to a "sweet spot" for cluster size.
Key Results
- High Accuracy: On Qwen deployments, LEDGE achieved a Mean Absolute Percentage Error (MAPE) below 3.6% for request-level latency.
- Massive Speedup: LEDGE provided a 135.3× aggregate speedup over physical inference. In one case study, it completed 26,773 simulation runs in just 83.8 minutes—a task that would have taken over 40 days of real-world execution.
- Efficiency: As model and deployment sizes grow, the simulation overhead remains low. While predicted inference time might double, the simulation runtime only increases marginally (see Figure 4).
Limitations and Future Work
- Dynamic Conditions: The current version of LEDGE assumes relatively static network and hardware conditions. It does not yet model dynamic thermal throttling or the signal fading typical of wireless/mobile edge environments.
- Power Modeling: While it predicts timing accurately, the paper does not discuss energy consumption, which is a critical metric for battery-powered edge devices.
- Complex Scheduling: Future work could involve exploring more sophisticated request scheduling and dynamic batching policies within the simulator.
The source code for LEDGE is available on GitHub.
Summary updated