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:
- LLMs as feature extractors: Using LLM embeddings to initialize traditional recommendation models, which fails to leverage the LLM's full sequential reasoning capabilities.
- 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).
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.
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