Manuscript Offprint
arXiv:2608.28905Off-Policy Evaluation for Semantic ID Recommenders: Does the Model's Own Code Hierarchy Help?
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.
Marginalizing to the tree. The core move is to reweight at cluster granularity instead: , a hierarchical MIPS estimator [10]. It corrects the target's distribution over clusters while leaving the logging distribution within each cluster untouched, so its only bias is within-cluster target - logging mismatch
(Section 3). It requires only cluster positivity - wherever - far weaker than per-item positivity. Coarser increases support but raises the within-cluster bias: depth is the bias - variance knob.
Why the tree, not any clustering. For an autoregressive SID policy the cluster mass is not a sum over but the exact prefix probability , available in directly from the decoder. Forming the same mass for a flat clustering would require the item-level propensities and an sum - and a generative retriever emits codes, not a normalized item distribution, so those item propensities are typically unavailable. The SID tree is thus the cluster representation one can actually run online. (If several items share a full code, that leaf is simply a small cluster; nothing changes.) We verify this equivalence is exact, not approximate: building an autoregressive tree policy and reading masses as prefix products reproduces the item-summed cluster marginals to machine precision at every level (App. A) - so the item-sum cluster masses used in our controlled experiments are precisely what a decoder returns for free.
3 Bias and Quantization Quality
Intuition. Because marginalization exactly matches the target's cluster masses, the estimator can only err inside clusters: its bias is how much and disagree within a cluster, weighted by how much reward varies there - the informal counterpart of OffCEM's within-cluster residual effect [11]. Reward-coherent codes make that variation small. Quantization quality is the natural proxy: items in a cluster share a reconstruction , so if reward is smooth in the embedding, within-cluster reward spread is controlled by the reconstruction residual.
Bound. Let reconstruct from its first codes, let , and let be the worst-case residual; is the mean-squared reconstruction error a quantizer is trained to minimize. Write for the -weighted within-cluster disagreement, where is the conditional a policy induces inside cluster . Assume (A0) cluster positivity, known propensities and ; (A1) no direct effect, - MIPS's assumption [10], imposed here at the full embedding so coarsening bias is bounded rather than zero; (A2) is -Lipschitz on a set containing every item embedding and cluster reconstruction.
PROPOSITION 3.1. Let be the error of the level- cluster marginal-IPS estimator (MIPS) against the true target value. Under (A0) - (A2),
and the constant in the second, item-level form cannot be improved (proof in App. B). If in addition , both forms hold with replaced by .
Reading the bound. Two quantities control the bias, and mean reconstruction error is neither. The worst-case residual comes first: a finer codebook tightens the bound only insofar as it improves the worst-reconstructed items, so it can lower while leaving untouched - and reaching the form costs a codebook-specific , so is not comparable across tokenizers or sources. The second is
within-cluster disagreement: coarsening creates no bias where policies agree conditionally, however far apart they are across clusters. The item-level form discards that, hence the ordering above.
Three limits, detailed in App. B: the bound covers raw cluster marginal-IPS only; it beats the trivial only while the quantity stays below 1; and (A1) holds only approximately in our testbeds, so we use it to reason about the coarsening mechanism, not to predict measured bias. Variance moves the other way: cluster marginal-IPS has the usual marginalized-weight second moment [10], which falls as coarsening pools support. Closed-form variance is unwieldy for the estimators we headline, so we track it via ESS (an inverse-variance proxy; RQ1's collapse is a weight-variance blow-up) and bootstrap CIs.
4 Experiments
We answer six questions. RQ1: is per-item OPE feasible on real reco logs? RQ2: does code-cluster marginalization recover support, and how do known estimators compare at code granularity? RQ3: when does the hierarchy help, and how does the best resolution move with support? RQ4: how do code source and tokenizer affect it? RQ5: can adaptive resolution beat a fixed level? RQ6: does it generalize to a second dataset?
4.1 Datasets and protocol
Production logs (motivation, RQ1). A large e-commerce recommender explores by score-weighted (Plackett - Luce) sampling, so served-item propensities are recoverable from the logged normalizer. Lacking a randomized-exposure oracle, we use these logs for support diagnostics only (App. A).
KuaiRand (primary controlled testbed, RQ2 - RQ5). Its random-exposure slice [5] shows items uniformly at random, so per-item click rates are unbiased and the oracle is identified without exposure confounding. We split by row: one half sets the click rates building the logging and target policies, the disjoint half is the evaluation truth - both the data-generating process (DGP) for rewards and the oracle value . No estimator sees evaluation outcomes through the policies: the protocol is leakage-free (App. A). It is a catalog bandit over items with content-metadata, semantic, collaborative and fused code trees (§4.5).
Amazon Reviews (cross-domain replication, RQ6). Musical Instruments from Amazon Reviews 2023 [6]: items with reviews per held-out half, same reward template with as oracle and DGP. Ratings are self-selected rather than randomly exposed, so that oracle is confounded and Amazon replicates the pattern rather than identifying it.
Estimators. All are existing methods, run at two granularities marked by a subscript (EST on items, EST on SID prefix clusters): item-level IPS and SNIPS; cluster IPS and SNIPS (MIPS, SNIPS), reweighting by ; the cluster direct method DM; OffCEM [11], whose original configuration pairs the cluster-level residual weight with an action-level reward model - a standard doubly-robust form [3] - reported as OffCEM, alongside a coarsened cluster-level variant OffCEM we add for symmetry; and PC [9], an embedding kernel whose bandwidth is a continuous resolution knob (so no hier variant), at untuned . App. A gives formulas and the two deliberate departures from published OffCEM.
A seed is one simulated log ( draws from plus simulated rewards); RMSE is taken over seeds, 200 for the headline comparison and support sweep, 100 per fit across 10 fits for the quantizer ablation, 80 for Amazon. We report mean the half-width of a 95% bootstrap percentile interval and call a difference significant when its paired interval excludes zero, with no multiplicity correction.
Default tree. Codes are residual K-Means unless stated; RQ4 finds the tokenizer does not move these results.
Depth selection. Unless stated otherwise hier estimators pick the level by error against the oracle on a disjoint validation split of seeds, so they are oracle-selected diagnostics - an upper bound on what depth selection can buy. Logged-data-only, deployable alternative (SLOPE [13], estimator variance alone) is reported (RQ3).
4.2 Per-item OPE is infeasible (RQ1)
RQ1 asks whether per-item OPE is usable on real recommender logs. It is not, which motivates everything that follows. On production logs the served item's propensity is highly concentrated (median 0.04–0.15; 6–16% of impressions above 0.9), so the item-level effective sample size (ESS) is only 0.003 of the sample (Table 5, App. A). So per-item IPS is not a credible tool, motivating for coarsening.
4.3 Coarsening recovers support and improves accuracy (RQ2)
RQ2 has two parts: does marginalizing to code clusters restore the support item-level OPE lacks, and does the estimator choice matter?
Support is restored, and converts into accuracy. On the candidate-logged production slice, coarsening lifts the greedy-target ESS by (Table 5). On the KuaiRand oracle, where error is measurable, Table 1a compares both granularities: SNIPS attains 0.155 RMSE against 0.087 for SNIPS.
At code granularity, no estimator dominates. Hierarchical MIPS/SNIPS, cluster DM, and both OffCEM variants perform close to one another. PC, which uses no code tree, beats the best cluster estimator by a paired at , but that advantage is bandwidth-selected - PC degrades at - and it needs the item-level propensities of , so a code-only deployment cannot count on it. What generalizes across the estimators is change in granularity.
Is the gain due to the tree, or to coarsening in general? To separate the two we replace the SID tree with a flat -means clustering of the same embedding at matched cluster counts (Table 1b). Flat clustering recovers the itemcluster gain in full, and at no level is either representation significantly more accurate than the other: all four paired differences contain zero. Support recovery is therefore a property of coarsening, not of the hierarchy - and the two representations are, on accuracy, interchangeable.
The tree's consistent advantage is instead feasibility. A deployed generative retriever reads cluster masses off its decoder exactly, in , whereas a flat clustering of the same catalog needs the item-level propensities such a system does not expose (). That is a separate axis from the RMSE comparison above.
Ranking candidates, not just estimating values. Gating is a ranking problem: a team must order candidates, not measure any one precisely. We rank 16 simulated variants against the oracle (Table 2).
Table 1: RQ2, KuaiRand, leakage-free (, ; hier at the oracle-selected level). (a) Estimator comparison. (b) SID tree vs. flat -means at matched cluster counts (metadata, OffCEM), each row refitted under 10 shared clustering seeds; is the paired tree–flat difference.
| estimator | RMSE |
|---|---|
| IPSitem | 1.57 ± 0.7 |
| SNIPSitem | 0.155 ± 0.022 |
| MIPShier | 0.094 ± 0.009 |
| SNIPShier | 0.087 ± 0.007 |
| DMhier | 0.087 ± 0.007 |
| OffCEMhier | 0.088 ± 0.007 |
| OffCEMacthier | 0.086 ± 0.007 |
| PC (h=0.1) | 0.076 ± 0.006 |
| PC (h=0.2) | 0.123 ± 0.005 |
(a)
| # clust. (lvl) | tree | flat |
|---|---|---|
| 8 (L1) | 0.112 | 0.114 |
| 40 (L2) | 0.097 | 0.097 |
| 126 (L3) | 0.094 | 0.093 |
| 288 (L4) | 0.099 | 0.090 |
(b)
The method applies to changes sharing a single SID tree - a new decoder, decoding temperature, or reranking rule - since both policies' masses come from the same partition; a re-tokenization would move the tree itself and is out of scope. Within that scope we test a cross-cluster family, whose variants shift preference along embedding directions and so move mass between prefixes. Here SNIPS ranks better than SNIPS, with the margin widening as support grows scarcer (Kendall 0.13 vs. 0.08 at ).
Two boundaries apply. When variants differ only within clusters, coarsening averages away the very differences that distinguish them, and SNIPS ranks at least as well. And depth here is pre-specified at level 3 rather than validated, while the deployment-regret gap falls within confidence intervals. We therefore claim improved rank correlation on cross-cluster changes, a narrower result than a general selection guarantee.
Table 2: RQ2 (selection). Ranking 16 candidate variants off one log against the oracle ranking (level 3, pre-specified). For realistic cross-cluster variants, SNIPS ranks better than SNIPS, more so under scarce support.
| M | estimator | Kendall | top-3 hit |
|---|---|---|---|
| 1000 | SNIPSitem | 0.08 ± 0.03 | 10% |
| 1000 | SNIPShier | 0.13 ± 0.03 | 12% |
| 5000 | SNIPSitem | 0.15 ± 0.03 | 6% |
| 5000 | SNIPShier | 0.18 ± 0.02 | 14% |
4.4 When does the hierarchy help? (RQ3)
RQ2 established that coarsening helps on average; RQ3 asks when, and how far to coarsen. Available support governs both.
Fig. 1 varies the code level directly. Under scarce support, code clustering halves SNIPS RMSE and an intermediate level minimizes error - coarse enough to pool support, fine enough to keep clusters reward-coherent; optimum moves finer with more data.
Table 3 varies support directly. Raising from 1000 to 10000 narrows the granularity gap: coarsening buys most where support is scarcest, which is what the bias - variance account predicts.

Figure 1: RQ3. KuaiRand RMSE by code level (coarse→fine), metadata source, two support regimes (200 seeds, 95% bootstrap bands). Under scarce support (left) an intermediate level is best; with more data (right) the optimum moves finer.
Table 3: RQ3. KuaiRand support sweep, leakage-free, content-metadata codes ( seeds; RMSE). oracle is at the oracle-selected level (an upper bound); SLOPE selects that level from logged data alone - applied to , whose per-level standard errors the rule needs - and is therefore deployable. SLOPE beats at every , capturing 67 - 81% of the available gain. The row is Table 1a's configuration; 0.086 vs. 0.087 is the independent run's seed draw.
| M | SNIPSitem | SLOPE (deployable) | oracle-selected |
|---|---|---|---|
| 1000 | 0.251 | 0.133 | 0.105 |
| 5000 | 0.155 | 0.109 | 0.086 |
| 10000 | 0.160 | 0.102 | 0.084 |
The table also answers the question a deployment actually faces, since the oracle-selected column is not available in practice. Choosing the level with SLOPE - from logged data alone - still beats at every , recovering 67 - 81% of the gap between item-level OPE and the oracle-selected upper bound. So depth selection is not a barrier, though the residual gap to the oracle is open (RQ5).
The pattern also replicates cross-domain (RQ6): on Amazon Reviews it holds at every support level, with narrower margins and a confounded oracle, so we read it as directional rather than a second identification (Table 6, App. A). The scarce regime is the production-relevant one, since the binding quantity is effective support and near-argmax logging drives item-ESS to a small fraction of the raw count even on 17M impressions (RQ1). KuaiRand is not calibrated to production - domains, rewards, and policies differ, and its simulated item-level ESS is lower - yet it spans low-effective-support regime.
4.5 Code construction and tokenizer (RQ4)
RQ4 varies the two choices upstream of the estimator: what to embed (content-metadata, semantic, collaborative, fused) and how to quantize it (residual k-means or a trained RQ-VAE). Separating them needs care, because the quantizer's fit is itself random: varying only that draw moves best-level RMSE by up to 0.03 - 0.06 on the metadata tree - more than the tokenizer contrasts we set out to measure - so intervals over simulation seeds alone exclude the dominant variance component. We refit every cell under 10 independent quantizer seeds, paired across tokenizers (Table 4).
Under that accounting source is a large effect and tokenizer is not. Best-level RMSE ranges from 0.084 (metadata) to 0.131 (collaborative), a spread of 0.047 against the 0.008 separating cluster estimators in Table 1a, whereas the paired RQ-VAE-k-means differences are -0.003, -0.001 and +0.000 for metadata, semantic and collaborative, all containing zero; only fused differs, at -0.004, one of four nominal tests.
Table 4: RQ4. Quantizer ablation (KuaiRand, leakage-free, , 100 simulation seeds per fit), oracle-selected-level RMSE. Each cell is refitted under 10 independent quantizer seeds; the interval is over those seeds, so it covers variability in the fitted tree and not only in the evaluation. is the paired RQ-VAE-k-means difference (both fitted under the same seed). Source separates the sources by up to 0.047; every tokenizer difference except fused contains zero.
| source | Residual K-Means | RQ-VAE | Δ (paired) |
|---|---|---|---|
| metadata | 0.087 [.075,.098] | 0.084 [.078,.089] | -0.003 [-.016,+.010] |
| semantic | 0.097 [.096,.098] | 0.096 [.094,.097] | -0.001 [-.003,+.001] |
| collaborative | 0.131 [.127,.134] | 0.131 [.130,.131] | +0.000 [-.003,+.004] |
| fused | 0.119 [.116,.125] | 0.115 [.114,.116] | -0.004 [-.010,-.001] |
4.6 Closing the depth-selection gap is the open step (RQ5)
SLOPE already captures most of the available gain (RQ3), but a gap to oracle selection remains, and the reason it resists closing is the pathology that motivates the paper. Choosing a depth trades bias against variance; variance is easy, and all four routes to the bias that we tried are blocked the same way (App. A): a per-item plug-in dies on less than one logged draw per item; a cluster-level reward-model residual stays estimable but yields no reliable gain over a variance-only rule; and cross-validated OPE [2] needs an unbiased - hence item-level - validation estimator, which lands at 0.133 against a variance-only rule's 0.096 (metadata, ).
The pattern is structural: estimating the coarsening bias requires resolution at a granularity that near-argmax logging has already destroyed - the RQ1 collapse reappearing one level up. We read the residual gap as a consequence of the logging regime rather than an unfinished search over selectors. Averaging across levels needs no bias estimate at all and is the mitigation we would default to, though we do not measure it head-to-head here.
One route does escape it. If the bias cannot be inferred from the logs it can be bought: a small bucket logged from the target policy supplies the unbiased reference the logs cannot. Per candidate that is circular - it is the deployment gating exists to avoid, and with dense rewards the bucket estimates better than the estimator it calibrates - so it pays only if the chosen depth transfers, which is plausible because depth is a property of the tree and the logging regime rather than of the candidate. It does transfer: calibrating on one candidate and reusing that depth on others reproduces per-candidate selection in 65 of 80 candidate × seed cells, attains the best fixed level, and never loses to SLOPE while beating it significantly where SLOPE misfires. A team can therefore calibrate the depth once - from an A/B test it has already run, that being on-policy data for the policy tested - and reuse it offline for later candidates, amortizing the cost over all of them. Gains are modest where SLOPE is already near the best fixed level, and a transferred depth is fixed by construction, forgoing per-log adaptivity.
5 Discussion and Open Problems
The recipe is narrow but useful: when item support collapses, marginalize to SID prefixes, which a decoder over that tree makes cheap. Since the RQ5 failures share one cause - the bias signal is gone at the resolution the logging policy destroyed - the promising directions supply a trustworthy reference instead of inferring one: pseudo-task constructions whose ground truth holds by construction [4, 15], and the amortized on-policy calibration of §4.6. The first thing one would instead try does not work, and is worth recording: a uniformly randomized bucket is significantly worse than a variance-only rule at every size up to half the budget, because its label weights grow in variance with how peaked is (App. A). Exploitation must be aimed at the target. Our rewards are also dense by construction, which flatters on-policy references; whether an affordable bucket still ranks depths under sparse rewards is the sharpest open question. Natural extensions are a tree-structured PC using the SID hierarchy as its kernel, recursive OffCEM, and support-constrained off-policy learning; the chief external-validity limit is that the candidate-logged production slice has , so large-catalog claims rest on the semi-synthetic testbeds.
References
[1] Matej Cief, Jacek Golebiowski, Philipp Schmidt, Ziawasch Abedjan, and Artur Bekasov. 2024. Learning Action Embeddings for Off-Policy Evaluation. In European Conference on Information Retrieval. 108–122.
[2] Matej Cief, Branislav Kveton, and Michal Kompan. 2024. Cross-Validated Off-Policy Evaluation. arXiv:2405.15332 (2024).
[3] Miroslav Dudik, John Langford, and Lihong Li. 2011. Doubly Robust Policy Evaluation and Learning. In ICML.
[4] Nicolò Felcioni, Michael Benigni, and Maurizio Ferrari Dacrema. 2024. AutoOPE: Automated off-policy estimator selection. arXiv preprint arXiv:2406.18022 (2024).
[5] Chongming Gao, Shijun Li, Yuan Zhang, Jiawei Chen, Biao Li, Wenqiang Lei, Peng Jiang, and Xiangnan He. 2022. KuaiRand: An Unbiased Sequential Recommendation Dataset with Randomly Exposed Videos. In CIKM. 3953–3957.
[6] Yupeng Hou, Jiacheng Li, Zhankui He, An Yan, Xiusi Chen, and Julian McAuley. 2024. Bridging Language and Items for Retrieval and Recommendation. In arXiv:2403.03952.
[7] Artem Matveev, Sergei Makeev, Aleksei Krasilnikov, Vladimir Baikalov, Sergei Liamaev, and Kirill Khrylchenko. 2026. Long-Term Optimization for Large-Scale Generative Retrieval with Off-Policy REINFORCE. In Workshop on End-End Customer Journey Optimization @ KDD. arXiv:2607.02818.
[8] Shashank Rajput, Nikhil Mehta, Anima Singh, Raghunandan H Keshavan, Trung Vu, Lukasz Heldt, Lichan Hong, Yi Tay, Vinh Q Tran, Jonah Samost, Maciej Kula, Ed H Chi, and Maheswaran Sathiamoorthy. 2023. Recommender Systems with Generative Retrieval. In NeurIPS.
[9] Noveen Sachdeva, Lequn Wang, Dawen Liang, Nathan Kallus, and Julian McAuley. 2024. Off-Policy Evaluation for Large Action Spaces via Policy Convolution. In The Web Conference (WWW).
[10] Yuta Saito and Thorsten Joachims. 2022. Off-Policy Evaluation for Large Action Spaces via Embeddings. In ICML.
[11] Yuta Saito, Qingyang Ren, and Thorsten Joachims. 2023. Off-Policy Evaluation for Large Action Spaces via Conjunct Effect Modeling. In ICML.
[12] Yuta Saito, Jihan Yao, and Thorsten Joachims. 2025. POTEC: Off-Policy Learning for Large Action Spaces via Two-Stage Policy Decomposition. In ICLR.
[13] Yi Su, Pavithra Srinath, and Akshay Krishnamurthy. 2020. Adaptive Estimator Selection for Off-Policy Evaluation. In International Conference on Machine Learning (ICML).
[14] Muhammad Faaiz Taufiar, Arnaud Doucet, Rob Cornish, and Jean-François Ton. 2023. Marginal Density Ratio for Off-Policy Evaluation in Contextual Bandits. In Advances in Neural Information Processing Systems, Vol. 36.
[15] Takuma Udagawa, Haruka Kiyohara, Yusuke Narita, Yuta Saito, and Kei Tateno. 2023. Policy-Adaptive Estimator Selection for Off-Policy Evaluation. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 37. 10025–10033.
Table 5: RQ1/RQ2 production diagnostics. Left: served-item propensity concentration by logging exponent (item ESS/n≈0.003 at ). Right: coarsening lifts greedy-target ESS (n=29k).
| med. | >0.9 | level | med. | ESS/n | |
|---|---|---|---|---|---|
| 3 | 0.036 | 5.7% | 1 (coarse) | 0.365 | 0.300 |
| 4 | 0.096 | 9.8% | 2 | 0.125 | 0.191 |
| 6 | 0.145 | 16.4% | 3 (fine) | 0.089 | 0.167 |
[16] Peiyao Wang, Zhan Shi, Amina Shabbeer, and Ben London. 2025. Off-Policy Evaluation of Candidate Generators in Two-Stage Recommender Systems. In RecSys.
[17] Wenjie Wang, Honghui Bao, Fuli Feng, Jizhi Zhang, Xun Wang, Xiangnan He, and Tat-Seng Chua. 2024. Learnable Item Tokenization for Generative Recommendation. In CIKM.
A Data, Estimators, and Diagnostics
Production logs. Rows come from an exploration path that draws a slate by Plackett - Luce sampling with weights over top-N candidates; the request normalizer Z and exponent are logged, so the rank-1 propensity is exactly when the scored pool is available. Tier A has 17M rank-1 rows for the concentration diagnostic (Table 5, left). Tier B is an n=29k slice with a recorded candidate pool ( ); its cluster masses are renormalized within the recorded pool (conditional-pool propensities, not full-catalog), and it shows the coarsening ESS relief (Table 5, right). We encode item text with harrier-oss-v1-0.6b (1024-d) and Residual K-Means.
KuaiRand. KuaiRand-Pure [5]; the random-exposure log ( 1.19M interactions, 7.6K items) gives unbiased click rates. Leakage control: split by row - one half sets the click rates defining the policies, the disjoint half is the evaluation truth (DGP and oracle ); both use beta-binomial shrinkage; items need 20 impressions per half ( ). Code sources: contentmetadata (multi-hot top-200 tags + type/music/log-duration; engagement features excluded as they leak reward), semantic (captions + cover text, same encoder), collaborative (64-d truncated-SVD of the user×item matrix from a disjoint pre-period log), and fused ( -normalized text || collaborative). Logging/target are context-free softmaxes over : ( , noise standard deviation 0.7) and ( ); sweeps vary , . Headline tables use 200 paired seeds (fixed, deterministic, so every number regenerates exactly and paired differences share draws); sweeps use 40. Default codes: Residual K-Means, 4 levels, codebook size 8 (a graded coarse-to-fine ladder; a sweep shows larger is non-monotone, as a large first codebook can eliminate useful coarse pooling). The RQ-VAE tokenizer (RQ4) is a small MLP encoder/decoder with an -level straight-through residual vector-quantizer, codebooks -means-initialized, trained 300 epochs with reconstruction + commitment losses on the same item embeddings; it is fit per source, so its 0.072 flat-baseline run (RQ2) and its 0.077 Table 4 run are independent trainings.
Estimators. IPS /SNIPS ; MIPS /SNIPS and DM per level; the OffCEM estimator with a 5-fold cross-fitted reward model at cluster level (, OffCEM) or action level ( from Ridge on the embedding, OffCEM) - cross-fitting keeps the out-of-fold residual from cancelling against a constant cluster weight; and Policy Convolution with a mass-preserving (column-stochastic) kernel. Our reward model is fit pointwise (ridge regression to ), not with the original two-step pairwise local-correctness objective of [11]; enforcing local correctness within clusters could tighten OffCEM's edge at coarse levels and is left to future work. This keeps OffCEM a fair member of the estimator panel rather than a separately tuned method, consistent with our aim of isolating the granularity effect. Both OffCEM residuals are self-normalized, : with a raw residual weight, an RQ-VAE that over-fragments semantic/collaborative codes leaves near-empty clusters (, weight ) and the action-level residual explodes; self-normalization keeps every level bounded. Self-normalization trades a finite-sample bias for this variance control.
Autoregressive-policy check. Building an autoregressive tree policy (per-node softmax over child subtrees) and reading cluster masses as prefix products matches the exact per-item cluster marginals to machine precision () at every level - so a generative decoder supplies the cluster weights for free.
Uniformly randomized bucket. Charged against the same total budget as the logs, a uniform exploration bucket is significantly worse than SLOPE at every size up to half the budget: its label weights are , so the label's standard error stays near 0.12 even at , against between-level gaps of 0.02 - 0.05. Uniform exploration is an inefficient way to evaluate a concentrated target.
Reward-space diagnostic. The -weighted within-cluster standard deviation of tracks the exact coarsening bias about as well as input-space across our 16 sourcelevel cells (Spearman 0.52 vs. 0.47, a gap not resolvable at ), but is at least on a comparable scale, whereas lives in each embedding's own units (collaborative vs. text , yet lower bias). Both are weak, and both are descriptive: they use oracle rewards, so neither is a deployable selector.
Single-draw quantizer readings (RQ4). Individual quantizer seeds produce apparent RQ-VAE gains as large as 0.04 on the collaborative tree - the favourable tail of a distribution centred on zero. Table 4's intervals also show the semantic and collaborative fits are considerably more stable than the metadata one, so the 0.03 - 0.06 figure quoted in §4.5 is metadata-driven.
Depth-selector failures (RQ5). Four routes to the coarsening bias, all blocked. (i) A per-item plug-in of the exact bias identity (App. B, Step 1) needs per-item reward estimates, but at over 7339 items there is less than one draw per item, so the estimate degenerates to a constant and the criterion collapses onto variance alone. (ii) A cluster-level reward-model residual reusing OffCEM's cross-fitted model is the one bias signal that stays estimable, and once clustering variability is accounted for it gives no reliable improvement over a variance-only rule. (iii) Cross-validated OPE [2] needs an unbiased item-level validation estimator, and reaches only 0.133 against a variance-only rule's 0.096; substituting a self-normalized estimator restores usability but forfeits the guarantee, and then merely matches SLOPE.
Replication on Amazon (RQ6) The support-dependent pattern replicates on Amazon (Table 6): OffCEM beats SNIPS when support-limited and ties with data. Gains are smaller than
on KuaiRand because the Amazon logging/target pair has milder item-overlap collapse, and Musical Instruments is among the most support-stressed sizeable categories in our scan - so this is a conservative, directional replication, not a causal-identification claim from observational ratings.
Table 6: RQ6. Amazon Reviews (Musical Instruments, metadata codes, 80 seeds; OffCEM at the oracle-selected level). The support-dependent pattern replicates.
| M | SNIPS | OffCEM | |
|---|---|---|---|
| 1000 | 21.0 | 0.114 | 0.110 |
| 2000 | 10.5 | 0.089 | 0.080 |
| 5000 | 4.2 | 0.055 | 0.052 |
| 10000 | 2.1 | 0.036 | 0.036 |
B Proof of Proposition 3.1
Notation. is the cluster marginal-IPS estimator of §3 at level , whose prefixes partition into clusters . We fix a context throughout (all quantities conditional on ; take at the end) and suppress it. For any policy write and . The reconstruction is constant on each cluster with value , so . Five steps: write the bias exactly, center it per cluster, bound the centered reward gap, collect terms into the within-cluster form, and relax to the item-level form.
Step 1 (exact bias). By (A0), with conditionally unbiased for ,
where . Then is a distribution and for every : and share cluster marginals, and . Since ,
Step 2 (per-cluster centering). As , subtract the cluster constant from in (1):
Step 3 (Lipschitz residual). By (A1) - (A2), is defined and .
Step 4 (within-cluster form). Bounding each reward gap in (2) by and taking absolute values gives . Because and share cluster marginals and within each cluster (Step 1),
so . Only within-cluster disagreement enters, which is why coarse levels stay low-bias when codes are reward-aligned. Taking gives the first claim.
Step 5 (item-level relaxation, and tightness). Marginalization contracts total variation: , i.e. . The triangle inequality then gives
hence . The constant cannot be improved: the ratio approaches 2 when one cluster's mass ratio diverges and the within-cluster conditionals are mutually singular.
Remark (). A with exists for any fixed codebook (take ), but nothing forces one to serve a family of codebooks. Comparing across quantizers or embedding sources
therefore does not compare their bias bounds, and a refinement that lowers mean without improving the worst-reconstructed items does not tighten the bound at all. Replacing residual -means by an RQ-VAE changes the partition, , , and together, and its training loss is not the input-space here, so tokenizer ablations do not by themselves validate the bound.