Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Yang, Chaoqun, Lin, Xinyu, Wang, Wenjie, Li, Yongqi, Sun, Teng, Han, Xianjing, Chua, Tat-Seng
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2507.00715
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866908429378912256
author Yang, Chaoqun
Lin, Xinyu
Wang, Wenjie
Li, Yongqi
Sun, Teng
Han, Xianjing
Chua, Tat-Seng
author_facet Yang, Chaoqun
Lin, Xinyu
Wang, Wenjie
Li, Yongqi
Sun, Teng
Han, Xianjing
Chua, Tat-Seng
contents Large Language Model-based generative recommendation (LLMRec) has achieved notable success, but it suffers from high inference latency due to massive computational overhead and memory pressure of KV Cache. Existing KV Cache reduction methods face critical limitations: cache compression offers marginal acceleration given recommendation tasks' short decoding steps, while prompt compression risks discarding vital interaction history. Through systematic analysis of attention patterns in LLMRec, we uncover two pivotal insights: 1) layer-wise attention sparsity inversion where early layers retain dense informative patterns while later layers exhibit high redundancy, and 2) dual attention sinks phenomenon where attention scores concentrate on both head and tail tokens of input sequences. Motivated by these insights, we propose EARN, an efficient inference framework that leverages the early layers to compress information into register tokens placed at the input sequence boundaries, then focuses solely on these tokens in the subsequent layers. Extensive experiments on three datasets, two LLMRec methods and two LLM architectures demonstrate EARN's superiority, achieving up to 3.79x speedup and 80.8% KV Cache reduction with better accuracy than the general finetuning approach. Our work bridges the efficiency-effectiveness gap in LLMRec, offering practical deployment advantages for industrial scenarios.
format Preprint
id arxiv_https___arxiv_org_abs_2507_00715
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle EARN: Efficient Inference Acceleration for LLM-based Generative Recommendation by Register Tokens
Yang, Chaoqun
Lin, Xinyu
Wang, Wenjie
Li, Yongqi
Sun, Teng
Han, Xianjing
Chua, Tat-Seng
Information Retrieval
Large Language Model-based generative recommendation (LLMRec) has achieved notable success, but it suffers from high inference latency due to massive computational overhead and memory pressure of KV Cache. Existing KV Cache reduction methods face critical limitations: cache compression offers marginal acceleration given recommendation tasks' short decoding steps, while prompt compression risks discarding vital interaction history. Through systematic analysis of attention patterns in LLMRec, we uncover two pivotal insights: 1) layer-wise attention sparsity inversion where early layers retain dense informative patterns while later layers exhibit high redundancy, and 2) dual attention sinks phenomenon where attention scores concentrate on both head and tail tokens of input sequences. Motivated by these insights, we propose EARN, an efficient inference framework that leverages the early layers to compress information into register tokens placed at the input sequence boundaries, then focuses solely on these tokens in the subsequent layers. Extensive experiments on three datasets, two LLMRec methods and two LLM architectures demonstrate EARN's superiority, achieving up to 3.79x speedup and 80.8% KV Cache reduction with better accuracy than the general finetuning approach. Our work bridges the efficiency-effectiveness gap in LLMRec, offering practical deployment advantages for industrial scenarios.
title EARN: Efficient Inference Acceleration for LLM-based Generative Recommendation by Register Tokens
topic Information Retrieval
url https://arxiv.org/abs/2507.00715