arXiv:2611.05799cs.IRNov 2026

Manuscript Offprint

arXiv:2611.05799

Item Representations Matter: Bridging Hard Semantic IDs and Soft Prototype Mixtures for Generative Retrieval

Vicente Balmaseda, Dongqi Fu, Jiarui Feng, Ren chen, Hanqing Zeng, Tianxin Wei, Yinglong Xia, Tianbao Yang, Hong Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Vicente Balmaseda¹,²,*, Dongqi Fu¹, Jiarui Feng¹, Ren Chen¹, Hanqing Zeng¹, Tianxin Wei¹, Yinglong Xia¹, Tianbao Yang², Hong Li¹

¹Meta, ²Texas A&M University

*Work done at Meta

Modern recommender systems rely on generative retrieval techniques to predict the next item either as discrete codes or as a continuous vector. On the one hand, Semantic IDs (SIDs) give discrete models shared parameters and pretrained semantic structure, but discretizing items into hard codes discards some information from the original content embeddings. On the other hand, continuous models avoid quantization, yet typically use flat item lookup tables with no explicit parameter tying across items. We ask whether a continuous recommender can introduce shared structure without making it a discrete bottleneck. We propose CAP-Mix, a flow recommender that represents each item as a soft mixture of shared prototypes plus an item-specific vector. The assignments, prototypes, and item vectors are trained jointly, and the soft representation is retained at inference. Pretrained information is optional: SID responsibilities can serve as a prior over assignments, while a full content embedding can initialize the item-specific vector without changing the initial flat table. In matched comparisons on three datasets, CAP-Mix improves over a flat table on the two sparse Amazon datasets and yields a small gain on Steam when trained without pretrained information. Given only an offline SID, it outperforms a hard table built from the same tokenizer by 4.45%–14.90% in HR@5 ↑. Given the full content embedding, it matches or improves a strong flat table while hard assignments regress on the sparse Amazon datasets. Overall, averaged across six benchmarks, CAP-Mix improves HR@5 ↑ and NDCG@5 ↑ by +6.9% and +13.6% relative to the best evaluated baseline for each dataset and metric, while delivering 1.4–161× the inference throughput ↑ of the discrete baselines in our experiments.

Correspondence: Vicente Balmaseda (vibalcam@tamu.edu), Dongqi Fu (dongqifu@meta.com)

Meta

1 Introduction

Generative retrieval techniques enable modern recommender systems to perform large-scale next-item retrieval by learning the next-item distribution and generating recommendations from it, using either discrete tokens (Rajput et al., 2023) or continuous item embeddings (Li et al., 2026b). Either way, a recommender needs an item representation table (or lookup table) as input, i.e., the map from a catalog to the representations it generates or scores against, and how that map is built is a lever in its own right, open to external information. Traditionally, it is flat: one independently parameterized vector per item, with no explicit parameter tying between item rows. Recently, discrete methods have replaced that default, whereas continuous methods have retained it.

Discrete models tokenize each item embedding into codes and emit those codes autoregressively (Deng et al., 2025; Rajput et al., 2023) or by masked diffusion (Shah et al., 2025). They owe much of their strength to those codes being Semantic IDs (SIDs) (Singh et al., 2024). A residual quantizer (van den Oord et al., 2017; Lee et al., 2022; Tong et al., 2026) turns each item's pretrained content embedding into a tuple of codes, so the item vocabulary becomes a clustering (Ju et al., 2025). Two things follow: items sharing a code share the parameters attached to it, so their gradients are aggregated through the shared codeword, introducing explicit cross-item coupling and thereby pooling training signal across items; and because the codes are quantized from a content embedding, that grouping imports semantic structure. However, tokenization has two costs: committing each item to a single codeword at each level generally introduces reconstruction error, and distinct items may also collide on the same code tuple. A recent line of work makes the tokenizer itself adaptive by regularizing it (Wang et al., 2024), coupling it to the recommender (Liu et al., 2025a), or relaxing the assignment so gradients pass through it (Li et al., 2026a; Fu et al., 2026), but recommendation is still organized around emitting discrete codes, and both costs remain: they stem from tokenization itself, not from when the tokenizer is fit.

Continuous models instead represent each item as a vector in Rd\mathbb{R}^d and retrieve those nearest to the one they predict (Wang et al., 2023; Liu et al., 2025b; Li et al., 2026b). They do not tokenize and are free to seed the content embedding straight into their item table, so semantic structure reaches them without any codes. What they do not obtain automatically is explicit cross-item parameter sharing: every item row remains independently parameterized. This raises our central question: can a continuous generative recommender obtain adaptive cross-item parameter sharing without converting items into discrete tokens?

A simple way to use an SID in a continuous recommender is to replace its flat lookup table with a hard SID table whose assignments are frozen. If the tokenizer assigns item ii the code ci(s)c_i^{(s)} at level ss, then its embedding is xi=∑sC(s)[ci(s)]+ri\mathbf{x}_i = \sum_s C^{(s)}[c_i^{(s)}] + \mathbf{r}_i, where C(s)C^{(s)} contains the codeword vectors and the item-specific vector ri\mathbf{r}_i can be initialized from the original content embedding. This preserves continuous retrieval while transferring the SID's parameter sharing: items with the same code update a shared vector. However, our diagnostic comparison (Appendix F, Table 6) shows that, without content embeddings, semantic assignments outperform matched random assignments, indicating that the imported structure is useful. When the full content embedding initializes ri\mathbf{r}_i, by contrast, frozen hard semantic assignments hurt, whereas random assignments remain near the flat baseline. These observations suggest that sharing can help, but that a frozen semantic partition can become restrictive when its underlying continuous representation is already available. This motivates shared structure that adapts jointly with the recommender while retaining item-specific degrees of freedom.

Following these observations, we propose CAP-Mix, a flow recommender whose item table is a co-adaptive mixture of shared prototypes plus an item-specific vector. Rather than selecting one codeword per level, an item softly mixes over all of them, so the grouping is differentiable and the ranking objective moves it continuously instead of by discrete reassignment, while the item-specific vector keeps it from being reduced to the group it lands in. We call this a prototype-mixture item table:

xi  =  γS∑s=1SAi(s)C(s)+ri,∑k=1KAi(s)[k]  =  1,(1)\mathbf{x}_{i}\;=\;\frac{\gamma}{S}\sum_{s=1}^{S}A_{i}^{(s)}C^{(s)}+\mathbf{r}_{i},\qquad\sum_{k=1}^{K}A_{i}^{(s)}[k]\;=\;1, \tag{1}

with C(s)C^{(s)} the KK shared prototypes of level ss, Ai(s)A_{i}^{(s)} the weights item ii places on them, ri\mathbf{r}_{i} the item's own vector, and γ>0\gamma>0 a scale factor, all learned with the flow in a single stage.

Empirically, we evaluate CAP-Mix across six public benchmarks (Table 2), where CAP-Mix improves average HR@5 ↑ and NDCG@5 ↑ by +6.9% and +13.6%, respectively, relative to the strongest evaluated baseline (FlowRec, TIGER, or MaskGR) for each dataset and metric, while delivering 1.4−161×1.4-161\times the inference throughput ↑ of the evaluated discrete baselines (Table 3).

References (37)