Abstract
Sequential recommendation models often struggle with "tail items"—rare products with limited interaction data—leading to popularity bias. This paper introduces CITIES (Contextual Inference of Tail-item Embeddings), a framework that improves recommendations by inferring high-quality embeddings for tail items from their surrounding context. Evaluated on Yelp and Amazon Movies & TV datasets, CITIES significantly boosts tail-item visibility and accuracy without degrading performance for popular items.
Introduction
Sequential recommendation systems, such as BERT4Rec and GRU4Rec, are designed to predict a user's next interaction based on their history. However, these models frequently suffer from a "long-tail" problem: they perform exceptionally well for popular "head" items but struggle with rare "tail" items. Because tail items appear infrequently in training data, their learned mathematical representations—or embeddings—are often noisy and poorly defined. This leads to a popularity bias where niche products are overlooked, despite their significant collective value in e-commerce and streaming platforms.
The CITIES Framework
To address this, researchers from NCSOFT developed CITIES (Contextual Inference of Tail-item Embeddings). CITIES is a plug-and-play framework designed to "hallucinate" high-quality embeddings for tail items by inferring their meaning from the contexts in which they appear.
The framework operates in three distinct phases:
- Pre-training: A standard sequential model is trained to establish robust embeddings for popular head items.
- Learning to Infer: The core of the system is the Embedding-Inference Function ($F_\phi$). This function is trained to predict an item's embedding based on its "context"—the items surrounding it in user histories. By using few-shot learning techniques on head items (simulating tail-item scarcity), the model learns to synthesize information from limited sequences.
- Application: The trained function generates improved embeddings for all tail items, which are then integrated back into the original recommendation model.
Experimental Results
The CITIES framework was evaluated on two large-scale datasets: Yelp (local business reviews) and Amazon Movies & TV. Tail items were defined as the bottom 50% of items by popularity.
The results demonstrated substantial improvements, particularly for niche items. On the Yelp dataset, applying CITIES to BERT4Rec increased the Hit Ratio @ 10 (HR@10) for tail items from 0.2463 to 0.4460. Notably, this improvement did not come at the expense of head-item performance; in many cases, head-item accuracy also improved because the model gained a better overall understanding of user sequences containing mixed item types.
Key Insights
- Context as a Semantic Proxy: The fundamental premise of CITIES is that an item is defined by its neighbors. Even with minimal interactions, an item's category or "vibe" can be inferred if it consistently appears alongside known items.
- Embedding Space Regularization: Visualization using UMAP revealed that CITIES helps "unstick" tail items from uninformative clusters, spreading them into the embedding space where the model can effectively distinguish between them.
- Cold-Start Versatility: The framework is capable of generating embeddings for entirely new items, provided they have at least one or two contextual interactions.
Conclusion and Future Work
CITIES provides a robust, architecture-agnostic solution to the long-tail problem in sequential recommendation. While currently focused on item IDs, future iterations could incorporate content features (like images or text) and user-specific preferences to further refine the inferred embeddings.
Summary updated