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

Contrastive Learning for Interactive Recommendation in Fashion

Karin Sevegnani, Arjun Seshadri, Tian Wang, Anurag Beniwal, Julian J. McAuley, Alan Lu, Gerard MedioniarXiv 2022 · DOI

TL;DR

This paper introduces WhisperLite, a novel approach to fashion recommendation that leverages contrastive learning to interpret natural language text requests and recommend personalized items. By combining pre-trained CLIP embeddings with a custom neural network and loss function, WhisperLite significantly outperforms existing methods, especially on a challenging real-world fashion dataset, and demonstrates strong user-validated relevance.

What Problem Does This Paper Address?

Online fashion platforms rely on both recommendation systems and search functionalities to help users discover products. However, these systems often operate in silos, failing to fully leverage the strengths of each. Recommendation systems excel at understanding user preferences based on past behavior, while search systems are adept at processing specific user queries. This paper tackles the challenge of bridging this gap by developing a system that can accurately recommend fashion items based solely on a user's free-form text request, mimicking the interaction with a human stylist. This is particularly important for "cold start" users who lack historical data and for capturing nuanced, real-time preferences that might not be evident from past interactions.

Methods

The authors propose two models: Whisper and WhisperLite.

  • Whisper: This model uses XLNet, a powerful transformer, to generate contextual word embeddings for both user text requests and item descriptions. These embeddings are then fed into bidirectional LSTMs to create feature vectors. A two-tower architecture is employed, with separate LSTMs for requests and descriptions, to capture their distinct semantics.
  • WhisperLite: This is a more efficient and effective version. Instead of XLNet, it utilizes pre-trained CLIP text-only embeddings, which are known for their strong ability to connect text and visual concepts. The model then uses simpler Multi-Layer Perceptrons (MLPs) instead of LSTMs. Crucially, WhisperLite is trained with a composite loss function that combines binary cross-entropy (for classification) and a contrastive loss. This contrastive learning approach encourages the model to learn embeddings where matching requests and items are close in the embedding space, while non-matching pairs are pushed apart. The CLIP parameters are frozen during training, significantly reducing computational cost.

Datasets

The paper uses a combination of datasets:

  • WhisperD: A newly introduced real-world dataset collected from an online fashion retail store. It consists of user text requests, items chosen by human stylists, and items the user decided to try. This dataset is noted for its inherent noise in text requests and labels.
  • Open-source Datasets: Adaptations of existing datasets from Yelp (restaurants), Amazon Movies & TV, and Amazon Clothing. These datasets were modified to align with the paper's task by transforming reviews into text requests and matching them with product descriptions.

Key Insights and Ideas

  • Bridging the Search-Recommendation Divide: The core idea is to treat a natural language text request as a rich source of information for personalized recommendations, moving beyond traditional collaborative filtering or keyword-based search.
  • The Power of CLIP for Fashion: Leveraging pre-trained CLIP embeddings proves highly effective for fashion recommendations, likely due to CLIP's inherent ability to understand the relationship between text and visual concepts, which is crucial in fashion.
  • Contrastive Learning's Advantage: The contrastive loss function is key to WhisperLite's success, enabling it to learn a more discriminative embedding space that better captures the nuanced intent behind text requests.
  • Noise Handling is Crucial: The WhisperD dataset's inherent noise highlights the challenges of real-world recommendation tasks and suggests that models robust to noisy labels (like WhisperLite) can outperform those that are more sensitive.

Key Results

  • Offline Performance: WhisperLite significantly outperforms baseline models (Random, OkapiBM25, and Whisper) on the WhisperD dataset across various retrieval metrics like Precision@k and NDCG. For instance, on WhisperD, WhisperLite achieves a Precision@1 of 0.7633, a substantial improvement over Random (0.5010) and Whisper (0.5376).
  • Cross-Domain Generalization: WhisperLite also performs competitively on the adapted open-source datasets, demonstrating its generalizability beyond fashion.
  • Human Evaluation: A user study on Amazon Mechanical Turk showed that users rated WhisperLite's recommendations as significantly more relevant than those from a random baseline, with average ratings of 0.72 ± 0.24 for k=5 items, compared to 0.31 ± 0.38 for the random baseline.

Limitations and Future Work

  • Dataset Noise: The authors acknowledge that the WhisperD dataset contains noisy text requests and labels, which can lead to overfitting and impact model performance.
  • Future Directions: The paper suggests several promising avenues for future research:
  • Incorporating additional features like item images and user body shape to enhance recommendations.
  • Leveraging user behavioral data from browsing sessions or historical purchases.
  • Exploring how these additional features can complement specific body shapes.

Summary updated

BibTeX
@misc{sevegnani2022contrastive,
  author = {Karin Sevegnani and Arjun Seshadri and Tian Wang and Anurag Beniwal and Julian J. McAuley and Alan Lu and Gerard Medioni},
  title = {{Contrastive Learning for Interactive Recommendation in Fashion}},
  year = {2022},
  eprint = {2207.12033},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.12033},
}
Figure