Language Models as Semantic Indexers
Bowen Jin, Hansi Zeng, Guoyin Wang, Xiusi Chen, Tianxin Wei, Ruirui Li, Zhengyang Wang, Zheng Li, Yang Li, Hanqing Lu, Suhang Wang, Jiawei Han, Xianfeng Tang
Abstract
Semantic identifier (ID) is an important concept in information retrieval that aims to preserve the semantics of objects such as documents and items inside their IDs. Previous studies typically adopt a two-stage pipeline to learn semantic IDs by first procuring embeddings using off-the-shelf text encoders and then deriving IDs based on the embeddings. However, each step introduces potential information loss, and there is usually an inherent mismatch between the distribution of embeddings within the latent space produced by text encoders and the anticipated distribution required for semantic indexing. It is non-trivial to design a method that can learn the document's semantic representations and its hierarchical structure simultaneously, given that semantic IDs are discrete and sequentially structured, and the semantic supervision is deficient. In this paper, we introduce LMIndexer, a self-supervised framework to learn semantic IDs with a generative language model. We tackle the challenge of sequential discrete ID by introducing a semantic indexer capable of generating neural sequential discrete representations with progressive training and contrastive learning. In response to the semantic supervision deficiency, we propose to train the model with a self-supervised document reconstruction objective. We show the high quality of the learned IDs and demonstrate their effectiveness on three tasks including recommendation, product search, and document retrieval on five datasets from various domains. Code is available at https://github.com/PeterGriffinJin/LMIndexer.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
14 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Towards Unified Multi-Modal Personalization: Large Vision-Language Models for Generative Recommendation and Beyond cites Recommender Systems with Generative Retrieval
- Generating Long Semantic IDs in Parallel for Recommendation cites Recommender Systems with Generative Retrieval
- Generating Long Semantic IDs in Parallel for Recommendation cites EAGER: Two-Stream Generative Recommender with Behavior-Semantic Collaboration
- Recommender Systems with Generative Retrieval cites Autoregressive Image Generation using Residual Quantization
- EAGER: Two-Stream Generative Recommender with Behavior-Semantic Collaboration cites Recommender Systems with Generative Retrieval
- Learning to Tokenize for Generative Retrieval cites Dense Passage Retrieval for Open-Domain Question Answering
- Unleash LLMs Potential for Sequential Recommendation by Coordinating Dual Dynamic Index Mechanism cites Recommender Systems with Generative Retrieval
- A Gradient Accumulation Method for Dense Retriever under Memory Constraint cites Dense Passage Retrieval for Open-Domain Question Answering
- A Gradient Accumulation Method for Dense Retriever under Memory Constraint cites Learning to Tokenize for Generative Retrieval
Cited by top-tier papers14
- Towards Unified Multi-Modal Personalization: Large Vision-Language Models for Generative Recommendation and BeyondTianxin Wei, Bowen Jin, Ruirui Li, Hansi Zeng et al.ICLR 2024 · 46 citations
- Unleash LLMs Potential for Sequential Recommendation by Coordinating Dual Dynamic Index MechanismJun Yin, Zhengxin Zeng, Mingzheng Li, Hao Yan et al.WWW 2025 · 15 citations
- EAGER: Two-Stream Generative Recommender with Behavior-Semantic CollaborationYe Wang, Jiahao Xun, Minjie Hong, Jieming Zhu et al.KDD 2024 · 13 citations
- A Gradient Accumulation Method for Dense Retriever under Memory ConstraintJaehee Kim, Yukyung Lee, Pilsung KangNeurIPS 2024 · 10 citations
- Generating Long Semantic IDs in Parallel for RecommendationYupeng Hou, Jiacheng Li, Ashley Shin, Jinsung Jeon et al.KDD 2025 · 4 citations
Builds on6
- ELECTRA: Pre-training Text Encoders as Discriminators Rather Than GeneratorsKevin Clark, Minh-Thang Luong, Quoc V. Le, Christopher D. ManningICLR 2020 · 541 citations
- Recommender Systems with Generative RetrievalShashank Rajput, Nikhil Mehta, Anima Singh, Raghunandan Hulikal Keshavan et al.NeurIPS 2023 · 474 citations
- Autoregressive Image Generation using Residual QuantizationDoyup Lee, Chiheon Kim, Saehoon Kim, Minsu Cho et al.CVPR 2022 · 184 citations
- Learning to Tokenize for Generative RetrievalWeiwei Sun, Lingyong Yan, Zheng Chen, Shuaiqiang Wang et al.NeurIPS 2023 · 151 citations
- Dense Passage Retrieval for Open-Domain Question AnsweringVladimir Karpukhin, Barlas Oguz, Sewon Min, Patrick Lewis et al.EMNLP 2020 · 142 citations
Related papers
- DOGR: Leveraging Document-Oriented Contrastive Learning in Generative RetrievalPenghao Lu, Xin Dong, Yuansheng Zhou, Lei Cheng et al.AAAI 2025
- Descriptive and Discriminative Document Identifiers for Generative RetrievalJiehan Cheng, Zhicheng Dou, Yutao Zhu, Xiaoxi LiAAAI 2025 · 4 citations
- Reasoning over Semantic IDs Enhances Generative RecommendationYingzhi He, Yan Sun, Junfei Tan, Yuxin Chen et al.KDD 2026 · 15 citations
- Generative Retrieval Meets Multi-Graded RelevanceYubao Tang, Ruqing Zhang, Jiafeng Guo, Maarten de Rijke et al.NeurIPS 2024 · 18 citations
- Auto Search Indexer for End-to-End Document RetrievalTianchi Yang, Minghui Song, Zihan Zhang, Haizhen Huang et al.EMNLP Findings 2023 · 9 citations
