arXiv:2608.28905cs.LGAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.28905

Off-Policy Evaluation for Semantic ID Recommenders: Does the Model's Own Code Hierarchy Help?

Artem Betlei

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

Abstract

Generative recommenders increasingly emit semantic IDs (SIDs): each item is a short sequence of hierarchical discrete codes from a residual quantizer, decoded autoregressively. Before spending scarce A/B-test, a team may decide offline which decoder or reranking variants are worth testing - a job for off-policy evaluation (OPE). We ask a simple question: can the model's own SID tree serve as the action abstraction for that OPE? Our answer has three parts. (i) Under the near-argmax logging real recommenders use, per-item OPE is hopeless - as item-level effective sample size is usually small on production logs - but marginalizing items to code-prefix clusters restores estimable support and cuts error. (ii) This gain is thanks to coarsening, not to the hierarchy specifically; but the SID tree is what makes coarsening feasible in a generative system - each cluster's mass is exactly and cheaply returned by the decoder, whereas flat clustering requires enumerating item/leaf masses that a code-only decoder does not directly expose. (iii) Resolution depth is the operative knob - coarser under scarce support - and a conditional bias bound links the coarsening bias to the quantizer's worst-case reconstruction residual and the target - logging divergence.

1 Introduction

Generative retrieval - encoding each item as a short sequence of hierarchical discrete codes called semantic ID (SID), and decoding next item SID autoregressively - is moving into production recommenders [8, 17]. Every change to such a system (e.g. new decoder, decoding temperature, or reranking rule) shifts the distribution of items it surfaces. Deciding which candidate changes deserve scarce, costly A/B-test is the role of off-policy evaluation (OPE): estimate a candidate policy's online reward from logs collected under the incumbent, so candidates can be ranked and filtered before live test.

The obstacle is how production systems log. Exploration is typically near-argmax - weighted by item score, not uniform - so a handful of items dominate each impression and the importance weights of per-item inverse propensity scoring (IPS) explode. On our production logs the item-level effective sample size (ESS) is only ≈0.003 of the raw count: per-item OPE is not a usable decision tool. Our scope is the item-selection policy on a fixed catalog (logging and target choose items from the same pool); we do not address a changed candidate generator, which alters the action set and may surface items with no logged support [16].

A SID model hands us a ready-made action abstraction: its code prefixes form a nested partition of the catalog. Marginalizing per-item propensities up to a code-prefix cluster pools support and makes weights estimable again, at the cost of a within-cluster bias. Crucially, an autoregressive decoder already produces each prefix's probability exactly, as a product of per-level conditionals, without

summing over the catalog - so code depth is a native, cheap resolution knob. Whether a SID tree is reward-coherent enough for this to pay off is not obvious, and depends on the codes.

We provide following contributions: i) We frame OPE where the action abstraction is the model's SID tree, and give a production diagnostic showing per-item OPE is infeasible under realistic near-argmax logging. ii) We propose then to marginalize to code prefixes; a conditional bias bound (Prop. 3.1) ties the coarsening bias of cluster marginal-IPS to the quantizer's worst-case reconstruction residual and the target - logging divergence. iii) We conduct series of experiments including support recovery, distinct values of SID tree, cross-domain comparison of the estimators, embedding sources, quantizers and depth selection from logged data.

Related work. Large-action OPE supplies the estimators we reuse at code granularity: MIPS reweights over a coarser action embedding, trading variance for marginalization bias [10]; OffCEM adds a reward model plus a residual weight, so the bias is only what the model misses [11]; Policy Convolution (PC) smooths over an embedding kernel whose bandwidth plays the role of resolution [9]; POTEC decomposes into clusters for policy learning [12]. All take a flat embedding or ad-hoc clustering as given. The nearest generative-retrieval work adapts doubly-robust estimation inside an off-policy REINFORCE learning objective over dense two-tower embeddings, not over a code tree [7]; to our knowledge no prior work evaluates policies on the SID tree itself. Others learn action embeddings [1] or select estimators and hyperparameters from data [4, 15] - building blocks for the open depth-selection step (RQ5). Closest in spirit, the marginal density-ratio estimator [14] learns its ratio from the base per-action propensities, so it reintroduces the item-level dependence a code-only decoder does not expose. We instead test the retriever's native tree.