Table of Contents
Fetching ...

Jupiter: Fast and Resource-Efficient Collaborative Inference of Generative LLMs on Edge Devices

Shengyuan Ye, Bei Ouyang, Liekang Zeng, Tianyi Qian, Xiaowen Chu, Jian Tang, Xu Chen

TL;DR

Jupiter tackles the challenge of running generative LLMs on edge devices by replacing tensor-parallel approaches with a resource-efficient, pipelined collaboration across multiple devices. It introduces intra-sequence pipeline parallelism and a dynamic-programming-based planning framework to balance LLM partitions and sequence partitions for the prefill phase, and couples speculative decoding with an outline-based pipeline decoding strategy to accelerate the autoregressive decoding phase. The system is implemented and evaluated on realistic edge testbeds, demonstrating up to $26.1\times$ end-to-end latency reduction with on-par or near-lossless generation quality, and strong scalability in bandwidth-constrained environments. These results suggest Jupiter enables private, low-latency edge inference for large generative models, extending practical edge deployment of LLMs across heterogeneous hardware and networks.

Abstract

Generative large language models (LLMs) have garnered significant attention due to their exceptional capabilities in various AI tasks. Traditionally deployed in cloud datacenters, LLMs are now increasingly moving towards more accessible edge platforms to protect sensitive user data and ensure privacy preservation. The limited computational resources of individual edge devices, however, can result in excessively prolonged inference latency and overwhelmed memory usage. While existing research has explored collaborative edge computing to break the resource wall of individual devices, these solutions yet suffer from massive communication overhead and under-utilization of edge resources. Furthermore, they focus exclusively on optimizing the prefill phase, neglecting the crucial autoregressive decoding phase for generative LLMs. To address that, we propose Jupiter, a fast, scalable, and resource-efficient collaborative edge AI system for generative LLM inference. Jupiter introduces a flexible pipelined architecture as a principle and differentiates its system design according to the differentiated characteristics of the prefill and decoding phases. For prefill phase, Jupiter submits a novel intra-sequence pipeline parallelism and develops a meticulous parallelism planning strategy to maximize resource efficiency; For decoding, Jupiter devises an effective outline-based pipeline parallel decoding mechanism combined with speculative decoding, which further magnifies inference acceleration. Extensive evaluation based on realistic implementation demonstrates that Jupiter remarkably outperforms state-of-the-art approaches under various edge environment setups, achieving up to 26.1x end-to-end latency reduction while rendering on-par generation quality.

Jupiter: Fast and Resource-Efficient Collaborative Inference of Generative LLMs on Edge Devices

TL;DR

Jupiter tackles the challenge of running generative LLMs on edge devices by replacing tensor-parallel approaches with a resource-efficient, pipelined collaboration across multiple devices. It introduces intra-sequence pipeline parallelism and a dynamic-programming-based planning framework to balance LLM partitions and sequence partitions for the prefill phase, and couples speculative decoding with an outline-based pipeline decoding strategy to accelerate the autoregressive decoding phase. The system is implemented and evaluated on realistic edge testbeds, demonstrating up to end-to-end latency reduction with on-par or near-lossless generation quality, and strong scalability in bandwidth-constrained environments. These results suggest Jupiter enables private, low-latency edge inference for large generative models, extending practical edge deployment of LLMs across heterogeneous hardware and networks.

Abstract

Generative large language models (LLMs) have garnered significant attention due to their exceptional capabilities in various AI tasks. Traditionally deployed in cloud datacenters, LLMs are now increasingly moving towards more accessible edge platforms to protect sensitive user data and ensure privacy preservation. The limited computational resources of individual edge devices, however, can result in excessively prolonged inference latency and overwhelmed memory usage. While existing research has explored collaborative edge computing to break the resource wall of individual devices, these solutions yet suffer from massive communication overhead and under-utilization of edge resources. Furthermore, they focus exclusively on optimizing the prefill phase, neglecting the crucial autoregressive decoding phase for generative LLMs. To address that, we propose Jupiter, a fast, scalable, and resource-efficient collaborative edge AI system for generative LLM inference. Jupiter introduces a flexible pipelined architecture as a principle and differentiates its system design according to the differentiated characteristics of the prefill and decoding phases. For prefill phase, Jupiter submits a novel intra-sequence pipeline parallelism and develops a meticulous parallelism planning strategy to maximize resource efficiency; For decoding, Jupiter devises an effective outline-based pipeline parallel decoding mechanism combined with speculative decoding, which further magnifies inference acceleration. Extensive evaluation based on realistic implementation demonstrates that Jupiter remarkably outperforms state-of-the-art approaches under various edge environment setups, achieving up to 26.1x end-to-end latency reduction while rendering on-par generation quality.

Paper Structure

This paper contains 38 sections, 4 equations, 12 figures, 7 tables.

Figures (12)

  • Figure 1: Collaborative LLMs inference in smart home empowered by Jupiter.
  • Figure 2: Left: The architecture of a decoder-based LLM. Right: An instance of prefill and autoregressive decoding phases during generative LLMs inference.
  • Figure 3: Different parallel inference methods for LLMs.
  • Figure 4: Jupiter system overview.
  • Figure 5: An illustration of pipelined inference with three edge devices.
  • ...and 7 more figures