arXiv:2610.37286cs.IROct 2026

Manuscript Offprint

arXiv:2610.37286

LESSRec: Level-Specific History Modeling for Semantic ID-Based Recommendation

Shangxin Yang, Zongwei Wang, Jing Long, Junliang Yu, Min Gao

Shangxin Yang

Chongqing University

Chongqing, China

yangshangxin@stu.cqu.edu.cn

Zongwei Wang

Chongqing University

Chongqing, China

zongwei@cqu.edu.cn

Jing Long

Chongqing University

Chongqing, China

jing.long@cqu.edu.cn

Junliang Yu

Griffith University

Brisbane, Australia

junl.yu@outlook.com

Abstract

Semantic ID-based recommendation represents each item as a sequence of semantic tokens obtained through residual quantization. This paradigm generates the next item's tokens autoregressively from coarse to fine, entailing each prediction attending to historical tokens at all semantic levels. However, our inference-time analysis reveals that historical tokens at the target-token's semantic level tend to be more informative, whereas other levels can introduce interference. Motivated by these findings, we propose LESSRec that separately encodes the historical token sequence at each semantic level and restricts attention over historical tokens to the sequence at the target token's semantic level during prediction. To complement these level-specific histories, LESSRec explicitly provides an item-level semantic sequence that represents each historical item's overall semantics in chronological order. The decoder accesses the level-aligned token sequence and the item-level semantic sequence through two separate cross-attention branches and fuses their contexts. We further introduce LESSRec+, which uses separate encoders for different semantic-level histories with the same total parameter count to reduce encoder computation. Extensive experiments across three public datasets and three tokenizers demonstrate the recommendation effectiveness of LESSRec and LESSRec+, with efficiency analyses highlighting the computational benefits of LESSRec+.

CCS Concepts

• Information systems → Recommender systems.

Keywords

Generative Recommendation, Semantic ID, Tokenization

1 Introduction

Recommender systems support personalized item discovery on Web platforms such as online retail services [25]. Generative recommendation has recently gained attention as a new paradigm that formulates item prediction as a sequence generation task [2, 3, 35, 41]. Under this paradigm, semantic ID-based approaches have become particularly prominent, which predict items by generating their semantic IDs, each comprising an ordered sequence of discrete semantic tokens obtained through residual quantization [24, 32, 42].

Min Gao ∗^{*}

Chongqing University

Chongqing, China

gaomin@cqu.edu.cn

Within each item’s semantic IDs, earlier tokens typically represent coarse-grained item semantics, while later tokens encode finer-grained information [16, 33, 39]. This structure enables semantically similar items to share coarse-level prefix tokens, capturing their common semantics while retaining finer-grained distinctions.

Conventional semantic ID-based recommendation models adopt an encoder–decoder architecture [16, 24, 41]. The encoder contextualizes historical semantic tokens through self-attention, allowing tokens from different items and semantic levels to exchange information. The decoder can then attend to encoded tokens from all historical items and semantic levels, regardless of the level being predicted. This design brings together two distinct sequential structures: tokens at the same level across interactions capture behavioral patterns at a consistent semantic granularity, whereas tokens within an item describe its progressive semantic refinement. Given these different roles, it is unclear whether information from all levels is equally useful for next token prediction. This motivates a key question: when predicting a token at a particular semantic level, which levels in the interaction history provide useful evidence?

To understand how the decoder uses historical information from different semantic levels for prediction, we conduct an inference-time masking experiment on TIGER [24], a representative encoder-decoder generative recommender. We keep all parameters fixed and modify only the decoder's cross-attention mask, restricting each target position to tokens at a single semantic level in the interaction history (Figure 1(a)). Across masking configurations, the number of visible tokens remains constant, but performance improves as more target positions attend to their matching semantic levels (Figure 1(b)). With all positions aligned, each prediction accesses only one quarter of the history tokens, yet the recommendation performance slightly outperforms that of original TIGER, which uses unrestricted history access during both training and inference. These results suggest that explicitly matching historical access to the target semantic level can be more effective than providing access to all levels.

However, TIGER’s encoder mixes information across semantic levels before decoding, so attending to positions at one level does not isolate information from that level. To examine whether this mixing affects the observed alignment benefit, we train a TIGER variant that restricts encoder self-attention to tokens at the same semantic level, leaving the rest of the architecture unchanged. We then repeat the inference-time masking experiment on this variant.

∗^{*}Corresponding author.

Figure

(a) History-access patterns for a level-2 target

(b) Standard TIGER (shared encoding)

(c) TIGER with level-isolated encoding

Figure 1: Same-level vs. cross-level history access for prediction in TIGER under standard and level-isolated encoding (Recall@10 on Games). Under inference-time cross-attention masking, (m)A denotes (m) of four target positions using same-level access (e.g., (1) in (a)); the remaining positions use level-mismatched access (e.g., (2), (3), and (4) in (a)). Bars average configurations with the same (m). Dashed lines mark the original TIGER baseline; percentages show relative gains of 4A over 0A.

Figure 1(c) shows a larger contrast between aligned and mismatched access. Within each model, fully aligned access improves Recall@10 over fully mismatched access by 11.59% under standard encoding and 49.46% under level-isolated encoding. With cross-level mixing restricted during encoding, the larger gap between aligned and mismatched access provides clearer evidence that same-level history is more useful for prediction than cross-level history.

Motivated by these findings, we propose LESSRec (LEvel-Specific history modeling for Semantic ID-based Recommendation) to better use level-specific historical evidence. Specifically, Level-Isolated Self-Attention separately contextualizes historical tokens at each semantic level, preserving same-level associations across items. During prediction, the decoder uses Level-Aligned Cross-Attention to attend to historical semantic tokens at the same level as the target token. However, a single level offers only a partial semantic view, and relying on it alone may overlook how different levels complement one another in describing an item. To preserve this complementarity, we combine the contextualized states from different levels within each historical item to construct an Item-Level Semantic Sequence. The decoder accesses this sequence through a separate cross-attention branch and fuses its context with the level-aligned context, combining level-specific historical evidence with complementary item semantics for prediction.

LESSRec implements this organization through attention masks while sharing encoder layers across semantic levels. To avoid unnecessary computation over masked cross-level interactions and give each level its own encoder-layer parameters, we further propose LESSRec+. LESSRec+ partitions the existing encoder layers into level-specific groups, each processing only the historical semantic tokens at its assigned level. This reduces encoder computation and intermediate activation storage while retaining the same total parameter count as LESSRec.

Our main contributions are as follows:

  • To the best of our knowledge, we are the first to identify the predictive advantage of same-level history in semantic ID-based generative recommendation.

  • We propose LESSRec to jointly organize same-level historical associations across items and complementary semantic information within each item for prediction at each semantic level. LESSRec+ further reorganizes the encoder into level-specific groups, reducing computation while retaining the same parameter count as LESSRec.

• Experiments on three datasets with three tokenizers demonstrate the recommendation effectiveness of LESSRec and LESSRec+. Component ablations support the proposed design, while efficiency analyses show the computational benefits of LESSRec+.

References (8)