Manuscript Offprint
arXiv:2611.07425BRIDGE: Bridging the Semantic Quantization Gap for Generative Recommendation
Abstract
Generative recommendation retrieves items by autoregressively generating Semantic IDs (SIDs), where an RQ-VAE quantizes each item into a hierarchical SID sequence that the decoder generates level by level. We identify an overlooked bottleneck in this paradigm: the Semantic Quantization Gap (SQG). Quantization derives SIDs from rich continuous signals, including codebook centroids, local neighborhood geometry, and level-wise entropy. However, the decoder receives only discrete identifiers and loses the semantic structure that shaped them. This mismatch manifests in three ways: a grounding gap, where the decoder lacks semantic anchors when target-side information is limited; a neighborhood gap, where token-level supervision discards inter-item similarity and exacerbates exposure bias; and a difficulty gap, where computation is allocated uniformly despite generation difficulty diminishing with depth.
To bridge the SQG, we propose BRIDGE. Codebook-grounded latent reasoning injects frozen quantizer centroids as semantic anchors before SID generation. Privileged EMA self-distillation transfers neighborhood-aware knowledge from a teacher to an on-policy student, preserving inter-item geometry while mitigating exposure bias. Effort-aware recurrence allocates more computation to the challenging early levels and progressively reduces it with depth. Across three Amazon benchmarks, BRIDGE improves Recall@10 and NDCG@10 by 10.9% and 9.7% on average over the strongest baseline (up to 12.6% and 10.7%). In a one-week online A/B experiment on a large-scale e-commerce advertising platform with 5% traffic, BRIDGE improves eCPM by 0.65%.
ACM Reference Format:
Yatong Xiao, Mingjie Sun, Peng Wang, Wenjin Wu, Peng Jiang. 2027. BRIDGE: Bridging the Semantic Quantization Gap for Generative Recommendation. In Proceedings of The 20th ACM International Conference on Web Search and Data Mining (WSDM 2027) (WSDM '27). ACM, New York, NY, USA, 11 pages. https://doi.org/10.1145/nnnnnnn.nnnnnnn
Despite this progress, we identify a fundamental asymmetry between the quantization stage and the generation stage that has been largely overlooked. Quantization constructs SIDs from the rich continuous structure of item embeddings: codebook centroids encode coarse semantic clusters, inter-item neighborhood geometry captures relational proximity, and level-wise entropy reflects how ambiguous each level of the hierarchy is. None of this structure is accessible to the decoder, which receives only discrete code indices as supervision. We term this asymmetry the Semantic Quantization Gap (SQG), illustrated in Figure 1, and observe that it manifests at three distinct points.
Grounding gap. The first-level SID token partitions items into coarse semantic clusters and is the highest-entropy, hardest-to-predict decision—errors here cascade through all subsequent levels. Yet the decoder must predict with the least target-side context, having no access to the codebook centroids that defined those clusters in the first place. This makes the model prone to unstable coarse routing, especially when user histories are short or ambiguous.
Neighborhood gap. One-hot supervision treats every incorrect SID as equally wrong, discarding the graded semantic proximity encoded in the quantizer's neighborhood geometry. Furthermore, because the decoder is trained on ground-truth SID prefixes but must generate its own at inference time, standard teacher forcing induces exposure bias—a train-test mismatch that one-hot targets cannot mitigate.
Difficulty gap. Residual quantization by design makes early levels high-entropy and later levels increasingly deterministic refinements. A standard decoder allocates uniform compute across all levels, inverting the natural difficulty prior and wasting capacity on easy levels while underserving hard ones, which ultimately hurts top-rank accuracy where early-level mistakes are most costly.
We propose BRIDGE, a difficulty-aware framework that reinserts the discarded quantization structure at all three points. Codebook-grounded latent reasoning (CGLR) injects frozen quantizer centroids as semantic anchors into a latent representation formed
Corresponding author.
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.
WSDM '27, Hong Kong, China
© 2027 Copyright held by the owner/author(s). Publication rights licensed to ACM. ACM ISBN 978-x-xxxx-xxxx-x/YYYY/MM https://doi.org/10.1145/nnnnnnn.nnnnnnn
Yatong Xiao, Mingjie Sun, Peng Wang, Wenjin Wu, Peng Jiang

Figure 1: The Semantic Quantization Gap (SQG).
before generation, closing the grounding gap. Privileged EMA self-distillation (PESD) trains an EMA teacher on semantically neighboring items and distills its soft distributions into the on-policy student, recovering neighborhood geometry and mitigating exposure bias. Effort-aware recurrence (EAR) allocates more iterative refinement to early, high-entropy levels and tapers compute with depth, matching the difficulty prior. The three components couple architecturally: latent reasoning constitutes the first recurrent iteration, and its codebook-anchored representation serves simultaneously as the self-distillation teacher, avoiding redundant computation. In summary, our contributions are as follows:
-
We identify and formalize the Semantic Quantization Gap (SQG), a previously overlooked encoder–decoder asymmetry in generative recommendation, and decompose it into three actionable gaps.
-
We propose BRIDGE, which closes each gap with a targeted, architecturally coupled component: codebook-grounded latent reasoning (CGLR), privileged EMA self-distillation (PESD), and effort-aware recurrence (EAR).
-
Experiments on three Amazon benchmarks (Sports, Beauty, and Toys) show that BRIDGE improves Recall@10 and NDCG@10 by 10.9% and 9.7% on average over strong generative retrieval baselines (up to 12.6% and 10.7%), with ablations indicating the independent contribution of each component.
2 Related Works
2.1 Semantic ID Tokenization and Generative Recommendation
Traditional sequential recommenders predict over arbitrary item IDs, which weakens semantic generalization. Rajput et al. [16] proposes TIGER, tokenizing each item into a short tuple of RQ-VAE Semantic IDs (SIDs) and training an encoder–decoder generator to autoregressively predict the next-item SID given user history.
Subsequent work mainly improves tokenization quality: CoST adds contrastive quantization to reduce collisions [32]; LETTER learns codebooks jointly from semantics and CF signals [23]; TokenRec studies SID tokenization tailored to LLM-style decoding [15]; and QARM extends SID generation to multimodal inputs [14]. Industrial studies PLUM and FORGE further analyze large-scale deployment and evaluation of SID-based retrieval [6, 11]. Beyond content-only identifiers, ColaRec and SEATER inject collaborative structure via hybrid generation and tree-structured SIDs [17, 24]. On the generator side, decoder-only Transformers are widely used after Rajput et al. [16]; LC-Rec adapts LLMs by bridging the LLM vocabulary and SID space with a learnable codebook [31].
2.2 Latent Reasoning in Generative Models
Implicit/latent reasoning aims to retain multi-step computation while avoiding explicit chain-of-thought token overhead. Representative approaches include internal rationale tokens (Quiet-STaR [28]), continuous hidden-state feedback (COCONUT [10]), and distilling explicit CoT into weights (Implicit CoT [4, 5]). Chen et al. [2] analyzes latent-CoT failure modes (e.g., semantic drift) and proposes separating trajectory-versus-space supervision. In recommendation, latent intent reasoning has been explored via factorized continuous spaces (FLR [7]) and hierarchy-scaffolded intent signals (CaLIR [29]). Different from these, CGLR explicitly anchors latent reasoning to the tokenizer geometry by projecting r into the RQ-VAE codebook space and regularizing it toward the ground-truth centroid.
2.3 Knowledge Distillation with Privileged Information
Learning Using Privileged Information (LUPI) formalizes the use of additional training-only signals through a teacher [21]. In recommendation, privileged information has been instantiated as richer graph context or side-information that improves student generalization when such context is unavailable at inference [22]. Self-distillation can also leverage training-only traces (e.g., verification signals) to refine a student [30]. EMA teachers are widely used to stabilize self-training and avoid representational collapse (e.g., Mean Teacher [20] and DINO [1]). PESD combines these ideas for generative recommendation: the EMA teacher receives privileged semantic-neighbor context to produce geometry-aware soft targets, which are distilled to an on-policy student to reduce exposure bias.
2.4 Adaptive and Recurrent Computation in Decoder-Only Models
Adaptive-depth computation reallocates compute based on difficulty. Classic examples include ACT [9], and weight-tied recurrence in Universal Transformers [3]. Looped Transformers further study fixed-weight iterative computation and inference-time scaling via repeated application of the same block [8, 26]. In contrast to uniform compute across positions, EAR uses a simple hierarchy-aware schedule () so that coarse, high-entropy SID levels receive more recurrent refinement while later residual levels are computed more cheaply.
3 Method
3.1 Problem Formulation
Sequential Recommendation. Let and denote the user and item sets, respectively. For a target user , we denote their interaction history as an ordered sequence , where is the item interacted with at time step . The goal of sequential recommendation is to predict the next item that is most likely to interact with.
Item Representation via RQ-VAE. Each item is first encoded into a continuous semantic embedding by a pretrained text, multimodal, or collaborative filtering encoder. To enable discrete generative modeling, we adopt Residual Quantization to convert into an -level Semantic ID (SID):
where is the discrete codebook index at level . The residual quantization procedure is defined recursively as
\mathbf{r}_i^{\ell+1} = \mathbf{r}_i^\ell - \mathbf{c}_s_i^\ell, \tag{4}where is the -th codeword in the -th codebook . Each level quantizes the residual error of the previous level, so the concatenation progressively refines the approximation of .
Autoregressive Generation Objective. Given the user history , the model predicts the SID of the target item token by token in an autoregressive manner:
where denotes all previously generated tokens.
3.2 Overview of BRIDGE
Figure 2 illustrates the overall architecture of BRIDGE. We build on a generative retrieval backbone that encodes user history into a memory sequence and decodes a hierarchical SID via a shared recurrent loop block. BRIDGE augments this backbone with three coupled mechanisms that close the three gaps identified in Section 1.
Backbone. Given a user's interaction history embeddings , a two-layer MLP projects each embedding into model space and adds a learned positional embedding, yielding memory . Both the reasoning pass and the SID generation pass share a single loop decoder LoopDec and a joint input projection InputProj: . A positional slot embedding table assigns slot 0 to the reasoning position and slots to SID levels.
Pass A — Reasoning (CGLR). Before any SID token is generated, BRIDGE runs a reasoning pass to produce a continuous latent representation . The slot-0 positional embedding and the learnable [BOS] embedding are concatenated and projected to initialize a single reasoning token: . This token is refined by iterations of LoopDec, with a dedicated per-iteration embedding from a learnable table injected at each step:
The final state is anchored to frozen quantizer centroids via a dual codebook loss (Section 3.3), closing the grounding gap.
Pass B — SID Generation (EAR). The reasoning representation replaces [BOS] as the first input to the SID sequence. Each position is initialized by projecting its slot embedding concatenated with its content token:
where . During training we use teacher forcing so for , while at inference time is the embedding of the previously generated token. A right-aligned recurrent schedule with per-level budgets , , runs LoopDec over an expanding active prefix, allocating more iterations to harder early levels (Section 3.5). A lightweight end block applied once after all iterations normalizes the level-specific hidden states before logit projection, closing the difficulty gap.
Self-Distillation (PESD). An EMA shadow of the student serves as a privileged teacher: during training, the mean embedding of the target item's top- semantic neighbors is projected onto the teacher's [BOS], giving the teacher access to neighborhood geometry invisible to the student. The student minimizes a symmetrized JSD between its on-policy logits and the teacher's soft distributions, recovering the quantizer's neighborhood structure and mitigating teacher forcing exposure bias (Section 3.4), closing the neighborhood gap.
Coupling. The three components share LoopDec and InputProj, and interact through : the codebook-anchored reasoning representation from Pass A is reused as the distillation anchor in PESD, coupling grounding and neighborhood reinjection without additional computation. The overall training objective is summarized in Eq. (32).
Yatong Xiao, Mingjie Sun, Peng Wang, Wenjin Wu, Peng Jiang

Figure 2: Overview of BRIDGE. User history embeddings are encoded into a context memory. A recurrent loop decoder then runs a hierarchical schedule: Pass A iterates times over a reasoning slot to produce a latent representation ; Pass B generates SID tokens level by level with a right-aligned loop count, so coarser levels receive more iterations. At training time, an EMA teacher with privileged semantic neighbors provides soft targets via JSD distillation. Frozen codebook centroids anchor throughout training.
3.3 Codebook-Grounded Latent Reasoning (CGLR)
To bridge the semantic grounding gap, we propose Codebook-Grounded Latent Reasoning (CGLR): before emitting any SID token, the shared recurrent loop decoder synthesizes a continuous latent reasoning representation that is explicitly anchored to frozen semantic codebook centroids. This turns the quantizer codebook—originally an offline tokenization artifact—into a generation-time semantic interface.
3.3.1 Latent Reasoning Prefill. Standard SID-based decoders condition generation directly on a [BOS] token, bypassing the continuous semantic structure of the item space. We prepend a dedicated reasoning pass (Pass A) that runs before any SID token is predicted.
Pass A: Reasoning. A learnable [BOS] embedding is combined with a positional slot embedding and fused by a linear projection:
where denotes concatenation. The hidden state is then refined by iterations of the shared loop block, with a learnable iteration embedding injected at each step to distinguish reasoning iterations from SID-generation iterations:
The final hidden state is taken as the latent reasoning representation:
LoopDec cross-attends to the user context memory at every iteration; no causal self-attention mask is needed since the reasoning slot is a single token. By design , ensuring
the reasoning slot receives at least as many iterations as any SID level.
Pass B: SID Generation. The reasoning representation replaces [BOS] as the first input to the SID decoder (detailed in Section 3.5), so that every SID token is conditioned on the refined semantic reasoning:
The representation is not detached: gradients from both the SID generation loss and the codebook anchoring objective propagate back through Pass A, jointly shaping the reasoning representation.
3.3.2 Codebook Anchoring Objective. Without explicit constraints, can drift arbitrarily in latent space, decoupling from the geometric structure of the item embedding space. We anchor to a frozen semantic codebook via a coarse semantic label that operates at a broader granularity than the RQ-VAE quantization codes. The coarse label is used only for training-time supervision and is never provided to the model at inference time.
Coarse Semantic Label. Rather than using the first-level RQ-VAE code as the anchoring target, we derive a coarser cluster index by re-clustering the level-1 codebook centroids (not item embeddings), where . Concretely, we run an offline clustering procedure (e.g., -means) over and obtain coarse prototypes . Each item is then assigned to the coarse cluster of its level-1 centroid:
where and is the level-1 centroid indexed by . This label groups items at a broader semantic granularity than the RQ-VAE quantization hierarchy, providing a more stable anchor:
it encodes which broad semantic category the target item belongs to rather than its precise quantization code. The corresponding frozen coarse-prototype set is precomputed once and kept fixed during recommendation training.
Anchoring Losses. A lightweight projection maps r into the prototype space, followed by -normalization:
We apply two complementary losses.
Prototype classification enforces global discriminative separation across all coarse prototypes:
where is a temperature hyperparameter.
Cosine regression provides a dense directional pull toward the target prototype, complementing the classification boundaries.
The two losses work well together: prototype CE helps separate clusters but does not guarantee that r points toward the right prototype; cosine regression pulls r toward the target direction but is weaker at enforcing separation. Using both keeps r close to its prototype and away from others.
We combine them as the CGLR loss:
The prototype set M is frozen throughout training; no additional item-side annotation is required.
3.3.3 Codebook as a Training-Time Semantic Interface. The frozen prototypes encode the coarse semantic geometry of the item space: each prototype represents a broad semantic cluster above the fine-grained RQ-VAE quantization.
BRIDGE uses this structure to define training-time anchoring objectives: Eqs. (14)–(15) encourage the reasoning representation r to encode which broad semantic category the target item belongs to before the first SID token is predicted. At inference time, the model uses neither the coarse label z nor any target-side prototype; it only uses the predicted r produced from user history.
Crucially, operating at coarse granularity makes the anchor more robust than supervising with the exact RQ-VAE code: coarse cluster membership is stable across minor embedding perturbations, whereas fine-grained quantization codes can flip between neighbors, producing an inconsistent training signal. This mechanism requires no changes to the tokenizer and applies to any generative recommender built on residual-quantization SIDs.
3.4 Privileged EMA Self-Distillation (PESD)
To mitigate the neighborhood gap, we introduce Privileged EMA Self-Distillation (PESD). One-hot supervision discards graded semantic proximity among SIDs, and teacher forcing further amplifies the
train-inference mismatch. PESD equips an EMA teacher with privileged semantic neighbors to produce semantically-aware soft targets, which are distilled into an on-policy student to recover neighborhood geometry and improve robustness under self-generated prefixes.
3.4.1 Privileged Teacher and On-Policy Student
EMA Teacher. The teacher is an exponential moving average (EMA) shadow of the student, sharing the same architecture and weights but with require_s_grad = False. Its parameters are never updated by backpropagation; they evolve solely through the EMA update
where m is the momentum coefficient and are the student weights. The slowly-moving teacher provides stable soft targets and avoids the collapse that occurs when the student distills from itself directly [1].
On-Policy Student. For the distillation path, the student generates SID logits on policy: at each level it takes the arg max of its own previous logit as the next input, without teacher forcing. This closes the train–inference distribution gap and ensures that the distillation signal corrects errors under the same conditions the model faces at inference time. The teacher, by contrast, always uses teacher forcing inputs, so its logits reflect the ideal conditional distribution given correct prefixes.
3.4.2 Semantic Neighbor Privilege
Privilege Construction. For each training example, we retrieve the top-k semantic neighbors of the target item (excluding the target itself) in the original item-embedding space, and inject their mean embedding into the teacher's reasoning pass:
We compute neighbors using only the frozen item embeddings (no interaction labels), and we build the neighbor index on the training-time item catalog to avoid any split-dependent leakage. Here is a learnable projection and is a learnable scale. The teacher's [BOS] embedding is then offset by before Pass A, so the teacher's reason representation is conditioned on the semantic neighborhood of the target item.
Why Neighbors, Not Ground-Truth SID. Providing the ground-truth SID directly to the teacher would collapse its output into a near-one-hot distribution, reducing distillation to a noisy copy of the hard CE loss. Neighbor embeddings encode the metric structure of the item space—which items are semantically similar and to what degree—without revealing the exact target identity. The teacher's soft logits therefore carry information about the local semantic neighborhood, not just the single correct answer.
Yatong Xiao, Mingjie Sun, Peng Wang, Wenjin Wu, Peng Jiang
Privileged Encoder Training. and are trained exclusively by a teacher CE loss:
which asks the privileged signal to be useful for predicting the target, rather than merely easy for the student to imitate. Critically, and live on the student side; the teacher consumes their output but does not own them. This keeps the EMA stop-gradient property intact while still allowing the privileged encoder to learn through the teacher's activation graph. is added to the total loss outside the distillation weight ramp so the privileged signal is useful from the start.
3.4.3 Distillation Losses and Stabilization.
SID Distillation. Let and denote the teacher and on-policy student distributions at SID level , obtained by applying softmax with temperature to the respective logits. We minimize their symmetrized Jensen–Shannon divergence:
where is the vocabulary size and the normalization keeps the loss in regardless of vocabulary size. Teacher logits are detached in Eq. (21): minimizing JSD(student||teacher) with a live teacher graph admits a degenerate solution in which the teacher collapses toward the student, destroying the privileged signal.
Reason Distillation. To align the student's latent reasoning with the privileged teacher's, we add a cosine distillation term on the reason representations:
where denotes stop-gradient. We reuse the computed in the main forward pass rather than re-running Pass A, so that the distillation gradient acts on the same representation that conditions SID generation.
Entropy Gate. Early in training, the teacher's distributions can be over-confident or unreliable. We gate the distillation losses with:
where is Shannon entropy and is a threshold hyperparameter. The gate is evaluated on detached logits and never contributes to any gradient graph.
We combine the PESD objectives as:
Distillation ramp. The distillation weight follows a linear warm-up:
where is the current training step and is the ramp duration. This delays distillation until the student's own representations are stable enough to benefit from the teacher signal.
3.5 Effort-Aware Hierarchical Recurrence (EAR)
Residual quantization induces a structured difficulty hierarchy across SID levels: the first level selects a coarse semantic region from a high-entropy distribution over the full item space, while later levels perform residual refinement conditioned on an increasingly constrained prefix, resulting in progressively lower prediction entropy. Standard autoregressive decoders apply uniform computation to every SID position, ignoring this prior. We address the hierarchical difficulty gap with effort-aware hierarchical recurrence: a non-uniform recurrent refinement budget that allocates more iterations to early, high-entropy levels and fewer to later, easier ones.
3.5.1 Right-Aligned Loop Schedule. Let be the per-level loop counts, with the non-increasing constraint . All levels share a single loop block LoopDec with the same weights. Pass B runs for total iterations; at each iteration a right-aligned schedule determines which prefix of positions is active:
Only positions in are updated at iteration ; positions outside it remain unchanged. The update for the active prefix is:
where is a learnable iteration embedding, and is the causal mask restricted to the active prefix.
Right-alignment delays the participation of deeper SID levels so that when a new level first enters , the earlier prefix has already undergone more recurrent refinements. Through causal self-attention within LoopDec, level can therefore immediately condition on these better-refined hidden states of preceding SID levels, enabling cleaner residual refinement than attending to unrefined initial projections.
Example. For and , the active sets across iterations are:
| Iteration | Active positions | Cumulative refinements |
|---|---|---|
| 1 | level 1: 1 | |
| 2 | level 1: 2 | |
| 3 | level 1: 3, level 2: 1 | |
| 4 | level 1: 4, level 2: 2, level 3: 1 |
Level 1 participates in all 4 iterations, level 2 in 2, and level 3 in only 1. Right-alignment ensures that when level joins the loop at iteration , it can immediately attend to the already-refined hidden states of all earlier levels via the causal mask, rather than unrefined initial projections.
3.5.2 End Block. After recurrent iterations, positions have experienced different numbers of refinements and may carry heterogeneous hidden distributions. A lightweight non-recurrent end block EndDec is applied once to the full sequence:
This serves two purposes: (i) it normalizes the level-specific hidden distributions into a consistent output space; (ii) later positions attend one final time to the maximally-refined earlier prefix before producing their logits. The end block adds a fixed, one-time cost independent of .
3.5.3 Complexity Analysis. Let denote the per-token per-layer FLOPs of LoopDec and its number of layers. The total Pass B recurrent cost is proportional to
since LoopDec is applied once per active token per iteration. A standard decoder of depth applied uniformly to all positions costs . Under the schedule with loop layers (, ) versus a 9-layer uniform decoder (), the loop variant achieves a FLOPs reduction while reallocating compute toward harder positions.
Critically, because LoopDec is shared across all levels and all iterations, increasing does not introduce additional parameters—only additional forward passes through the same weights. The total parameter count is determined by the loop block depth and the single end block, not by .
EAR loss. EAR is trained with the standard next-token prediction objective, plus a light embedding regularization term that we apply to the backbone across all variants (i.e., it is not specific to the EAR recurrence mechanism):
where is the next-token cross-entropy objective in Eq. (5), and regularizes the teacher-forcing SID input embeddings.
3.6 Training Objective
The full BRIDGE training objective is the sum of component-wise losses:
where , , and are defined in Eqs. (31), (16), and (25), respectively. Our ablations disable and/or while keeping unchanged.
4 Experiments
4.1 Experimental Setup
Datasets. We evaluate on three public benchmarks: Amazon Beauty, Amazon Sports, and Amazon Toys. All datasets apply 5-core filtering and leave-one-out splitting: the last interaction of each user is held out for testing, the second-to-last for validation, and the remainder for training. Dataset statistics are reported in Table 1.
Table 1: Dataset statistics after 5-core filtering.
| Dataset | #Users | #Items | #Interactions | Avg.Len | Sparsity |
|---|---|---|---|---|---|
| Beauty | 22,363 | 12,101 | 198,502 | 8.88 | 99.93% |
| Sports | 35,598 | 18,357 | 296,175 | 8.32 | 99.95% |
| Toys | 19,412 | 11,924 | 167,526 | 8.63 | 99.93% |
SID Construction. Item text and metadata are encoded with Qwen2.5-1.5B to obtain 1536-dimensional embeddings. A three-level RQ-VAE (, codebook size per level) is then applied to produce SIDs. The coarse semantic centroids () used for codebook anchoring are obtained by re-clustering the level-1 RQ-VAE centroids (e.g., via -means) and kept frozen throughout recommendation training.
Metrics. We report Recall@{5, 10} and NDCG@{5, 10} as primary retrieval metrics. To diagnose generation behavior we additionally report SID hit rate (the fraction of examples where the model's beam-search output matches the ground-truth SID at each level).
Baselines. We compare BRIDGE against baselines from two categories.
Item ID-based methods:
-
GRU4Rec [12]: A GRU-based sequential recommender that models user interaction sequences with recurrent networks.
-
SASRec [13]: A self-attention sequential recommender that captures long-range item dependencies via causal transformer layers.
-
BERT4Rec [18]: A bidirectional transformer sequential recommender trained with a masked item prediction objective.
Semantic ID-based methods:
-
TIGER [16]: foundational SID-based generative retrieval framework that tokenizes items with an RQ-VAE codebook into hierarchical SIDs and trains an autoregressive decoder to generate SID tuples conditioned on user history.
-
ReaRec [19]: SID-based sequential recommender that introduces implicit multi-step reasoning in the decoder by iteratively feeding hidden states back as inputs before SID generation.
-
COBRA [27]: unified generative recommender that combines sparse semantic IDs with dense representations via a cascaded sparse–dense architecture, and improves decoding efficiency with beam fusion for top- generation.
-
GR4AD [25]: production generative recommender for large-scale advertising at Kuaishou, featuring UA-SID tokenization that encodes advertising business signals, a LazyAR decoder for efficient multi-candidate generation, and value-aware supervised learning aligned with business objectives.
Implementation Details. All models use , 8 attention heads, and FFN dimension 2048. User history is truncated to 32 items; beam width is 20. BRIDGE uses a 3-layer loop block, the EAR schedule , and reasoning iterations. The EMA decay is . Privileged neighbors use the top- items by embedding cosine similarity. Distillation hyperparameters: temperature , JSD , entropy gate , reason distillation weight , codebook loss weights
Yatong Xiao, Mingjie Sun, Peng Wang, Wenjin Wu, Peng Jiang
0.1, , privileged encoder weight . Distillation is applied after a 2,000-step warm-up and ramped linearly over 3,000 steps to its maximum weight . All models are trained with AdamW and a cosine learning rate schedule with linear warm-up.
4.2 Main Results
Table 2 reports results on three Amazon benchmarks. BRIDGE achieves the best performance on all metrics across all datasets, showing consistent improvements over strong discriminative and generative baselines.
Semantic ID-based vs. item ID-based. Semantic ID-based methods consistently outperform item ID-based baselines (GRU4Rec, SAS-Rec, BERT4Rec), suggesting that autoregressive generation over hierarchical SIDs provides a stronger inductive bias for sequential recommendation than dot-product matching over item indices. The gap is especially pronounced on Recall@10, where the structured SID hierarchy allows generative models to explore a broader, semantically coherent candidate space compared to nearest-neighbor retrieval.
Bridge vs. generative baselines. Among semantic ID-based generative methods, BRIDGE achieves the best result on every reported dataset and metric, outperforming the evaluated generative baselines, including GR4AD. Against the strongest generative baseline, BRIDGE achieves relative improvements of 7.8% / 12.6% / 12.4% in Recall@10 and 8.0% / 10.7% / 10.5% in NDCG@10 on Sports, Beauty, and Toys, respectively. TIGER decodes SIDs directly from a [BOS] token without any semantic grounding, leaving the quantizer's continuous structure inaccessible to the decoder; this is precisely the grounding gap that BRIDGE's codebook-grounded latent reasoning (CGLR) closes. GR4AD focuses on efficient multi-candidate generation and business-aligned training, but it does not explicitly exploit the residual-quantization-induced level-wise difficulty prior. BRIDGE's effort-aware recurrence (EAR), which allocates more refinement iterations to high-entropy early levels, provides a complementary inductive bias that standard level-uniform decoding does not capture.
Effect of dataset scale. Gains are more pronounced on Beauty and Toys than on Sports. All three datasets share near-identical sparsity (~99.93–99.95%), so we attribute the difference to catalog size: Sports contains approximately 50% more items than Beauty or Toys, expanding the SID prediction space and making it harder for any single model to realize proportional gains. On smaller, more focused catalogs, codebook-anchored latent reasoning injects semantic structure that more directly covers the item space, while privileged EMA self-distillation recovers neighborhood geometry from item embeddings rather than observed interactions; this signal's coverage depends primarily on the catalog, not on the number of observed interactions. The relatively smaller gain on Sports suggests that at larger catalog scale, the marginal benefit of semantic anchoring diminishes as the codebook must partition a wider embedding manifold.
Consistency across metrics. Gains are consistent across both Recall and NDCG at both cut-offs, indicating that BRIDGE improves
both coverage (retrieving more relevant items within the top-K) and ranking quality (placing relevant items higher within the retrieved set). The improvement on NDCG is generally comparable to or larger than that on Recall, suggesting that the codebook-grounded reasoning and effort-aware recurrence together benefit precision at early ranks rather than merely expanding tail coverage. Detailed component analysis is presented in Section 4.3.
4.3 Ablation Study
Table 3 reports an ablation study on Beauty, comparing the EAR backbone with variants that add CGLR and/or PESD, and the full BRIDGE model. We report Recall and NDCG at cut-offs 5 and 10 to quantify both retrieval coverage and ranking quality.
Individual contributions. Adding CGLR to the EAR backbone improves Recall@10 by 10.5% and NDCG@10 by 8.0%. This supports our grounding-gap hypothesis: providing r with a semantic anchor before prediction improves coarse-level decisions without relying on additional supervision. Adding PESD alone to the EAR backbone also yields a consistent gain (Recall@10 +5.4%, NDCG@10 +5.0%), suggesting that neighborhood-aware soft targets help even without codebook grounding.
Interaction between CGLR and PESD. The marginal gain from PESD on Recall@10 is smaller when CGLR is already active (+2.1% moving from EAR+CGLR to BRIDGE) than when it is not (+5.4% from EAR to EAR+PESD), suggesting partial overlap between the two mechanisms on this metric. Overall, combining both components improves EAR by 12.8% on Recall@10 and 12.6% on NDCG@10 (EAR BRIDGE).
Full model. BRIDGE achieves the best results across all metrics, indicating that the three gaps are complementary rather than redundant. CGLR improves early coarse decisions by grounding r, PESD improves robustness under self-generated prefixes via neighborhood-aware soft targets, and together they yield consistent gains in both Recall and NDCG beyond either component alone. With EAR's hierarchy-aware compute allocation, this suggests that addressing grounding, neighborhood, and difficulty jointly is necessary to fully exploit the RQ-VAE semantic structure.
4.4 Analysis of Semantic Quantization Gap
To assess whether BRIDGE addresses each gap at the mechanism level rather than merely improving end-to-end recall, we conduct targeted diagnostics for each of the three gaps identified in Section 1.
Grounding gap: early-level SID prediction difficulty. The grounding gap manifests most directly at the first SID level , which carries the highest prediction entropy and determines the coarse semantic region for all subsequent levels. Adding CGLR to EAR+PESD reduces the teacher-forcing cross-entropy loss by 3.95% on Beauty, suggesting that codebook-grounded latent reasoning helps alleviate difficulty at the hardest, information-scarcest position. Online A/B testing corroborates this finding, with loss consistently reduced by 2–3% across deployment windows. This asymmetric reduction is consistent with the grounding gap hypothesis: injecting frozen codebook centroids before predicting provides the decoder with
Table 2: Main results on three benchmarks. Best in bold, second-best underlined.
| Methods | Sports | Beauty | Toys | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | R@5 | N@5 | R@10 | N@10 | |
| Item ID-based | ||||||||||||
| GRU4Rec [12] | 0.0129 | 0.0086 | 0.0204 | 0.0110 | 0.0164 | 0.0099 | 0.0283 | 0.0137 | 0.0097 | 0.0059 | 0.0176 | 0.0084 |
| SASRec [13] | 0.0233 | 0.0154 | 0.0350 | 0.0192 | 0.0387 | 0.0249 | 0.0605 | 0.0318 | 0.0463 | 0.0306 | 0.0675 | 0.0374 |
| BERT4Rec [18] | 0.0115 | 0.0075 | 0.0191 | 0.0099 | 0.0203 | 0.0124 | 0.0347 | 0.0170 | 0.0116 | 0.0071 | 0.0203 | 0.0099 |
| Semantic ID-based | ||||||||||||
| TIGER [16] | 0.0264 | 0.0181 | 0.0400 | 0.0225 | 0.0454 | 0.0321 | 0.0648 | 0.0384 | 0.0521 | 0.0371 | 0.0712 | 0.0432 |
| ReaRec [19] | 0.0214 | 0.0116 | 0.0332 | 0.0154 | 0.0450 | 0.0262 | 0.0704 | 0.0344 | 0.0523 | 0.0298 | 0.0764 | 0.0376 |
| COBRA [27] | 0.0305 | 0.0215 | 0.0434 | 0.0257 | 0.0537 | 0.0395 | 0.0725 | 0.0456 | 0.0619 | 0.0462 | 0.0781 | 0.0515 |
| GR4AD [25] | 0.0318 | 0.0221 | 0.0443 | 0.0263 | 0.0545 | 0.0407 | 0.0742 | 0.0470 | 0.0624 | 0.0463 | 0.0788 | 0.0518 |
| BRIDGE (ours) | 0.0340 | 0.0239 | 0.0478 | 0.0284 | 0.0607 | 0.0443 | 0.0835 | 0.0520 | 0.0684 | 0.0501 | 0.0886 | 0.0572 |
| Improv. | +6.9% | +8.2% | +7.8% | +8.0% | +11.3% | +8.8% | +12.6% | +10.7% | +9.6% | +8.1% | +12.4% | +10.5% |
Table 3: Component-level ablation on Beauty.
| Model | R@5 | N@5 | R@10 | N@10 |
|---|---|---|---|---|
| EAR | 0.0539 | 0.0396 | 0.0740 | 0.0462 |
| EAR + CGLR | 0.0582 | 0.0414 | 0.0818 | 0.0499 |
| EAR + PESD | 0.0560 | 0.0406 | 0.0780 | 0.0485 |
| BRIDGE (all) | 0.0607 | 0.0443 | 0.0835 | 0.0520 |
the semantic anchoring that the RQ-VAE quantizer encodes but standard SID generation discards.
Neighborhood gap: knowledge transfer from a privileged teacher. The neighborhood gap hypothesis predicts that a privileged EMA teacher, which observes semantic neighbor embeddings unavailable to the student, should maintain higher Recall@10 during training, and that PESD should progressively close this gap as distillation ramps up. Figure 3(a) plots teacher and student Recall@10 on the Beauty validation set across training epochs. The teacher leads the student throughout the early and mid-training phases; after the distillation warm-up (step 2,000), the student rises steadily and closes the gap, reaching near-parity with the teacher by epoch 22. Beyond this point the student marginally exceeds the teacher on several epochs, which is an expected consequence of EMA weight lag: the student continues to receive gradient updates while the teacher's parameters evolve only through the slow-moving average, so the student's task-specific optimization eventually outpaces the momentum copy. Figure 3(b) quantifies knowledge transfer via the per-level Jensen–Shannon divergence between student and teacher output distributions. Mean JSD begins at 0.0330 before warm-up and decays monotonically to below by epoch 30, with converging fastest, consistent with EAR concentrating recurrent depth at that level. The strictly decreasing JSD trajectory after warm-up suggests that the student progressively absorbs the neighborhood geometry encoded in the teacher's soft targets rather than merely co-evolving with them.

Figure 3: Neighborhood gap analysis on Beauty. (a) Teacher and student Recall@10 across training epochs; after distillation warm-up, the student closes the gap and reaches near-parity by epoch 22. (b) Per-level JSD decays monotonically from 0.0330 to below , with converging fastest.
Difficulty gap: compute allocation and inference efficiency. EAR redistributes compute across SID levels through weight sharing rather than depth scaling: the loop decoder is shared across all levels and all iterations, so trainable parameters are determined solely by the loop block depth and the single end block, not by the per-level budget . With loop block layers plus one end block, EAR uses 57.3% fewer parameters than GR4AD's 9-layer decoder (7 shared + 2 step layers), while the right-aligned schedule applies the shared layers 4, 2, and 1 times at levels , , respectively, matching GR4AD's effective depth at the hardest level while substantially reducing compute at easier ones. Online A/B testing against GR4AD on NVIDIA L20 machines shows that EAR improves inference throughput by about 20% in terms of QPS. These results indicate that EAR helps close the difficulty gap not by adding capacity but by redistributing existing compute according to the quantization-induced level-wise difficulty prior, achieving a favorable accuracy–efficiency trade-off.
Yatong Xiao, Mingjie Sun, Peng Wang, Wenjin Wu, Peng Jiang
4.5 Online A/B Testing
We conducted a one-week online A/B test in an e-commerce advertising scenario on a large-scale short-video platform with 5% of the traffic. The proposed method achieved a 0.65% eCPM (revenue) uplift, indicating promising business gains and validating the effectiveness of our model.
5 Conclusion
We identify the Semantic Quantization Gap (SQG), a mismatch between offline RQ-VAE tokenization and online semantic-ID (SID) generation that weakens semantic grounding, removes neighborhood supervision, and distorts hierarchy-wise compute allocation. We propose BRIDGE, a shared-loop decoder that combines codebook-grounded latent reasoning, privileged EMA self-distillation, and effort-aware hierarchical recurrence to close SQG. Across three benchmarks, BRIDGE outperforms strong baselines and ablations indicate the contribution of each component. Future work includes learning the loop schedule end-to-end and extending BRIDGE to dynamic item sets and multi-modal SIDs.
Ethical Considerations
We study generative retrieval for recommendation using public datasets and item-content embeddings. Potential risks include (i) propagating or amplifying biases present in the underlying data and text encoder, (ii) privacy leakage if deployed on sensitive user logs, and (iii) misuse for manipulative ranking. To mitigate these risks in practice, deployments should minimize or anonymize user signals, apply access control and monitoring, and evaluate subgroup performance and calibration to detect disparate impact. Our method does not require additional user-side features beyond standard interaction histories; the privileged neighbor signal used in distillation is computed from item embeddings and is available only during training.
References
[1] Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, and Armand Joulin. 2021. Emerging properties in self-supervised vision transformers. In 2021 IEEE/CVF international conference on computer vision (ICCV). IEEE, 9630–9640.
[2] Xinghao Chen, Chak Tou Leong, Wenjin Guo, Jian Wang, Wenjie Li, and Xiaoyu Shen. 2026. What Makes Effective Supervision in Latent Chain-of-Thought: An Information-Theoretic Analysis. arXiv preprint arXiv:2606.20075 (2026).
[3] Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, and Lukasz Kaiser. 2018. Universal transformers. arXiv preprint arXiv:1807.03819 (2018).
[4] Yuntian Deng, Yejin Choi, and Stuart Shieber. 2024. From explicit cot to implicit cot: Learning to internalize cot step by step. arXiv preprint arXiv:2405.14838 (2024).
[5] Yuntian Deng, Kiran Prasad, Roland Fernandez, Paul Smolensky, Vishrav Chaudhary, and Stuart Shieber. 2023. Implicit chain of thought reasoning via knowledge distillation. arXiv preprint arXiv:2311.01460 (2023).
[6] 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.
[7] Tianqi Gao, Chengkai Huang, Zihan Wang, Cao Liu, Ke Zeng, and Lina Yao. 2026. Factorized Latent Reasoning for LLM-based Recommendation. arXiv preprint arXiv:2604.26760 (2026).
[8] Angeliki Giannou, Shashank Rajput, Jy-yong Sohn, Kangwook Lee, Jason D Lee, and Dimitris Papailiopoulos. 2023. Looped transformers as programmable computers. In International Conference on Machine Learning. PMLR, 11398–11442.
[9] Alex Graves. 2016. Adaptive computation time for recurrent neural networks. arXiv preprint arXiv:1603.08983 (2016).
[10] Shibo Hao, Sainbayar Sukhbaatar, Dijia Su, Xian Li, Zhiting Hu, Jason Weston, and Yuandong Tian. 2024. Training large language models to reason in a continuous latent space. arXiv preprint arXiv:2412.06769 (2024).
[11] 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.
[12] Balázs Hidasi, Alexandros Karatzoglou, Linas Baltrunas, and Domonkos Tikk. 2015. Session-based recommendations with recurrent neural networks. arXiv preprint arXiv:1511.06939 (2015).
[13] Wang-Cheng Kang and Julian McAuley. 2018. Self-attentive sequential recommendation. In 2018 IEEE international conference on data mining (ICDM). IEEE, 197–206.
[14] Xinchen Luo, Jiangxia Cao, Tianyu Sun, Jinkai Yu, Rui Huang, Wei Yuan, Hezheng Lin, Yichen Zheng, Shiyao Wang, Qigen Hu, et al. 2025. Qarm: Quantitative alignment multi-modal recommendation at kuaishao. In Proceedings of the 34th ACM International Conference on Information and Knowledge Management. 5915–5922.
[15] Haohao Qu, Wenqi Fan, Zihuai Zhao, and Qing Li. 2025. Tokenrec: Learning to tokenize id for llm-based generative recommendations. IEEE Transactions on Knowledge and Data Engineering (2025).
[16] 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.
[17] Zihua Si, Zhongxiang Sun, Jiale Chen, Guozhang Chen, Xiaoxue Zang, Kai Zheng, Yang Song, Xiao Zhang, Jun Xu, and Kun Gai. 2024. Generative retrieval with semantic tree-structured identifiers and contrastive learning. In Proceedings of the 2024 Annual International ACM SIGIR Conference on Research and Development in Information Retrieval in the Asia Pacific Region. 154–163.
[18] Fei Sun, Jun Liu, Jian Wu, Changhua Pei, Xiao Lin, Wenwu Ou, and Peng Jiang. 2019. BERT4Rec: Sequential recommendation with bidirectional encoder representations from transformer. In Proceedings of the 28th ACM international conference on information and knowledge management. 1441–1450.
[19] Jiakai Tang, Sunhao Dai, Teng Shi, Jun Xu, Xu Chen, Wen Chen, Jian Wu, and Yuning Jiang. 2026. Think before recommend: Unleashing the latent reasoning power for sequential recommendation. IEEE Transactions on Knowledge and Data Engineering (2026).
[20] Antti Tarvainen and Harri Valpola. 2017. Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results. Advances in neural information processing systems 30 (2017).
[21] Vladimir Vapnik and Akshay Vashist. 2009. A new learning paradigm: Learning using privileged information. Neural networks 22, 5-6 (2009), 544–557.
[22] Shuai Wang, Kun Zhang, Le Wu, Haiping Ma, Richang Hong, and Meng Wang. 2021. Privileged graph distillation for cold start recommendation. In Proceedings of the 44th international ACM SIGIR conference on research and development in information retrieval. 1187–1196.
[23] 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.
[24] Yidan Wang, Zhaochun Ren, Weiwei Sun, Jiyuan Yang, Zhixiang Liang, Xin Chen, Ruobing Xie, Su Yan, Xu Zhang, Pengjie Ren, et al. 2024. Content-based collaborative generation for recommender systems. In Proceedings of the 33rd ACM International Conference on Information and Knowledge Management. 2420–2430.
[25] Ben Xue, Dan Liu, Lixiang Wang, Mingjie Sun, Peng Wang, Pengfei Zhang, Shaoyun Shi, Tianyu Xu, Yunhao Sha, Zhiqiang Liu, et al. 2026. Generative recommendation for large-scale advertising. In Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 2. 8346–8357.
[26] Liu Yang, Kangwook Lee, Robert Nowak, and Dimitris Papailiopoulos. 2024. Looped transformers are better at learning learning algorithms. In International conference on learning representations, Vol. 2024. 42195–42214.
[27] Yuhao Yang, Zhi Ji, Zhaoeng Li, Yi Li, Zhonglin Mao, Yue Ding, Kai Chen, Zijian Zhang, Jie Li, LIU LIN, et al. 2026. Sparse meets dose: Unified generative recommendations with cascaded sparse-dense representations. Advances in Neural Information Processing Systems 38 (2026), 93746–93770.
[28] Eric Zelikman, Georges Harik, Yijia Shao, Varuna Jayasiri, Nick Haber, and Noah D Goodman. 2024. Quiet-star: Language models can teach themselves to think before speaking. arXiv preprint arXiv:2403.09629 (2024).
[29] Fuwei Zhang, Xiaoyu Liu, Jiajie Jin, Jiale Mao, Wei Chen, Dongbo Xi, Yifan Yang, Peng Yan, Zichao Hao, Zhao Zhang, et al. 2026. Beyond Matching: Category-Guided Latent Intent Reasoning for Generative Retrieval in E-Commerce. arXiv preprint arXiv:2606.07075 (2026).
[30] Siyan Zhao, Zhihui Xie, Mengchen Liu, Jing Huang, Guan Pang, Feiyu Chen, and Aditya Grover. 2026. Self-distilled reasoner: On-policy self-distillation for large language models. arXiv preprint arXiv:2601.18734 (2026).
[31] Bowen Zheng, Yupeng Hou, Hongyu Lu, Yu Chen, Wayne Xin Zhao, Ming Chen, and Ji-Rong Wen. 2024. Adapting large language models by integrating collaborative semantics for recommendation. In 2024 IEEE 40th International Conference on Data Engineering (ICDE). IEEE, 1435–1448.
[32] Jieming Zhu, Mengqun Jin, Qijiong Liu, Zexuan Qiu, Zhenhua Dong, and Xiu Li. 2024. Cost: Contrastive quantization based semantic tokenization for generative recommendation. In Proceedings of the 18th ACM Conference on Recommender Systems. 969–974.