Abstract
RecoBERT is a self-supervised framework that adapts the BERT architecture for high-quality, text-based item recommendations without requiring labeled similarity data. By combining domain-specific pre-training with a novel "Title-Description" matching task and a multi-faceted inference strategy, it significantly outperforms standard NLP models in complex domains such as wine and fashion.
Introduction
Recommendation systems typically rely on Collaborative Filtering (CF) to track user behavior. However, the "cold start" problem—where no user history exists for new items or stores—necessitates Content-Based (CB) approaches. Standard NLP models often struggle with CB recommendations due to domain-specific jargon (e.g., "dry" in wine reviews), structural mismatches between titles and descriptions, and the need for high semantic nuance. RecoBERT addresses these challenges by fine-tuning BERT specifically for item similarity tasks.
Methods
RecoBERT utilizes a BERT-Large backbone with two specialized training heads designed to capture item-level semantics:
- Masked Language Model (MLM): Standard BERT pre-training is performed on the specific catalog (e.g., 120,000 wine reviews) to learn domain-specific vocabulary.
- Title-Description Model (TDM): A novel self-supervised task where the model learns to distinguish between "real" pairs (title and description from the same item) and "fake" pairs (mismatched titles and descriptions). This forces the model to apply cross-attention between an item's summary and its details.
During inference, RecoBERT employs a comprehensive scoring strategy. It computes four distinct similarity scores for every pair of items: Title-Title similarity, Description-Description similarity, and two cross-scores using the TDM head. These scores are normalized and summed to produce a final ranking.
Datasets and Evaluation
The model was evaluated on a wine dataset of 120,000 titles and reviews and a fashion catalog of 4,000 items. To provide a rigorous "ground truth," the authors introduced the Sommelier Benchmark, where a professional wine sommelier manually curated 1,095 recommendations for 100 "seed" wines.
Results
RecoBERT demonstrated superior performance across multiple benchmarks:
- Wine Catalog: Achieved a Mean Reciprocal Rank (MRR) of 21.0%, compared to 4.3% for the Universal Sentence Encoder and 6.9% for standard pre-trained BERT.
- Sommelier Accuracy: Successfully retrieved an expert-approved wine in the top 10 list 65% of the time, nearly doubling the performance of the next best baseline (35.8%).
- Fashion Catalog: In human-blind tests, RecoBERT scored 3.94/5 for recommendation quality.
Conclusion
RecoBERT effectively bridges the gap between general-purpose language models and the specific requirements of item recommendation. While the computational overhead of training on large catalogs is significant, the model's ability to capture complex semantic relationships without labeled data makes it a powerful tool for cold-start scenarios. Future work will explore incorporating visual data and utilizing knowledge distillation to improve inference speed.
Summary updated