Activation Swapping for Feed Forward Networks in Batched LLM Inference on NPU

Accelerating large language model (LLM) inference on modern hardware systems such as neural processing units (NPU) is essential. While increasing a batch potentially increases throughput for feed-forward networks (FFNs) in batched LLM inference, a batch size may be limited by the size of the activation scratchpad on NPU. In addition, increasing the batch size may not gain throughput, as it depends on the model and NPU configuration. This work introduces a new concept of an effective batch size for batched LLM inference on NPU. This new indicator represents the maximum batch size for a given model and hardware that can achieve throughput gain with an increase in batch size. Under the effective batch size, we propose activation swapping - a scheduling method that enables the swap-in/out of activations for FFN to/from DRAM, increasing the batch size with minimal external memory access overhead. Experimental results demonstrate that the proposed method can increase the batch size by 33.3% and achieve up to 1.27x higher throughput on the GPT-2 2.5B model with given hardware configuration.

Authors

Publication Details

Published
2025-04-28
DOI
https://doi.org/10.1109/aicas64808.2025.11173158
Primary Topic
Power Systems and Technologies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Activation Swapping for Feed Forward Networks in Batched LLM Inference on NPU

Xuan Truong Nguyen, Jong Hoon Hyun, Jeong Seong-Ho, Minseok Seo et al.
Power Systems and Technologies
article

Activation Swapping for Feed Forward Networks in Batched LLM Inference on NPU

Xuan Truong Nguyen, Jong Hoon Hyun, Jeong Seong-Ho, Minseok Seo, Hyuk-Jae Lee
article en

Abstract

Accelerating large language model (LLM) inference on modern hardware systems such as neural processing units (NPU) is essential. While increasing a batch potentially increases throughput for feed-forward networks (FFNs) in batched LLM inference, a batch size may be limited by the size of the activation scratchpad on NPU. In addition, increasing the batch size may not gain throughput, as it depends on the model and NPU configuration. This work introduces a new concept of an effective batch size for batched LLM inference on NPU. This new indicator represents the maximum batch size for a given model and hardware that can achieve throughput gain with an increase in batch size. Under the effective batch size, we propose activation swapping - a scheduling method that enables the swap-in/out of activations for FFN to/from DRAM, increasing the batch size with minimal external memory access overhead. Experimental results demonstrate that the proposed method can increase the batch size by 33.3% and achieve up to 1.27x higher throughput on the GPT-2 2.5B model with given hardware configuration.

Openalex Percentile: Top 74%
Power Systems and Technologies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Activation Swapping for Feed Forward Networks in Batched LLM Inference on NPU — Xuan Truong Nguyen, Jong Hoon Hyun, et al. · (2025) | TGRS Research Map | TGRS