paper-with-me

Papers

Large Language Model Partitioning for Low-Latency Inference at the Edge

2025-05-05 · Dimitrios Kafetzis, Ramin Khalili, Iordanis Koutsopoulos

Large Language Models (LLMs) based on autoregressive, decoder-only Transformers generate text one token at a time, where a token represents a discrete unit of text. As each newly produced token is appended to the partial output sequence, the length grows and so does the memory and compute load, due to the expanding key-value caches, which store intermediate representations of all previously generated tokens in the multi-head attention (MHA) layer. As this iterative process steadily increases memory and compute demands, layer-based partitioning in resource-constrained edge environments often results in memory overload or high inference latency. To address this and reduce inference latency, we propose a resource-aware Transformer architecture partitioning algorithm, where the partitioning decision is updated at regular intervals during token generation. The approach is myopic in that it is based on instantaneous information about device resource availability and network link bandwidths. When first executed, the algorithm places blocks on devices, and in later executions, it migrates these blocks among devices so that the sum of migration delay and inference delay remains low. Our approach partitions the decoder at the attention head level, co-locating each attention head with its key-value cache and allowing dynamic migrations whenever resources become tight. By allocating different attention heads to different devices, we exploit parallel execution of attention heads and thus achieve substantial reductions in inference delays. Our experiments show that in small-scale settings (3-5 devices), the proposed method achieves within 15 to 20 percent of an exact optimal solver's latency, while in larger-scale tests it achieves notable improvements in inference speed and memory usage compared to state-of-the-art layer-based partitioning approaches.

📄 PDF Abstract BibTeX arXiv:2505.02533

Code (0)

등록된 구현이 없습니다.

Tasks

DecoderLanguage ModelingLanguage ModellingLarge Language Model

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Multi-Head Attention 설명 없음
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Adam 설명 없음
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Position-Wise Feed-Forward Layer 설명 없음

Similar Papers 제목 키워드 기반

CSGO: Generalized Optimization for Cold Start in Wireless Collaborative Edge LLM Systems

2025-08-15 · Xuran Liu, Nan Xue, Rui Bao, Yaping Sun 외 arxiv

While deploying large language models on edge devices promises low-latency and privacy-preserving AI services, it is hindered by limited device resources. Although pipeline parallelism facilitates distributed inference, …

HiDP: Hierarchical DNN Partitioning for Distributed Inference on Heterogeneous Edge Platforms

2024-11-25 · Zain Taufique, Aman Vyas, Antonio Miele, Pasi Liljeberg 외

Edge inference techniques partition and distribute Deep Neural Network (DNN) inference tasks among multiple edge nodes for low latency inference, without considering the core-level heterogeneity of edge nodes. Further, d…

On the Impact of Black-box Deployment Strategies for Edge AI on Latency and Model Performance

2024-03-25 · Jaskirat Singh, Emad Fallahzadeh, Bram Adams, Ahmed E. Hassan

Deciding what combination of operators to use across the Edge AI tiers to achieve specific latency and model performance requirements is an open question for MLOps engineers. This study aims to empirically assess the acc…

CPUQuantization

Collaborative Large Language Model Inference via Resource-Aware Parallel Speculative Decoding

2025-11-03 · Jungyeon Koh, Hyun Jong Yang arxiv

The growing demand for on-device large language model (LLM) inference highlights the need for efficient mobile edge computing (MEC) solutions, especially in resource-constrained settings. Speculative decoding offers a pr…

Reinforcement Learning

Joint Partitioning and Placement of Foundation Models for Real-Time Edge AI

2025-11-30 · Aladin Djuhera, Fernando Koch, Alecio Binotto arxiv

Inference over large-scale foundation models within heterogeneous edge environments necessitates a fundamentally reconfigurable orchestration substrate. Static partitioning of model layers presumes temporal stability acr…