Garment Recommendation with Memory Augmented Neural Networks

Lavinia De Divitiis, Federico Becattini, Claudio Baecchi, Alberto Del BimboarXiv 2020

Introduction

Fashion recommendation systems often struggle with redundancy. If a user buys a black t-shirt, standard systems might suggest more black t-shirts. However, effective fashion advice focuses on compatibility and diversity—suggesting what else goes with that t-shirt. This requires addressing two main challenges: multimodality (styling a single item in various ways) and personalization (aligning suggestions with individual taste).

Methods

The proposed architecture integrates deep representation learning, external memory, and collaborative filtering to provide diverse and personalized recommendations.

Feature Representation

The system uses convolutional autoencoders to compress garment images into latent vectors ($τ$ for tops, $β$ for bottoms). By training the model to reconstruct the original images, it learns to capture essential visual features without the need for manual labels.

Basic autoencoder architecture for garment feature representation and reconstruction.

Memory Augmented Neural Network (MANN)

The core innovation is an external memory that explicitly stores representative outfits. Unlike standard networks that store information in weights, the MANN can retrieve specific examples. To prevent the memory from being filled with redundant items, a "Writing Controller" uses Variety Loss (Best-of-K loss). The model only writes to memory when it encounters a "novel" styling modality that it cannot already reconstruct from its current state.

Inference and Personalization

During inference, the system retrieves a diverse set of potential matches from the external memory based on the input top. These candidates are then re-ranked using a Matrix Factorization (MF) layer that accounts for the specific user’s historical preferences, ensuring the final suggestions are both stylistically sound and personally relevant.

The inference pipeline using external memory to retrieve and reconstruct diverse garment matches.

Datasets

The model was evaluated on the IQON3000 dataset, which includes 308,747 outfits handpicked by 3,568 users, totaling over 670,000 fashion items. For this study, the researchers focused on top-bottom pairs to establish a clear benchmark against prior state-of-the-art methods.

Key Insights

  • Memory as a Style Gallery: The external memory acts as a curated gallery of successful pairings, allowing the model to look up how similar items were styled in the past.
  • Variety over Accuracy: By using Variety Loss, the model prioritizes exploring the "output space" of possible matches rather than forcing a single exact prediction. This reflects the subjective nature of fashion.
  • Decoupling Style and Preference: By separating general fashion compatibility (handled by the MANN) from individual taste (handled by Matrix Factorization), the model remains robust even when user data is sparse.

Key Results

The MANN-based system significantly outperformed the GP-BPR baseline. In category-matching tasks, the system achieved over 80% accuracy with just 5 retrieved items, compared to approximately 75% for the baseline. It also demonstrated higher Mean Average Precision (mAP) in the critical range of fewer than 40 recommendations. Qualitative results confirmed that the model suggests diverse items, such as jeans, skirts, and shorts, for the same top.

Limitations and Future Work

While effective for pairs, future research will focus on expanding the MANN to handle full outfits (N-tuple sets) including accessories. Additionally, addressing the "cold start" problem for new users and integrating text-based metadata (e.g., brand, material) could further refine the recommendation quality.

Summary updated

Abstract

Fashion plays a pivotal role in society. Combining garments appropriately is essential for people to communicate their personality and style. Also different events require outfits to be thoroughly chosen to comply with underlying social clothing rules. Therefore, combining garments appropriately might not be trivial. The fashion industry has turned this into a massive source of income, relying on complex recommendation systems to retrieve and suggest appropriate clothing items for customers. To perform better recommendations, personalized suggestions can be performed, taking into account user preferences or purchase histories. In this paper, we propose a garment recommendation system to pair different clothing items, namely tops and bottoms, exploiting a Memory Augmented Neural Network (MANN). By training a memory writing controller, we are able to store a non-redundant subset of samples, which is then used to retrieve a ranked list of suitable bottoms to complement a given top. In particular, we aim at retrieving a variety of modalities in which a certain garment can be combined. To refine our recommendations, we then include user preferences via Matrix Factorization. We experiment on IQON3000, a dataset collected from an online fashion community, reporting state of the art results.
BibTeX
@misc{divitiis2020garment,
  author = {Lavinia De Divitiis and Federico Becattini and Claudio Baecchi and Alberto Del Bimbo},
  title = {{Garment Recommendation with Memory Augmented Neural Networks}},
  year = {2020},
  eprint = {2012.06200},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.06200},
}
Figure