Manuscript Offprint
arXiv:2610.38378Towards Reliable, Scalable, and Value-Aligned Generative Recommendation for Large-Scale Advertising
Abstract
Generative recommendation (GR) reformulates item retrieval as autoregressive generation of discrete semantic identifiers (SIDs), offering a unified paradigm for personalized recommendation. GR4AD, as an industrial generative recommendation framework, has greatly improved advertising revenue while enabling efficient real-time serving in Kuaishou. However, continued deployment has exposed three limitations: deterministic SID assignment remains sensitive to semantic boundaries; conventional backbone scaling provides diminishing revenue gains under strict serving constraints; and sequence-level value optimization provides limited credit assignment to intermediate SID decisions, causing likelihood-based beam search to prematurely prune potentially high-value candidates.
We present GR4AD-X, which addresses these limitations through reliable SID construction, serving-efficient capacity scaling, and unified value alignment. Specifically, GR4AD-X improves SID reliability through Multi-Path assignment. It expands model capacity along multiple complementary dimensions rather than relying solely on wider or deeper backbones, achieving a better effectiveness-efficiency trade-off under strict serving constraints. Finally, Unified Value-Guided Generation and Discrimination (UniVGD) aligns generation with commercial value through prefix-level reward optimization, value-guided beam pruning, and discriminative reranking within a unified model.
Large-scale online A/B tests on the Kuaishou advertising platform demonstrate that GR4AD-X achieves a cumulative revenue improvement of 3.07% over the deployed GR4AD baseline while satisfying strict latency and throughput constraints.
Keywords
Generative Recommendation, Advertising, Semantic Identifiers, Model Scaling, Value Alignment
- Towards Reliable, Scalable, and Value-Aligned Generative Recommendation for Large-Scale Advertising. In Proceedings of Proceedings of the ACM Web Conference 2027 (WWW '27). ACM, New York, NY, USA, 10 pages. https://doi.org/10.1145/nnnnnnn.nnnnnnn
1 Introduction
GR4AD [22] established a generative production paradigm for Kuaishou's large-scale advertising recommendation, serving over 400 million users. It unifies SID-based advertisement representation, autoregressive candidate generation, value-aware learning, and real-time serving with LazyAR and dynamic beam search. By integrating these functions into a unified generative retrieval framework, GR4AD achieved substantial online revenue gains while satisfying strict latency and throughput constraints.
Despite these successes, production deployment reveals further opportunities to improve GR4AD in representation reliability, model scaling, and value-oriented generation. First, deterministic SID assignment remains sensitive to semantic boundaries. Second, conventional model scaling yields diminishing revenue gains under strict online latency constraints. Third, sequence-level value optimization provides limited supervision for intermediate SID decisions, leaving generation probabilities insufficiently aligned with commercial value. GR4AD-X addresses these challenges through reliable SID construction, serving-efficient capacity scaling, and value alignment throughout the generation process.
Reliable SID representation. The first SID token determines the coarse semantic partition and constrains subsequent decisions. For advertisements near partition boundaries, hard quantization forces one of several plausible assignments, introducing noise at this critical step and making the advertisement unreachable if its assigned prefix is pruned during beam search. We propose Multi-Path SID to retain the top- first-level assignments and complete each with a separate residual quantization trajectory, providing alternative generation paths for retrieving the advertisement.
Serving-efficient capacity scaling. Scaling model capacity is a natural direction for improving GR4AD, as LLMs can better capture heterogeneous advertising features and diverse user behavior patterns. However, naive parameter scaling is inefficient under the strict latency and throughput constraints of production advertising systems. As shown in Figure 1, increasing model size substantially reduces serving QPS, while the corresponding revenue gains quickly become marginal. GR4AD-X therefore revisits the scaling
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.
WWW '27, Dublin, Ireland
© 2026 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
*These authors contributed equally.
†Corresponding author.
Xiao et al.

Figure 1: Production trade-off of naive backbone scaling. All variants use Multi-Path SID. Serving QPS and revenue improvements are reported relative to the 0.03B variant. Larger backbones substantially reduce serving throughput, while revenue gains exhibit diminishing returns.
strategy and expands capacity along five complementary dimensions: input signals, encoder capacity, vocabulary memory, residual streams, and generation decision depth. This design improves effective model capacity with only modest serving overhead, providing a more efficient scaling path than enlarging the backbone.
Value-aligned generation. Next-token prediction fits logged interactions, whereas advertising systems optimize commercial value such as eCPM. In our production diagnosis, HitRate@10 between the advertisements with the highest eCPM and those ranked highest by generation probability is only approximately 0.02. Low overlap at different SID prefix levels indicates that this mismatch persists throughout generation. Under beam search, an underestimated prefix may cause a high-eCPM advertisement to be pruned before its complete SID is generated. Sequence-level optimization provides insufficient credit assignment to identify the responsible prefix decision. We therefore introduce Unified Value-Guided Generation and Discrimination (UniVGD). PV-RSPO propagates eCPM rewards through the SID prefix tree before generation, PV-BeamSearch incorporates prefix values into beam pruning during generation, ensures the generation process does not rely solely on generation probabilities, and discriminative heads rerank complete candidates after generation. These components share user representations and are jointly optimized within one model.
Overall, GR4AD-X makes the following contributions.
• We propose Multi-Path SID, which retains multiple first-level assignments and continues residual quantization along each branch. This provides alternative generation paths for advertisements near partition boundaries, improving their opportunities to survive beam pruning without increasing decoding depth.
-
We design a serving-efficient capacity scaling strategy that expands model capacity along input signals, encoder capacity, vocabulary memory, residual streams, and generation decision depth, achieving a better effectiveness-efficiency trade-off than naive model scaling.
-
We introduce UniVGD as a unified value alignment framework, integrating prefix-level eCPM optimization, value-guided beam pruning, and discriminative reranking across the complete generation process.
2 Related Work
2.1 GR and Semantic Item Identifiers
Generative recommendation models retrieval as autoregressive prediction over discrete item identifiers. Building on TIGER's residual-quantized semantic IDs (SIDs) [12], subsequent methods improve collaborative semantics, tokenization, hierarchical structure, and generalization [11, 14–16, 26]. Recent studies examine balanced SID construction, multimodal quantization, and systematic evaluation [4, 5, 9, 10, 21], while industrial systems validate generative retrieval in recommendation, advertising, and e-commerce search [2, 8, 22, 27–29]. Most methods still assign each item a single path and remain vulnerable to early quantization errors [1]. Multi-Path SID improves first-level assignment reliability with alternative retrieval paths for ads near semantic boundaries.
2.2 Value Alignment in GR
Next-token prediction fits logged interactions but does not optimize advertising value. Industrial systems introduce value-aware supervision, preference optimization, hierarchical rewards, or reward-weighted ranking [2, 8, 22, 27]. Recent methods guide SID construction and decoding with value signals [7, 25], while BEAR addresses premature prefix pruning caused by training-inference mismatch [23]. UniVGD instead coordinates the full generation process through eCPM reward propagation to prefixes, value-guided beam pruning, and candidate reranking.
2.3 Model Scaling in GR and LLMs
Industrial generative recommenders must scale under strict latency and throughput constraints. Recommendation scaling typically enlarges input sequences, hidden dimensions, or Transformer depth [5, 22, 28, 29], while test-time methods expand decoding budgets through wider beam search and parallel generation [6, 17]. Although effective, these approaches substantially increase online latency, making naive scaling inefficient for production advertising systems. Similar constraints have motivated efficient LLM scaling through vocabulary or memory expansion [3, 13, 19], chain-of-thought decision depth [18], and multi-stream residual pathways [20]. Inspired by these directions, GR4AD-X jointly scales input context, encoder capacity, vocabulary memory, residual streams, and decision depth under a fixed serving budget, improving the effectiveness-efficiency trade-off over naive model scaling.
3 Method
3.1 Overview
Figure 2 summarizes the architecture of GR4AD-X. Multi-Path SID retains multiple first-level assignments, each completed with a separate residual quantization trajectory. Joint supervision on these paths enables advertisement retrieval through alternative SID prefixes (Section 3.2). Serving-efficient capacity scaling targets five complementary dimensions: input signals, encoder capacity, vocabulary memory, residual streams, and generation decision depth (Section 3.3). Finally, UniVGD aligns generation with commercial value through pre-generation prefix-level reward optimization, in-generation value-guided beam pruning, and post-generation discriminative reranking (Section 3.4).

Figure 2: Overview of GR4AD-X. (a) Multi-Path SID retains multiple plausible first-level assignments for boundary ads. (b) PV-BeamSearch expands to 2k candidates and fuses generation and prefix-value ranks via RRF. (c) Revenue rewards propagate bottom-up through the SID prefix tree for PV-RSPO. (d) The backbone uses a Shared Decoder with diagonal Hyper-Connections, a Step Decoder with PCGM, and per-level prefix-value heads for value alignment and discriminative reranking.
3.2 Multi-Path Semantic Identifiers
Semantic identifiers (SIDs) define both the supervision targets and the discrete search space of a generative recommender. A conventional single-path SID associates each advertisement with one hierarchical quantization trajectory. For advertisements near coarse cluster boundaries, however, multiple first-level centroids may be similarly close in the embedding space. Restricting such an advertisement to a single first-level prefix makes it unreachable whenever that prefix is pruned during decoding. We introduce Multi-Path SID to provide alternative retrieval paths while preserving the residual quantization structure.
Residual quantization. Given the semantic embedding of advertisement , let denote the codebook at level . Standard RQ-KMeans initializes and recursively computes
This produces a single SID sequence . Multi-Path SID modifies only the first-level selection and uses the same codebooks for all subsequent residual trajectories.
Multi-path construction. Instead of selecting one first-level centroid, we retain the nearest centroids:
Each selected centroid initializes a separate residual branch:
For each branch, we apply Eq. (1) from level 2 to level . Following GR4AD, the final level uses a hash-based mapping of non-semantic advertisement features rather than residual quantization. Denoting this final token by , the complete SID paths are
The hash mapping is unchanged from GR4AD, and all paths of the same advertisement share the final token . Branching occurs only at the first semantic level: each subsequent quantization level selects one centroid per branch. Consequently, each advertisement receives length- paths rather than an exponentially expanding set of paths. Setting recovers the single-path SID construction used in GR4AD.
Xiao et al.
Blockwise multi-target training. For a positive advertisement and user context , we train the model on all paths in . The objective is
where , , and .
To process multiple targets in one forward pass, we pack the teacher-forced inputs for all paths into separate SID blocks. A blockwise causal attention mask prevents each block from attending to tokens in other blocks, while preserving access to the shared user context and its own preceding SID tokens. This avoids duplicating the user-context computation across paths while retaining path-specific autoregressive supervision.
Inference and deduplication. At inference time, the model generates SID sequences using the standard autoregressive decoding procedure. Multi-path indexing allows different generated sequences to resolve to the same advertisement, providing alternative first-level prefixes through which it can be retrieved.
Because multiple paths may retrieve the same advertisement, we deduplicate candidates at the advertisement level and retain the highest-scoring path for each advertisement. Although multiple paths may consume additional beam slots, advertisement-level deduplication prevents repeated paths from appearing as duplicate items in the final candidate set. The net effectiveness of this design is evaluated through production A/B tests.
3.3 Efficient Scaling for Real-Time Serving
GR4AD must scale under strict latency and hardware constraints, making naive model scaling inefficient. GR4AD-X therefore adopts serving-efficient capacity scaling along five dimensions: input signals, encoder capacity, vocabulary memory, residual streams, and generation decision depth.
3.3.1 Input and Encoder Scaling. We enrich input signals with over 20 user-profile and contextual features from the production ranking system, reallocating sequence budget by feature importance to keep the input length unchanged. We also enhance encoder nonlinearity by increasing the embedding dimensions of key high-cardinality features from 16 to 64 and replacing the conventional FFN with a SwiGLU-based FFN, improving user representation with marginal serving overhead.
3.3.2 Vocabulary Scaling with Prefix-Conditioned Gated Memory. SID embeddings act as token-indexed parametric memory that stores advertisement semantics and user-advertisement collaborative signals. Expanding this memory provides an efficient way to increase model capacity without proportionally increasing the dense computation activated at each decoding step. Prefix-Conditioned Gated Memory (PCGM) scales vocabulary memory along two complementary axes.
Vertical scaling: layer-specific memory tables. We allocate an independent SID memory table for each decoder layer , allowing every layer to directly access the original SID-indexed information. The retrieved memory is injected through the gated FFN, so each layer can adaptively determine how much raw SID
information to incorporate. Here, denotes the decoder-layer index and is distinct from the SID-level index .
Horizontal scaling: SID prefix n-gram memory. SIDs are hierarchical codes whose prefixes capture semantics at different granularities. We construct memory entries for 1-gram, 2-gram, and 3-gram SID prefixes. Partial-prefix memories support the prediction of subsequent SID tokens, while complete-SID memory supports candidate scoring in the rank step. Since the complete SID is nearly item-specific, its memory can store fine-grained advertisement semantics and collaborative signals.
We illustrate the polynomial hashing scheme with the 3-gram case:
where is a fixed prime and controls the table size. Lower-order prefixes are handled analogously.
Prefix-conditioned gating. PCGM retrieves memory using only SID tokens already available at the current decoding position. The first SID token is predicted without PCGM. After is generated, its 1-gram memory is used when predicting ; the 2-gram memory of is then used when predicting . Once the complete SID is available, its 3-gram memory is used in the rank step. For a prefix of length , the lookup key is
Here, denotes the length of the available SID prefix, not the index of the token being predicted. Each decoder layer retrieves its own memory vector:
The retrieved vector replaces the dense FFN gate:
where denotes the hidden state at the position using the length- prefix memory.
In GR4AD, the complete-SID position was used to predict an eCPM token. GR4AD-X instead incorporates eCPM information into the advertisement-side features of the rank token and performs discriminative candidate scoring (Section 3.4.3). Accordingly, the complete-SID memory is used in the rank step rather than for a separate eCPM-token prediction.
3.3.3 Multi-Stream Residuals with Diagonal Hyper-Connections. A single residual stream must carry heterogeneous user and contextual signals, which may be overwritten or diluted as depth increases. We introduce diagonal Hyper-Connections in the Shared Decoder to expand residual information pathways without replicating the attention and FFN computation.
Given the input state , we duplicate it into parallel streams:
where , and denote batch size, Shared Decoder sequence length, and hidden dimension, respectively.
Inspired by the diagonal parameterization in Hyperloop Transformers [24], we use input-dependent gates to read from, write to, and preserve the parallel streams. For clarity, we omit batch and sequence indices in the gate definitions below. The read and write operations are applied position-wise, while attention operates on the full sequence of read representations. Each sublayer follows a read-compute-write cycle:
where Sublayer denotes an attention or FFN sublayer, , , and is diagonal. Thus, each stream receives a scalar gate shared across its channels, while each sublayer operates on a single -dimensional representation.
The gates are computed from the normalized multi-stream state :
with
For each gate type , , , and are learnable parameters.
A learned aggregation collapses the final multi-stream state back to .
3.3.4 Semantically Anchored Reason Prefill. The first-level SID determines the coarse branch of the generation path, yet must be predicted without any preceding SID token. We insert a continuous reasoning token between BOS and , providing an intermediate computation position before this decision.
Given user context x, a learnable network maps the BOS hidden state to the reasoning-token embedding:
The decoder processes this embedding to obtain , which is shared across all retained SID paths. This state is used to predict their first-level tokens and receives auxiliary coarse semantic supervision. It is computed from the user context and BOS before any target SID token is observed, and is therefore independent of the chosen SID path.
To anchor this state in SID semantics, we recluster the frozen first-level RQ-KMeans codebook into a smaller codebook , where . The nearby first-level centroids retained by Multi-Path SID map to the same coarse prototype in most cases. We therefore use a single advertisement-level coarse label to supervise the reasoning state shared across paths, while the multi-target SID loss preserves their distinct fine-grained generation targets.
We project the decoder hidden state into the coarse codebook space and normalize both the projection and the prototypes:
Prototype classification supervises the target coarse cluster:
where is the temperature. A cosine loss further encourages alignment with the target prototype:
The combined auxiliary loss is
where balances the two objectives.
At inference time, the reasoning token is generated from the BOS state without requiring a target advertisement or coarse label. SARP thus adds one semantically supervised decoding position before first-level SID prediction while preserving the SID depth.
3.4 UniVGD: Unified Value-Guided Generation and Discrimination
In advertising recommendation systems, the ranking order and commercial value of generated candidates are directly tied to platform revenue and the fulfillment of advertiser objectives. To this end, we pursue a more thorough optimization of value perception throughout the system. We propose UniVGD, a framework that incorporates discriminative value awareness at each stage of the generation pipeline to guide the ultimate decision-making process.
3.4.1 Pre-Generation: Prefix-Value-Aware RSPO. Sequence-level rewards assign the same credit to all SID decisions, penalizing a useful coarse prefix even when only a later token is wrong. This creates a credit-assignment mismatch for hierarchical SID decoding: the action space is a tree, while the reward lives only at its leaves. We address this mismatch by aggregating leaf rewards bottom-up into a value for every prefix and then learning these values with one lightweight discriminative head per level.
Using the Multi-Path notation in Section 3.2, let be advertisement 's level-l prefix on path . For user , let be the rolled-out advertisements, their rewards, and .
Bottom-up reward aggregation. A prefix receives the mean reward of its sampled descendants:
Equivalently, values propagate bottom-up in the prefix tree formed by the j-th paths:
Here, denotes the children of p.
Lightweight prefix-level heads. Each SID level has a lightweight head , shared across paths and attending to the backbone's
Xiao et al.
user memory :
The listwise RSPO loss [22] is applied separately to each level and path, then aggregated with the weights from Eq. (5):
Here, contains the distinct level- prefixes of the -th paths in , and weights each level.
3.4.2 In-Generation: Prefix-Value-Aware Beam Search. Section 3.4.1 injects prefix-level value into training. At inference time, however, standard beam search still expands and prunes purely by generation probability. A branch with low shallow-level likelihood but high downstream reward may therefore be discarded irreversibly. Once a high-value prefix falls out of the beam at level , no later evidence can bring it back. PV-BeamSearch reuses the prefix-value heads as a second voter during expansion, turning pruning from a likelihood-only decision into a likelihood-value consensus.
Let denote the beam after level , and let denote the beam width. For every level , we first retain a relaxed candidate pool containing the top-2k expansions ranked by generation probability . We then score the same candidates with the predicted prefix value and fuse the two rankings through Reciprocal Rank Fusion:
where is a smoothing constant. Rank-based fusion is preferred over score interpolation because and are not calibrated on a common scale. The widened candidate pool lets the value head nominate prefixes that generation probability alone would have removed, while rank fusion prevents it from overriding generation quality outright. Figure 2(b) illustrates this process.
Why fusion starts at . Beam search is a prefix-dependent process, and the first-level SID determines the coarse region of the SID space in which all subsequent expansions are legal. In our experiments, applying discriminative fusion at level 1 substantially degraded the validity of decoded candidates because the value head could nominate coarse codes under which few well-formed advertisements exist. We therefore leave the first level untouched and intervene only after the hypothesis is anchored.
3.4.3 Post-Generation: Discriminative Re-Ranking. The two previous components inject value awareness before and during generation, yet the final ordering of the beam is still produced by a decoder trained for next-token prediction. The last stage therefore hands the ordering decision to an explicitly discriminative scorer. Once beam search returns the candidate set, a rank step re-scores every candidate and reorders the set. This scorer is not an external model but an additional step of the same network, making UniVGD a unified generative-discriminative framework rather than a generator followed by an independent ranker.
Rank token construction. The rank step must consume advertisement-side signals that are unavailable to the generative branch while remaining compatible with the token interface of the decoder. For candidate advertisement and each path , let denote the embedding of its complete SID, and let
denote the concatenation of its advertisement-side feature fields. These advertisement-side features include the eCPM-related signals used by the rank step. The rank token for path is
Thus, SID semantics and advertisement-side features are projected into one vector in the decoder token space. Appending to the user-side context and running one additional decoding step yields the path-specific candidate representation
where is the user-side memory reused without recomputation from generation. The rank-token projection and decoder parameters are shared across paths, while is the same for all paths of advertisement .
Discriminative heads. Two independent heads are attached to , each targeting a different facet of value, with each head sharing its parameters across SID paths. The value head is trained with the Lambda Loss objective on eCPM, so that the learned ordering is directly aligned with a position-aware ranking objective. The behavior head models the progressively deeper conversion chain and is trained with the neural ordinal logistic regression objective , preserving the monotone ordering of behavior-depth levels rather than treating them as independent binary tasks. Despite parameter sharing, both losses are computed separately for each SID path and aggregated using the same path weights as in Eq. (5):
At inference time, the highest-scoring path retained for each advertisement by the deduplication in Section 3.2 is used for reranking.
Because the two heads optimize different objectives on incompatible scales, we combine their rankings through Reciprocal Rank Fusion rather than score interpolation. The final reranking score is
The complete beam output is reordered according to Score(u,i).
4 Experiments
4.1 Online A/B Tests
We evaluate GR4AD-X through sequential online A/B tests on the production advertising system. Starting from the deployed GR4AD baseline, components are added cumulatively in the order shown in Table 1. Each row reports the cumulative revenue improvement of the corresponding system variant relative to the same baseline.
Table 1: Sequential online A/B results for GR4AD-X. Components are added cumulatively, and each row reports the cumulative revenue improvement over the deployed GR4AD baseline.
| Model Settings | ΔRevenue vs. GR4AD |
|---|---|
| Reliable SID Construction | |
| + Multi-Path SID | +0.58% |
| Efficient Model Scaling | |
| + Input & Encoder Scaling | +0.96% |
| + Vocabulary Scaling (PCGM) | +1.43% |
| + Stream Scaling (Diag. HC) | +1.72% |
| + Decision Depth Scaling (SARP) | +2.00% |
| Value-Aligned Generation (UniVGD) | |
| + PV-RSPO | +2.28% |
| + PV-BeamSearch | +2.49% |
| + Discriminative Reranking | +3.07% |
| GR4AD-X (Full) | +3.07% |
Reliable SID Construction. Multi-Path SID improves revenue by 0.58% over the deployed GR4AD baseline with the same beam width and decoding depth, without increasing inference latency. This gain highlights the benefit of alternative retrieval paths under a fixed decoding budget. Because the first token determines the subsequent generation subtree, pruning an advertisement's sole first-level prefix makes it unreachable in later decoding steps. Retaining multiple plausible first-level paths mitigates this limitation and improves revenue without changing the backbone.
Efficient Model Scaling. Building on Multi-Path SID, the five scaling dimensions increase the cumulative revenue lift over GR4AD from 0.58% to 2.00%, a gain of 1.42 percentage points. The consistent gains across successive additions provide online evidence for the effectiveness of the proposed scaling strategy. Section 4.3 further examines its effectiveness-efficiency trade-off.
Value-Aligned Generation. The three UniVGD components increase the cumulative revenue gain from 2.00% to 3.07%, contributing an additional 1.07% over the capacity-scaled system. PV-RSPO contributes 0.28% by introducing prefix-level eCPM supervision during training. PV-BeamSearch adds 0.21% by preserving high-eCPM prefixes during decoding, showing that training-time alignment does not eliminate the need for value-aware search. Discriminative reranking provides a further 0.58%, the largest individual increment among all evaluated components. This result confirms that fine-grained item-level comparison complements both prefix-level value learning and value-guided generation. Overall, the complete GR4AD-X system achieves a cumulative revenue improvement of 3.07% over the deployed GR4AD baseline.
4.2 Evaluation of Multi-Path SIDs
We assess Multi-Path SID from two complementary angles: the geometric structure of first-level centroid assignments (Figure 3a) and the resulting improvement in first-level target retention (Figure 3b).

(a) Distance-ratio distribution.
(b) First-level target retention.
Figure 3: Geometric motivation and first-level target retention of Multi-Path SID. (a) Distribution of the distance ratio over 7.556M advertisement embeddings with 16,384 first-level centroids. (b) First-level hit rate of Single-Path and Multi-Path SID at . Labels above each pair indicate relative improvements over Single-Path SID.
To quantify the ambiguity of single-path first-level assignments, we compute the distance ratio for each of the 7.556M item embeddings in our corpus, where and denote the Euclidean distances to the nearest and second-nearest first-level centroids, respectively. A ratio close to 1 indicates that two centroids are nearly equidistant, making the first-level assignment effectively arbitrary. Under a codebook of first-level centroids, 48.34%, 29.31%, and 7.21% of items have , , and , respectively. In particular, approximately 2.21M items have , meaning their second-nearest centroid is at most 5.26% farther than their nearest centroid. For these items, assigning a single first-level prefix is geometrically fragile: the alternative centroid is nearly as representative of the item's embedding, yet it is entirely unreachable under standard RQ-based SIDs. This mass of ambiguous assignments provides the geometric motivation for retaining multiple first-level candidates.
We measure first-level Hit@K as the fraction of evaluation examples for which at least one valid first-level SID token of the target advertisement appears among the decoder's top-K tokens, ranked by generation probability given the user context. As shown in Figure 3b, Multi-Path SID improves first-level Hit@K at all evaluated values of . At , the hit rate increases from 14.38% to 17.58%, a relative gain of 22.28%. At and , it increases from 51.25% to 55.78% and from 72.58% to 77.03%, respectively, yielding relative gains of 8.84% and 6.14%.
These results establish that Multi-Path SID addresses a systematic coverage gap in single-path quantization: a substantial fraction of items sit near first-level centroid boundaries, and providing an alternative path for those items directly increases the probability that the ground-truth SID prefix survives decoding.
4.3 Evaluation of Efficient Model Scaling
We evaluate five complementary scaling dimensions through sequential online A/B tests on the production advertising system. Starting from the 0.16B GR4AD model enhanced with Multi-Path SID, we add each dimension cumulatively in the order shown in Table 2. The table reports revenue improvements relative to the Multi-Path SID baseline, computed as , where and are variant and baseline revenues. In contrast, Table 1
Xiao et al.
Table 2: Sequential online A/B results of serving-efficient capacity scaling. Each proposed dimension is added on top of the preceding variant. Revenue improvement and QPS are normalized to the 0.16B Multi-Path SID baseline. The naive scaling result is derived from the same Multi-Path SID-enabled experiments in Figure 1, re-normalized to the 0.16B baseline.
| Variant | ΔRevenue | Parameters | QPS |
|---|---|---|---|
| Multi-Path SID baseline | - | 0.16B | 100% |
| + Input scaling | +0.20% | 0.16B | 100% |
| + Encoder scaling | +0.38% | 0.20B | 90% |
| + Vocabulary scaling | +0.85% | 0.46B | 95% |
| + Stream scaling | +1.13% | 0.49B | 90% |
| + Decision-depth scaling | +1.41% | 0.49B | 85% |
| Naive parameter scaling | +0.53% | 0.50B | 33% |
uses the deployed GR4AD system as its reference. Total parameter counts and normalized serving QPS are reported alongside revenue to characterize the effectiveness-efficiency trade-off.
Overall effectiveness-efficiency trade-off. The proposed strategy increases the parameter count from 0.16B to 0.49B, approximately a 3.1× expansion, and delivers a +1.41% revenue improvement while retaining 85% of baseline serving QPS. In comparison, enlarging the dense backbone to 0.50B yields only +0.53% improvement while retaining 33% QPS. At comparable total parameter counts, the proposed strategy therefore provides more than twice the relative revenue improvement and serving throughput of naive backbone scaling.
Per-dimension analysis. Input scaling enriches user-profile and contextual signals while preserving the input sequence length, yielding a +0.20% revenue improvement with no change in parameter count or QPS at the reported precision. Encoder scaling further raises the improvement to +0.38%, with the resulting 0.20B model retaining 90% of baseline QPS.
Vocabulary scaling with PCGM provides the largest increase in revenue lift within the scaling group. It expands the model from 0.20B to 0.46B and raises the cumulative improvement to +0.85%, while QPS recovers from 90% to 95%. PCGM replaces the dense FFN gate projection with prefix-indexed memory lookup, expanding parametric memory while reducing part of the dense computation. The observed throughput improvement is consistent with this computation-memory trade-off.
Stream scaling with diagonal Hyper-Connections further improves revenue by expanding residual information pathways while keeping each attention and FFN sublayer evaluated only once. The resulting 0.49B model achieves a +1.13% cumulative improvement at 90% of baseline QPS. Decision-depth scaling with SARP then raises the improvement to +1.41% at 85% QPS, with no visible parameter-count change at the reported precision. SARP also reduces the first-level SID loss by approximately 3%, consistent with improved first-level prediction.
These results suggest that parameter count alone does not fully capture the effectiveness-efficiency trade-off. Input and decision-depth scaling improve revenue with minimal parameter changes,
Table 3: HitRate@K against eCPM at three SID scopes. Base uses generation probability; UniVGD uses probability at Lvl-1 and the RRF beam-selection score thereafter. Full excludes final reranking.
| Base Model | + UniVGD | |||||
|---|---|---|---|---|---|---|
| Lvl-1 | Lvl-1&2 | Full | Lvl-1 | Lvl-1&2 | Full | |
| HR@10 | 0.017 | 0.019 | 0.021 | 0.145 | 0.287 | 0.298 |
| HR@50 | 0.071 | 0.075 | 0.078 | 0.194 | 0.329 | 0.323 |
| HR@100 | 0.216 | 0.224 | 0.221 | 0.306 | 0.441 | 0.427 |
while PCGM substantially expands memory capacity without proportionally reducing throughput. The findings favor complementary capacity scaling over dense backbone expansion; each gain is measured conditional on prior variants, not in isolation.
4.4 Evaluation of Value Alignment
We measure alignment using HitRate@K (HR@K). For requests sampled from online logs, we use the complete candidate information at the final ranking stage, including eCPM and generation scores at each SID level. HR@K is the overlap between the top-K advertisements by eCPM and by generation score, divided by K, averaged over requests. We evaluate Lvl-1, Lvl-1&2, and Full, using the first, first two, and all L SID levels, respectively. Base includes all GR4AD-X optimizations except UniVGD.
Baseline misalignment. The left columns of Table 3 show that the base model has low alignment across all three scopes. HR@10 is 0.021, indicating that only approximately 2.1% of the top-10 eCPM advertisements are also ranked within the top 10 by generation score. More importantly, the three scopes produce similar results across all evaluated thresholds. This consistency suggests that the mismatch is not concentrated at a particular SID depth and cannot be addressed by modifying only one decoding level. Instead, it reflects a global discrepancy between the next-token prediction objective and commercial value, motivating value-alignment interventions throughout the generation process.
Alignment after UniVGD. The right columns of Table 3 report the results after applying UniVGD. UniVGD combines generation probabilities with discriminative scores during generation to obtain the final generation score. Full HR@10 increases from 0.021 to 0.298, an approximately 14× relative improvement. Even under the most conservative setting, Lvl-1 HR@100 increases from 0.216 to 0.306.
The Lvl-1 results further distinguish the effects of the pre-generation and in-generation components. PV-BeamSearch deliberately does not apply discriminative fusion at the SID level 1, as described in Section 3.4.2. Nevertheless, Lvl-1 HR@10 increases from 0.017 to 0.145. This improvement originates from PV-RSPO, which propagates prefix-level eCPM rewards through the SID tree. The generative distribution at each layer is recalibrated by modulating the shared user representations and the SID embeddings used as decoder queries. These results demonstrate that the two mechanisms are separable and complementary: PV-RSPO improves the model's internal value representation, while PV-BeamSearch additionally rescues high-value prefixes that remain underestimated by generation probability during decoding.
UniVGD reuses the decoder backbone with essentially unchanged parameter count and one additional token-generation step for reranking. It retains 75% of Base QPS; cumulative revenue lift over GR4AD rises from 2.00% to 3.07% (Table 1), a difference of 1.07 percentage points.
5 Conclusion
We presented GR4AD-X, a production generative advertising recommendation system that advances reliable SID construction, serving-efficient capacity scaling, and value-aligned generation. Multi-Path SID improves representation reliability by retaining alternative first-level assignments and completing each with a separate residual quantization trajectory. Multi-dimensional capacity scaling strengthens model capability under strict serving constraints, while UniVGD aligns generation with commercial value through prefix-level reward optimization, value-guided beam pruning, and discriminative reranking. Deployed in Kuaishou's large-scale advertising system, GR4AD-X supports high-traffic real-time candidate generation. Offline evaluations and large-scale online A/B tests validate each component, with the full system achieving a cumulative revenue improvement of 3.07% over the deployed GR4AD baseline.
References
[1] Vladimir Baikalov, Iskander Bagautdinov, and Sergey Muravyov. 2026. Mitigating Collaborative Semantic ID Staleness in Generative Retrieval. arXiv preprint arXiv:2604.13273 (2026).
[2] Ben Chen, Xian Guo, Siyuan Wang, Zihan Liang, Yue Lv, Yufei Ma, Xinlong Xiao, Bowen Xue, Xuxin Zhang, Ying Yang, et al. [n.d.]. Onesearch: A preliminary exploration of the unified end-to-end generative framework for e-commerce search, 2025a. URL https://arxiv.org/abs/2509.03236 ([n.d.]).
[3] Xin Cheng, Wangding Zeng, Damai Dai, Qinyu Chen, Bingxuan Wang, Zhenda Xie, Kezhao Huang, Xingkai Yu, Zhewen Hao, Han Zhang, et al. 2026. Conditional memory via scalable lookup: A new axis of sparsity for large language models. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 4968–4990.
[4] 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.
[5] 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.
[6] Yupeng Hou, Jiacheng Li, Ashley Shin, Jinsung Jeon, Abhishek Santhanam, Wei Shao, Kaveh Hassani, Ning Yao, and Julian McAuley. 2025. Generating long semantic ids in parallel for recommendation. In Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 2. 956–966.
[7] Jie Jiang, Yangru Huang, Zeyu Wang, Changping Wang, Yuling Xiong, Jun Zhang, and Huan Yu. 2026. Spend Search Where It Pays: Value-Guided Structured Sampling and Optimization for Generative Recommendation. In Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 2. 2098–2109.
[8] Jie Jiang, Jun Zhang, Yi Li, Yue Liu, Changping Wang, Yuan Wang, Yuling Xiong, Xun Liu, Haiyang Wu, Qian Li, et al. 2026. GPR: Towards a generative pre-trained one-model paradigm for large-scale advertising recommendation. In Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 2. 7477–7488.
[9] Clark Mingxuan Ju, Liam Collins, Leonardo Neves, Bhuvesh Kumar, Louis Yufeng Wang, Tong Zhao, and Neil Shah. 2025. Generative recommendation with semantic ids: a practitioner's handbook. In Proceedings of the 34th ACM International Conference on Information and Knowledge Management. 6420–6425.
[10] 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 kuaishou. In Proceedings of the 34th ACM International Conference on Information and Knowledge Management. 5915–5922.
[11] Haohao Qu, Wengqi Fan, Zihuai Zhao, and Qing Li. 2025. Tokenrec: Learning to tokenize id for ilm-based generative recommendations. IEEE Transactions on
Knowledge and Data Engineering (2025).
[12] 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.
[13] Ranajoy Sadhukhan, Sheng Cao, Harry Dong, Changsheng Zhao, Attiano Purpura-Pontoniere, Yuandong Tian, Zechun Liu, and Beidi Chen. 2026. Stem: Scaling transformers with embedding modules. arXiv preprint arXiv:2601.10639 (2026).
[14] 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.
[15] 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.
[16] 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.
[17] Yejing Wang, Shengyu Zhou, Jinyu Lu, Ziwei Liu, Langming Liu, Maolin Wang, Wenlin Zhang, Feng Li, Wenbo Su, Pengjie Wang, et al. 2026. Nezh: A zero-sacrifice and hyperspeed decoding architecture for generative recommendations. In Proceedings of the ACM Web Conference 2026. 8073–8082.
[18] Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed Chi, and Quoc V. Le. 2022. Chain-of-Thought Prompting Elicits Reasoning in Large Language Models. In Advances in Neural Information Processing Systems.
[19] Shikang Wu, Hui Lu, Jinqiu Jin, Zheng Chai, Shiyong Hong, Junjie Zhang, Shanlei Mu, Kaiyuan Ma, Tianyi Liu, Yuchao Zheng, et al. 2026. MSN: A Memory-based Sparse Activation Scaling Framework for Large-scale Industrial Recommendation. In Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 2. 8258–8266.
[20] Zhenda Xie, Yixuan Wei, Huangqi Cao, Chenggang Zhao, Chengqi Deng, Jiashi Li, Damai Dai, Huaozu Gao, Jiang Chang, Kuai Yu, et al. 2025. mhc: Manifold-constrained hyper-connections. arXiv preprint arXiv:2512.24880 (2025).
[21] 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.
[22] 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.
[23] Weiqin Yang, Bohao Wang, Zhenxiang Xu, Jiawei Chen, Shengjia Zhang, Jingbang Chen, Canghong Jin, and Can Wang. 2026. BEAR: Towards Beam-Search-Aware Optimization for Recommendation with Large Language Models. arXiv preprint arXiv:2601.22925 (2026).
[24] Abbas Zeitoun, Lucas Torroba-Hennigen, and Yoon Kim. 2026. Hyperloop Transformers. arXiv:2604.21254 [cs.LG] https://arxiv.org/abs/2604.21254
[25] Xinxun Zhang, Yuling Xiong, Jiale Zhou, Zhengkai Guo, Zhennan Pang, Junbang Huo, Jingwen Wang, Xuyang Sun, Enming Zhang, Jiaguang Jin, et al. 2026. Unified Value Alignment for Generative Recommendation in Industrial Advertising. arXiv preprint arXiv:2605.05803 (2026).
[26] 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.
[27] 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).
[28] Guorui Zhou, Honghui Bao, Jiaming Huang, Jiaxin Deng, Jinghao Zhang, Junda She, Kuo Cai, Lejian Ren, Lu Ren, Qiang Luo, et al. 2025. Openonerec technical report. arXiv preprint arXiv:2512.24762 (2025).
[29] 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).
A Experimental Setup
Deployment setting. All online experiments are conducted on the Kuaishou advertising platform, which serves more than 400 million users. The production system integrates reward estimation, online
Xiao et al.
learning, and real-time indexing for continuous model evolution. Serving optimizations enable more than 500 QPS per NVIDIA L20 GPU with end-to-end latency below 100 ms. The GR4AD baseline refers to the deployed production system [22].
Online A/B protocol. Each variant receives a randomly assigned traffic share of 5% and is evaluated for seven days. All reported revenue improvements are statistically significant at the 95% confidence level, corresponding to under a two-tailed -test on daily metric values.
Model configuration. The base backbone contains 0.16B parameters. Each SID consists of levels, and the first-level codebook contains centroids. Multi-path assignment retains first-level candidates. Beam search uses width , while PV-BeamSearch considers a relaxed pool of size . The RRF smoothing constant is . SARP uses coarse prototypes obtained by reclustering the frozen first-level SID centroids, with temperature and cosine-loss weight . The multi-stream backbone contains residual streams.