Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

The Best of the Two Worlds: Harmonizing Semantic and Hash IDs for Sequential Recommendation

About

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.

Ziwei Liu, Yejing Wang, Wanyu Wang, Wang Zejian, Qidong Liu, Zijian Zhang, Chong Chen, Wei Huang, Xiangyu Zhao• 2025

Related benchmarks

TaskDatasetResultRank
Sequential RecommendationYelp (Overall)
Hit Rate @100.6692
63
Sequential RecommendationBeauty
HR@1057.42
58
Sequential RecommendationYelp (Tail)
Hit Rate@1026.93
39
Sequential RecommendationInstrument
Recall@1061.84
20
Sequential RecommendationBeauty Tail Item
Hit Rate @ 1025.57
14
Sequential RecommendationYelp Head
Hit Rate @1083.24
12
Sequential RecommendationBeauty (Head)
H@1065.02
12
Sequential RecommendationInstrument (Tail)
H@100.2382
12
Sequential RecommendationInstrument Head
H@1068.32
12
Showing 9 of 9 rows

Other info

Follow for update