arXiv:2610.25093cs.IROct 2026

Manuscript Offprint

arXiv:2610.25093

Structure-Aligned History Learning with Subspace-Structured Semantic IDs for Generative Recommendation

Kaiwen Wei, Kejun He, Jie Zhang, Xiaomian Kang, Yuming Yang, Aijia Zhou, Xie Zhou, Yining Wang, Nayu Liu, Li Jin, Zhenyang Li, Jiang Zhong, He Bai, Jingxuan Wei, Junnan Zhu

KAIWEN WEI*, College of Computer Science, Chongqing University, China

KEJUN HE*, College of Computer Science, Chongqing University, China

JIE ZHANG, China Telecom Artificial Intelligence Technology (Beijing) Co. Ltd, China

XIAOMIAN KANG, MAIS, Institute of Automation, Chinese Academy of Sciences, China

YUMING YANG, College of Computer Science, Chongqing University, China

AIJIA ZHOU, College of Computer Science, Chongqing University, China

XIE ZHOU, University of Science and Technology Beijing, China

YINING WANG, Unisound AI, China

NAYU LIU, School of Computer Science and Technology, Tianjin University, China

LI JIN, Minzu University of China, China

ZHENYANG LI, The Hong Kong Polytechnic University, China

JIANG ZHONG †^{\dagger}, College of Computer Science, Chongqing University, China

HE BAI, Independent researcher, China

JINGXUAN WEI, Shandong Computer Science Center (National Supercomputer Center in Jinan), China

JUNNAN ZHU †^{\dagger}, MAIS, Institute of Automation, Chinese Academy of Sciences, China

Generative recommendation constructs semantic IDs for catalog items and predicts the next ID from user interaction histories. However, existing methods face limitations in both stages. First, conventional quantizers may produce imbalanced code assignments and lack coherent intermediate semantic units between individual tokens and complete items, limiting history reconstruction. Second, recommendation models remain dominated by next-item prediction, treating historical interactions mainly as conditioning context and providing limited supervision for recovering persistent preferences across the historical path, particularly when relevant preference signals are distributed over distant interactions. To address these limitations, Structure-Aligned History Learning (SAHL) reconnects the two stages by using the structure created during quantization directly for history reconstruction. Its Semantic Residual Balanced Quantization (SRBQ) forms a balanced token–subspace–item hierarchy, and SAHL reconstructs history at these same granularities. Predictive entropy prioritizes uncertain transitions, while curriculum optimization progressively shifts training to inference-aligned next-item prediction. On four Amazon Review categories, SAHL improves NDCG@10 by 18.6%–30.0% over RPG and 2.7%–6.0%

*Kaiwen Wei and Kejun He contributed equally to this work.

†^{\dagger}Corresponding authors: Jiang Zhong and Junnan Zhu.

Authors' Contact Information: Kaiwen Wei, College of Computer Science, Chongqing University, Chongqing, China, weikaiwen@cqu.edu.cn; Kejun He, College of Computer Science, Chongqing University, Chongqing, China, hekejun@stu.cqu.edu.cn; Jie Zhang, China Telecom Artificial Intelligence Technology (Beijing) Co. Ltd, Beijing, China, zhangj157@chinatelecom.cn; Xiaomian Kang, MAIS, Institute of Automation, Chinese Academy of Sciences, Beijing, China, xiaomian.kang@nlpr.ia.ac.cn; Yuming Yang, College of Computer Science, Chongqing University, Chongqing, China, ymyang@cqu.edu.cn; Aijia Zhou, College of Computer Science, Chongqing University, Chongqing, China, 202414131135@stu.cqu.edu.cn; Xie Zhou, University of Science and Technology Beijing, Beijing, China, zhouxie@xs.ustb.edu.cn; Yining Wang, Unisound AI, Beijing, China, wangyining@unisound.com; Nayu Liu, School of Computer Science and Technology, Tianjin University, Tianjin, China, nyliu@tju.edu.cn; Li Jin, Minzu University of China, Beijing, China, jinlimails@gmail.com; Zhenyang Li, The Hong Kong Polytechnic University, Hong Kong SAR, China, zhenyanglidz@gmail.com; Jiang Zhong, College of Computer Science, Chongqing University, Chongqing, China, zhongjiang@cqu.edu.cn; He Bai, Independent researcher, China, richardbai@apple.com; Jingxuan Wei, Shandong Computer Science Center (National Supercomputer Center in Jinan), Jinan, China, weijx@sdas.org; Junnan Zhu, MAIS, Institute of Automation, Chinese Academy of Sciences, Beijing, China, junnan.zhu@nlpr.ia.ac.cn.

Wei et al.

over strong method MHL. Controlled analyses verify balanced code use, the benefit of following quantizer-defined groups during reconstruction, and dependence on user history. The relevant code is available at https://github.com/CQU-MM-Intelligent-Lab/SAHL.

CCS Concepts: • Information systems → Recommender systems; • Computing methodologies → Learning latent representations.

Additional Key Words and Phrases: Generative recommendation, semantic identifiers, vector quantization, masked history learning, curriculum learning, codebook structure

1 Introduction

Recommender systems have evolved from collaborative filtering [5, 26, 46] to sequential models that capture the dynamics of user behavior [14, 36, 55]. More recently, generative recommendation [17, 39, 42, 50] has emerged as a promising paradigm that leverages pretrained language models [2, 18, 39] to model interaction sequences and generate semantic IDs of recommended items [19, 45, 57].

Generative recommendation typically first converts catalog items into semantic IDs and then predicts the next ID from a user's interaction sequence. These two stages jointly determine how effectively the model can learn from historical behavior. Semantic-ID construction defines what units of an item are available for reconstruction, while the training objective determines how these units are exploited to capture dependencies along the interaction history. In representative generative recommenders [17, 39, 42, 50], however, semantic-ID construction and recommendation learning often pursue different primary objectives, which may weaken the representation structure's support for history supervision.

Figure

Fig. 1. Motivation for the proposed SAHL method. SAHL aligns hierarchical semantic IDs with multi-granularity history reconstruction to capture persistent interests beyond short-range item co-occurrences.

This mismatch gives rise to two coupled challenges. (1) Constructing History-Compatible Semantic IDs. Optimized product quantization (OPQ) [9, 21] prioritizes compact encoding and distortion reduction, exposing individual tokens and the complete ID but no intermediate units aligned with coherent latent factors; multi-token reconstruction must therefore impose arbitrary groups. Figure 2 also shows uneven OPQ occupancy on the CDs and Vinyl dataset, yielding unevenly supported reconstruction targets. (2) Learning Persistent Preferences from Historical Paths. Conventional next-item objectives [17, 39] primarily use the semantic ID as the prediction target. Although they can learn dependencies from interaction sequences, they do not explicitly require the model to reconstruct preference evidence distributed across earlier interactions. The model may consequently favor recent co-occurrences over persistent preferences. As illustrated in Fig. 1, the target memory card is consistent with the preference signaled by the earlier camera body, whereas a model focused on the latest camera lens may generate lens accessories. Taken together, the representation provides no principled intermediate units for history reconstruction, while the objective provides no direct supervision for learning from such units along the historical path.

To restore this connection, we propose Structure-Aligned History Learning (SAHL). Its Semantic Residual Balanced Quantization (SRBQ) partitions decorrelated dimensions into subspaces, quantizes residuals within each

Figure

Fig. 2. Codebook utilization on the CDs and Vinyl dataset. Codeword occupancies are sorted and normalized by the ideal load. At each occupancy percentile, the curves and bands show the median and 10th–90th percentiles across 64 token positions. OPQ exhibits under-utilized and overloaded codewords, whereas the proposed SRBQ provides more evenly supported reconstruction targets.

group, and controls occupancy. This process establishes a balanced token ⊂\subset subspace ⊂\subset item hierarchy during semantic-ID construction. SAHL then uses exactly this hierarchy to define token-, subspace-, and item-level reconstruction targets along historical paths. An information-theoretic strategy [31] prioritizes uncertain targets, while curriculum learning [3] transitions from random masking through entropy-guided reconstruction to uncorrupted next-item generation. In this way, SRBQ defines the units to reconstruct, and the learning strategies determine how those units supervise path understanding. The joint design provides complementary benefits at both stages. By reconstructing the same token, subspace, and item units that SRBQ defines during quantization, SAHL grounds historical supervision in the representation structure rather than in arbitrary token blocks. Moreover, reconstructing informative units distributed across earlier interactions encourages the model to recover persistent preferences beyond local transitions, while curriculum optimization carries this ability into next-item generation.

Experiments on four Amazon Reviews 2014 categories [32] show that SAHL improves NDCG@10 over the architecture-matched RPG baseline by 18.6%-30.0%. SRBQ reduces mean/worst peak codeword loads by 28.8%-32.4%/37.3%-41.3%. Grouping controls show that reusing actual SRBQ groups outperforms same-size artificial groups, while history shuffling verifies that reconstruction uses user-specific context. Transfer to text tokens further separates the general history-learning mechanism from SRBQ-specific benefits. The contributions of this work are:

• We formulate semantic-ID construction and history learning as a coupled design problem and propose SAHL, which reuses quantizer-defined ID structure to organize historical supervision.

• We introduce SRBQ, combining subspace decomposition, residual quantization, and occupancy-aware assignment to construct balanced token–subspace–item units for history reconstruction.

• We align masking with the SRBQ hierarchy, prioritize informative historical units through predictive entropy, and use curriculum learning to connect history reconstruction with future-path generation.

  • Extensive experiments on four datasets demonstrate consistent gains and separately verify balanced reconstruction targets, the benefit of reusing quantizer-defined groups, and dependence on user history.

Wei et al.

References (36)