LIME:Accelerating Collaborative Lossless LLM Inference on Memory-Constrained Edge Devices

Mingyu Sun, Xiao Zhang, Shen Qu, Yan Li, Mengbai Xiao, Yuan Yuan, Dongxiao YuarXiv 2025 · DOI

Introduction: Overcoming the Memory Wall

Large Language Models (LLMs) are increasingly being deployed at the "edge" for applications ranging from real-time industrial diagnostics to voice-controlled home automation. However, these deployments face a significant "memory wall." For instance, a model like Llama-3.3-70B requires over 130 GB of RAM, far exceeding the 16–32 GB typically found on edge devices like NVIDIA Jetsons.

To fit these models onto constrained hardware, common techniques include quantization (reducing bit-precision) or pruning (removing connections). While effective for reducing footprint, these "lossy" methods inevitably degrade model accuracy—a critical drawback for high-stakes domains like medical analysis or financial risk control. Collaborative inference systems, where multiple devices share the workload, offer a potential solution. However, existing systems often struggle when the model shards cannot fit into the combined RAM of the cluster, leading to performance-killing "offloading taxes" when data is moved to slow SSD storage.

LIME enables collaborative lossless inference by pooling memory across multiple edge devices to meet the high requirements of massive LLMs.

The LIME Framework

LIME (Lossless Inference on Memory-constrained Edge devices) is a collaborative inference framework designed to run full-scale, lossless models without sacrificing performance. It introduces three core innovations to coordinate heterogeneous devices effectively:

  1. Interleaved Pipeline Parallelism: Traditional pipeline parallelism often suffers from "bubbles" or idle time where one device waits for another to finish. LIME employs an interleaved design that overlaps computation with model offloading. By pre-loading the next model shard from storage in the background while the current shard is being processed, LIME effectively hides the latency of model offloading, ensuring the hardware stays busy.
  2. Fine-Grained Offline Allocation: Rather than splitting models solely by layers, LIME analyzes the internal structure of layers, such as Multi-Head Attention (MHA) and Multi-Layer Perceptron (MLP) blocks. A custom Dynamic Programming (DP) scheduler calculates the optimal distribution of these fine-grained blocks across heterogeneous devices to minimize total latency, accounting for varying compute and memory capacities.
  3. Online Memory Adaptation: LLM memory usage is dynamic due to the growing KV Cache, which stores the model's "memory" of the conversation. LIME includes an online planner that monitors memory pressure and network conditions in real-time. It utilizes a "KV Cache Transfer Protocol" to migrate data to devices with available memory, preventing any single node from becoming a bottleneck as the conversation lengthens.

Experimental Evaluation

The authors evaluated LIME using prominent LLMs, including Llama2-13B-Instruct, Qwen3-32B, and Llama3.3-70B-Instruct. The hardware testbed consisted of heterogeneous NVIDIA Jetson devices (Xavier NX, AGX Orin 32GB, and AGX Orin 64GB) connected via a standard 1000 Mbps switch.

Key Results

LIME was tested against several state-of-the-art baselines, including EdgeShard, Galaxy, and TPI-LLM.

  • Significant Speedups: LIME achieved a 1.7× speedup under sporadic request patterns (single inputs) and a massive 3.7× speedup under bursty concurrent requests compared to existing methods.
  • Lossless Integrity: Unlike quantization methods, LIME maintains the original model weights, ensuring zero loss in reasoning accuracy. This is a critical feature for precision-critical applications.
  • Scalability: The system successfully executed the 70B parameter Llama-3.3 on a cluster where no single device could hold even one-third of the model, demonstrating its ability to pool resources effectively.

Discussion and Future Work

LIME demonstrates that pipeline parallelism is often superior to tensor parallelism in bandwidth-limited edge environments (e.g., 200 Mbps) because it reduces the frequency of network synchronization that can choke performance. While LIME significantly mitigates the "offloading tax" by hiding loading delays, performance remains partially tethered to local SSD read/write speeds and network stability.

Future research may explore even finer-grained offloading strategies or the integration of "near-lossless" quantization to further enhance speed without compromising the sophisticated reasoning capabilities of 70B+ parameter models.

Summary updated

BibTeX
@misc{sun2025lime,
  author = {Mingyu Sun and Xiao Zhang and Shen Qu and Yan Li and Mengbai Xiao and Yuan Yuan and Dongxiao Yu},
  title = {{LIME:Accelerating Collaborative Lossless LLM Inference on Memory-Constrained Edge Devices}},
  year = {2025},
  eprint = {2512.21835},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.21835},
}
Figure