The Best of Both Worlds: Harmonizing Semantic and Hash IDs for Sequential Recommendation
Open Access
- 8 August 2026
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 7703-7714
Abstract
Conventional Sequential Recommender Systems (SRS) typically assign unique hash IDs (HID) to construct item embeddings, which mainly capture collaborative signals from historical user–item interactions. However, such embeddings are vulnerable in long-tail scenarios where most items are rarely consumed. Recent methods that incorporate auxiliary information often face noisy collaborative sharing from co-occurrence signals or semantic homogeneity caused by flat dense embeddings. In contrast, Semantic IDs (SID), with their support for code sharing and multi-granular semantic modeling, offer a promising alternative. Nevertheless, SID-based methods are hindered by a collaborative overwhelming phenomenon: commonly adopted quantization mechanisms compromise the identifier uniqueness needed to model head items, resulting in a performance trade-off between head and tail items. To address this challenge, we propose H2Rec, a novel framework that harmonizes SID and HID. We design a dual-branch modeling architecture that simultaneously captures the multi-granular semantics of SID while preserving the unique collaborative identity provided by HID. Moreover, we introduce a dual-level alignment strategy to bridge the two representations, enabling effective knowledge transfer and robust preference modeling. Extensive offline experiments on three public benchmarks and online experiments on a large-scale commercial platform demonstrate that H2Rec achieves a better balance between head and tail recommendation quality and consistently outperforms existing baselines. The implementation code is publicly available. https://github.com/Applied-Machine-Learning-Lab/KDD26_H2Rec.Keywords
All Related Versions
Funding Information
- National Natural Science Foundation of China (62502404)
- Hong Kong Research Grants Council (Research Impact Fund) (R1015-23)
- Hong Kong Research Grants Council (Collaborative Research Fund) (C1043-24GF)
- Hong Kong Research Grants Council (General Research Fund) (11218325)
- Institute of Digital Medicine of City University of Hong Kong (9229503)
- Huawei Innovation Research Program (-)
- Tencent Rhino-Bird Focused Research Program (-)
- Tencent University Cooperation Project (-)
- CCF-Kuaishou Large Model Explorer Fund (2025008)
- Kuaishou University Cooperation Project (-)
- CCF-Didi Gaia Scholars Research Fund (-)
- Bytedance (-)
This publication has 35 references indexed in Scilit:
- Autoregressive Image Generation using Residual Quantization2022
- Contrastive Learning for Sequential Recommendation2022
- CITIES: Contextual Inference of Tail-Item Embeddings for Sequential Recommendation2020
- Self-Attentive Sequential Recommendation2018
- Deep reinforcement learning for page-wise recommendations2018
- Recommendations with Negative Feedback via Pairwise Deep Reinforcement Learning2018
- Improving Sequential Recommendation with Knowledge-Enhanced Memory Networks2018
- Personalized Top-N Sequential Recommendation via Convolutional Sequence Embedding2018
- When Recurrent Neural Networks meet the Neighborhood for Session-Based Recommendation2017
- Vector quantizationIEEE ASSP Magazine, 1984