Trie-Aware Transformers for Generative Recommendation
Zhenxiang Xu, Sirui Chen, Yong He, Jieyu Yang, Chuan Yuan, Ke Ding, Jing Cao, Can Wang, Jiawei Chen
NeurIPS 2026
Abstract. Generative recommendation (GR) aligns with advances in generative AI by casting next-item prediction as token-level generation rather than score-based ranking. Most GR methods adopt a two-stage pipeline: (i) \textit{item tokenization}, which maps each item to a sequence of discrete, hierarchically organized tokens; and (ii) \textit{autoregressive generation}, which predicts the next item's tokens conditioned on the tokens of user's interaction history. Although hierarchical tokenization induces a prefix tree (trie) over items, standard autoregressive modeling with conventional Transformers often flattens item tokens into a linear stream and overlooks the underlying topology. To address this, we propose TrieRec, a trie-aware generative recommendation method that augments Transformers with structural inductive biases via two positional encodings. First, a \textit{trie-aware absolute positional encoding} aggregates a token's (node's) local structural context (\eg depth, ancestors, and descendants) into the token representation. Second, a \textit{topology-aware relative positional encoding} injects pairwise structural relations into self-attention to capture topology-induced semantic relatedness. TrieRec is also model-agnostic, efficient, and hyperparameter-free. In our experiments, we implement TrieRec within three representative GR backbones, achieving notably improvements of 8.83% on average across four real-world datasets.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:48 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
TrieRec observes that hierarchical item tokenization (RQ-VAE style) induces a prefix tree over items, but standard autoregressive generative recommenders flatten the token stream and ignore that topology. The paper adds two structural positional encodings to fix this: a trie-aware absolute encoding (TAE) that aggregates a token's path/structural context (depth, ancestors, descendants) into its embedding, and a topology-aware relative encoding (TRE) that biases self-attention by pairwise tree relations (LCA depth and distance to LCA). Both are additive, model-agnostic, and low-overhead. The method is dropped into three GR backbones (TIGER, CoST, LETTER) and evaluated on four datasets, with ~8.8% average gains and supporting ablations, PE/tree-aware baselines, a learned-bias case study, and an efficiency comparison.
All three reviewers agree the motivation is clean and correct and the fix is well-chosen: encoding the trie via positional biases is a natural, low-friction inductive bias rather than a heavyweight redesign (Nrbd, XvS2, B8k5). They also agree the empirical coverage is solid — three backbones, four datasets, consistent gains, and reasonable ablations. The disagreement is essentially about how much of a scientific contribution this is and whether the gains are attributable to the trie, and I read that disagreement as bounded and addressable rather than fatal, which is why I land on accept.
Some of the main concern raised by the reviewers wroth pointing out here: 1/ Source of the gain (all three). The sharpest version is Nrbd's: because the trie comes from RQ-VAE, a shared prefix already means embedding-space proximity, so TAE/TRE might just be re-injecting continuous semantic proximity that quantization threw away, not exploiting topology. XvS2 and B8k5 want the complementary control (shuffle the item→path mapping / randomize the hierarchy at matched parameter count). This is the most important issue, but it is a clarifying experiment, not a flaw in the method — and notably the reviewers themselves say a positive result here would make the paper clearly stronger (Nrbd: "if TrieRec clearly beats it, the topology claim is real"). Even under the skeptical interpretation, the method still delivers consistent gains at negligible cost; the control mainly decides why it works, not whether.
2/ Possible leakage / where TAE-TRE apply (Nrbd, B8k5). TAE aggregates ancestors and descendants, which is fine for history tokens but problematic if applied to target/decoder tokens at generation time (descendants aren't available; train/inference could be inconsistent). This is the one concern with real correctness stakes, and it needs an unambiguous answer (encoder/history-only vs decoder-side, with pseudo-code). My expectation is that this is a specification gap rather than an actual leak, but it should be pinned down and is part of why I want a rebuttal on record.
3/ Moderate novelty (all three). Tree-aware absolute encodings and LCA/distance attention biases exist in other domains (HiT, HiRoPE, tree transformers for code). This is a GR-specific adaptation rather than a new mechanism.
Overall, this is a clean and simple model-agnostic method, and consistent gains across backbones and datasets, against concerns that are largely about attribution and specification rather than validity. The strongest and most confident reviewer (Nrbd, conf 4) already sits at borderline accept, and the two borderline-rejects are conf 3 with heavily overlapping, addressable asks. I lean accept.
Final justification
The authors further clarifies some of my concerns, so the decision remains as accept.
Read meta-review
Meta-review
TrieRec observes that hierarchical item tokenization (RQ-VAE style) induces a prefix tree over items, but standard autoregressive generative recommenders flatten the token stream and ignore that topology. The paper adds two structural positional encodings to fix this: a trie-aware absolute encoding (TAE) that aggregates a token's path/structural context (depth, ancestors, descendants) into its embedding, and a topology-aware relative encoding (TRE) that biases self-attention by pairwise tree relations (LCA depth and distance to LCA). Both are additive, model-agnostic, and low-overhead. The method is dropped into three GR backbones (TIGER, CoST, LETTER) and evaluated on four datasets, with ~8.8% average gains and supporting ablations, PE/tree-aware baselines, a learned-bias case study, and an efficiency comparison.
All three reviewers agree the motivation is clean and correct and the fix is well-chosen: encoding the trie via positional biases is a natural, low-friction inductive bias rather than a heavyweight redesign (Nrbd, XvS2, B8k5). They also agree the empirical coverage is solid — three backbones, four datasets, consistent gains, and reasonable ablations. The disagreement is essentially about how much of a scientific contribution this is and whether the gains are attributable to the trie, and I read that disagreement as bounded and addressable rather than fatal, which is why I land on accept.
Some of the main concern raised by the reviewers wroth pointing out here: 1/ Source of the gain (all three). The sharpest version is Nrbd's: because the trie comes from RQ-VAE, a shared prefix already means embedding-space proximity, so TAE/TRE might just be re-injecting continuous semantic proximity that quantization threw away, not exploiting topology. XvS2 and B8k5 want the complementary control (shuffle the item→path mapping / randomize the hierarchy at matched parameter count). This is the most important issue, but it is a clarifying experiment, not a flaw in the method — and notably the reviewers themselves say a positive result here would make the paper clearly stronger (Nrbd: "if TrieRec clearly beats it, the topology claim is real"). Even under the skeptical interpretation, the method still delivers consistent gains at negligible cost; the control mainly decides why it works, not whether.
2/ Possible leakage / where TAE-TRE apply (Nrbd, B8k5). TAE aggregates ancestors and descendants, which is fine for history tokens but problematic if applied to target/decoder tokens at generation time (descendants aren't available; train/inference could be inconsistent). This is the one concern with real correctness stakes, and it needs an unambiguous answer (encoder/history-only vs decoder-side, with pseudo-code). My expectation is that this is a specification gap rather than an actual leak, but it should be pinned down and is part of why I want a rebuttal on record.
3/ Moderate novelty (all three). Tree-aware absolute encodings and LCA/distance attention biases exist in other domains (HiT, HiRoPE, tree transformers for code). This is a GR-specific adaptation rather than a new mechanism.
Overall, this is a clean and simple model-agnostic method, and consistent gains across backbones and datasets, against concerns that are largely about attribution and specification rather than validity. The strongest and most confident reviewer (Nrbd, conf 4) already sits at borderline accept, and the two borderline-rejects are conf 3 with heavily overlapping, addressable asks. I lean accept.
Final justification
The authors further clarifies some of my concerns, so the decision remains as accept.
2 comments
Response to the Area Chair (2/2): Correctness and contribution
Continuing our response, we clarify the application scope of TAE/TRE and position TrieRec relative to prior tree-aware encodings.
Application scope and no leakage
As the AC anticipated, this is a specification gap rather than an information leak. TAE is applied only to encoder-side historical items, whose complete SIDs are already observed, and is never applied to decoder targets. Its descendant aggregation therefore traverses only the complete SID path of an observed history item, not future interactions or an ungenerated target. TRE is used in encoder self-attention, causal decoder self-attention, and encoder-decoder cross-attention:
H = Encoder(E(X) + TAE(X), self_bias = TRE(X, X))
P_t = [BOS, y_<t]
Z_t = Decoder(P_t, H,
self_bias = TRE(P_t, P_t) + causal_mask,
cross_bias = TRE(P_t, X))
At generation step , the shifted-right decoder receives only . The causal mask keeps future target positions at after adding TRE. In cross-attention, the query depends only on , while keys and values contain only the observed history. Thus, no unavailable target information is used during training or inference, and both stages have identical token visibility. Generation remains trie-aware through TRE over the visible generated prefix and its relations to the observed history, while TAE enriches only fully observed historical items.
Relation to prior tree-aware encodings
Thank the AC for emphasizing the need for careful positioning. TrieRec builds on the broader principle of tree-aware positional encoding, but the structure modeled in GR differs materially from the instance-specific syntax trees addressed by methods such as HiT and HiRoPE. In code, node identities, depths, and paths are local to each input tree. In GR, the SID trie is a persistent catalog-level structure shared across users and sequences: depth represents globally aligned semantic granularity, shared prefixes define stable cross-item relations, and root-to-leaf paths constitute the autoregressive output space.
Prior methods were not designed to encode this combination directly. TrieRec jointly models absolute semantic granularity, complete item-path membership, and directed LCA relations: TAE captures complete item-path context through depth-specific projections, while TRE represents LCA depth and the two directed distances . Direct implementations of HiT and HiRoPE also perform below TrieRec across the evaluated backbones and datasets. Accordingly, the contribution is not tree awareness in isolation, but the identification of the globally shared SID trie as an overlooked structural prior in generative recommendation and a unified absolute-relative formulation that makes this catalog-level structure usable across different GR backbones.
Together, the controls in our preceding response and these implementation details clarify that semantic proximity is useful but insufficient to account for the full gains, no unavailable target information is used, and TrieRec's contribution lies in modeling the globally shared SID trie for autoregressive recommendation.
- Rating
- 3/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
TrieRec adds two trie-structural positional encodings to Transformer-based generative recommenders (GR). A trie-aware absolute encoding (TAE) aggregates an item's full root-to-leaf token path through an MLP and adds it to each token embedding; a topology-aware relative encoding (TRE) injects a learnable attention bias indexed by LCA depth and each token's distance to the LCA.
Strengths and weaknesses
Strengths
- Well-motivated. Hierarchical semantic IDs induce a trie; flattening it discards real structure. Encoding depth, path, and LCA relations is a sensible inductive bias for GR.
- Simple and model-agnostic. Both components are additive terms (Eq. 8, Eq. 9) and integrate into multiple backbones without architectural changes.
- Solid experiments. Four datasets, three backbones, several PE / tree-aware baselines, component ablations, a learned-bias case study, and an efficiency comparison.
- Consistent gains. Improvements recur across backbones and datasets, largest on MovieLens-1M.
Weaknesses
- Unclear application of TAE/TRE → possible leakage. TAE aggregates an item's ancestors and descendants. This is fine for history items, but the target item's descendant tokens are unavailable at inference. If used for target tokens, teacher-forced training and inference are inconsistent and future-token information may leak; if restricted to history, the "trie-aware next-item generation" framing is narrower than claimed. Pseudo-code and an inference-time description for encoder (history) vs. decoder (target) sides are needed.
- Under-specified decoding/evaluation protocol. Beam size, constrained (valid-trie-path) decoding, invalid-sequence handling, and full-corpus vs. sampled ranking are not stated, limiting reproducibility and baseline-fairness assessment.
- Overstated efficiency/"hyperparameter-free" claims. TAE's MLP, per-layer projections, and sharing choices are design decisions; efficiency is shown only for LETTER on two datasets, with no parameter/memory counts and no scaling along sequence length, catalog size, or codebook depth.
- Moderate originality. Tree-aware absolute encodings and LCA/distance biases exist in other domains (code, syntax trees). This is a well-chosen GR-specific adaptation rather than a new mechanism.
Questions
- Are TAE/TRE applied to encoder (history) inputs only, or also to decoder (target) tokens? If the latter, how are unavailable descendant tokens handled, and how is no-leakage guaranteed?
- Specify the decoding/ranking protocol: beam size, valid-trie-path constraints, invalid-sequence scoring, and whether NDCG/Recall use the full item set.
- How many seeds/runs and which test underlie significance?
- How do performance and overhead change with codebook size, depth, collision rate, sequence length, and catalog size?
- Can you add tokenizer-robustness ablations (noisy tokenizer, randomized hierarchy, alternative or jointly-trained tokenizers)?
Limitations
N/A
Final justification
Final assessment — score stays at 3.
The parameter-matched controls (Tables 8, 9) do rebut my main empirical point: correct path and relation alignment consistently beats randomized mappings, and the LCA contribution is clear once TAE is removed. I withdraw that objection. Table 10 is too thin across three backbones to matter either way.
What remains is enough to keep me at borderline reject. Both encodings recombine known tree-structural mechanisms — the global-trie framing motivates the design well but isn't a new mechanism. The largest gains come on the smallest catalog, several Recall@10 improvements are marginal, margins over the strongest structure-aware baselines are untested for significance, and nothing above ~12K items is evaluated. Much of what now persuades me — the application scheme, decoding protocol, efficiency profiling, robustness controls — lives only in the rebuttal, and the submission's efficiency claims are contradicted by the authors' own new numbers.
Careful work that improved through the discussion, but the contribution still reads incremental and the gap to an acceptable version is substantial.
Formatting concerns
N/A
4 comments
Rebuttal
Thank you for the constructive comments. Below, we clarify the implementation, decoding protocol, statistical testing, scalability, and tokenizer robustness.
W1/Q1: Application of TAE/TRE and information leakage
Thank you for raising this concern. The implementation uses the same token visibility in training and inference and does not expose future targets. TAE is applied only to encoder-side history, whose complete SIDs are observed, and not to decoder targets. TRE is applied in encoder self-attention, causal decoder self-attention, and cross-attention. Under shifted-right decoding, uses only ; the causal mask excludes future targets and cross-attention accesses only history. BOS uses a dedicated TRE entry (index 0) as a virtual root. Generation thus remains trie-aware through the available prefix and history.
H = Encoder(E(X) + TAE(X), self_bias = TRE(X, X))
P_t = [BOS, y_<t]
Z_t = Decoder(P_t, H,
self_bias = TRE(P_t, P_t) + causal_mask,
cross_bias = TRE(P_t, X))
beam = CBS_expand(beam, Z_t, valid_trie_children, beam_size = 10)
W2/Q2: Decoding and evaluation protocol
Thank you for noting the missing protocol details. All generative methods use the same width-10 constrained beam search over valid trie children, so invalid SID paths do not enter the beam; hypotheses are scored by summed token log-probabilities. The candidate space is the full catalog trie without sampling, although beam search is not exhaustive item-by-item scoring. Recall/NDCG use the generated top- items without filtering prior interactions. Following TIGER, a collision token gives a one-to-one SID-item mapping, so standard evaluation requires no duplicate resolution.
Q3: Number of runs and significance testing
Main results are averaged over five seeds. A paired two-sided -test compares seed-matched TrieRec and vanilla-backbone results ().
W3/Q4: Efficiency and the “hyperparameter-free” wording
Our intended meaning of “hyperparameter-free” was that TrieRec requires no additional hyperparameter search: one fixed TAE/TRE configuration was used throughout. We recognize that the term may also suggest the absence of learnable parameters or design choices, which was not intended. We will revise it to “requires no additional hyperparameter search in our experiments.”
To address efficiency and scalability, we profile four datasets while varying SID depth , codebook size , and history length , with standard . P/M/Train/Inf denotes parameters / peak per-GPU memory (GB) / total training time for 200 epochs (s) / inference time (s). All new runs used the same 8×NVIDIA A800 setup; absolute values may differ from the submitted paper, but each LETTER/TrieRec pair shares identical hardware and settings.
Beauty
| Scaling axis | Setting | LETTER P/M/Train/Inf | TrieRec P/M/Train/Inf |
|---|---|---|---|
| Standard | 4/256/20 | 4,603,520 / 0.78 / 838 / 4.92 | 5,919,562 / 0.95 / 920 / 5.32 |
| SID depth | 8 | 4,734,592 / 1.74 / 950 / 7.41 | 9,996,738 / 1.99 / 1,070 / 8.67 |
| SID depth | 12 | 4,865,664 / 2.95 / 1,128 / 9.87 | 16,710,906 / 3.35 / 1,340 / 14.65 |
| Codebook size | 512 | 4,734,592 / 0.82 / 846 / 4.95 | 6,050,634 / 0.99 / 932 / 5.60 |
| Codebook size | 1024 | 4,996,736 / 0.89 / 852 / 5.01 | 6,312,778 / 1.06 / 946 / 5.69 |
| History length | 50 | 4,603,520 / 2.21 / 1,112 / 4.93 | 5,919,562 / 2.41 / 1,246 / 5.43 |
| History length | 100 | 4,603,520 / 5.93 / 2,020 / 5.30 | 5,919,562 / 6.20 / 2,320 / 6.20 |
Toys
| Scaling axis | Setting | LETTER P/M/Train/Inf | TrieRec P/M/Train/Inf |
|---|---|---|---|
| Standard | 4/256/20 | 4,603,520 / 0.78 / 690 / 4.21 | 5,919,562 / 0.94 / 754 / 4.65 |
| SID depth | 8 | 4,734,592 / 1.73 / 782 / 6.33 | 9,996,738 / 1.98 / 854 / 7.22 |
| SID depth | 12 | 4,865,664 / 2.95 / 934 / 8.58 | 16,710,906 / 3.34 / 1,126 / 11.34 |
| Codebook size | 512 | 4,734,592 / 0.82 / 692 / 4.25 | 6,050,634 / 0.98 / 750 / 4.70 |
| Codebook size | 1024 | 4,996,736 / 0.89 / 696 / 4.29 | 6,312,778 / 1.05 / 754 / 4.78 |
| History length | 50 | 4,603,520 / 2.21 / 928 / 4.24 | 5,919,562 / 2.39 / 1,024 / 4.81 |
| History length | 100 | 4,603,520 / 5.93 / 1,648 / 4.42 | 5,919,562 / 6.23 / 1,784 / 5.05 |
Food
| Scaling axis | Setting | LETTER P/M/Train/Inf | TrieRec P/M/Train/Inf |
|---|---|---|---|
| Standard | 4/256/20 | 4,603,520 / 0.78 / 622 / 3.25 | 5,919,562 / 0.88 / 706 / 3.57 |
| SID depth | 8 | 4,734,592 / 1.75 / 718 / 4.87 | 9,996,738 / 1.91 / 812 / 5.55 |
| SID depth | 12 | 4,865,664 / 2.91 / 864 / 6.59 | 16,710,906 / 3.24 / 1,002 / 9.34 |
| Codebook size | 512 | 4,734,592 / 0.81 / 630 / 3.26 | 6,050,634 / 0.91 / 708 / 3.68 |
| Codebook size | 1024 | 4,996,736 / 0.86 / 632 / 3.32 | 6,312,778 / 0.97 / 720 / 3.68 |
| History length | 50 | 4,603,520 / 2.20 / 916 / 3.30 | 5,919,562 / 2.33 / 1,018 / 3.76 |
| History length | 100 | 4,603,520 / 5.92 / 1,696 / 3.56 | 5,919,562 / 6.16 / 1,982 / 4.45 |
MovieLens
| Scaling axis | Setting | LETTER P/M/Train/Inf | TrieRec P/M/Train/Inf |
|---|---|---|---|
| Standard | 4/256/20 | 4,603,520 / 0.76 / 794 / 1.34 | 5,919,562 / 0.81 / 860 / 1.53 |
| SID depth | 8 | 4,734,592 / 1.68 / 938 / 2.05 | 9,996,738 / 1.82 / 1,054 / 2.31 |
| SID depth | 12 | 4,865,664 / 2.86 / 1,110 / 2.71 | 16,710,906 / 3.15 / 1,280 / 4.02 |
| Codebook size | 512 | 4,734,592 / 0.78 / 800 / 1.35 | 6,050,634 / 0.84 / 876 / 1.55 |
| Codebook size | 1024 | 4,996,736 / 0.82 / 810 / 1.36 | 6,312,778 / 0.87 / 908 / 1.56 |
| History length | 50 | 4,603,520 / 2.20 / 2,340 / 1.38 | 5,919,562 / 2.28 / 2,536 / 1.58 |
| History length | 100 | 4,603,520 / 5.91 / 7,598 / 1.69 | 5,919,562 / 6.15 / 8,214 / 1.98 |
The profiles show consistent trends: larger codebooks add limited overhead; longer histories leave parameters unchanged and mainly increase memory/training costs for both models; and SID depth most affects TAE/TRE parameters and inference. This should be viewed alongside SID capacity: with SID depth and codebook size , the nominal capacity grows as before collision handling. Because this capacity grows exponentially, three or four levels provide ample nominal capacity for the catalog scales studied, while and serve as stress settings relative to . Under the standard setting, the additional runtime and memory costs remain limited, while substantially deeper hierarchies incur more visible overhead.
MovieLens performance under the same scaling settings
| Scaling axis | Setting | LETTER N@10/R@10 | TrieRec N@10/R@10 |
|---|---|---|---|
| Standard | 4/256/20 | .0991 / .1858 | .1129 / .2031 |
| SID depth | 8 | .0954 / .1793 | .1058 / .1945 |
| SID depth | 12 | .0863 / .1616 | .1035 / .1808 |
| Codebook size | 512 | .0953 / .1776 | .1099 / .2013 |
| Codebook size | 1024 | .0961 / .1770 | .1056 / .1897 |
| History length | 50 | .1216 / .2167 | .1369 / .2381 |
| History length | 100 | .1423 / .2467 | .1507 / .2581 |
TrieRec achieves higher NDCG@10 and Recall@10 than LETTER in every configuration. Greater SID depth reduces both methods' performance, while increasing the codebook size does not consistently improve accuracy here; longer histories benefit both methods. TrieRec's advantage is retained across all three axes.
W4: Originality and relation to prior tree-aware encodings
Thank you for highlighting the need to position TrieRec more clearly with respect to prior tree-aware positional encodings. HiT and HiRoPE operate on instance-specific syntax trees in code, where node identities and depths are local to each input rather than globally aligned across samples; these methods focus on path or relative structural positions within each tree. By contrast, the SID trie is a global catalog-level structure shared across users and sequences: its depths reflect semantic granularity, shared prefixes define stable cross-item relatedness, and root-to-leaf paths define the autoregressive output space. Consequently, directly applying these encodings does not explicitly model all three properties central to GR: absolute granularity, item-path membership, and prefix-based item relations. TrieRec addresses these properties jointly: TAE models complete item-path context with depth-specific projections, while TRE models LCA depth and ordered distances across token pairs. In our experiments, the direct HiT and HiRoPE implementations yield lower performance than TrieRec across the tested backbones and datasets, providing empirical support for a formulation tailored to the global SID trie.
Q5: Robustness to tokenizer and trie quality
To complement three tokenization paradigms (TIGER, CoST, LETTER), we conduct a controlled Beauty experiment that replaces one SID layer (Random-) or all layers (RandomAll) with fixed random valid codes; LETTER and TrieRec are retrained on the same corrupted SIDs.
| SID condition | LETTER N@10/R@10 | TrieRec N@10/R@10 |
|---|---|---|
| Clean | .0427 / .0765 | .0464 / .0794 |
| RandomAll | .0063 / .0127 | .0206 / .0390 |
| Random-1 | .0376 / .0645 | .0386 / .0672 |
| Random-2 | .0345 / .0603 | .0400 / .0681 |
| Random-3 | .0426 / .0749 | .0444 / .0759 |
| Random-4 | .0425 / .0771 | .0452 / .0783 |
Earlier-layer and more extensive corruption have a larger adverse effect. Nevertheless, under matched corrupted SIDs, TrieRec retains higher performance than LETTER in all 10 comparisons. Thus, tokenizer quality remains important, while TrieRec continues to provide useful structural bias under SID noise.
Thank you for the thorough rebuttal. I maintain my rating of 3, for reasons that concern the submission itself rather than its presentation:
1. Limited originality. Both components adapt known tree-structural encodings. The global-trie positioning is a fair motivation, but at the fixed depth used throughout, the relative bias reduces to a small lookup table over layer positions and shared-prefix length.
2. The contribution the evidence supports is not the one claimed. A large advantage persists under semantically meaningless hierarchies, and dropping the common-ancestor term costs little. This points to layer- and item-boundary awareness rather than exploitation of semantic trie topology — a weaker claim than the paper makes.
3. Key content exists only in the rebuttal. The encoder/decoder application scheme, the decoding and evaluation protocol, the efficiency accounting, and the robustness analysis were absent from the submission, and the new profiling contradicts its efficiency wording. The revision required is substantial rather than editorial.
Response (1/2)
We sincerely thank you for your prompt response and constructive comments. Some aspects of our contribution may have been interpreted differently than intended; we hope this clarification resolves them.
1. Originality
Thank you for emphasizing prior tree-aware encodings. TrieRec is not a direct adaptation of these methods, which typically target ordered, instance-specific trees. Instead, it is uniquely formulated for a global, unordered SID trie shared across all items and users.
- (i) GR-Specific Formulation: TAE nonlinearly aggregates complete SID paths using depth-specific projections. TRE uses to natively map pairwise topology in this global trie.
- (ii) Minimal-Subtree Completeness: perfectly defines the minimal subtree connecting the root, , and . In a tree where sibling nodes are unordered, this information completely captures the relative relationship between and . This keeps the parameter overhead highly compact, maintaining computational efficiency, mitigating overfitting, and scaling seamlessly to massive item catalogs in real-world GR systems.
- (iii) Empirical & Formulation Novelty: Prior tree encodings designed for ordered, instance-specific trees are ill-suited for the GR task, as shown in Table 1 in the paper. To our knowledge, TrieRec is the first GR formulation to jointly encode complete item-path context and pairwise LCA geometry, rather than merely transferring an existing tree encoding.
2. Our Contribution and Evidence
Thank you for the close reading. The RandomAll experiment indeed shows that depth and item-boundary explain part of the gain. However, this is one capability of TrieRec, not its sole benefit: performance under RandomAll remains far below the aligned semantic hierarchy (Table 7 in Response 2), proving that semantic trie topology remains crucial. Three points isolate this specific topological contribution:
- (i) Strict LCA Control: To prevent prefix leakage, we removed TAE and compared TRE using against a control using only . Dropping the LCA dimension clearly degrades metrics on Beauty and Toys (Table 9 in Response 2), proving LCA contributes beyond mere depth and boundary awareness.
- (ii) Parameter-Matched Randomization: Keeping targets, modules, and parameter counts strictly identical, the correct TAE paths and TRE relations beat fixed incorrect mappings in all 12 comparisons (Table 8 in Response 2).
- (iii) Backbone-Level Evidence: Assuming vanilla recommendation quality reflects SID-trie quality, LETTER—the strongest backbone—receives the largest relative improvements from TrieRec (Table 4 in the paper; Table 10 Response 2). This confirms that a higher-quality trie yields better structural gains. In short, while depth/boundary awareness helps, it cannot determine pairwise trie structure. TrieRec explicitly models this topology and performs significantly better.
3.Manuscript Completeness and Revisions
We appreciate your constructive feedback on the presentation. We follow the standard setting of TIGER, and we have provided implementation details in Appendix C of the original submission. To further enhance clarity, we will explicitly add the application scheme and further evaluation details to the appendix in the revision. Thank you for your careful suggestion.
Regarding efficiency, Section 3.3, Section 4.5 and Figure 4 already provide theoretical and empirical analyses. As our rebuttal profiling confirms, scaling up codebook size or history length incurs minimal additional overhead for TrieRec. While deeper SIDs increase computational costs, a standard depth of 4 provides ample capacity with a well-constrained memory and runtime overhead of ∼10%. In practice, large-scale GR models handling tens of millions of items such as OpenOneRec, expand capacity via larger codebooks and universally keep SID depths .
Response (2/2)
All entries are NDCG@10/Recall@10.
Table 7: RandomAll sanity check on Beauty.
| SID hierarchy | Base | TrieRec |
|---|---|---|
| Aligned semantic SID | .0427/.0765 | .0464/.0794 |
| RandomAll fixed SID | .0063/.0127 | .0206/.0390 |
TrieRec can exploit the retained depth and within-item path/boundary regularities under RandomAll, but both models fall sharply below their aligned-SID results. Thus, this control shows that layer/boundary structure is useful without making it the sole explanation of the aligned result.
Table 8: Fixed incorrect path/relation mappings.
These controls keep the SID targets, model components, and parameter count unchanged.
| Dataset | Aligned TrieRec | TAE-RandomPath | TRE-RandomLCA |
|---|---|---|---|
| Beauty | .0464/.0794 | .0450/.0775 | .0442/.0784 |
| Toys | .0477/.0801 | .0454/.0760 | .0432/.0771 |
| MovieLens | .1129/.2031 | .1080/.1964 | .1076/.1987 |
Correct alignment is better in all 12 dataset-metric comparisons, showing that the true item paths and pairwise trie relations add value beyond additional parameters.
Table 9: TRE-only versus layer-only.
Both variants remove TAE. The layer-only variant also removes LCA and .
| Dataset | TRE-only: full relation | TRE-only: layer indices only |
|---|---|---|
| Beauty | .0442/.0781 | .0419/.0759 |
| Toys | .0455/.0764 | .0401/.0739 |
Full TRE is better on both metrics and datasets. All four gaps are larger than in the submitted TRE-w/o LCA result (Table 2 in the paper), where TAE and LCA-relative remain available. This confirms that layer information alone is insufficient and that shared-prefix topology provides an additional benefit.
Table 10 :Backbone/SID-trie quality pattern in the submitted results.
LETTER has the strongest vanilla result on every dataset and metric among the three backbones. Averaging the 16 relative-improvement entries reported for each backbone in Appendix Table 4 gives:
| Backbone | Mean relative improvement |
|---|---|
| TIGER | 8.07% |
| CoST | 9.09% |
| LETTER | 9.34% |
Using vanilla recommendation quality as a proxy for SID-trie quality, the strongest SID representation also receives the largest average benefit from TrieRec. This provides complementary evidence that correctly aligned trie structure, rather than layer/item-boundary marking alone, contributes to the gain.
- Rating
- 3/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper focuses on generative recommendation, where each item is represented as a sequence of hierarchical semantic tokens and the next item is predicted autoregressively. The authors observe that existing Transformer-based generative recommendation models flatten these hierarchical tokens into linear sequences, thereby failing to explicitly leverage the Trie (prefix tree) structure formed by item tokenization. To address this, the authors propose TrieRec, a plug-and-play framework comprising two components: "Trie-aware absolute positional encoding," which captures the hierarchical context of each token, and "topology-aware relative positional encoding," which injects structural relationships—such as the depth of the lowest common ancestor and tree distance—into the self-attention mechanism. This approach was applied to three generative recommendation baseline models (TIGER, CoST, and LETTER) and evaluated across four sequential recommendation datasets. Experimental results demonstrate consistent improvements in Recall@10 and NDCG@10 metrics while maintaining low computational overhead.
Strengths and weaknesses
Strengths: This paper highlights a notable limitation of existing generative recommendation systems: item identifiers with hierarchical semantics naturally form a prefix tree (trie), yet most Transformer-based methods treat them merely as flat sequences of tokens. TrieRec is simple and model-agnostic; by leveraging structured positional encoding, it can be easily integrated into various generative recommendation backbones without requiring the construction of entirely new architectures. Weakness:
- The methodological innovations are incremental in nature, and the specific contribution of the actual trie structure has not been fully isolated. While TrieRec combines path context encoding with attention bias based on LCA or tree distance, the paper lacks a control experiment—such as randomly shuffling the mapping between items and trie paths or permuting LCA relation indices—that would disrupt the actual trie structure while keeping the parameter count constant. Consequently, it remains unclear whether the performance gains stem from the actual trie topology or simply from the additional embedding and attention bias parameters.
- The scope of the experiments is limited, making it difficult to substantiate the method's practical recommendation value. Experiments were conducted on only four standard datasets,three of which are Amazon sub-domains, with user histories truncated to the most recent 20 interactions. The paper fails to evaluate scenarios involving long sequences, large-scale or dynamic item catalogs, the cold-start problem, or text-based/multimodal recommendation.
- The method relies heavily on a fixed trie constructed via offline tokenization. If the hierarchical item tokenization itself contains noise or semantic errors, these errors are directly encoded into the positional representations and attention biases, and may even be further amplified. The paper does not analyze robustness across different tokenizers, varying trie quality, or trie perturbations.
Questions
N/A
Limitations
same as weakness
Final justification
Although the counterarguments have strengthened the empirical evidence, they have not substantially altered my view: the study's core methodological contribution remains relatively limited (representing an incremental improvement), and it still relies on the quality of the pre-constructed upstream Trie structure. Therefore, I maintain my original rating.
Formatting concerns
N/A
2 comments
Rebuttal
Thank you for recognizing TrieRec's motivation, simplicity, and model-agnostic integration, and for raising important questions about topology isolation, experimental breadth, and tokenizer robustness. We conducted the following additional experiments to address these points.
W1: Does the actual trie topology help, or do the additional parameters suffice?
To distinguish the effect of correctly aligned trie topology from that of the additional parameters, we conducted two parameter-matched controls using LETTER. For TAE-RandomPath, we apply a fixed shuffled item-to-path mapping only when computing TAE; the actual input/target SIDs, TRE relations, architecture, and parameter count remain unchanged. For TRE-RandomLCA, we replace each token pair's correct relation-table indices with fixed random valid indices, thereby disrupting the pair-to-topology correspondence rather than simply renaming the table entries. TAE and all other settings remain unchanged. Both variants are trained from scratch under the same configuration.
| Method | Beauty N@10/R@10 | Toys N@10/R@10 | ML-1M N@10/R@10 |
|---|---|---|---|
| LETTER | .0427 / .0765 | .0430 / .0781 | .0991 / .1858 |
| TAE-RandomPath + TRE | .0450 / .0775 | .0454 / .0760 | .1080 / .1964 |
| TAE + TRE-RandomLCA | .0442 / .0784 | .0432 / .0771 | .1076 / .1987 |
| TAE + TRE (TrieRec) | .0464 / .0794 | .0477 / .0801 | .1129 / .2031 |
TrieRec with correctly aligned relations outperforms both parameter-matched controls in all 12 dataset-metric comparisons. Some randomized variants remain above LETTER, which may reflect that each control perturbs only one component while leaving the other correctly aligned. For the reviewer's question, the most informative comparison is between the aligned and randomized variants: under identical modules and parameter counts, preserving the true item-path and pairwise topological relations yields higher results in every reported cell. These findings indicate that the gains are not explained solely by the additional embedding and attention-bias parameters and provide direct evidence for the benefit of modeling the global shared SID trie through the complementary TAE/TRE designs.
W2: Experimental scope and practical recommendation settings.
To examine settings beyond length-20 histories and the four original benchmarks, we conducted the following evaluations:
| Setting | LETTER | CofiRec | DiscRec | TrieRec |
|---|---|---|---|---|
| ML-1M, maximum history 100 | .1423 / .2467 | .1433 / .2459 | .1439 / .2493 | .1507 / .2581 |
| Yelp, 94,304 items | .0106 / .0198 | .0059 / .0110 | .0110 / .0208 | .0113 / .0214 |
| Temporally split ML-1M | .0342 / .0707 | .0331 / .0708 | .0358 / .0721 | .0359 / .0740 |
All cells report N@10/R@10. In the long-sequence experiment, the only change for every method is increasing the maximum history length from 20 to 100; TrieRec achieves the best result on both metrics. Yelp contains 213,170 users, 94,304 items, and 3,277,932 interactions after preprocessing and follows the original protocol; TrieRec also achieves the best result on both metrics.
For temporal ML-1M, interactions before the 90th temporal percentile form the training/validation period and the latest 10% form the test period, which contains new items absent from both training and validation. The RQ-VAE is trained only on training-period items and then frozen; SIDs for new test items are inferred without refitting. TrieRec achieves the best result on both metrics, suggesting that its advantage persists under temporally evolving interactions and unseen catalog items.
We further evaluated low-activity users and long-tail items on Beauty as a cold-start proxy. Users and items are ranked by interaction frequency, and metrics are computed only on the corresponding bottom-10% test subsets: test samples from low-activity users for the user setting, and test samples whose target belongs to the long-tail item set for the item setting. Because these entities occur in training, this setting should be interpreted as a cold-start proxy rather than strict zero-shot recommendation.
| Method | Sparse users N@10/R@10 | Long-tail items N@10/R@10 |
|---|---|---|
| LETTER | .03503 / .06446 | .00540 / .01482 |
| CofiRec | .03241 / .05506 | .00190 / .00480 |
| DiscRec | .03704 / .06893 | .00450 / .01201 |
| TrieRec | .04133 / .07162 | .01310 / .02523 |
TrieRec achieves the best results for both sparse users and long-tail items, with the largest separation on the latter. The current SIDs are initialized from Sentence-T5 text representations. Given the limited rebuttal window, a dedicated multimodal evaluation is forthcoming: we plan to apply RQ-VAE to multimodal item embeddings to derive SIDs and construct the corresponding prefix trie, and then evaluate TrieRec in this multimodal recommendation setting. Together, the completed results provide evidence across settings with longer histories, a large-scale catalog, a dynamic item catalog, and cold-start users and items.
W3: Dependence on tokenizer/trie quality.
Thank you for highlighting the possible dependence on tokenizer and trie quality. The original results show consistent gains across TIGER, CoST, and LETTER, which use distinct hierarchical tokenization objectives; however, cross-pipeline compatibility does not by itself characterize robustness to controlled degradation of the hierarchy. We therefore conducted a Beauty experiment that directly perturbs the SIDs. Random- independently replaces every item's code at SID layer with a random valid code, while RandomAll independently randomizes all four layers. The assignments remain fixed throughout training and evaluation, and LETTER and TrieRec are retrained from scratch with the same corrupted SIDs. Because the randomized assignments are not constrained to remain unique, this setting also permits collisions and represents a strong perturbation involving semantic corruption and possible code collisions.
| SID condition | LETTER N@10/R@10 | TrieRec N@10/R@10 |
|---|---|---|
| Clean | .0427 / .0765 | .0464 / .0794 |
| RandomAll | .0063 / .0127 | .0206 / .0390 |
| Random-1 | .0376 / .0645 | .0386 / .0672 |
| Random-2 | .0345 / .0603 | .0400 / .0681 |
| Random-3 | .0426 / .0749 | .0444 / .0759 |
| Random-4 | .0425 / .0771 | .0452 / .0783 |
Randomizing all layers leads to a marked performance decrease, while perturbations at earlier layers have a larger effect than those at later layers, consistent with earlier codes determining larger subtrees. Nevertheless, under the same corrupted SIDs, TrieRec outperforms LETTER in all five perturbation settings and all 10 metric comparisons. These findings show both that TrieRec continues to provide benefits under SID noise and that its absolute performance remains dependent on hierarchy quality. We will make this limitation explicit and discuss reliability-aware or dynamically refined trie modeling.
Additional Comment: Multimodal recommendation on MicroLens-100K
Thank the reviewer for encouraging evaluation beyond text-derived SIDs. We have now completed the multimodal recommendation experiment referenced in our initial response. We use the open-source MicroLens-100K dataset, which contains 100,000 users, 19,738 items, and 719,405 interactions. We apply RQ-VAE to multimodal item embeddings to derive the SIDs and construct the corresponding shared prefix trie, and evaluate all methods under the same protocol.
| Method | N@10 | R@10 |
|---|---|---|
| LETTER | .0363 | .0659 |
| CofiRec | .0350 | .0635 |
| DiscRec | .0367 | .0656 |
| TrieRec | .0388 | .0689 |
TrieRec achieves the best NDCG@10 and Recall@10 among all compared methods. This result complements the original experiments based on text-derived item representations and indicates that the benefit of modeling the global SID trie persists when the hierarchy is constructed from multimodal item embeddings.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
TrieRec argues that generative recommenders flatten hierarchical item tokens into a 1D stream and throw away the prefix-tree (trie) structure that tokenization induces. It proposes TAE to aggregate a token's item-path context (its other tokens) through an MLP and adds the result to the token embedding; It also proposes TRE a learnable attention bias indexed by the triple (LCA depth, distance from each token to the LCA). Both are presented as model-agnostic, low-overhead, and tuning-free. Experiments show strong gain across methods and datasets. The idea is clean and the empirical results are strong. However, there are some concerns on leakage and source of gain.
Strengths and weaknesses
Strong points:
- The observation that hierarchical tokenization defines a trie which standard autoregressive GR ignores is correct and cleanly stated, and encoding it through positional biases is a natural, low-friction fix rather than a heavyweight redesign.
- The design of the two positional biases are clean and makes sense intuitively.
- Gains are shown across three different backbones and four datasets
Weak points:
- Is the gain from tree topology, or from recovering embedding proximity? The trie is actually derived from item embeddings through e.g. RQ-VAE. RQ-VAE codes are coarse-to-fine quantization centroids, so a prefix is exactly the rank-k reconstruction of the item embedding, and items sharing a prefix are embedding-space neighbors by construction. TAE and TRE may therefore be mostly recovering continuous semantic proximity that quantization discarded, rather than exploiting tree topology. The decisive baseline is cheap but missing: use the prefix-averaged item embedding (equivalently, the RQ-VAE partial reconstruction) as the absolute encoding in place of TAE, and a scalar similarity (cosine or negative distance) between two tokens' prefix-centroid embeddings as the relative bias in place of TRE. If that matches TrieRec, the learned structural machinery is unnecessary; if TrieRec clearly beats it, the topology claim is real and the paper is much stronger for it. In the current shape, I cannot separate "modeling the trie helps" from "re-injecting embedding proximity helps."
- It is unclear if TAE and TRE are applied to the tokens being generated, and there might be leakage if they are applied. Please clarify explicitly whether the encodings apply only to the encoder/history or also to decoder target tokens, and exactly which tokens are visible at each generation step.
- Tree-aware positional encodings already exist (HiT, HiRoPE, tree transformers for code), and the contribution is mainly adapting them to GR's global shared trie plus the specific TAE/TRE forms.
Questions
- Compare against an embedding-derived structural encoding as described in W1.
- Specify where TAE and TRE operate, and rule out leakage
Limitations
yes
Final justification
corrected contribution type.
Formatting concerns
no
2 comments
Rebuttal
Thank you for recognizing the motivation, the clean design of TAE/TRE, and the consistent gains across backbones and datasets. We also appreciate the question of whether the gains arise from trie topology or recovered embedding proximity, which motivates a useful distinction that was not fully isolated in the original experiments.
W1/Q1: Distinguishing trie topology from embedding proximity.
We agree that these signals are related: because the trie is induced by hierarchical quantization, a shared prefix naturally reflects proximity in the tokenizer's embedding space. We therefore view topology and embedding geometry as related rather than mutually exclusive; the key empirical question is whether simple, fixed embedding-proximity statistics can account for TrieRec's gains.
We added parameter-free embedding-derived controls using LETTER under the same setup. For a token at depth , PrefixMean+TRE replaces TAE with the mean of its SID token embeddings at depths , added directly to the token embedding, while retaining TRE. TAE+PrefixCos retains TAE but replaces TRE with the cosine similarity between the two tokens' prefix-mean embeddings, added directly to the attention logit. Both controls are computed directly from the generator's SID token embeddings and introduce no additional parameters. We also evaluate the joint PrefixMean+PrefixCos replacement.
| Method | Beauty N@10/R@10 | Toys N@10/R@10 | ML-1M N@10/R@10 |
|---|---|---|---|
| LETTER | .0427 / .0765 | .0430 / .0781 | .0991 / .1858 |
| PrefixMean + TRE | .0438 / .0773 | .0445 / .0780 | .0910 / .1760 |
| TAE + PrefixCos | .0445 / .0779 | .0452 / .0795 | .1089 / .1969 |
| PrefixMean + PrefixCos | .0426 / .0772 | .0438 / .0777 | .0957 / .1768 |
| TAE + TRE (TrieRec) | .0464 / .0794 | .0477 / .0801 | .1129 / .2031 |
The simple cosine bias recovers part of the improvement, consistent with the reviewer's intuition that embedding proximity is useful. At the same time, both the individual replacements and their combination remain below TrieRec, and the joint parameter-free replacement is not consistently better than LETTER, whereas TrieRec performs best across all six comparisons. This pattern suggests that fixed prefix averaging and symmetric cosine similarity capture only part of the useful signal. TAE can additionally learn cross-depth and cross-dimensional interactions along an item path, while TRE represents LCA depth and the two directed distances , which a single symmetric cosine score does not encode. We therefore interpret the results as evidence that embedding proximity contributes to performance, while learned trie-aware structure provides a complementary benefit.
W2/Q2: Where are TAE and TRE applied, and is there leakage?
To clarify, neither training nor inference exposes future target tokens. TAE, which uses an item's complete path, is applied only to encoder-side historical item tokens; these interacted items and their complete SIDs are already observed. TAE is not applied to decoder target tokens.
TRE is used in encoder self-attention, decoder self-attention, and encoder-decoder cross-attention. At decoding step , the decoder state is constructed only from BOS and the generated prefix . In decoder self-attention, the standard causal mask assigns future positions ; adding TRE therefore does not alter the set of accessible tokens. In cross-attention, keys and values are the fully observed history tokens, while the decoder query depends only on . Hence, every TRE relation is computed between tokens visible at the corresponding generation step. We will state this scope explicitly in the method and implementation sections.
W3: Relation to existing tree-aware positional encodings.
Thank you for highlighting the need to position TrieRec more clearly with respect to prior tree-aware positional encodings. HiT and HiRoPE operate on instance-specific syntax trees in code, where node identities and depths are local to each input rather than globally aligned across samples; these methods focus on path or relative structural positions within each tree. By contrast, the SID trie is a global catalog-level structure shared across users and sequences: its depths reflect semantic granularity, shared prefixes define stable cross-item relatedness, and root-to-leaf paths define the autoregressive output space. Consequently, directly applying these encodings does not explicitly model all three properties central to GR: absolute granularity, item-path membership, and prefix-based item relations. TrieRec addresses these properties jointly: TAE models complete item-path context with depth-specific projections, while TRE models LCA depth and ordered distances across token pairs. In our experiments, the direct HiT and HiRoPE implementations yield lower performance than TrieRec across the tested backbones and datasets, providing empirical support for a formulation tailored to the global SID trie.
Thank you for the clarification and for the extra data points. I will keep my current positive rating.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Response to the Area Chair (1/2): Gain attribution
Thank the AC for the careful and balanced metareview. We first address the central attribution question; the reviewer-specific responses provide the complete experimental protocols.
We conducted two complementary families of controls on Beauty, Toys, and ML-1M using LETTER. First, the embedding-derived controls test whether simple proximity statistics computed from the generator's SID token embeddings can replace the learned structural encodings. PrefixMean + TRE replaces TAE with the parameter-free mean of the SID token embeddings along depths 1:l; TAE + PrefixCos replaces TRE with the cosine similarity between two tokens' prefix-mean embeddings, added directly to the QK⊤ logit; and PrefixMean + PrefixCos replaces both components.
Second, the parameter-matched topology controls preserve the TrieRec modules and parameter count while breaking their correspondence with the true trie. TAE-RandomPath + TRE applies a fixed shuffled item-to-path mapping only within TAE, while preserving the actual input/target SIDs and TRE. TAE + TRE-RandomLCA replaces the correct pair-to-relation correspondence with fixed random valid relation indices. All variants are trained from scratch.
The cosine control recovers part of the improvement, supporting the Reviewer Nrbd's interpretation that embedding proximity is useful. However, none of the individual or joint embedding-derived replacements matches TrieRec, and the joint replacement is not consistently better than LETTER. More decisively, correctly aligned TrieRec outperforms both parameter-matched topology controls in all 12 dataset-metric comparisons. Because the topology-disruption controls retain the same modules and parameter counts, the results indicate that embedding proximity contributes but does not fully account for the gains; correctly aligned item paths and pairwise trie relations provide a complementary benefit.