Manuscript Offprint

arXiv:2610.17841

FASHION-RQ: Mining Hierarchical Semantic Structure for Automated Evaluation of Fashion Retrieval

Tripti Shukla, Shwetha Somasundaram, Akshat Gupta, Rohit Garg, Paul Duff, Ian Anderson

Tripti Shukla

Glance

Bengaluru, India

tripti.shukla@glance.com

Rohit Garg

Glance

Bengaluru, India

rohit.garg@glance.com

Shwetha Somasundaram

Glance

Bengaluru, India

shwetha.s@glance.com

Paul Duff

Glance

Vilnius, Lithuania

paul.duff@glance.com

Akshat Gupta

Glance

Bengaluru, India

akshat.gupta@glance.com

Ian Anderson

Glance

London, United Kingdom

ian.anderson@glance.com

Abstract

Evaluating fashion retrieval systems remains challenging due to the limited availability of benchmarks that capture the fine-grained, open-ended queries encountered in real-world search and recommendation. Existing benchmarks often rely on manual curation, predefined taxonomies, or synthetic prompts, limiting scalability and semantic coverage. We introduce FASHION-RQ: Mining Hierarchical Semantic Structure for Automated Evaluation of Fashion Retrieval, an automated framework that derives user-type queries and relevance sets directly from catalog structure. Our key insight is that hierarchical discrete representations learned by Residual Quantized Variational Autoencoders (RQ-VAE) organize products into semantically coherent clusters at progressively finer granularities. We leverage this structure to construct FASHION-RQBENCH, a scalable benchmark without manual query annotation or predefined taxonomies. We propose four complementary tasks for evaluating ranking, relevance classification, fine-grained sibling discrimination, and paraphrase robustness, alongside query- and attribute-level relevance metrics. Experiments across recent retrieval models demonstrate that FASHION-RQBENCH differentiates model capabilities across query types and attributes. A human study further shows that benchmark queries achieve comparable naturalness and higher intent clarity than real user queries, supporting their validity for real-world evaluation. The code and FASHION-RQBENCH dataset will be publicly released upon acceptance.

1. Introduction

Fashion retrieval is inherently set-valued and graded. A query such as “lightweight cotton kurtas for summer” constrains multiple attributes, including product type, material, and season, and many catalog items may satisfy these constraints to different degrees. Relevance is therefore compositional: an item may match some attributes while violating others. A single aggregate ranking score can hide these differences. For example, two systems may achieve similar nDCG while one retrieves the correct garment in the wrong color and the other retrieves the correct color for the wrong garment. Evaluating such systems requires relevance labels that are set-valued, graded, and decomposable by attribute.

Existing fashion benchmarks do not provide these properties. Manual fashion retrieval datasets typically associate a query with a single target item [22, 51], penalizing other valid results. Graded set-valued annotations are possible, but expensive: ESCI contains 2.6M judgments for 130K queries [34]. Moreover, manually collected labels are tied to a particular catalog snapshot and query distribution. Automatic assessment using language models [44] removes annotation cost, but typically produces an independent relevance score for each query–item pair and does not identify which query attributes are satisfied or violated. These approaches also treat items independently, overlooking the relationships among products in the catalog.

We instead observe that the catalog itself contains the structure needed to define relevance sets. Recent retrieval and recommendation systems such as DSI [40], RIPOR [55], and TIGER [32] represent items using sequences of discrete codes learned with residual quantization [19]. Because these codes are organized from coarse to fine, they induce a prefix tree over the catalog: items sharing a pre-

FASHION-RQ: AUTOMATED BENCHMARK GENERATION

Product Catalog

Multi modal fashion items

RQ-VAE Hierarchical Space

Learned semantic hierarchy

Automatic Query Generation

Context-aware natural queries

Hierarchical Relevance Construction

Graded relevance from hierarchy

Topwear

T-shirt

Shirt

Blue

Red

Parent, sibling and related clusters provide contextual alternatives.

"blue striped t-shirt"

Cluster attributes

Parent & sibling context

Exclusivity constraints

Coverage of sub-types

Exact (E)

Target cluster items

Sibling (S)

Items from sibling clusters

Related (R)

Items from parent clusters

Irrelevant (I)

Items from unrelated branch

FASHION-RQBENCH: FOUR EVALUATION TASKS

T1. QUERY-PRODUCT RANKING

Rank products so that E > S > R > I

Query: "blue striped t-shirts"

T2. RELEVANCE CLASSIFICATION

Classify each product into {E, S, R, I}

Query: "blue striped t-shirts"

T3. SIBLING DISCRIMINATION

Prefer target over sibling clusters

Query: "blue striped t-shirts"

T4. QUERY ROBUSTNESS

Consistent retrieval under query variation

Figure

E

E

S

S

R

I

Figure

E

S

R

Figure

I

Target Cluster (Exact)

Sibling Clusters (Should rank lower)

"blue striped t-shirts"

"striped t-shirts in blue"

"men's blue striped t-shirts"

Figure

EVALUATION METRICS

A. QUERY RELEVANCE METRIC (Weighted)

Attribute importance

waw_{a} from cross-encoder

relevance experiment

Per-attribute match ma(q,p)∈[0,1]m_{a}(q,p) \in [0,1]

Color

Material

Category

Price

0.95

0.80

1.00

0.60

Weighted Query

Relevance

R(q,p)∈[0,1]R(q,p) \in [0,1]

0.86

B. ATTRIBUTE-LEVEL METRICS (Diagnostic)

Score each attribute separately to reveal fine-grained strengths / failure modes

Color

0.95

Material

0.80

Category

1.00

$

Price

0.60

Gender

0.78

TM

Brand

0.85

Style

0.67

Metric: AttrScore(a) = mean match on queries that specify attribute a

Figure 1. Overview of FASHION-RQ. The framework leverages an RQ-VAE hierarchy to automatically generate natural-language queries and graded relevance sets, with Exact, Sibling, Related, and Irrelevant relationships. The resulting benchmark supports four complementary retrieval tasks, while weighted query relevance and attribute-level metrics evaluate overall intent satisfaction and fine-grained attribute matching.

fix form increasingly specific groups. We repurpose this structure not as an index for retrieval, but as an automatic annotation mechanism. However, vanilla RQ-VAE does not guarantee that a code corresponds to a single semantic attribute, which can produce heterogeneous clusters. We therefore introduce an attribute exclusivity loss that encourages each quantization level to specialize to a coherent attribute, making the resulting hierarchy suitable for defining relevance sets. A prefix then defines a relevance set, its length controls granularity, and the shared-prefix length between an item and the target prefix provides graded relevance without a hand-authored taxonomy.

Building on this hierarchy, we filter clusters that are too small or heterogeneous to serve as relevance sets and compute each retained cluster's relational context: the attributes that distinguish it from its parent and sibling clusters. A language model then verbalizes this structured evidence into shopper-style queries. Importantly, the language model generates the query but does not determine relevance; relevance is inherited deterministically from the semantic ID (SID) [32] structure.

We instantiate this framework on the public Myntra Fashion Product Images catalog [2], containing 44,446 items, and construct FASHION-RQBENCH: 588 clusters across three granularity levels and 5,380 attribute-enriched queries. The benchmark provides four complementary tasks: query-product ranking, hierarchical relevance classification, sibling discrimination, and paraphrase robustness. We additionally introduce a weighted query-relevance score and per-attribute scores to distinguish overall retrieval quality from fine-grained attribute satisfaction. Figure 1 provides an overview of the complete FASHION-RQBENCH pipeline, from hierarchical benchmark construction to query generation, evaluation tasks, and metrics.

Evaluation of ten off-the-shelf sparse and dense retrieval models, without fine-tuning, shows that aggregate ranking performance alone can mask important weaknesses. Dense encoders achieve substantially higher ranking quality than BM25 [36] (nDCG@10 = 0.87 vs. 0.77), yet the best model achieves only 0.51 accuracy on four-way hierarchical relevance classification. Model scale is also not consistently predictive: the 4B Qwen3 [42] encoder slightly outperforms its 8B counterpart on sibling discrimination. Attribute-level evaluation further localizes these differences: models perform strongly on product type and gender (> 0.93) but substantially worse on material ( ≈\approx 0.52) and style ( ≈\approx 0.43). Finally, a human study comparing benchmark queries with real user queries shows comparable perceived naturalness and strong intent clarity, supporting Fashion-RQBENCH as a proxy for real-world fashion search. Our contributions are:

• We repurpose RQ-VAE semantic identifiers as an automatic annotation mechanism and introduce an attribute exclusivity loss that encourages quantization levels to encode coherent attributes. Prefixes define relevance sets, prefix length controls granularity, and shared-prefix length defines graded relevance.

• We introduce a cluster-conditioned query generation procedure that captures each cluster’s attribute distribution and its relational differences from parent and sibling clusters, enabling automatic generation of shopper-style queries.

• We introduce FASHION-RQBENCH, comprising 588 clusters, 5,380 attribute-enriched queries, and 44,446 products, with deterministic graded relevance and four complementary evaluation tasks.

• We propose weighted query-relevance and per-attribute metrics that distinguish overall intent satisfaction from fine-grained attribute satisfaction.

References (50)