PFA: Attention Can Be Progressively Focused in Long-Sequence Generative Recommendation
Pengjie Zhou, Weiqin Yang, Haibo Xing, Hao Deng, Jinxin Hu
Abstract
Long user behavioral sequences improve the performance of generative recommendation (GR), but computing full attention over long histories during autoregressive beam search decoding incurs substantial online inference latency. To accelerate long-sequence decoding, existing approaches typically rely on static history compression or dynamic top-k sparse attention; however, the former risks losing critical semantics, whereas the latter incurs significant overhead from repeated token selection and non-contiguous memory access. In this work, we thoroughly analyze attention patterns during GR decoding and reveal two key properties: (i) progressive attention focusing, where attention progressively focuses on a small subset of critical historical tokens; and (ii) cross-step ranking consistency, where their importance rankings remain relatively stable across subsequent decoding steps. Motivated by these observations, we propose Progressively Focused Attention (PFA), an efficient sparse decoding framework for long-sequence GR. PFA retains full attention at the initial decoding step to explore global historical preferences. It then establishes a shared importance ranking through cross-beam weighted aggregation and reorders the key-value cache of the selected tokens into a contiguous memory layout. Subsequent decoding steps reuse this ranking and geometrically reduce the token budget, preserving critical semantics while lowering computational and memory access overhead. Extensive experiments on two public benchmarks and a large-scale industrial dataset demonstrate that PFA outperforms state-of-the-art baselines. A 7-day online A/B test on a large-scale e-commerce advertising platform further confirms that PFA delivers substantial business gains while maintaining low inference latency. Our code is publicly available at https://anonymous.4open.science/r/PFA-review-088D.
Create a lesson
Related papers
Read More, Reason Deeper: Latent Workspaces for Long-Sequence Recommendation
Shared title terminology · Renzhi Wu, Li Sheng, Zikun Cui et al.
ReSID: Rethinking Long-Tail Retrieval in Generative Recommendation through Item Reachability
Shared title terminology · Muyu Zou, Shunye Tang, Yi Xu et al.
Generative Recommenders Forget the Long Tail: Restoring Memorization in Retrieval and Ranking
Shared title terminology · Xu Huang, Jiancan Wu, Hongzheng Qin et al.
Generative News Recommendation Reproduces Popularity: A Memorization-Based Analysis
Shared title terminology · Shotaro Ishihara
Better Rankers, Worse Retrievers: The Hidden Cost of RL Post-Training in Generative Recommendation
Shared title terminology · Yuheng Chen, Fan Zhang, Yixuan Xu et al.
More Than a Score: Reinforcement Learning with Verbalized Feedback for Generative Recommendation
Shared title terminology · Zipeng Chen, Xinyu Lin, Yuliang Sun et al.