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

An analysis of vision-language models for fabric retrieval

Francesco Giuliari, Asif Khan Pattan, Mohamed Lamine Mekhalfi, Fabio Poiesi

Introduction

In the manufacturing and fashion industries, identifying specific fabric samples within massive databases using only text descriptions presents a significant challenge. This "needle in a haystack" problem is exacerbated by two primary factors: the scarcity of high-quality datasets pairing fabric images with detailed technical descriptions, and the extreme visual similarity between different fabric samples (e.g., various types of striped wool). While general-purpose Vision-Language Models (VLMs) like CLIP excel at broad category identification, they often lack the precision required for fine-grained industrial material retrieval.

This paper investigates improving zero-shot text-to-image retrieval by leveraging Multimodal Large Language Models (MLLMs) to generate structured, attribute-rich technical descriptions. By moving beyond simple natural language, the researchers aim to enhance the discriminative power of existing VLMs.

Methodology

The researchers proposed an automated pipeline to bridge the annotation gap and evaluate retrieval performance across different model architectures.

Automated Annotation Strategy

Instead of relying on manual labeling, the study utilized ChatGPT-4o-mini to generate two distinct types of textual queries from fabric images:

  1. Freeform Descriptions: Natural, holistic descriptions of the fabric's appearance.
  2. Attribute-based Templates: Structured strings following a rigid technical format: A <texture> fabric with <list of colors>, a <weave type> weave, <geometric pattern> and <non-geometric motif> patterns, and <fabric material> material.

Model Evaluation

Three state-of-the-art VLMs were evaluated in a zero-shot setting:

  • CLIP: OpenAI's original vision-language model.
  • LAION-CLIP: A variant trained on a massive open-source dataset.
  • Perception Encoder (PE): A model developed by Meta designed for robust image-text alignment through intermediate feature representations.

Retrieval was performed by calculating the cosine similarity between the embeddings of the generated text descriptions and the image embeddings.

Experimental Setup and Datasets

The study utilized the Fabric-Image-Data (FID) dataset, comprising 12,181 wool fabric images. The dataset is organized into four structural categories: Lattice (3,128), Pattern (768), Solid (4,169), and Stripe (4,116). Originally designed for classification, the authors adapted the FID dataset for retrieval tasks by synthesizing the text descriptions described above.

Results and Discussion

The experimental results highlight several key insights into the behavior of VLMs in specialized domains:

  • Structure Trumps Fluency: A critical finding is that VLMs perform significantly better when provided with technical "spec sheets" rather than fluent natural language. Structured templates ensure that essential discriminators, such as weave type and color hierarchy, are explicitly represented in the embedding space.
  • The Perception Advantage: Meta’s Perception Encoder consistently outperformed both CLIP variants. This advantage likely stems from the model's ability to align fine-grained visual cues more effectively than standard global-pooling approaches.
  • Impact of Visual Complexity: The performance gain from structured descriptions was most pronounced for complex fabrics, such as those with lattice or printed patterns. For instance, in the "Printed Fabrics" category, the Perception Encoder achieved a Hit-Rate @ Rank 20 (H@20) of approximately 0.8, compared to roughly 0.4 for standard CLIP using freeform text.
  • The Challenge of Similarity: Conversely, "Solid" and "Stripe" categories remained difficult for all models (H@20 < 0.15), indicating that distinguishing between highly similar samples remains a significant hurdle for current zero-shot approaches.

Conclusion

While the use of structured descriptions and advanced encoders like the Perception Encoder significantly improves fabric retrieval, zero-shot performance is not yet sufficient for fully autonomous industrial applications. Future work will focus on domain-specific fine-tuning, improving prompt engineering to capture tactile properties like weight or softness, and scaling the pipeline to larger, more diverse industrial databases.

Summary updated

BibTeX
@inproceedings{giuliari2025analysis,
  author = {Francesco Giuliari and Asif Khan Pattan and Mohamed Lamine Mekhalfi and Fabio Poiesi},
  title = {{An analysis of vision-language models for fabric retrieval}},
  booktitle = {Ital-IA},
  year = {2025},
}
Figure