Purely Semantic Indexing for LLM-based Generative Recommendation and Retrieval

Ruohan Zhang, Jiacheng Li, Julian McAuley, Yupeng Hou
9/19/2025
cs.IRcs.CL

No official code found. Best implementation: wangshanyw/PurelySemanticIndexing (6 stars, last commit 2025-08-27).

Abstract

Semantic identifiers (IDs) have proven effective in adapting large language models for generative recommendation and retrieval. However, existing methods often suffer from semantic ID conflicts, where semantically similar documents (or items) are assigned identical IDs. A common strategy to avoid conflicts is to append a non-semantic token to distinguish them, which introduces randomness and expands the search space, therefore hurting performance. In this paper, we propose purely semantic indexing to generate unique, semantic-preserving IDs without appending non-semantic tokens. We enable unique ID assignment by relaxing the strict nearest-centroid selection and introduce two model-agnostic algorithms: exhaustive candidate matching (ECM) and recursive residual searching (RRS). Extensive experiments on sequential recommendation, product search, and document retrieval tasks demonstrate that our methods improve both overall and cold-start performance, highlighting the effectiveness of ensuring ID uniqueness.

View on arXivView PDF

Code Implementations(1)

Codebase for paper [Purely Semantic Indexing for LLM-based Generative Recommendation and Retrieval]

61Shell, PythonAug 27, 20251 years ago

Similar Papers

Cite this paper

@article{zhang2025purely,
  title  = {Purely Semantic Indexing for LLM-based Generative Recommendation and Retrieval},
  author = {Ruohan Zhang and Jiacheng Li and Julian McAuley and Yupeng Hou},
  year   = {2025},
  eprint = {2509.16446},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.16446v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.16446.svg)](https://codeofpaper.com/paper/2509.16446)

Discussion