Multi-granularity Item-Based Contrastive Recommendation

Ruobing Xie, Zhijie Qiu, Bo Zhang, Leyu Lin

TL;DR

MicRec is a novel contrastive learning (CL) framework that enhances the matching stage of recommender systems by focusing on multi-aspect item correlations. By integrating feature, semantic, and session-level item information as auxiliary self-supervised signals, it significantly improves recommendation accuracy and diversity, especially for long-tail items and cold-start users.

What Problem Does This Paper Address?

Modern recommender systems typically follow a two-stage architecture: matching (retrieving hundreds of candidates from millions) and ranking (precisely ordering those candidates). The matching stage is particularly challenging because it must handle massive item corpora where data is often extremely sparse—most items have very few user interactions.

While Contrastive Learning (CL) has recently been used to tackle this sparsity by creating "self-supervised" signals, most existing methods focus on augmenting user data (e.g., masking parts of a user's history). The authors argue that this ignores the rich, multi-faceted information inherent in the items themselves. Since item representations directly determine the similarity scores in the widely-used "two-tower" matching architecture, improving these representations is critical for better retrieval.

Methods

The authors propose MicRec, a framework that introduces three distinct item-based CL tasks as "plug-and-play" auxiliary objectives. These tasks capture item correlations at different levels of granularity:

  1. Fine-grained Feature-level CL: This task uses dropout-based augmentations. By randomly masking specific feature fields (like a category tag) or individual elements within an embedding, the model learns to keep an item's representation close to its slightly altered versions. This improves the "alignment and uniformity" of the embedding space.
  2. Coarse-grained Semantic-level CL: Instead of artificial augmentations, this task uses "natural" ones. Items with similar titles (calculated via BERT embeddings), shared tags, or similar visual content are treated as positive pairs. This helps the model understand relationships based on what the item is, rather than just how users interact with it.
  3. Global Session-level CL: This captures behavioral correlations that features might miss. If two items frequently appear in the same user session (e.g., the classic "diapers and beer" example), they are treated as positive pairs. This leverages "unconscious crowd-sourcing" to find implicit associations across the entire dataset.
The three proposed plug-and-play item-based CL tasks in MicRec.

These three losses are combined with the standard supervised matching loss (usually sampled softmax) in a multi-task learning setup. Crucially, because these are auxiliary losses used only during training, MicRec adds zero computational overhead to the online serving process.

Datasets

The researchers evaluated MicRec on two massive, real-world industrial datasets from Tencent's WeChat ecosystem:

  • Video-636M: Contains nearly 25 million users and 636 million click instances.
  • News-76M: A news recommendation dataset with 6.4 million users and 76 million clicks.

These datasets provide a rigorous testbed for industrial-scale matching, featuring millions of items and complex feature sets (IDs, tags, providers, etc.).

Key Insights and Ideas

  • Item-Centricity Matters: Shifting the focus of contrastive learning from users to items provides a more direct way to improve the two-tower models dominant in industry.
  • The Power of Sessions: The session-level CL proved to be the primary driver for diversity. By capturing global co-occurrence patterns, the model can recommend items that aren't just semantically similar but are behaviorally linked, helping to break "filter bubbles."
  • Multi-Granularity is Essential: No single augmentation strategy is sufficient. Feature-level CL helps with embedding robustness, semantic-level CL helps with content understanding, and session-level CL helps with behavioral discovery. Together, they provide a comprehensive view of the item corpus.

Key Results

MicRec demonstrated significant gains in both offline experiments and live online A/B tests:

  • Offline Accuracy: MicRec achieved a 2.8% to 4.1% consistent improvement in Hit Rate (HIT@N) over state-of-the-art baselines like RFM.
  • Diversity: Item coverage (the percentage of the total corpus the model is able to recommend) increased by 29.3% (from 12.4% to 16.1%).
  • Online Impact: In a 7-day A/B test involving 4 million users, MicRec increased the average click count (ACC) by 3.3% and dwell time (ADT) by 1.4%.
  • Cold-Start Performance: The model was particularly effective for new users, showing an 11.5% improvement in click counts for cold-start scenarios.

Limitations and Future Work

  • Training Complexity: While online serving is unaffected, the offline training time for MicRec is nearly double that of a standard base model due to the three additional CL tasks.
  • Semantic Dependency: The quality of the semantic-level CL depends heavily on the pre-trained encoders (like BERT) used for titles and content.
  • Future Directions: The authors plan to explore combining these item-based tasks with user-based CL and extending the MicRec framework to the ranking stage of the recommendation pipeline.

Summary updated

BibTeX
@inproceedings{xie2023multi,
  author = {Ruobing Xie and Zhijie Qiu and Bo Zhang and Leyu Lin},
  title = {{Multi-granularity Item-Based Contrastive Recommendation}},
  booktitle = {DASFAA},
  year = {2023},
  doi = {10.1007/978-3-031-30672-3\_27},
}
Figure