Deciphering Compatibility Relationships with Textual Descriptions via Extraction and Explanation

Yu Wang, Zexue He, Zhankui He, Hao Xu, Julian J. McAuley

Abstract

While fashion recommendation systems have become proficient at identifying compatible items, they often fail to provide meaningful justifications for their suggestions. This paper introduces a novel framework designed to generate natural language explanations for fashion pairings. By leveraging a two-stage "Extraction-then-Explanation" pipeline and the newly curated Pair Fashion Explanation (PFE) dataset, the researchers demonstrate a significant improvement in the quality and authenticity of fashion-specific reasoning compared to general-purpose large language models.

Introduction

AI-driven fashion recommendation systems, common on platforms like Amazon or Chictopia, have mastered the art of suggesting matching items. However, these systems typically function as "black boxes," offering little to no explanation for their choices. When justifications are provided, they are often repetitive or rudimentary, such as "these match because they are both blue."

Comparison of generated explanations for a fashion pair, highlighting the improvement in descriptive quality over prior methods.

Even advanced Large Language Models (LLMs) like GPT-4 struggle with this domain-specific task. While linguistically fluent, they frequently "hallucinate" plausible-sounding but inauthentic reasons that do not reflect the actual material or stylistic compatibility of the items. The core challenge lies in the lack of high-quality, pairwise explanation data and the difficulty of grounding linguistic generation in specific, relevant product features.

Methodology

The proposed framework addresses these challenges through a two-stage pipeline designed to ground explanations in specific product attributes:

  1. Stage I: Feature Extraction: Rather than feeding raw, noisy product descriptions directly into an LLM, the system employs an extraction model ($f_\theta$). This model identifies specific "rationales"—key features like "floral print" or "neutral base"—that contribute to the items' compatibility. This stage is trained on a "Combined" dataset of over 145,000 fashion pairs.
  2. Stage II: Explanation Generation: The extracted features and item categories are integrated into a template-based prompt. This prompt is then processed by a fine-tuned LLM (such as Flan-T5) to produce a coherent, expert-like explanation.
The two-stage pipeline: Stage I extracts key features from product descriptions, and Stage II uses these features to generate a grounded natural language explanation.

The Pair Fashion Explanation (PFE) Dataset

A primary contribution of this work is the Pair Fashion Explanation (PFE) dataset. While the model uses larger, noisier datasets for initial training, the PFE dataset provides the high-quality "dense" data necessary for fine-tuning. It consists of 6,407 high-quality sentences curated from fashion magazines. Each entry includes a pair of items, their categories, extracted features, and a ground-truth natural language explanation, teaching the model the specific vocabulary and logic used by fashion experts.

Key Results and Insights

The researchers evaluated the framework using both automated metrics and human blind tests:

  • Automated Performance: The fine-tuned Flan-T5-xl-F model achieved superior results, with a BLEU-1 score of 46.12 and the highest BLEURT score (measuring semantic similarity), significantly outperforming vanilla ChatGPT.
  • Human Evaluation: In a user study, the proposed model scored 6.43/10, nearly matching ChatGPT’s 6.50/10. Qualitative analysis, however, revealed that the proposed model was far more accurate in referencing specific item details, such as "studded belts" or "oversized layers," which general models often missed.
  • The "Extraction" Anchor: By forcing the model to first identify why items match before generating text, the researchers successfully reduced the hallucinations common in general-purpose LLMs.
  • Model Scaling: Larger models (3 billion parameters) showed a superior ability to internalize fashion knowledge, requiring fewer samples to reach high performance compared to smaller variants.

Conclusion

This research moves fashion AI beyond simple "yes/no" recommendations toward meaningful, natural language explanations. While currently optimized for item pairs (top + bottom), future work aims to expand the framework to multi-object compatibility (e.g., full outfits including shoes and accessories) and other domains like interior design. The success of the PFE dataset suggests that even small, highly curated datasets can significantly enhance the domain-specific performance of large language models.

Summary updated

BibTeX
@inproceedings{wang2024deciphering,
  author = {Yu Wang and Zexue He and Zhankui He and Hao Xu and Julian J. McAuley},
  title = {{Deciphering Compatibility Relationships with Textual Descriptions via Extraction and Explanation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i8.28764},
}
Figure