arXiv:2609.08310cs.IRSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.08310

Exploring Bottom-Up Clustering for Creating Semantic IDs

Leah Woldemariam, Sudhanshu Garg, Taha Belkhouja, Charles Kim-Yip, Ali Sahami

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Leah Woldemariam

Department of Electrical and Computer Engineering Cornell Tech, Cornell University New York, NY, USA lsw85@cornell.edu

Sudhanshu Garg

PayPal San Jose, California, USA sudgarg@paypal.com

Taha Belkhouja

PayPal San Jose, California, USA tbelkhouja@paypal.com

Charles Kim-Yip

PayPal San Jose, California, USA cyip@paypal.com

Ali Sahami

PayPal San Jose, California, USA asahamishirazi@paypal.com

Abstract

The success of generative retrieval has largely been attributed to the use of Semantic IDs, which improve over arbitrary item-level identifiers such as hashes by capturing the semantics of items. The main challenges faced when constructing Semantic IDs, however, is in mapping each identifier to a unique product and capturing information valuable to downstream tasks. Past works have appended additional codewords to de-duplicate item identifiers and utilized residual quantization to create hierarchical clusters. In this work, we present an algorithm for generating Semantic IDs that ensure the identifiers are both unique and preserve the structure of the original embedding. Key to our work is the use of bottom-up clustering to preserve local structure in the embedding space, improving the clustering quality of the resulting Semantic IDs and their utility for downstream generative retrieval.

1 Introduction

Generative retrieval has been established as a method for creating recommendation systems that provides better generalization performance on new items [RMS+23]. Instead of matching user and item embeddings, generative retrieval takes user information as input and generates potential items by treating retrieval as a sequential task. User information might include previous item interactions or text queries for the task of search. Its main advantage includes avoiding the error propagation due to multi-stage filtering, as well avoiding popularity bias and cold-start issues [LGC+25, RMS+23]. Since items in these sequential models must be quantized, a recent line of research has been directed towards approaches to creating these quantized identifiers. Using item semantics to create these identifiers has shown to be the main facilitator in providing better item generalization [RMS+23].

Identifiers that encode item semantics, called Semantic IDs (SIDs), are usually a short sequence of integers built in a hierarchical fashion so that top-level codewords represent coarse, categorical information, and lower level codewords increase precision in identifying an item. The item hierarchy allows for a smaller search space at each decoding step [TTD+22] and allows for a clear method for recommending diverse items [RMS+23]. Among methods used for generating Semantic IDs, Residual-Quantized Variational Autoencoders (RQ-VAEs) and Residual K-Means (R-KMeans) stand out as the most popular due to the use of residual quantization for enforcing the item hierarchy.

The primary issues surrounding the creation of Semantic IDs include codebook collapse and item collision. Codebook collapse occurs when only a few codewords within a codebook at any given level in a hierarchy contain the vast majority of items, under-utilizing the entire codebook space, while collisions occur when a single SID maps to multiple items [LHF+25]. Together, these issues can

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

prevent semantically distinct items from being assigned unique and informative identifiers. Arbitrary assignment methods such as hashing or plain enumeration satisfy the property of uniqueness, but they fail to encode semantic relationships between items. Generating good SIDs therefore requires balancing two objectives: assigning each item a unique identifier while ensuring that semantically similar items are mapped to nearby Semantic IDs.

In this work, we propose an approach to creating Semantic IDs that both satisfies uniqueness and preserves distance in the embedding space. Using bottom-up rather than top-down clustering, we assign items to leaf nodes first, this ensures that each item corresponds to a single leaf node (uniqueness) and similar items in the embeddings space are inherently assigned nearby SIDs. The motivation behind the use of a bottom-up clustering is to preserve this local structure throughout the SID hierarchy: two items with similar embeddings will more likely share the same (L−1)(L-1)-th codeword when there are LL codewords, thereby preserving fine-grained semantic relationships that can be exploited by downstream models. In contrast to conventional methods, which often introduce uniqueness through an ad hoc deduplication step and prioritize global structure during quantization, our approach preserves local neighborhoods by design. By jointly preserving uniqueness and local embedding structure, our approach provides a more faithful discrete interface between pretrained item representations and downstream retrieval decisions, directly addressing the broader question of how pretrained representations can be made more actionable for downstream tasks.