Classifying fashion products in the age of deep learning

Anyone who works with product catalogs coming from heterogeneous sources knows the problem well: every partner has its own taxonomy, its own categories, its own logic, and the result is a set of data that is hard to standardize, especially as volumes grow. In the fashion world this complexity is amplified by the semantic richness of the products themselves: a garment is not just a category, but a set of attributes, such as fabric, fit, style, and occasion, that a traditional classification system struggles to capture in their entirety. It is from this awareness that we decided to build a proprietary tagging pipeline, leveraging state-of-the-art models in multimodal deep learning.
For a few years now, artificial intelligence has become part of our daily lives, at work and beyond, sometimes for simple searches, since for many people it has effectively replaced Google, and other times to provide effective help in finding smart solutions to historically complex problems.
The goal at this point was very clear: to build our own methodology, a pipeline, that could somehow get around this problem using state-of-the-art tools, such as VLMs (Vision Language Models), that is, advanced artificial intelligence models, specifically deep learning ones, so-called multimodal models, able to process not only text but also images and video.
Choosing an open-weight, on-premise VLM: Qwen3.5
At this point in history the variety of artificial intelligence models is impressive, from proprietary models like GPT-5 and Gemini 3, available via API, to open-weight models like Gemma 4, Kimi, and Qwen 3.5, which can be installed on-premise for private internal use. We went with the latter,
Qwen3.5, developed by the Chinese giant Alibaba, which has the advantage of inheriting from its predecessor Qwen 3 a very advanced visual transformer, having been trained on mixed visual and text tokens from high-resolution images and video.
Being open-weight, meaning its weights are publicly available so it can be trained without depending on external providers, and being available in various parameter sizes, even down to 2 and 4 billion, makes it not only trainable but also performant on hardware with limited computing power. This is essential, because once it has been trained (or rather fine-tuned) with our taxonomy, it will be able to classify products going forward and return exactly the categorization we need.
Qwen 3 thus becomes a core company asset, private and provider-agnostic, since it is not tied to a specific API service and is potentially customizable and resellable.
A fundamental issue remains to be solved, however, one that afflicts all large language models of this kind: avoiding hallucinations. The problem is not trivial, above all because fine-tuning can sometimes be suboptimal if the number of products used for training is unbalanced.
A fast first-pass classifier as a smart filter
Relying on Qwen 3.5’s multimodality alone, however advanced and state of the art, is not enough to always give us a good result: at the end of the day it is still a VLM, which by its nature is not deterministic and can therefore be subject to hallucinations, especially if it was trained on small datasets. So how can we “help” Qwen be as accurate as possible, going beyond the prompt and the input images? The answer is neither obvious nor trivial, since there are various methodologies for writing effective prompts that can improve the output, but in our case we wanted to give it something extra by inserting
hints into the prompt, that is, suggestions that could somehow bring to the prompt products already categorized, as a first pass and zero-shot, with Bantoa’s taxonomy.
To do this we opted for a specific model: Fashion SigLIP, pre-trained on datasets specific to the fashion world, made available on the well-known Hugging Face platform by Marqo. The particularity of this model, derived from the SigLIP family of models, is that it was trained on image + text pairs of fashion products to generate embeddings, so it is a full-fledged encoder that can extract embeddings, a sort of numerical representation of the image that captures its visual characteristics so that the model can compare them, without long processing times or special hardware, and which can also be used for RAG with vector databases, for example for semantic search or visual search of products.
But how do we get from embeddings, or rather vectors, to our prompt?
Our bridge of custom MLPs
SigLIP alone cannot produce values that are useful in a prompt, so the missing piece becomes necessary: for each category we trained a head made up of a simple MLP (Multi Layer Perceptron). Each head has a specific task: there are as many heads as there are attribute types in the Bantoa taxonomy (product category, subcategory, fabric type, fit, etc.), and these MLPs are tasked with finding, starting from the embeddings produced by SigLIP, which tag in the taxonomy is most likely to match the product being analyzed
This way we first of all have a very fast classifier that gives us a result with a certain confidence for each product; the product is then categorized according to our taxonomy and passed as a hint in the prompt to the VLM, which, having also been trained on Bantoa products and taxonomy, will take those hints and check whether they can be confirmed or refuted.
How it works in practice
When a new product enters the system, the process is sequential and automatic. The product image is first processed by FashionSigLIP and turned into an embedding, which is then sent to our MLP heads: each of them answers a specific question about the Bantoa taxonomy, returning a confidence score for each attribute. These results are not the final answer, but become a structured hint that is passed to Qwen3.5 along with the image and a prompt built on our taxonomy.
The model no longer starts from scratch: it already has a hypothesis in front of it, and its job is to verify it, correcting it if necessary, and return the final classification. The result is a complete product record consistent with our taxonomy.
What we have built is a system that doesn’t depend on external services, that can be updated and refined over time, and that speaks the same language as our taxonomy because that is what it was trained on. It is not just automation: it is an asset that grows along with the catalog, that improves with every cycle of human validation, and that represents, in our view, the most solid way to tackle fashion product classification at scale. The next steps will focus on optimizing the fine-tuning process and expanding the taxonomy, with the goal of covering an ever wider range of product attributes.
Sources
Qwen3.5 blog: https://qwen.ai/blog?id=qwen3.5FashionSigLIP on Hugging Face
: https://huggingface.co/Marqo/marqo-fashionSigLIPMarqo website: https://www.marqo.ai/
Enrico Antonini, Deep learning engineer @Bantoa
More articles dal panorama fashion-tech
Want to become the next case study?
Discover how Bantoa solutions can grow your brand.


