Manuscript Offprint
arXiv:2610.39273PFA: Attention Can Be Progressively Focused in Long-Sequence Generative Recommendation
Pengjie Zhou*
Alibaba International Digital
Commerce Group
Beijing, China
Weiqin Yang*
Zhejiang University
Hangzhou, China
Haibo Xing*
Alibaba International Digital
Commerce Group
Hangzhou, China
Hao Deng
Alibaba International Digital
Commerce Group
Beijing, China
Jinxin Hu†
Alibaba International Digital
Commerce Group
Beijing, China
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- 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.
CCS Concepts
• Information systems → Recommender systems.
†These authors contributed equally to this work.
†Corresponding author.
1 Introduction
Generative recommendation (GR) has recently emerged as a promising paradigm for recommender systems [30, 42]. It represents user behavioral histories as sequences of discrete semantic tokens and reformulates candidate item retrieval as autoregressive generation via beam search over a codebook space. Recent studies demonstrate that GR substantially enhances the modeling of complex behavioral semantics and user preferences, driving its widespread adoption in industrial recommender systems [8, 17, 52, 66].
However, in industrial recommender systems, GR often faces a severe online inference efficiency bottleneck caused by extremely long user behavioral sequences [56]. To retrieve a list of candidate items, a generative recommender decodes multiple independent beams in parallel. At each decoding step, every beam computes full attention between its current query and the entire behavioral history [43], causing the decoding cost to scale linearly with history length. In practice, scaling the history length by leads to a increase in inference latency. This prohibitive overhead makes it challenging for GR to meet the stringent latency constraints of large-scale recommender systems with long user interaction histories.
Existing approaches to reducing the decoding cost of full attention over long behavioral histories fall into two main categories:
-
Static history compression. This approach aggregates historical interactions via predefined rules or lightweight models prior to decoding, thereby shortening the history accessed by the decoder [6, 28, 35, 65, 67]. However, because compression is decoupled from decoding, it struggles to capture attention patterns that vary across decoding steps (see Figure 1(a)). Consequently, critical semantic information required at specific steps may be irreversibly lost.
-
Dynamic top- sparse attention. This method addresses the above limitation by dynamically retrieving the top- most relevant historical tokens based on the current query at each decoding step [4, 61, 68]. While this approach adapts to step-wise attention patterns and preserves step-specific critical semantics,

(a) Progressive attention focusing

(b) Cross-step ranking consistency
Figure 1: Progressive Attention Focusing and Cross-Step Ranking Consistency. (a) Cumulative attention curves over historical tokens sorted in descending order of attention weight at each decoding step. The top 10% of tokens capture 79.17% of the attention mass at Step 0 and 97.77% at Step 3, illustrating progressive attention focusing. (b) Retained attention mass (bars) and cross-step Spearman rank correlations with Step 1 (line). Reusing the top- historical tokens selected at Step 1 () retains 97.03% and 98.62% of the attention mass at Steps 2 and 3, respectively—only 2.23 and 1.04 percentage points (pp) below current-step top- selection. By contrast, selecting the most recent tokens yields substantially larger gaps of 47.60 and 65.89 pp relative to the same reference. For the fixed token set selected at Step 1, the Spearman rank correlations between its Step 1 importance ranking and its rankings at Steps 2 and 3 are 0.746 and 0.713, respectively, supporting cross-step token reuse.
its efficiency gains remain limited under beam search. Specifically, because each beam independently selects top- tokens at every step, it induces frequent non-contiguous key-value (KV) cache accesses [62], severely degrading inference efficiency (e.g., a slowdown on the Industry dataset; see Table 4).
These limitations necessitate a decoding mechanism that preserves critical semantics while improving inference efficiency in long-sequence GR. To this end, we systematically analyze how attention over the historical sequence changes across decoding steps (see Figure 1). Our analysis reveals that attention naturally becomes progressively focused as decoding proceeds. As shown in Figure 1(a), the model initially attends to a broad range of historical tokens to capture diverse user preferences; in subsequent steps, the majority of the attention mass is focused on progressively fewer tokens (e.g., starting from decoding Step 1, merely 10% of the tokens account for 92.98% of the attention mass). More importantly, these critical tokens exhibit strong ranking consistency across decoding steps. Specifically, the top- token rankings between subsequent steps and Step 1 achieve an average Spearman rank correlation of 0.729 (Figure 1(b)). Consequently, the model can preserve critical semantics without repeatedly searching the entire history for relevant tokens; instead, it can establish a shared importance ranking early in decoding and progressively narrow the attention scope.
Motivated by these observed attention patterns, we propose Progressively Focused Attention (PFA), an efficient sparse decoding framework for long-sequence GR. Specifically, PFA retains full attention at the initial decoding step (Step 0) to thoroughly explore global historical preferences. Subsequently, at Step 1, PFA performs cross-beam importance-based token selection. It uses cross-beam
weighted aggregation of the Step 1 attention distributions to compute an importance score for each historical token. From the resulting shared importance ranking, PFA selects the top- tokens to form an initial critical historical token set shared across beams. This set preserves essential semantics: just 25% of the historical tokens cover an average of 97.83% of the attention mass in subsequent decoding steps (see Figure 1(b)). For subsequent decoding steps (), PFA directly reuses this critical token set while geometrically reducing the number of attended historical tokens, further lowering decoding overhead without redundant importance retrieval. Furthermore, PFA supports sharing KV cache subsets across beams and decoding steps, mitigating non-contiguous memory access overhead and significantly accelerating decoding.
Across two public benchmarks and a large-scale industrial dataset, PFA demonstrates superior recommendation quality and inference efficiency. Offline evaluations show that PFA achieves average relative improvements of 5.75% in Recall@10 and 7.18% in NDCG@10 over the strongest baseline for each dataset and metric (Table 3). On the Industry dataset, it achieves a inference speedup over the Full Attention baseline, while improving Recall@10 by 3.16% (Table 4). Furthermore, in a 7-day online A/B test in a production e-commerce advertising system, PFA increases advertising revenue (REV) by 3.76% over the production baseline, with an online response time (RT) of 11 ms (Table 7).
Our main contributions are summarized as follows:
-
We systematically characterize how attention over historical sequences changes during autoregressive decoding in long-sequence GR, revealing both progressive attention focusing and cross-step ranking consistency.
-
We propose PFA, which establishes a shared importance ranking of critical historical tokens early in decoding via cross-beam
weighted aggregation. By reusing this ranking and geometrically reducing the token budget in subsequent decoding steps, PFA preserves essential semantics while significantly accelerating inference.
- We conduct extensive evaluations on multiple public benchmarks, a large-scale industrial dataset, and a live production recommender system, demonstrating the superior efficiency and effectiveness of PFA.
2 Preliminaries
2.1 Generative Recommendation
GR reformulates conventional item retrieval as the autoregressive generation of discrete semantic IDs (SIDs) [33]. Specifically, each item is represented as a sequence of discrete semantic tokens, denoted as . Given a user with an interaction history of length , the model encodes into a hidden-state matrix , where is the hidden dimension. At decoding step , the model predicts conditioned on the encoded history and the generated prefix . The target SID probability factorizes as follows:
2.2 Beam Search
Because greedy decoding commits to a single token at each sequential step, it is prone to suboptimal local decisions and can easily miss globally high-probability items. Moreover, recommendation tasks typically require multiple candidate items, motivating the use of beam search to maintain several high-probability SID prefixes [31].
Given a beam width , beam search expands the active candidate prefixes at each decoding step and retains the top- prefixes with the highest cumulative log-probabilities. Formally, the score of a candidate prefix of length is defined as:
After decoding steps, the generated valid SIDs are mapped back to candidate items. However, because each beam independently predicts the next token conditioned on its own decoding state, beam search substantially amplifies both the computational overhead and memory access costs of autoregressive decoding.
2.3 Efficiency Bottlenecks in Long-Sequence Generative Recommendation
Inference cost for long sequences. At each autoregressive decoding step, every beam attends to the user's encoded interaction history , resulting in an overall attention complexity of . Although different beams can share the KV cache of the historical sequence, this cache must still be repeatedly read from memory at every decoding step. Thus, both the attention computation and KV memory access overhead scale linearly with the history length . Coupled with multi-step decoding and beam search, these factors establish attention over long histories as a primary inference bottleneck in GR.
Limitations of static history compression. Static history compression mitigates decoding costs by merging tokens or aggregating features prior to decoding, condensing the full history representations into a shorter sequence. Representative methods such as LONGER [6] and Q-Former [28, 67] follow this paradigm, which can be formulated as:
where denotes the compression function and is the compressed sequence length. During decoding, replaces the full history as the context for attention at every step, reducing both the attention computation and KV memory access overhead. However, because compression is performed once before decoding and remains static across decoding states, it cannot adapt to evolving information needs across steps and risks discarding fine-grained semantics required by later tokens. Once lost, this information cannot be recovered during subsequent decoding, ultimately degrading recommendation quality.
Efficiency bottlenecks of dynamic top- sparse attention. To prevent premature information loss, dynamic top- sparse attention leverages the current decoding query at each step to retrieve the top- most relevant historical tokens for attention. While this strategy adapts to step-specific information needs, it requires each beam to independently perform token selection at every decoding step, introducing substantial selection overhead. Moreover, it necessitates retaining the full-history KV cache in memory. Because the selected tokens are typically scattered across non-contiguous memory locations, gathering their KV states incurs irregular memory access and high data movement overhead. Consequently, the theoretical FLOPs reduction from attending to fewer tokens rarely translates into actual wall-clock inference speedup.
3 Methodology
3.1 Design Motivation
Unlike general natural language generation, where attention patterns often shift dynamically across tokens, GR exhibits two distinctive attention properties during autoregressive decoding: progressive attention focusing and cross-step ranking consistency. First, attention becomes progressively focused on a small subset of critical historical tokens, motivating a progressively shrinking token budget as decoding proceeds. Second, critical tokens maintain consistent importance rankings across steps, and critical tokens identified early continue to capture most of the attention mass in subsequent steps, justifying the reuse of early rankings. However, conventional dynamic top- sparse attention methods overlook these GR-specific properties; by repeatedly retrieving over the full history and maintaining a static token budget at every step, they incur substantial redundant computation. In contrast, our key insight is that the model can establish a shared importance ranking of historical tokens early in decoding and progressively prune the tokens participating in attention. Leveraging these properties, we propose PFA, which reuses the shared importance ranking and geometrically reduces the token budget to preserve critical semantics while accelerating decoding.

Figure 2: Overview of the PFA framework. (a) Overall framework. PFA precomputes step-specific historical KV representations via step-aware KV projection. Step 0 attends to the complete user history to capture global preferences. Step 1 constructs a cross-beam shared token importance ranking; subsequent steps () reuse this ranking and progressively shrink the token budget as beam search generates candidate items. (b) Cross-beam token selection. At Step 1, PFA aggregates attention distributions across beams, weighted by their normalized generation probabilities, to select the top- historical tokens. Corresponding step-specific KV representations are reordered by descending importance (e.g., G, C, E, B, H, A) into compact, contiguous caches shared across beams. (c) Geometric budget reduction. For , PFA geometrically decays the token budget to and attends only to the first tokens in the reordered KV cache at step . Reusing this ranking enables direct prefix truncation, eliminating redundant full-history token selection and reducing both attention computation and KV memory traffic.
3.2 Progressively Focused Attention
As illustrated in Figure 2, PFA organizes autoregressive decoding into three stages: global preference exploration, cross-beam importance-based token selection, and geometric token budget reduction.
Stage 1: Global Preference Exploration. At the initial decoding step , PFA performs full attention to allow the decoder to access the complete user history:
where the initial query is derived from the beginning-of-sequence token , and and denote the full historical KV representations at step . Based on the attention output , the model predicts the first semantic token and retains the top- candidate paths via beam search. These beams yield distinct semantic prefixes, which subsequently guide the identification of critical historical tokens across diverse user interests.
Stage 2: Cross-Beam Importance-Based Token Selection. At decoding step , the distinct semantic prefixes across different beams capture diverse facets of the user's historical interests. PFA assigns
each historical token an aggregated importance score through cross-beam weighted aggregation. It then constructs a shared importance ranking and selects an initial critical token set shared across beams.
Specifically, for beam , the attention weight assigned to historical token is given by:
where is the query of beam at step , is the full historical key matrix for this step, and is the key dimension. In multi-head attention, can be averaged across all heads.
Next, PFA performs cross-beam weighted aggregation of these attention distributions using each beam's normalized generation probability:
where is the generation probability of beam , and denotes the aggregated importance score of historical token . Sorting the historical tokens by in descending order yields a shared importance ranking . PFA selects the top- tokens to form the initial critical token set , which is shared across beams:
According to this ranking, PFA reorders the precomputed historical KV representations for subsequent decoding steps, retaining only the top- tokens to form a compact, contiguous KV cache. At step , PFA reuses the previously computed attention weights, renormalizes them over the critical token set , and computes the attention output using the corresponding value vectors. All beams share this reordered KV cache, whose contiguous memory layout enables zero-overhead prefix truncation in later decoding steps.
Stage 3: Geometric Token Budget Reduction. Leveraging the shared importance ranking from Stage 2, PFA starts from the initial critical token set and geometrically shrinks the historical token budget as decoding proceeds:
where is the initial token budget at , is the geometric retention ratio, and denotes the ceiling operator. Accordingly, the critical token set at decoding step is defined as:
Reusing the shared importance ranking across steps naturally produces nested critical token sets satisfying . Consequently, for , each beam performs attention exclusively over the truncated critical token set :
where and denote the key and value representations sliced at the shared indices for step . By coupling reuse of the shared importance ranking with geometric token budget reduction, PFA eliminates repeated full-history retrieval and progressively reduces attention complexity across decoding steps.
Step-Aware KV Projection. Although different decoding steps attend to nested critical token sets, predicting hierarchical semantic tokens at different steps requires distinct semantic information from the user history. To enhance step-specific expressiveness, PFA assigns independent KV projection parameters to each decoding step and precomputes the corresponding historical KV caches:
where and are the step-specific key and value projection matrices for step . Projecting the reused historical tokens into distinct semantic subspaces across steps effectively prevents representational homogenization and mitigates potential representation collapse [59].
3.3 Efficiency and Effectiveness Analysis
Decoding Efficiency. PFA substantially reduces attention computation during decoding via cross-beam importance-based token selection and geometric token budget reduction. Table 1 compares the theoretical computational costs and speedups of Full Attention, Dynamic Top- Sparse Attention, and PFA. Under a typical industrial configuration, PFA achieves theoretical attention speedups of over full attention and over dynamic top- sparse attention. These gains stem from two factors: reusing a shared importance
ranking across beams and decoding steps eliminates redundant token selection, and geometrically decaying the token budget progressively narrows the attention scope. This advantage becomes more pronounced as the initial selection ratio decreases or the SID length increases. Moreover, dynamic top- sparse attention requires per-beam top- selection and non-contiguous KV gather operations at each decoding step, incurring substantial indexing and memory access overhead. By sharing token indices across beams and maintaining a contiguous KV cache, PFA avoids redundant selection and irregular memory access, further improving practical decoding efficiency.
Table 1: Theoretical attention computation and speedup comparison. We set , , , , , and . MACs (M) denotes millions of multiply-accumulate operations. Speedup is defined as the ratio of each baseline's attention MACs to those of PFA.
| Method | Attention MACs | MACs (M) | Speedup |
|---|---|---|---|
| Full Attention | 78.91 | ||
| Dynamic Top- Sparse Attention | 59.18 | ||
| PFA (Ours) | 29.75 | - |
Semantic Preservation. Beyond acceleration, PFA preserves recommendation quality through three key designs. First, retaining all historical tokens at the initial decoding step preserves full context for global preference exploration, avoiding the premature information loss caused by static compression. Second, our cross-beam token selection and geometric budget reduction align with the progressive attention focusing inherent to GR decoding, retaining salient semantics while filtering out irrelevant noise. Finally, the step-aware KV projection maps reused tokens into step-specific semantic subspaces, enhancing stage-wise representational capacity for hierarchical SID prediction.
Overall, PFA strikes an effective balance between critical semantic preservation and decoding efficiency in long-sequence GR.
4 Experiments
We comprehensively evaluate the recommendation quality and inference efficiency of PFA on two public benchmarks and one large-scale industrial dataset, and further validate its practical effectiveness through online A/B testing. Our experiments are designed to answer the following five research questions (RQs):
-
RQ1: How does PFA perform compared with representative baseline methods in terms of recommendation quality?
-
RQ2: How does each core component of PFA contribute to overall recommendation quality and inference efficiency?
-
RQ3: How does the timing of shared index construction affect recommendation quality and inference latency?
-
RQ4: How sensitive is PFA to the initial token budget and its geometric retention ratio ?
-
RQ5: Does PFA achieve significant online improvements in a live production recommender system?
4.1 Experimental Setup
Datasets. We evaluate PFA on three datasets: Kindle Store, Tmall, and Industry, covering e-book recommendation, click-based e-commerce recommendation, and e-commerce advertising recommendation, respectively. Kindle Store is derived from Amazon Reviews 2023 [22]. Tmall is constructed from click interactions in the IJCAI-15 Repeat Buyers Prediction Dataset [47]. Industry is collected from a large-scale e-commerce advertising platform. Table 2 summarizes the statistics of the datasets.
Table 2: Statistics of the datasets.
| Statistic | Kindle Store | Tmall | Industry |
|---|---|---|---|
| #Users | 5,801 | 19,093 | 35,154,135 |
| #Items | 98,013 | 204,470 | 48,106,880 |
| #Interactions | 1,590,326 | 5,100,848 | 626,020,176 |
| Seq. Len. (N) | 128 | 128 | 512 |
Data Preprocessing and Splitting. For Kindle Store, we treat interactions with ratings of at least 4 as positive feedback and retain active users with at least 128 positive records. For Tmall and Industry, we construct interaction sequences from user clicks, retaining only the earliest interaction for repeated user-item pairs. Across all datasets, each user's interactions are sorted chronologically and partitioned into training, validation, and test phases at an approximate 90% : 5% : 5% ratio. We construct prediction instances using a sliding window under a rolling-history evaluation protocol, where each input sequence comprises up to N observed behaviors strictly preceding the target interaction. For the public datasets, we iteratively filter out items with fewer than 5 occurrences in the training instances, remove users without valid sequences, and apply deterministic sampling to form the final splits.
Baselines. We compare PFA against eight representative baselines across four categories: (1) conventional sequential recommenders, SASRec [25] and HSTU [64]; (2) the standard generative recommender, TIGER [42]; (3) general-purpose static history compression methods for long sequences, LONGER [6] and Q-Former [28, 67]; and (4) long-sequence generative recommenders, RASTP [65], DualGR [61], and GEMs [68]. For a fair comparison, we enforce an identical attention token budget across all efficient long-sequence methods, whereas the remaining baselines attend to the full user history.
Evaluation Metrics. We evaluate offline recommendation quality using Recall@K and NDCG@K [23] with , which measure target item retrieval and ranking performance, respectively. For online A/B testing, we assess practical business impact using REV and click-through rate (CTR).
Implementation Details. All models are implemented in PyTorch with an embedding dimension of 256. The generative recommenders adopt a Transformer-based encoder-decoder architecture comprising 2 encoder layers, 2 decoder layers, and 8 attention heads. The prediction head is a two-layer MLP with input/output dimensions of 256, a hidden dimension of 640, and a SwiGLU activation function. The SID codebook configuration is set to [128, 128, 128, 128] for Kindle Store and Tmall, and [300, 300, 300, 300] for Industry. We optimize all models using AdamW with a learning rate of 0.001 and a weight decay of 0.01. Models are trained for up to 50 epochs with
early stopping on the public datasets, and for a single epoch on the Industry dataset.
Efficiency Measurement. We benchmark inference latency across 5 NVIDIA L20 GPUs using BF16 mixed precision, with a per-GPU batch size of 512 and a beam width of 100. Latency measurements span the encoder forward pass and the full autoregressive beam search decoding process, excluding data loading and external embedding lookups. We perform 3 warmup batches and apply CUDA synchronization before and after timing, reporting the average inference latency per batch per GPU (ms/batch).
4.2 Overall Performance (RQ1)
Table 3 summarizes the overall recommendation performance of all compared models across the three datasets.
Recommendation Quality. PFA consistently achieves the best performance across all four metrics on all three datasets. Compared with the strongest baseline for each metric, PFA yields average relative improvements of 5.75% in Recall@10 and 7.18% in NDCG@10 across the three datasets. Under an identical token budget, PFA also substantially outperforms existing static history compression methods, demonstrating its superior ability to preserve historical information relevant to target prediction. This advantage stems from two key designs: first, rather than prematurely truncating or compressing token information before decoding, PFA retains the full contextual semantics throughout encoding and performs cross-beam importance-based token selection during decoding for effective semantic preservation; second, the step-aware KV projection further enriches the representational capacity at each decoding step.
4.3 Ablation Study (RQ2)
To evaluate the contribution of each core component, we conduct ablation studies on Kindle Store and Industry, with the results summarized in Table 4. We compare the full PFA model against five variants:
(1) Full Attention: Applies full-sequence attention at every decoding step without token pruning.
(2) Dynamic Top- Sparse Attention: Performs top- token selection independently for each decoding step and each beam.
(3) w/o cross-beam sharing: Constructs and reuses sparse indices independently within each beam rather than sharing them across beams.
(4) w/o geometric reduction: Fixes the token budget to its initial value across all subsequent decoding steps.
(5) w/o step-aware KV projection: Shares a single set of KV projection parameters across all decoding steps.
Effectiveness of the Overall Architecture. While Dynamic Top- Sparse Attention matches the accuracy of Full Attention, per-step and per-beam top- selection triggers non-contiguous GPU memory accesses, more than doubling inference latency. By integrating cross-beam sharing, geometric reduction, and step-aware KV projection, PFA simultaneously improves recommendation accuracy and substantially reduces inference latency compared with Full Attention.
Table 3: Overall performance comparison across the three datasets in terms of Recall@5, NDCG@5, Recall@10, and NDCG@10. The best and second-best results for each metric on each dataset are highlighted in bold and underlined, respectively. Improv. denotes the relative improvement of PFA over the strongest baseline.
| Method | Kindle Store | Tmall | Industry | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Recall@5 | NDCG@5 | Recall@10 | NDCG@10 | Recall@5 | NDCG@5 | Recall@10 | NDCG@10 | Recall@5 | NDCG@5 | Recall@10 | NDCG@10 | |
| SASRec | 0.0294 | 0.0214 | 0.0442 | 0.0259 | 0.0511 | 0.0317 | 0.0978 | 0.0462 | 0.0724 | 0.0468 | 0.1223 | 0.0623 |
| HSTU | 0.0302 | 0.0228 | 0.0487 | 0.0289 | 0.0543 | 0.0339 | 0.0994 | 0.0487 | 0.0792 | 0.0504 | 0.1256 | 0.0655 |
| TIGER | 0.0327 | 0.0235 | 0.0532 | 0.0299 | 0.0596 | 0.0356 | 0.1043 | 0.0506 | 0.0845 | 0.0562 | 0.1332 | 0.0722 |
| LONGER | 0.0393 | 0.0262 | 0.0611 | 0.0332 | 0.0661 | 0.0414 | 0.1132 | 0.0563 | 0.1086 | 0.0768 | 0.1565 | 0.0928 |
| Q-Former | 0.0368 | 0.0246 | 0.0579 | 0.0312 | 0.0632 | 0.0392 | 0.1103 | 0.0547 | 0.1072 | 0.0761 | 0.1552 | 0.0913 |
| RASTP | 0.0379 | 0.0257 | 0.0575 | 0.0322 | 0.0628 | 0.0389 | 0.1096 | 0.0536 | 0.1056 | 0.0745 | 0.1541 | 0.0904 |
| DualGR | 0.0375 | 0.0252 | 0.0571 | 0.0315 | 0.0617 | 0.0379 | 0.1075 | 0.0528 | 0.1048 | 0.0736 | 0.1528 | 0.0886 |
| GEMs | 0.0391 | 0.0264 | 0.0603 | 0.0331 | 0.0667 | 0.0412 | 0.1148 | 0.0570 | 0.1082 | 0.0782 | 0.1581 | 0.0947 |
| PFA | 0.0415 | 0.0278 | 0.0635 | 0.0349 | 0.0710 | 0.0452 | 0.1218 | 0.0619 | 0.1178 | 0.0848 | 0.1695 | 0.1021 |
| Improv. | 5.60% | 5.30% | 3.93% | 5.12% | 6.45% | 9.18% | 6.10% | 8.60% | 8.47% | 8.44% | 7.21% | 7.81% |
Table 4: Ablation study of PFA on Kindle Store and Industry.
| Method | Kindle Store | Industry | ||
|---|---|---|---|---|
| Recall@10 | Latency | Recall@10 | Latency | |
| Full Attention | 0.0624 | 24 | 0.1643 | 90 |
| Dynamic Top-k Sparse Attention | 0.0623 | 53 | 0.1638 | 212 |
| w/o cross-beam sharing | 0.0648 | 29 | 0.1706 | 118 |
| w/o geometric reduction | 0.0637 | 20 | 0.1699 | 65 |
| w/o step-aware KV projection | 0.0618 | 16 | 0.1602 | 59 |
| PFA | 0.0635 | 18 | 0.1695 | 62 |
Impact of Cross-Beam Sharing and Geometric Reduction. Disabling cross-beam sharing sharply increases inference latency with only marginal accuracy gains, confirming that using shared indices across beams effectively eliminates redundant top-k sorting and scattered KV reads. Similarly, removing geometric reduction increases latency while yielding negligible differences in accuracy. Together, these two mechanisms prune redundant computation along the beam and decoding-step dimensions with minimal impact on recommendation quality.
Effect of Step-Aware KV Projection. Removing step-aware KV projection significantly degrades recommendation accuracy while yielding only minimal latency savings. This confirms that assigning dedicated KV projection parameters to each decoding step effectively captures stage-specific historical semantics with negligible computational overhead.
4.4 Timing of Shared Index Construction (RQ3)
To examine how the timing of shared index construction affects model performance, we compare four strategies on the Industry dataset, triggering construction from Step 0 to Step 3. All strategies share the same initial token budget k: they apply full-sequence attention prior to shared index construction, and subsequently reuse the shared indices under the same geometric token budget reduction schedule. We evaluate both Recall@10 and end-to-end inference latency.
Results. As shown in Table 5, constructing the shared indices at Step 1 strikes a favorable balance between recommendation accuracy and inference efficiency. Compared to Step 0, Step 1 improves Recall@10 by 0.0063 (3.86% relatively) while increasing end-to-end
Table 5: Impact of shared index construction timing. † denotes the default construction step used in the main experiments.
| Metric | Construction Step | |||
|---|---|---|---|---|
| Step 0 | Step 1† | Step 2 | Step 3 | |
| Recall@10 | 0.1632 | 0.1695 | 0.1701 | 0.1704 |
| Latency | 55 | 62 | 94 | 103 |
inference latency by only 7 ms/batch. This aligns with our preliminary observations: attention distributions are relatively diffuse at Step 0, but rapidly become focused on a small subset of relevant historical behaviors once the first semantic token is generated, enabling more accurate selection of the critical token set at Step 1. Moreover, compared to deferring construction to Step 2 or Step 3, Step 1 requires fewer full-sequence attention operations, avoiding substantial latency overhead for marginal accuracy gains. Consequently, PFA constructs the shared indices at Step 1 by default.
4.5 Hyperparameter Study (RQ4)
On the Industry dataset, we investigate the sensitivity of PFA to the initial token budget k and the geometric retention ratio r, varying one hyperparameter while keeping all other settings fixed. Table 6 summarizes the results.
Table 6: Hyperparameter sensitivity analysis. We fix r = 0.50 when varying k, and k = 256 when varying r. † denotes the default setting used in the main experiments.
| Parameter k | ||
|---|---|---|
| Value | Recall@10 | Latency |
| 384 | 0.1704 | 78 |
| 320 | 0.1702 | 69 |
| 256† | 0.1695 | 62 |
| 192 | 0.1692 | 57 |
| 128 | 0.1648 | 52 |
| Parameter r | ||
|---|---|---|
| Value | Recall@10 | Latency |
| 1.00 | 0.1699 | 65 |
| 0.75 | 0.1697 | 63 |
| 0.50† | 0.1695 | 62 |
| 0.25 | 0.1664 | 60 |
Initial token budget k. We vary k across {384, 320, 256, 192, 128}. Reducing k from 384 to 256 substantially lowers inference latency while maintaining comparable recommendation accuracy. However, further decreasing (especially down to 128) leads to a noticeable drop in Recall@10 with diminishing latency reductions. These results indicate that moderately pruning historical tokens effectively eliminates redundant computation, whereas overly aggressive compression discards critical user preferences. Consequently, we set by default to balance recommendation accuracy and inference efficiency.
Geometric retention ratio . We vary across , where disables geometric token budget reduction. As decreases from 1.00 to 0.50, inference latency steadily declines while Recall@10 remains robust. Reducing further to 0.25 markedly degrades recommendation accuracy while yielding minimal latency savings. This confirms that moderate geometric reduction effectively curtails redundant memory access in later decoding steps without losing essential historical context. We therefore adopt by default.
4.6 Online A/B Testing (RQ5)
To validate the effectiveness of PFA in a real-world production environment, we deploy it on a large-scale e-commerce advertising platform and conduct a 7-day online A/B test. The control group serves the baseline production recommender with user behavior sequences truncated to 128, whereas the treatment group integrates PFA to extend the sequence length to 512. Each group is randomly allocated 10% of live production traffic.
As shown in Table 7, the treatment group achieves relative improvements of 3.76% in REV, 0.34% in CTR, and 2.56% in gross merchandise value (GMV) over the control group. Regarding system efficiency, PFA maintains an online RT of 11 ms, which is notably lower than the 15 ms incurred by directly feeding the full 512-item sequence into the computation graph. These results demonstrate that PFA enables generative recommenders to effectively leverage long user behavior sequences for substantial business gains while simultaneously accelerating online inference.
Table 7: Results of the online A/B test.
| Method | REV | CTR | GMV | RT (ms) |
|---|---|---|---|---|
| PFA | +3.76% | +0.34% | +2.56% | 11 |
5 Related Work
Generative Recommendation. Generative recommendation reformulates recommendation as conditional sequence generation [18], demonstrating substantial potential in large-scale industrial systems [21, 64, 67]. A typical paradigm maps items to SIDs composed of discrete codewords, and then autoregressively generates target identifiers conditioned on user context [34, 42, 50, 55]. Subsequent studies align item representations with the generation process by enriching codewords with content semantics and collaborative signals [32, 49, 51], or by jointly optimizing tokenizers and recommenders toward recommendation objectives [2, 16, 29, 33, 48]. However, as interaction histories accumulate, accurately capturing long-term preferences while maintaining efficient autoregressive inference remains a pressing bottleneck.
Long-Sequence Modeling in Recommendation. Traditional discriminative recommenders leverage target candidates as queries to retrieve or aggregate relevant historical behaviors [5, 7, 9, 41], or reduce computational overhead via feature compression, sparse access, and external memory [6, 39, 45, 63]. Lacking explicit target candidates during inference, generative recommenders must preserve diverse user interests while constraining history access throughout autoregressive search. Consequently, one line of work focuses on history pre-compression and state maintenance. For instance, CAUSE aggregates long-term behaviors by category alongside recent interactions within HSTU [35]. To achieve internal denoising and multi-granular fusion, RASTP prunes uninformative history tokens at intermediate Transformer layers based on semantic saliency and attention centrality [65]; GRACE integrates block compression, query-aware block selection, coarse journey tokens, and recent sliding windows via gating mechanisms [38]. For streaming updates, Rec2PM jointly encodes existing preference memory and incoming behavior segments, recurrently maintaining memory tokens for subsequent predictions [11]. Another line of research retrieves historical behaviors on demand using intermediate decoding signals, such as partially generated prefixes or current-step queries. DualGR predicts a coarse SID to retrieve behaviors from the corresponding bucket for fine-grained decoding [61]; similarly, GLASS summarizes long-term interests for first-codeword prediction, and then uses this codeword to retrieve relevant history and gate it into subsequent decoding steps [4]. GEMs dynamically selects top- mid-term KV entries via a lightweight query-based indexer, combining them with recent interactions and pre-compressed lifelong representations [68]. While these methods mitigate computational costs through compression and single-step retrieval, they largely overlook the multi-step nature of autoregressive decoding when modeling long-sequence user histories in GR—specifically, how to efficiently share and reuse historical context across decoding steps and candidate beams.
Efficient Sequence Modeling for Large Models. Research on large language models has established several sequence-modeling paradigms to accelerate long-context inference. Common strategies include compressing long contexts into shorter text or summary vectors [10, 12, 40]; recurrently updating hidden states via linear attention or state-space models to bypass full-history traversal [13, 20, 26, 58]; and reducing attention complexity through local windows and content-aware token or block selection [3, 14, 15, 24, 27, 37, 46, 62]. As a mainstream paradigm, top- dynamic sparse attention substantially reduces attention FLOPs, yet online history scoring and selection often emerge as new latency bottlenecks [1, 54, 57]. To eliminate redundant selection overhead, recent studies explore index and state reuse across multiple dimensions. For example, IndexCache and ChunkKV share retrieval indices across layers [1, 36]—a strategy adopted in frontier models such as GLM-5.2 [19] and DeepSeek-V4.1-Flash [53]—while other works share selected context across decoding steps to amortize selection costs [44, 57]. This reuse philosophy has recently been extended to generative recommendation: OneLA shares historical recurrent states of linear attention across beams to accelerate wide-beam search [60]. Nevertheless, for standard softmax attention mechanisms that remain widely adopted, designing efficient long-sequence modeling tailored to the specific decoding structure of generative recommendation remains largely underexplored.
6 Conclusion
In this paper, we present PFA, an efficient sparse decoding framework for long-sequence generative recommendation. Specifically, we identify two key properties of historical attention during autoregressive decoding: progressive attention focusing and cross-step ranking consistency. Motivated by these observations, PFA retains full attention for initial preference exploration and constructs a shared token importance ranking through cross-beam weighted aggregation. By reusing this ranking and geometrically reducing the token budget in subsequent steps, PFA preserves critical historical semantics while minimizing redundant token selection overhead and KV cache access. Furthermore, we incorporate a step-aware KV projection to capture the distinct semantic requirements across different decoding steps. Extensive offline experiments on real-world datasets and online A/B testing in a commercial advertising system demonstrate that PFA simultaneously improves recommendation quality and accelerates inference, validating its practical value in supporting longer user histories. In future work, we aim to explore adaptive token budget allocation to better accommodate diverse user histories and dynamic decoding states.
References
[1] Yushi Bai, Qian Dong, Ting Jiang, Xin Lv, Zhengxiao Du, Aohan Zeng, Jie Tang, and Juanzi Li. 2026. Indexcache: Accelerating sparse attention via cross-layer index reuse. arXiv preprint arXiv:2603.12201 (2026).
[2] Yimeng Bai, Chang Liu, Yang Zhang, Dingxian Wang, Frank Yang, Andrew Rabinovich, Wenge Rong, and Fuli Feng. 2026. Bi-level optimization for generative recommendation: Bridging tokenization and generation. In Proceedings of the 49th International ACM SIGIR Conference on Research and Development in Information Retrieval. 53–64.
[3] Iz Beltagy, Matthew E Peters, and Arman Cohan. 2020. Longformer: The long-document transformer. arXiv preprint arXiv:2004.05150 (2020).
[4] Shiteng Cao, Junda She, Bin Zeng, Ji Liu, Chengcheng Guo, Kuo Cai, Qiang Luo, Ruiming Tang, Han Li, Kun Gai, et al. 2026. Coarse-to-Fine Long-term Interest Modeling for Generative Recommendation. In Proceedings of the 20th ACM Conference on Recommender Systems. 105–114.
[5] Yue Cao, Xiaojiang Zhou, Jiaqi Feng, Peihao Huang, Yao Xiao, Dayao Chen, and Sheng Chen. 2022. Sampling is all you need on modeling long-term user behaviors for CTR prediction. In Proceedings of the 31st ACM International Conference on Information & Knowledge Management. 2974–2983.
[6] Zheng Chai, Qin Ren, Xijun Xiao, Huizhi Yang, Bo Han, Sijun Zhang, Di Chen, Hui Lu, Wenlin Zhao, Lele Yu, et al. 2025. Longer: Scaling up long sequence modeling in industrial recommenders. In Proceedings of the Nineteenth ACM Conference on Recommender Systems. 247–256.
[7] Jianxin Chang, Chenbin Zhang, Zhiyi Fu, Xiaoxue Zang, Lin Guan, Jing Lu, Yiqun Hui, Dewei Leng, Yanan Niu, Yang Song, et al. 2023. TWIN: TWO-stage interest network for lifelong user behavior modeling in CTR prediction at kuaizhou. In Proceedings of the 29th ACM SIGKDD Conference on Knowledge Discovery and Data Mining. 3785–3794.
[8] Ben Chen, Xian Guo, Siyuan Wang, Zihan Liang, Yue Lv, Yufei Ma, Xinlong Xiao, Bowen Xue, Xuxin Zhang, Ying Yang, et al. 2025. Onesearch: A preliminary exploration of the unified end-to-end generative framework for e-commerce search. arXiv preprint arXiv:2509.03236 (2025).
[9] Qiwei Chen, Changhua Pei, Shanshan Lv, Chao Li, Junfeng Ge, and Wenwu Ou. 2021. End-to-end user behavior retrieval in click-through rate prediction model. arXiv preprint arXiv:2108.04468 (2021).
[10] Shaoshen Chen, Yangning Li, Zishan Xu, Yongqin Zeng, Shunlong Wu, Xinshuo Hu, Zifei Shan, Xin Su, Jiwei Tang, Yinghui Li, et al. 2025. Dast: Context-aware compression in Imls via dynamic allocation of soft tokens. In Findings of the Association for Computational Linguistics: ACL 2025. 20544–20552.
[11] Yixiao Chen, Yuan Wang, Yue Liu, Qiyao Wang, Ke Cheng, Xin Xu, Juntong Yan, Shuojin Yang, Menghao Guo, Jun Zhang, et al. 2026. Recurrent Preference Memory for Efficient Long-Sequence Generative Recommendation. arXiv preprint arXiv:2602.11605 (2026).
[12] Chenglong Chu, Guorui Zhou, Guowang Zhang, Han Li, Hao Peng, Hongtao Cheng, Hui Wang, Jian Liang, Jiangxia Cao, Kun Gai, et al. 2026. Kwai summary attention technical report. arXiv preprint arXiv:2604.24432 (2026).
[13] Tri Dao and Albert Gu. 2024. Transformers are SSMs: Generalized models and efficient algorithms through structured state space duality. arXiv preprint arXiv:2405.21060 (2024).
[14] Qihang Fan, Huaibo Huang, Zhiying Wu, Bingning Wang, and Ran He. 2026. FlashPrefill V2: Block-Sparse Prefill Attention for Long-Context LLM Serving. arXiv preprint arXiv:2608.19758 (2026).
[15] Qihang Fan, Huaibo Huang, Zhiying Wu, Juqiu Wang, Bingning Wang, and Ran He. 2026. Flashprefill: Instantaneous pattern discovery and thresholding for ultra-fast long-context prefilling. arXiv preprint arXiv:2603.06199 (2026).
[16] Junchen Fu, Xuri Ge, Alexandros Karatzoglou, Ioannis Arapakis, Suzan Verberne, Joemon M Jose, and Zhaochun Ren. 2026. Differentiable semantic id for generative recommendation. arXiv preprint arXiv:2601.19711 (2026).
[17] Kairui Fu, Tao Zhang, Shuwen Xiao, Ziyang Wang, Xinming Zhang, Chenchi Zhang, Yuliang Yan, Junjun Zheng, Xiangheng Kong, Shengyu Zhang, et al. 2026. Forge: Forming semantic identifiers for generative retrieval in industrial datasets. In Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 2. 8858–8869.
[18] Shijie Geng, Shuchang Liu, Zuohui Fu, Yingqiang Ge, and Yongfeng Zhang. 2022. Recommendation as language processing (rlp): A unified pretrain, personalized prompt & predict paradigm (p5). In Proceedings of the 16th ACM conference on recommender systems. 299–315.
[19] GLM-5-Team, ; Aohan Zeng, Xin Lv, Zhenyu Hou, Zhengxiao Du, Qinkai Zheng, Bin Chen, Da Yin, Chendi Ge, Chenghua Huang, Chengxing Xie, Chenzheng Zhu, Congfeng Yin, Cuxiang Wang, Gengzheng Pan, Hao Zeng, Haoke Zhang, Haoran Wang, Huiqiong Chen, Jiajie Zhang, Jian Jiao, Jiaqi Guo, Jingsen Wang, Jingzhao Du, Jinzhu Wu, Kedong Wang, Lei Li, Lin Fan, Luecen Zhong, Mingdao Liu, Mingming Zhao, Pengfan Du, Qian Dong, Rui Lu, Shuang-Li, Shulin Cao, Song Liu, Ting Jiang, Xiaodong Chen, Aohang Zhang, Xuancheng Huang, Xuezhen Dong, Yabo Xu, Yao Wei, Yifan An, Yilin Niu, Yitong Zhu, Yuanhao Wen, Yukuo Cen, Yushi Bai, Zhongpei Qiao, Zihan Wang, Zikang Wang, Zilin Zhu, Ziqiang Liu, Zixuan Li, Bojie Wang, Bosi Wen, Can Huang, Changpeng Cai, Chao Yu, Chen Li, Chengwei Hu, Chenhui Zhang, Dan Zhang, Daoyan Lin, Dayong Yang, Di Wang, Ding Ai, Erle Zhu, Fangzhou Yi, Feiyu Chen, Guohong Wen, Hailong Sun, Haisha Zhao, Haiyi Hu, Hanchen Zhang, Hanrui Liu, Hanyu Zhang, Hao Peng, Hao Tai, Haobo Zhang, He Liu, Hongwei Wang, Hongxi Yan, Hongyu Ge, Huan Liu, Huannpeng Chu, Jia'ni Zhao, Jiachen Wang, Jiajing Zhao, Jiamin Ren, Jiapeng Wang, Jiaxin Zhang, Jiayi Gui, Jiayue Zhao, Jiejie Li, Jing An, Jing Li, Jingwei Yuan, Jinhua Du, Jinxin Liu, Junkai Zhi, Junwen Duan, Kaiyue Zhou, Kangjian Wei, Ke Wang, Keyun Luo, Laiqiang Zhang, Leigang Sha, Liang Xu, Lindong Wu, Lintao Ding, Lu Chen, Minghao Li, Nianyi Lin, Pan Ta, Qiang Zou, Rongjun Song, Ruiqi Yang, Shangqing Tu, Shangtong Yang, Shaoxiang Wu, Shengyan Zhang, Shijie Li, Shuang Li, Shuyi Fan, Wei Qin, Wei Tian, Weining Zhang, Wenbo Yu, Wenjie Liang, Xiang Kuang, Xiangmeng Cheng, Xiangyang Li, Xiaoyuan Yan, Xiaowei Hu, Xiaoying Ling, Xing Fan, Xingye Xia, Xinyuan Zhang, Xinze Zhang, Xirui Pan, Xu Zou, Xunkai Zhang, Yadi Liu, Yangdong Wu, Yanfu Li, Yidong Wang, Yifan Zhu, Yijun Tan, Yilin Zhou, Yiming Pan, Ying Zhang, Yinpei Su, Yipeng Geng, Yong Yan, Yonglin Tan, Yuean Bi, Yuhan Shen, Yuhao Yang, Yujiang Li, Yunan Liu, Yunqing Wang, Yuntao Li, Yurong Wu, Yutao Zhang, Yuxi Duan, Yuxuan Zhang, Zezhen Liu, Zhengtao Jiang, Zhenhe Yan, Zheyu Zhang, Zhixiang Wei, Zhuo Chen, Zhuoer Feng, Zijun Yao, Ziwei Chai, Ziyuan Wang, Zuzhou Zhang, Bin Xu, Minlie Huang, Hongning Wang, Juanzi Li, Yuxiao Dong, and Jie Tang. 2026. GLM-5: from Vibe Coding to Agentic Engineering. arXiv:2602.15763 [cs.LG] https://arxiv.org/abs/2602.15763
[20] Albert Gu and Tri Dao. 2023. Mamba: Linear-time sequence modeling with selective state spaces. arXiv preprint arXiv:2312.00752 (2023).
[21] Ruining He, Lukasz Heldt, Lichan Hong, Raghunandan Keshavan, Shifan Mao, Nikhil Mehta, Zhengyang Su, Alicia Tsai, Yueqi Wang, Shao-Chuan Wang, et al. 2026. Plum: Adapting pre-trained language models for industrial-scale generative recommendations. In Proceedings of the ACM Web Conference 2026. 8093–8104.
[22] Yupeng Hou, Jiacheng Li, Xiangjun Fu, Zhankui He, An Yan, Xiusi Chen, and Julian McAuley. 2026. Bridging language and items for retrieval and recommendation: Benchmarking LLMs as semantic encoders. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 3251–3265.
[23] Kalervo Järvelin and Jaana Kekäläinen. 2002. Cumulated gain-based evaluation of IR techniques. ACM Transactions on Information Systems (TOIS) 20, 4 (2002), 422–446.
[24] Huiqiang Jiang, Yucheng Li, Chengruidong Zhang, Qianhui Wu, Xufang Luo, Surin Ahn, Zhenhua Han, Amir H Abdi, Dongsheng Li, Chin-Yew Lin, et al. 2024. Minference 1.0: Accelerating pre-filling for long-context Imls via dynamic sparse attention. Advances in Neural Information Processing Systems 37 (2024), 52481–52515.
[25] Wang-Cheng Kang and Julian McAuley. 2018. Self-attentive sequential recommendation. In 2018 IEEE international conference on data mining (ICDM). IEEE, 197–206.
[26] Angelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, and François Fleuret. 2020. Transformers are rnn: Fast autoregressive transformers with linear attention. In International conference on machine learning. PMLR, 5156–5165.
[27] Xunhao Lai, Jianqiao Lu, Yao Luo, Yiuyan Ma, and Xun Zhou. 2025. Flexprefill: A context-aware sparse attention mechanism for efficient long-sequence inference. arXiv preprint arXiv:2502.20766 (2025).
[28] Junnan Li, Dongxu Li, Silvio Savarese, and Steven Hoi. 2023. Blip-2: Bootstrapping language-image pre-training with frozen image encoders and large language models. In International conference on machine learning. PMLr, 19730–19742.
[29] Jialei Li, Yang Zhang, Yimeng Bai, Shuai Zhu, Ziqi Xue, Xiaoyan Zhao, Dingxian Wang, Frank Yang, Andrew Rabinovich, and Xiangnan He. 2026. UniRec: Unified Generative Recommendation with Soft Identifiers for End-to-End Optimization. arXiv preprint arXiv:2601.17438 (2026).
[30] Xiaopeng Li, Bo Chen, Junda She, Shiteng Cao, You Wang, Qinlin Jia, Haiying He, Zhelii Zhou, Zhao Liu, Ji Liu, et al. 2025. A survey of generative recommendation from a tri-decoupled perspective: Tokenization, architecture, and optimization. (2025).
[31] Xinyu Lin, Chaoqun Yang, Wenjie Wang, Yongqi Li, Cunxiao Du, Fuli Feng, See-Kiong Ng, and Tat-Seng Chua. 2025. Efficient inference for large language model-based generative recommendation. In International Conference on Learning Representations, Vol. 2025. 91672–91697.
[32] Chang Liu, Yimeng Bai, Xiaoyan Zhao, Yang Zhang, Fuli Feng, and Wenge Rong. 2025. Discrete: Disentangled semantic-collaborative modeling for generative recommendation. arXiv preprint arXiv:2506.15576 (2025).
[33] Enze Liu, Bowen Zheng, Cheng Ling, Lantao Hu, Han Li, and Wayne Xin Zhao. 2025. Generative recommender with end-to-end learnable item tokenization. In Proceedings of the 48th International ACM SIGIR Conference on Research and Development in Information Retrieval. 729–739.
[34] Han Liu, Yinwei Wei, Xuemeng Song, Weili Guan, Yuan-Fang Li, and Liqiang Nie. 2026. Mmgrec: Multimodal generative recommendation with transformer model. ACM Transactions on Multimedia Computing, Communications and Applications 22, 10 (2026), 1–21.
[35] Qijiong Liu, Lu Fan, Zhongzhou Liu, Xiaoyu Dong, Yuankai Luo, Guoyuan An, Nuo Chen, Wei Guo, Yong Liu, and Xiao-Ming Wu. 2026. Accelerating Generative Recommendation via Simple Categorical User Sequence Compression. In Proceedings of the Nineteenth ACM International Conference on Web Search and Data Mining, 1195–1199.
[36] Xiang Liu, Zhenheng Tang, Peijie Dong, Zeyu Li, Bo Li, Xuming Hu, and Xiaowen Chu. 2026. Chunkv: Semantic-preserving kv cache compression for efficient long-context llm inference. Advances in Neural Information Processing Systems 38 (2026), 28728–28778.
[37] Enzhe Lu, Zhejun Jiang, Jingyuan Liu, Yulun Du, Tao Jiang, Chao Hong, Shaowei Liu, Weiran He, Enming Yuan, Yuzhi Wang, et al. 2026. Moba: Mixture of block attention for long-context llms. Advances in Neural Information Processing Systems 38 (2026), 17790–17815.
[38] Luyi Ma, Wanjia Zhang, Kai Zhao, Abhishek Kulkarni, Lalithes Morishetti, Anjana Ganesh, Ashish Ranjan, Aashika Padmanabhan, Jianpeng Xu, Jason HD Cho, et al. 2025. Recge: Generative recommendation via journey-aware sparse attention on chain-of-thought tokenization. In Proceedings of the Nineteenth ACM Conference on Recommender Systems. 135–144.
[39] Mengyang Ma, Xiaopeng Li, Wanyu Wang, Zhaocheng Du, Jingtong Gao, Pengyue Jia, Yuayang Ye, Yiqi Wang, Yunpeng Weng, Weihong Luo, et al. 2026. BlossomRec: Block-level fused sparse attention mechanism for sequential recommendations. In Proceedings of the ACM Web Conference 2026. 6389–6399.
[40] Zhuoshi Pan, Qianhui Wu, Huiqiang Jiang, Menglin Xia, Xufang Luo, Jue Zhang, Qingwei Lin, Victor Rühle, Yuqing Yang, Chin-Yew Lin, et al. 2024. Lmlingua-2: Data distillation for efficient and faithful task-agnostic prompt compression. In Findings of the Association for Computational Linguistics: ACL 2024. 963–981.
[41] Qi Pi, Guorui Zhou, Yujing Zhang, Zhe Wang, Lejian Ren, Ying Fan, Xiaoqiang Zhu, and Kun Gai. 2020. Search-based user interest modeling with lifelong sequential behavior data for click-through rate prediction. In Proceedings of the 29th ACM International Conference on Information & Knowledge Management. 2685–2692.
[42] Shashank Rajput, Nikhil Mehta, Anima Singh, Raghunandan Hulikal Keshavan, Trung Vu, Lukasz Heldt, Lichan Hong, Yi Tay, Vinh Tran, Jonah Samost, et al. 2023. Recommender systems with generative retrieval. Advances in Neural Information Processing Systems 36 (2023), 10299–10315.
[43] Qingxiao Sun, Tongxuan Liu, Shen Zhang, Siyu Wu, Peijun Yang, Haotian Liang, Menxin Li, Xiaolong Ma, Zhiwei Liang, Ziyi Ren, et al. 2025. xgr: Efficient generative recommendation serving at scale. arXiv preprint arXiv:2512.11529 (2025).
[44] Nazmul Takbir, HamidReza A Koshkak, Nikil Dutt, and Sangeetha A Jyothi. 2026. Flexicache: Leveraging temporal stability of attention heads for efficient kv cache management. Proceedings of Machine Learning and Systems 8 (2026), 2113–2128.
[45] Qiaoyu Tan, Jianwei Zhang, Ninghao Liu, Xiao Huang, Hongxia Yang, Jingren Zhou, and Xia Hu. 2021. Dynamic memory based attention network for sequential recommendation. In Proceedings of the AAAI conference on artificial intelligence, Vol. 35. 4384–4392.
[46] Jiaming Tang, Yilong Zhao, Kan Zhu, Guangxuan Xiao, Baris Kasikci, and Song Han. 2024. Quest: Query-aware sparsity for efficient long-context llm inference. arXiv preprint arXiv:2406.10774 (2024).
[47] Tianchi. 2018. IJCAI-15 Repeat Buyers Prediction Dataset. https://tianchi.ai/yun.com/dataset/dataDetail?dataId=42
[48] Huanjie Wang, Xinchen Luo, Honghui Bao, Zhang Zixing, Lejian Ren, Yunfan Wu, Hongwei Zhang, Liwei Guan, and Guang Chen. 2026. PIT: A Dynamic Personalized Item Tokenizer for End-to-End Generative Recommendation. arXiv preprint arXiv:2602.08530 (2026).
[49] Wenjie Wang, Honghui Bao, Xinyu Lin, Jizhi Zhang, Yongqi Li, Fuli Feng, See-Kiong Ng, and Tat-Seng Chua. 2024. Learnable item tokenization for generative recommendation. In Proceedings of the 33rd ACM International Conference on Information and Knowledge Management. 2400–2409.
[50] Ye Wang, Jiahao Xun, Minjie Hong, Jieming Zhu, Tao Jin, Wang Lin, Haoyuan Li, Linjun Li, Yan Xia, Zhou Zhao, et al. 2024. Eager: Two-stream generative recommender with behavior-semantic collaboration. In Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining. 3245–3254.
[51] Longtao Xiao, Haozhao Wang, Cheng Wang, Linfei Ji, Yan Wang, Jieming Zhu, Zhenhua Dong, Rui Zhang, and Ruixuan Li. 2025. Unger: Generative recommendation with a unified code via semantic and collaborative integration. ACM Transactions on Information Systems 44, 2 (2025), 1–31.
[52] Haibo Xing, Hao Deng, Yucheng Mao, Lingyu Mu, Jinxin Hu, Yi Xu, Hao Zhang, Jiahao Wang, Shizhun Wang, Yu Zhang, et al. 2026. Reg4rec: Reasoning-enhanced generative model for large-scale recommendation systems. In 2026 IEEE 42nd International Conference on Data Engineering (ICDE). IEEE, 3799–3812.
[53] Anyi Xu, B Li, Bangcai Lin, Bing Xue, BingCheng Xian, Bingzheng Xu, Bochao Wu, Bowei Zhang, Boyi Deng, CC Yu, et al. 2026. Deepseek-v4. 1-flash: Pushing the limits of kv cache compression. arXiv preprint arXiv:2609.19969 (2026).
[54] Yufei Xu, Fanxu Meng, Fan Jiang, Yuxuan Wang, Ruijie Zhou, Zhaohui Wang, Jiexi Wu, Zhixin Pan, Xiaojuan Tang, Wenjie Pei, et al. 2026. HISA: Efficient Hierarchical Indexing for Fine-Grained Sparse Attention. arXiv preprint arXiv:2603.28458 (2026).
[55] Yi Xu, Moyu Zhang, Chenxuan Li, Zhihao Liao, Haibo Xing, Hao Deng, Jinxin Hu, Yu Zhang, Xiaoyi Zeng, and Jing Zhang. 2026. Mmq: Multimodal mixture-of-quantization tokenization for semantic id generation and user behavioral adaptation. In Proceedings of the Nineteenth ACM International Conference on Web Search and Data Mining. 788–797.
[56] Chaoqun Yang, Xinyu Lin, Wenjie Wang, Yongqi Li, Teng Sun, Xianjing Han, and Tat-Seng Chua. 2025. Earn: Efficient inference acceleration for llm-based generative recommendation by register tokens. In Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 2. 3483–3494.
[57] Shang Yang, Junxian Guo, Haotian Tang, Qinghao Hu, Guangxuan Xiao, Jiaming Tang, Yujun Lin, Zhijian Liu, Yao Lu, and Song Han. 2025. Serve: Efficient long-sequence llm serving with unified sparse attention. Proceedings of Machine Learning and Systems 7 (2025).
[58] Songlin Yang, Jan Kautz, and Ali Hatamizadeh. 2025. Gated delta networks: Improving mamba2 with delta rule. In International Conference on Learning Representations, Vol. 2025. 29687–29707.
[59] Weiqin Yang, Yue Pan, Chongming Gao, Sheng Zhou, Xiang Wang, Can Wang, and Jiawei Chen. 2026. The pitfall of scaling up: Uncovering and mitigating popularity bias amplification in scaling transformer-based recommenders. In Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 2. 6044–6055.
[60] Xiangrui Yang, Cheng Peng, Yunfeng Zhao, Liang Zeng, Ao Hu, Jiawei Yang, Shengzhe Wang, Jingshan Lv, Xiao Liang, Chen Yang, et al. 2026. OneLA: Scaling Linear-Attention Decoding to Large Beams in Generative Recommendation. arXiv preprint arXiv:2609.12399 (2026).
[61] Zhongchao Yi, Kai Feng, Xiaojian Ma, Yalong Wang, Yongqi Liu, Han Li, Zhengyang Zhou, and Yang Wang. 2026. DualGR: Generative Retrieval with Long and Short-Term Interests Modeling. In Proceedings of the ACM Web Conference 2026. 8329–8332.
[62] Jingyang Yuan, Huazuo Gao, Damai Dai, Junyu Luo, Liang Zhao, Zhengyan Zhang, Zhenda Xie, Yuxing Wei, Lean Wang, Zhiping Xiao, et al. 2025. Native sparse attention: Hardware-aligned and natively trainable sparse attention. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 23078–23097.
[63] Kun Yuan, Junyu Bi, Daixuan Cheng, Changfa Wu, Shuwen Xiao, Binbin Cao, Jian Wu, and Yuning Jiang. 2026. HiSAC: Hierarchical Sparse Activation Compression for Ultra-long Sequence Modeling in Recommenders. arXiv preprint arXiv:2602.21009 (2026).
[64] Jiaqi Zhai, Lucy Liao, Xing Liu, Yueming Wang, Rui Li, Xuan Cao, Leon Gao, Zhaojie Gong, Fangda Gu, Michael He, et al. 2024. Actions speak louder than words: Trillion-parameter sequential transducers for generative recommendations. arXiv preprint arXiv:2402.17152 (2024).
[65] Tianyu Zhan, Kairui Fu, Zheqi Lv, and Shengyu Zhang. 2026. RASTP: Representation-Aware Semantic Token Pruning for Generative Recommendation with Semantic Identifiers. In Proceedings of the ACM Web Conference 2026. 8309–8312.
[66] Zuowu Zheng, Ze Wang, Fan Yang, Jiangke Fan, Teng Zhang, Yongkang Wang, and Xingxing Wang. 2025. Ega-v2: An end-to-end generative framework for industrial advertising. arXiv preprint arXiv:2505.17549 (2025).
[67] Guorui Zhou, Jiaxin Deng, Jinghao Zhang, Kuo Cai, Lejian Ren, Qiang Luo, Qianqian Wang, Qigen Hu, Rui Huang, Shiyao Wang, et al. 2025. Onerec technical report. arXiv preprint arXiv:2506.13695 (2025).
[68] Yu Zhou, Chengcheng Guo, Kuo Cai, Ji Liu, Qiang Luo, Ruiming Tang, Han Li, Kun Gai, and Guorui Zhou. 2026. Gems: Breaking the long-sequence barrier in generative recommendation with a multi-stream decoder. arXiv preprint arXiv:2602.13631 (2026).

(a) Progressive attention focusing
A Additional Attention Analysis
To further verify the generalizability of our findings, Figure 3 illustrates that the Kindle Store dataset mirrors the progressive attention focusing and cross-step ranking consistency previously observed on Industry.

(b) Cross-step ranking consistency
Figure 3: Progressive Attention Focusing and Cross-Step Ranking Consistency on Kindle Store. (a) Cumulative attention curves of sorted historical tokens. The attention mass accounted for by the top 20% tokens surges from 78.55% at Step 0 to 94.13% at Step 3, evidencing a clear trend of progressive attention focusing. (b) Retained attention mass (bars) and Spearman rank correlations with Step 1 (line) across subsequent steps. Directly reusing the top 50% tokens from Step 1 successfully captures 86.57% and 91.51% of the total attention mass at Steps 2 and 3, respectively, while preserving high rank correlations (0.759 and 0.728). This pronounced consistency strongly justifies cross-step token reuse.