Generative models powered by Large Language Models (LLMs) are emerging as a unified solution for powering both recommendation and search tasks. A key design choice in these models is how to represent items, traditionally through unique identifiers (IDs) and more recently with Semantic IDs composed of discrete codes, obtained from embeddings. While task-specific embedding models can improve performance for individual tasks, they may not generalize well in a joint setting. In this paper, we explore how to construct Semantic IDs that perform well both in search and recommendation when using a unified model. We compare a range of strategies to construct Semantic IDs, looking into task-specific and cross-tasks approaches, and also whether each task should have its own semantic ID tokens in a joint search and recommendation generative model. Our results show that using a bi-encoder model fine-tuned on both search and recommendation tasks to obtain item embeddings, followed by the construction of a unified Semantic ID space provides an effective trade-off, enabling strong performance in both tasks. We hope these findings spark follow-up work on generalisable, semantically grounded ID schemes and inform the next wave of unified generative recommender architectures.
@article{arxiv.2508.10478,
title = {Semantic IDs for Joint Generative Search and Recommendation},
author = {Gustavo Penha and Edoardo D'Amico and Marco De Nadai and Enrico Palumbo and Alexandre Tamborrino and Ali Vardasbi and Max Lefarov and Shawn Lin and Timothy Heath and Francesco Fabbri and Hugues Bouchard},
journal= {arXiv preprint arXiv:2508.10478},
year = {2025}
}
Comments
Accepted for publication in the 19th ACM Conference on Recommender Systems (RecSys 2025), Late-Breaking Results track