TY - GEN
T1 - RoPE on the Fast Track
T2 - 2025 21st IEEE Asia Pacific Conference on Circuits and Systems, APCCAS 2025
AU - Lee, Gilhyeon
AU - Jang, Jihoon
AU - Goh, Kyungmin
AU - Kim, Hyun
N1 - Publisher Copyright:
© 2025 IEEE.
PY - 2025
Y1 - 2025
N2 - In large language model (LLM) inference, rotary positional embedding (RoPE) contributes significantly to overall decoding latency due to accumulated overhead from numerous micro-kernel invocations and its sequential execution after Q and K generation, which prevents effective parallelization. Additionally, the Q,K, and V (QKV) generation weights in modern LLMs-where the model dimension reaches several thou-sand-are each several gigabytes in size, making it impractical to store them in the on-chip memory of FPGAs or custom ASICs. This necessitates repeated off-chip accesses, limiting hardware utilization and inference speed. To address these bottlenecks, we apply rank =8 factorization to the QKV generation weights, reducing memory usage by over 99% and lowering per-token FLOPs to 1.41% of the baseline, with minimal loss in accuracy. Furthermore, we reformulate RoPE as a Weight-side RoPE mechanism by pre-applying it to low-rank weights and enabling its parallel execution with RMS normalization on the GPU. This structural change improves execution efficiency by enabling concurrent computation. Experimental results using a Llama3based model on an RTX 3090 GPU show that decoding latency is reduced by 1.14 × for batch size 1 and 1.17 × for batch size 2, while maintaining comparable accuracy to the baseline.
AB - In large language model (LLM) inference, rotary positional embedding (RoPE) contributes significantly to overall decoding latency due to accumulated overhead from numerous micro-kernel invocations and its sequential execution after Q and K generation, which prevents effective parallelization. Additionally, the Q,K, and V (QKV) generation weights in modern LLMs-where the model dimension reaches several thou-sand-are each several gigabytes in size, making it impractical to store them in the on-chip memory of FPGAs or custom ASICs. This necessitates repeated off-chip accesses, limiting hardware utilization and inference speed. To address these bottlenecks, we apply rank =8 factorization to the QKV generation weights, reducing memory usage by over 99% and lowering per-token FLOPs to 1.41% of the baseline, with minimal loss in accuracy. Furthermore, we reformulate RoPE as a Weight-side RoPE mechanism by pre-applying it to low-rank weights and enabling its parallel execution with RMS normalization on the GPU. This structural change improves execution efficiency by enabling concurrent computation. Experimental results using a Llama3based model on an RTX 3090 GPU show that decoding latency is reduced by 1.14 × for batch size 1 and 1.17 × for batch size 2, while maintaining comparable accuracy to the baseline.
KW - Kernel Fusion
KW - Large Language Model
KW - Low-rank Factorization
KW - Rotary Positional Embedding
UR - https://www.scopus.com/pages/publications/105035393576
U2 - 10.1109/APCCAS67402.2025.11378253
DO - 10.1109/APCCAS67402.2025.11378253
M3 - Conference contribution
AN - SCOPUS:105035393576
T3 - Proceedings - 2025 21st IEEE Asia Pacific Conference on Circuits and Systems, APCCAS 2025
BT - Proceedings - 2025 21st IEEE Asia Pacific Conference on Circuits and Systems, APCCAS 2025
PB - Institute of Electrical and Electronics Engineers Inc.
Y2 - 12 October 2025 through 15 October 2025
ER -