CoVE: Compressed Vocabulary Expansion Makes Better LLM-based Recommender Systems

Haochen Zhang, Tianyi Zhang, Junze Yin, Oren Gal, Anshumali Shrivastava, Vladimir Braverman

TL;DR

CoVE (Compressed Vocabulary Expansion) reimagines LLM-based sequential recommendation by assigning a unique token ID to every item in a catalog, turning recommendation into a fast, single-token prediction task. To prevent the memory explosion that comes with tracking millions of unique item embeddings, CoVE uses a clever hashing-based compression technique. The result is a system that completely eliminates text hallucination, speeds up inference by 100x, and outperforms existing state-of-the-art models by up to 62%.

What Problem Does This Paper Address?

Large Language Models (LLMs) are naturally adept at understanding sequences, making them prime candidates for sequential recommendation tasks (predicting what a user will want next based on their interaction history). However, current approaches fall into two flawed paradigms:

  1. LLMs as feature extractors: Using LLM embeddings to initialize traditional recommendation models, which fails to leverage the LLM's full sequential reasoning capabilities.
  2. LLMs as text generators: Finetuning the LLM to output the literal text title of the next item. This is computationally expensive (generating text token-by-token is slow) and highly prone to "hallucinations"—generating item titles that do not actually exist in the catalog.

While assigning a unique ID token to every item fixes the hallucination problem, it introduces a massive infrastructure bottleneck. For an industrial catalog with millions of items, the expanded embedding table can easily consume close to 100GB of GPU memory, making training entirely infeasible. CoVE addresses this exact trade-off between recommendation accuracy, inference speed, and memory efficiency.

Methods

CoVE introduces Compressed Vocabulary Expansion, a framework that maps each item in the recommendation space to a unique token ID (e.g., <|205|>) within an expanded LLM vocabulary.

Instead of generating a multi-token text title during inference, the model outputs a single token representing the recommended item ID. This process is non-generative; the system simply looks at the final layer's logits over the item space to make a prediction.

To make this scalable, the authors implement Hashing-based Embedding Compression:

  • Instead of storing a massive, distinct embedding for every single item, they define a much smaller latent shared item space.
  • They sample $k$ universal hash functions to map each item ID to multiple indices within this shared space.
  • An item's final embedding is computed on the fly by averaging the embeddings of its hashed counterparts.

During training, the framework uses LoRA (Low-Rank Adaptation) to update the transformer weights while simultaneously finetuning the compressed item embedding table and the language model head (lm_head).

Figure 1: An overview of our CoVE framework. Each item is assigned a unique ID in the tokenizer. It is then mapped to a distinct embedding. After that, our framework finetunes item embeddings, transformer weights, and the lm_head to align LLMs with sequential recommendation tasks.

Datasets

The authors evaluated CoVE on four public, real-world Amazon user-review benchmarks:

  • Amazon Video Games (17,408 items, 149,796 sequences)
  • Amazon Beauty (12,101 items, 22,363 sequences)
  • Amazon Toys & Games (11,924 items, 19,412 sequences)
  • Amazon Sports & Outdoors (18,357 items, 35,598 sequences)

Key Insights and Ideas

  • Logits Over Generation: Moving from autoregressive text generation to a single-token logit classification over item IDs completely bypasses the hallucination problem and slashes latency.
  • Implicit Semantic Mapping: Case studies revealed that even when item titles are entirely removed from the prompt during training, CoVE still performs remarkably well. The LLM successfully learns to map abstract item IDs to their sequential context, capitalizing on its underlying sequence-comprehension strengths.
  • The Power of Shared Spaces: The item space can be compressed significantly because items can share underlying embedding parameters through hashing without losing their unique identity. The network learns to disentangle the blended embeddings during the optimization process.

Key Results

  • Accuracy Breakthroughs: CoVE achieved a 30% to 62% relative improvement in recommendation metrics (HR@K and NG@K) over previous state-of-the-art generative frameworks like TIGER and BIGRec across the Beauty, Toys, and Sports datasets.
  • 100x Inference Speedup: By avoiding multi-token text generation, CoVE processed 6.5 samples per second, compared to the finetune-and-retrieval baseline (BIGRec) which crawled at 0.066 samples per second.
  • Extreme Compression Resilience: As shown in the paper's ablation studies, even when the embedding layer is compressed 16-fold (reducing its memory footprint to 1/16th), CoVE still consistently outperforms uncompressed state-of-the-art baselines.
Figure 3: Normalized metrics, HR@5, NG@5, HR@10, and NG@10, of CoVE under different compression rates (2, 4, 8, 16), where the original embedding layer is compressed to 1/2, 1/4, 1/8, and 1/16 of its original size, respectively. We compare four metrics across three datasets, resulting in twelve figures, showcasing CoVE alongside the state-of-the-art baseline. Notably, even when the embedding layer is compressed 16-fold, CoVE still outperforms the state-of-the-art baseline with only one exception (HR@10 of the toys dataset).

Limitations and Future Work

While hashing provides an elegant and hardware-friendly compression method, the authors note that they rely on a relatively straightforward arithmetic universal hash family. They point out that exploring more advanced embedding compression techniques—such as quantization, low-rank matrix approximation, or pairing the system with memory-efficient optimizers—could yield even better scaling properties for massive industrial catalogs containing hundreds of millions of products.

Summary updated

Abstract

Recommender systems play a pivotal role in providing relevant content to users. With the rapid development of large language models (LLMs), researchers have begun utilizing LLMs to build more powerful recommender systems. However, existing approaches that focus on aligning LLMs with recommendation tasks do not fully leverage their sequential information processing capabilities, leading to suboptimal performance. In this paper, we propose a novel system called compressed vocabulary expansion (CoVE). In CoVE, each item is assigned a unique ID within the expanded vocabulary. Our framework effectively capitalizes on sequence understanding abilities of LLMs, significantly enhancing their performance on recommendation tasks. Additionally, we compress the embedding layer, making CoVE practical for large-scale industrial applications. The effectiveness and performance of CoVE are demonstrated through comprehensive experiments on multiple recommendation datasets and comparisons with prior works. Our code can be found at https://github.com/HaochenZhang717/CoVE-official-Repo.
BibTeX
@inproceedings{zhang2025cove,
  author = {Haochen Zhang and Tianyi Zhang and Junze Yin and Oren Gal and Anshumali Shrivastava and Vladimir Braverman},
  title = {{CoVE: Compressed Vocabulary Expansion Makes Better LLM-based Recommender Systems}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=cu3rNfxZlt},
}
Figure