Generative Retrieval for E-commerce: Jointly Learning Embedding and Codebook with Same Product Cluster

2026-08-31Information Retrieval

Information RetrievalArtificial Intelligence
AI summary

The authors explain that current methods for finding products online use two separate steps: first making a way to represent products as numbers, then matching those numbers to product IDs. This method can cause mistakes because errors made early on can't be fixed later, and related products might get confusing IDs. To fix this, the authors suggest training both steps together and using information about which products belong to the same group. Their experiments show this new way helps find products more accurately.

large language modelsgenerative retrievalproduct embeddingcodebook learninge-commerce retrievaljoint trainingembedding modelproduct clustersquery-to-product interactions
Authors
Songtao Fang, Zihao Xu, Shaowei Wei, Jin Zhang, Zhuojun Wang
Abstract
With the development of large language models (LLMs), generative retrieval is becoming increasingly important in e-commerce scenarios. Current mainstream approaches typically use a two-stage training strategy: first train a product embedding model, and then learn a codebook that maps embeddings to product IDs. This cascaded approach suffers from two major issues: (1) error accumulation-if the embedding model in the first stage produces biased representations, the codebook in the second stage cannot correct these errors, degrading final retrieval performance; and (2) codebook learning relies solely on product embeddings and lacks modeling of query-to-product and product-to-product interactions. As a result, products belonging to the same cluster may be assigned inconsistent IDs by the codebook, further hurting retrieval accuracy. To address these problems, we propose a novel method that jointly trains the embedding model and the codebook, and incorporates same product cluster information as an additional supervision signal. Experimental results demonstrate that our method significantly improves e-commerce retrieval performance while simultaneously enhancing both embedding and codebook learning.