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

Personalised Outfit Recommendation via History-aware Transformers

Myong Chol Jung, Julien Monteil, Philip Schulz, Volodymyr Vaskovych

TL;DR

This paper introduces the History-aware Transformer (HAT), a novel deep learning model that personalizes outfit recommendations by leveraging a shopper's purchase history. HAT significantly improves outfit compatibility prediction and item recommendation by incorporating a contrastive learning approach and a new adaptive margin loss for handling "weak negative" outfits.

What Problem Does This Paper Address?

Online fashion retailers face the challenge of recommending outfits that are not only internally coherent but also align with an individual shopper's unique style and preferences. Traditional recommendation systems often provide generic suggestions based on aggregated user data, failing to capture the nuances of personal taste. This can lead to recommendations that are "good enough" for the average user but suboptimal for those with more distinct styles. The paper aims to bridge this gap by developing a model that can infer and adapt to individual shopper preferences from their past purchasing behavior.

Methods

The core of the proposed solution is the History-aware Transformer (HAT), a two-level stacked transformer architecture.

  • Bottom-level Transformer Encoder: This component processes individual fashion items (represented by images and titles, encoded using pre-trained CLIP models) within a target outfit. It learns an internal outfit representation by capturing relationships between items, inspired by the OutfitTransformer but with a novel cross-attention mechanism that learns item importance without prior assumptions.
  • Top-level Transformer Encoder: This layer incorporates the shopper's purchase history. It takes the outfit representations from the shopper's past purchases and the target outfit, then uses an MLP to predict a compatibility score. This allows the model to assess how well a target outfit aligns with the shopper's inferred style.

To enable personalization and improve learning, HAT employs three key training strategies:

  • Focal Loss: A standard loss for outfit compatibility prediction.
  • Contrastive Learning (LCL): This technique is used to pull outfit embeddings from the same shopper closer together in the latent space, effectively learning to group similar styles. Shoppers are treated as labels for this supervised contrastive learning.
  • Adaptive Margin Loss (LAM): To address the challenge of distinguishing between truly compatible outfits and "weak negative" outfits (where only one item is swapped), a new adaptive margin loss is introduced. This loss dynamically adjusts the margin based on the learned importance (attention weight) of the swapped item, making the model more sensitive to subtle incompatibilities.

Datasets

The paper evaluates HAT on two popular fashion datasets:

  • IQON3000: A dataset with a large number of shoppers and outfits, where outfits can contain varying numbers of items from diverse categories.
  • Polyvore-630: A dataset with a smaller number of shoppers but a consistent outfit structure (exactly three items per outfit).

The authors also introduce two evaluation benchmarks for outfit compatibility prediction:

  • CP-Random: Standard negative sampling where one item in a positive outfit is randomly replaced.
  • CP-Hard: A more challenging benchmark where positive outfits from one shopper are treated as negative outfits for other shoppers, provided they share at least one overlapping item. This aims to better evaluate personalization by considering shopper-specific tastes.

Key Insights and Ideas

  • Personalization is Key: The most significant insight is that explicitly modeling a shopper's purchase history is crucial for effective outfit recommendation, especially in the "hard" negative sampling scenario. Generic outfit compatibility is insufficient.
  • Weak Negatives are Powerful: Introducing "weak negative" outfits (with a single item swapped) provides a more challenging and realistic training signal than simply using random outfits. This forces the model to learn finer-grained compatibility details.
  • Adaptive Margins Matter: The adaptive margin loss, which weights the margin by item importance, significantly outperforms a fixed margin, demonstrating that not all item swaps have equal impact on outfit compatibility.
  • Contrastive Learning for Style Grouping: Supervised contrastive learning effectively groups outfits by shopper, reinforcing the idea that similar styles can be learned and leveraged for personalization.

Key Results

HAT demonstrates strong performance across both datasets and tasks:

  • Outfit Compatibility Prediction (CP): HAT significantly outperforms strong baselines, achieving AUC gains of 15.7% on IQON3000 CP-Hard and 19.4% on Polyvore-630 CP-Hard compared to previous state-of-the-art.
  • Fill-in-the-Blank (FITB): HAT also shows substantial improvements in accuracy, with gains of 6.5% on IQON3000 FITB-Hard and 9.7% on Polyvore-630 FITB-Hard.
  • Ablation Studies: The experiments confirm the importance of contrastive learning (improving performance on both CP-Random and CP-Hard) and the adaptive margin loss (outperforming models without it or with a fixed margin).
  • History Outfits Impact: Increasing the number of history outfits generally improves performance on CP-Hard, highlighting the value of a comprehensive purchase history for personalization.

Limitations and Future Work

  • Outfit Assembly vs. Scoring: HAT currently scores outfits or completes partial ones rather than generating entire outfits from scratch. Future work could focus on using the learned outfit representations for retrieval and assembly.
  • Ignoring History Sequence: The current model treats all historical outfits equally. The authors suggest incorporating an exponentially decaying weighting scheme to account for the diminishing informativeness of older purchases.
  • Limited Item Representation: The model relies solely on item titles and images. Incorporating richer information like customer reviews, star ratings, and material details could further enhance compatibility judgments.

Summary updated

BibTeX
@inproceedings{jung2024personalised,
  author = {Myong Chol Jung and Julien Monteil and Philip Schulz and Volodymyr Vaskovych},
  title = {{Personalised Outfit Recommendation via History-aware Transformers}},
  booktitle = {WSDM},
  year = {2024},
  url = {https://openreview.net/forum?id=KG8m7FEoxp},
}
Figure