NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Improving Out-of-Vocabulary Handling in Recommendation Systems

William Shiao, Mingxuan Ju, Zhichun Guo, Xin Chen, Evangelos E. Papalexakis, Tong Zhao, Neil Shah, Yozen LiuarXiv 2024

Abstract

Recommendation systems (RS) are an increasingly relevant area for both academic and industry researchers, given their widespread impact on the daily online experiences of billions of users. One common issue in real RS is the cold-start problem, where users and items may not contain enough information to produce high-quality recommendations. This work focuses on a complementary problem: recommending new users and items unseen (out-of-vocabulary, or OOV) at training time. This setting is known as the inductive setting and is especially problematic for factorization-based models, which rely on encoding only those users/items seen at training time with fixed parameter vectors. Many existing solutions applied in practice are often naive, such as assigning OOV users/items to random buckets. In this work, we tackle this problem and propose approaches that better leverage available user/item features to improve OOV handling at the embedding table level. We discuss general-purpose plug-and-play approaches that are easily applicable to most RS models and improve inductive performance without negatively impacting transductive model performance. We extensively evaluate 9 OOV embedding methods on 5 models across 4 datasets (spanning different domains). One of these datasets is a proprietary production dataset from a prominent RS employed by a large social platform serving hundreds of millions of daily active users. In our experiments, we find that several proposed methods that exploit feature similarity using LSH consistently outperform alternatives on most model-dataset combinations, with the best method showing a mean improvement of 3.74% over the industry standard baseline in inductive performance. We release our code and hope our work helps practitioners make more informed decisions when handling OOV for their RS and further inspires academic research into improving OOV support in RS.

Introduction

Most academic research in recommendation systems (RS) operates in a transductive setting, assuming all users and items are known at training time. In real-world production environments, however, systems must be inductive: new users sign up and new items are uploaded every minute. These entities are "Out-of-Vocabulary" (OOV) relative to the trained model.

The standard industry fix for OOV entities is often "random hashing," where OOV IDs are mapped to a fixed set of "buckets." This approach is problematic because it leads to embedding collisions—two completely different users might end up sharing the same representation just because their IDs hashed to the same bucket. This lack of differentiation results in a significant performance gap between known (transductive) and unknown (inductive) users.

The Performance Gap in Inductive Recommendation

To quantify the challenge, the authors evaluated several models across multiple datasets. As illustrated below, there is a massive performance gap between transductive and inductive evaluation when using primitive OOV handling methods.

Performance gap between transductive and inductive evaluation across datasets

This gap highlights the failure of current systems to generalize to new data points, particularly when relying on ID-based embeddings that have no meaningful representation for unseen IDs.

Proposed Methodology: Feature-Aware OOV Embeddings

The authors propose a general-purpose "plug-and-play" framework to handle OOV values at the embedding table level. This framework allows existing RS architectures to be augmented with better OOV support without requiring a complete redesign of the model.

The proposed OOV handling framework at the embedding table level

The core logic involves a check for each incoming ID. If the ID is in-vocabulary (IV), the standard embedding table is used. If it is OOV, the system routes the ID along with available user/item features to a specialized OOV Embedding Model.

The study evaluates nine different OOV embedders, categorized into heuristic-based and learning-based approaches. The standout contributors are methods based on Locality-Sensitive Hashing (LSH):

  • Mean LSH (m-lsh): Uses a random projection matrix to map features into a binary vector, which acts as a multi-index into an OOV embedding table. The final embedding is the mean of the selected rows.
  • Single LSH (s-lsh): Treats the binary vector as a single unique index into the OOV table.

The core idea is to exploit feature similarity: if two new users have similar profiles (e.g., same country, similar age), they should receive similar initial embeddings. To train these embedders without degrading performance on known users, the authors utilize synthetic OOV data, masking IDs or features of known users during a specialized second phase of training.

Experimental Evaluation

The study utilizes four datasets spanning different domains:

  • Yelp-2018: User reviews of businesses.
  • LastFM-artists: User-artist interactions.
  • H&M: Fashion purchase data.
  • Content: A large-scale proprietary production dataset from Snap Inc., featuring rich user/item metadata for hundreds of millions of daily active users.

Time-based splits were implemented for all datasets to ensure that OOV users and items appear naturally during evaluation, mimicking real-world deployment scenarios.

Key Insights and Results

  • Context as a Lifeline: For OOV entities, contextual features (like user location or item category) are the only reliable signal. Incorporating this information into the OOV embedding process can bridge the performance gap by up to 6 AU-ROC points.
  • LSH Superiority: LSH-based methods (m-lsh and s-lsh) were the top performers in 6 out of 9 model-dataset combinations. LSH is effective because it preserves the topology of the feature space, ensuring similar users end up with similar OOV embeddings.
  • Industry Impact: The best method showed a 3.74% mean improvement in inductive performance over the industry-standard random bucket assignment.
  • Model Agnosticism: The proposed embedding-level fixes work across various architectures, from simple matrix factorization to complex deep learning models like xDeepFM and DCN-V2.

Conclusion

This work demonstrates that replacing naive industry practices like random hashing with feature-aware embedding methods can significantly improve recommendation quality for new users and items. While context-free models still struggle with OOV handling due to a lack of "anchors," the proposed LSH-based framework provides a robust, plug-and-play solution for modern, feature-rich recommendation systems. The authors have open-sourced their evaluation framework as an extension to the RecBole library to encourage further research in this critical area.

Summary updated

BibTeX
@misc{shiao2024improving,
  author = {William Shiao and Mingxuan Ju and Zhichun Guo and Xin Chen and Evangelos E. Papalexakis and Tong Zhao and Neil Shah and Yozen Liu},
  title = {{Improving Out-of-Vocabulary Handling in Recommendation Systems}},
  year = {2024},
  eprint = {2403.18280},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.18280},
}
Figure