arXiv:2610.27898cs.IROct 2026

Manuscript Offprint

arXiv:2610.27898

SPAR: Stepwise Personalized Autoregressive Recommendation with Prefix-Balanced Semantic IDs

Chunrui Zhang, Gaoyun Lin, Chang Zhou, Zheng Hu, Qiran Song, Shimin Cai, Tao Zhou

Chunrui Zhang

zhangcr127@gmail.com

University of Electronic Science and

Technology of China

Chengdu, China

Zheng Hu ∗^{*}

huzheng@swjtu.edu.cn

Southwest Jiaotong University

Chengdu, China

Gaoyun Lin

gaoyunlin@mail.ustc.edu.cn

University of Science and Technology

of China

Hefei, China

Qiran Song

qrsong0907@163.com

University of Electronic Science and

Technology of China

Chengdu, China

Chang Zhou

changzhou.zc@alibaba-inc.com

HUJING Digital Media &

Entertainment Group

Beijing, China

Shimin Cai

shimincai@uestc.edu.cn

University of Electronic Science and

Technology of China

Chengdu, China

Tao Zhou

zhutou@ustc.edu.cn

University of Electronic Science and

Technology of China

Chengdu, China

Abstract

Semantic ID (SID)-based generative recommendation decomposes item selection into a sequence of token-level decisions, making personalization at each decoding step essential. However, each generated prefix defines a different candidate set, while existing methods insufficiently account for prefix-dependent user evidence and imbalanced historical interaction loads across candidate branches. These limitations increase the risk of irreversible branch-selection errors and reinforce the dominance of popular paths during autoregressive decoding. To address these challenges, we propose SPAR, a generative recommendation framework that enables stepwise personalized branch selection by integrating prefix-conditioned user evidence with interaction-load-aware SID construction. Technically, we design PATH Decoder, a Personalized Adaptive Tree-aware Hybrid Decoder that dynamically retrieves prefix-relevant evidence from compressed long-term memories and integrates it with recent behavior, user profiles, and event context for stepwise personalized decoding. Complementarily, we introduce RQ-PIB, a Prefix-aware Interaction-Balanced SID construction method that regulates historical interaction loads among sibling branches under each parent prefix, mitigating popularity-driven imbalance in the SID hierarchy. We conduct extensive offline and online experiments on Youku, a major video streaming platform operated by Alibaba. Offline evaluations on large-scale industrial data demonstrate an average relative improvement of 2.66% in HitRate over the strongest baseline. Further analysis shows that SPAR improves target-prefix retention by an average of 5.79 percentage points and reduces the traffic-weighted largest child-branch share by an average of 32.84% across SID levels. A 7-day online A/B test deploying SPAR to 10% of Youku's production traffic further achieves relative improvements of 3.95% in average watch time per user and 3.38% in play conversion rate. These results demonstrate the effectiveness of SPAR in improving hierarchical decoding reliability and mitigating popularity-driven branch imbalance, ultimately enhancing retrieval performance and user engagement in real-world recommendation scenarios.

CCS Concepts

• Information systems → Recommender systems.

Keywords

Generative Retrieval; Recommender System; Supervised Fine-tuning; Preference Alignment

1 Introduction

Web platforms such as video streaming services, e-commerce sites, and social feeds rely on large-scale recommendation to connect users with relevant content under strict latency constraints. Generative retrieval reformulates this problem as autoregressive item-identifier generation [23, 24]. In Semantic ID (SID)-based methods, each item is represented by a sequence of discrete semantic tokens, enabling retrieval through successive token predictions conditioned on user behavior [23].

Existing studies have advanced SID-based generative recommendation along two directions. The first focuses on item identifier construction, including semantic tokenization [8], load-regulated code assignment [21], and hierarchical category-tree representations [15]. The second improves user-conditioned generation through generative architectures [3, 27] and contextual information access [32]. Despite these advances, existing methods primarily optimize item representations or generation architectures, without explicitly coordinating prefix-dependent user evidence with the organization of candidate branches. This leaves the hierarchical nature of SID decoding insufficiently addressed. More importantly, the two research directions are often considered separately, although

∗^{*}Corresponding author

Figure

Illustrative SID codes and history emphasis. Gray bars denote historical interaction load, not prediction probability.

Figure 1: An example of prefix-conditioned interest extraction in hierarchical decoding. As the generated SID prefix changes, each decoding step requires different evidence from the same long-term user history to distinguish the remaining candidate branches. This motivates prefix-conditioned interest extraction throughout the decoding process. The example also illustrates the challenges of irreversible target-prefix pruning and imbalanced historical interaction loads among sibling branches.

they jointly determine the outcome of autoregressive retrieval. SID construction defines the candidate branches available at each prefix, while the generation model determines how user preferences are translated into branch probabilities. Improving either component without considering their interaction may leave a mismatch between the structure of the candidate space and the personalized evidence used to navigate it.

The key challenge lies in the changing requirements of prefix-conditioned branch decisions. Near the root of the SID tree, the decoder requires coarse-grained interest evidence, while deeper decisions demand finer information to distinguish sibling branches. As illustrated in Figure 1, generating the target SID [17, 06, 42] requires progressively shifting attention from broad user interests to prefix-specific preferences and fine-grained behavioral cues as the candidate space narrows. For users with diverse and evolving preferences, a fixed user representation or static long-term summary [14, 22] may fail to capture the evidence most relevant to each decision. For instance, a user may exhibit broad interests in multiple content categories, while individual branches within each category require more specific behavioral signals for discrimination. Evidence useful for selecting a coarse semantic category may therefore become less informative once the decoder enters a particular subtree. Conversely, fine-grained preferences that are irrelevant to the initial decision may become decisive at deeper levels. This creates a dynamic evidence-selection problem that cannot be fully addressed by simply increasing the capacity of a shared user representation. Instead, personalization should explicitly account for the current generated prefix and its remaining candidate branches.

Meanwhile, uneven historical interaction loads introduce another difficulty. As also illustrated in Figure 1, popular SID paths attract disproportionately more interactions, potentially dominating branch selection and irreversibly eliminating less frequent but relevant targets. Since branch competition occurs among siblings under the same prefix, global codeword balancing may overlook such local disparities. In particular, the same codeword can appear under different parent prefixes with distinct conditional branch distributions, allowing balanced aggregate loads to conceal highly skewed sibling loads. Moreover, enforcing uniform branch assignments may disrupt semantic proximity, introducing a trade-off between load balance and representation quality. Therefore, effective SID-based retrieval requires both prefix-dependent user evidence and locally balanced candidate branches while preserving semantic structure.

To address these challenges, we propose SPAR, a Stepwise Personalized Autoregressive Recommendation framework with Prefix-Balanced Semantic IDs. SPAR integrates two complementary components. First, PATH Decoder constructs coarse-to-fine long-term history views and compresses them into compact memory banks. A decoder-only backbone models recent SID interactions, while prefix-conditioned cross-attention dynamically retrieves relevant long-term evidence at each generation step. User and Event Tokens further incorporate profile information and request-time context into token prediction. Second, RQ-PIB constructs semantic identifiers through residual quantization and rebalances historical interaction loads among child branches sharing the same parent prefix. By selectively reassigning items with minimal additional semantic distortion, it mitigates local branch dominance while preserving semantic structure. Together, PATH Decoder and RQ-PIB improve both the evidence used for branch selection and the organization of competing branches. SPAR further incorporates preference-aligned training to refine generated recommendations.

Our main contributions are summarized as follows:

• Stepwise Personalized Decoding. We propose PATH Decoder, which dynamically retrieves prefix-relevant evidence from compact coarse-to-fine long-term memories and integrates recent behavior, user profiles, and event context for personalized token prediction.

• Prefix-Balanced SID Construction. We introduce RQ-PIB to regulate historical interaction loads among sibling branches under the same prefix while limiting additional semantic reconstruction error, addressing local imbalances overlooked by global codeword balancing.

• Large-Scale Empirical Evaluation. Experiments on industrial Youku data demonstrate an average relative improvement of 2.66% across HR@10/20/50/100 over the strongest baseline. Online A/B tests further improve average watch time per user by 3.95% and play conversion rate by 3.38%.

References (10)