Manuscript Offprint

arXiv:2608.22688

FashionKG-RAG: Knowledge Graph-Enhanced Retrieval-Augmented Generation for Fashion Question Answering

Yujuan Ding, Linyin Luo, Shijie Wang, Xu Yuan, Yunshan Ma, Yi Bin, Wenqi Fan, Qing Li

Yujuan Ding, Linyin Luo, Shijie Wang, Xu Yuan, Yunshan Ma, Yi Bin, Wenqi Fan, Qing Li, Fellow, IEEE

Abstract—Fashion is a knowledge-intensive domain in which effective decision-making depends on integrating multiple types of knowledge. Although Large Language Models (LLMs) have transformed many areas, their application in fashion remains limited by hallucinations and weak domain specialization. Knowledge Graph (KG)-based Retrieval-Augmented Generation (RAG) offers a promising way to add structured knowledge to LLMs. However, existing fashion KGs are typically restricted to product-level attributes or item relations, and fail to capture the broader fashion ecosystem. To bridge these gaps, we propose FashionEcoKG, a comprehensive, domain-wide knowledge graph built with expert-level precision and professionalism. It is constructed through a three-stage agentic pipeline that extracts high-fidelity knowledge cores from authoritative textbooks and strengthens structural connectivity through cross-domain augmentation and generative expansion. To leverage this resource, we further develop PG-RAG (Pruning-Grounding RAG), a training-free framework designed to handle the conceptual density and linguistic noise of fashion queries. Specifically, we introduce a Dual-Granularity Path Re-Ranking (DGPR) module of two stages. The Pruning-based Semantic Ranking (PSR) module distills each query into a skeleton form to improve retrieval recall, while the Grounding-based Agentic Ranking (GAR) performs point-wise scrutiny of candidate paths against the original full query to ensure global relevance. Experiments on a curated fashion QA dataset show that PG-RAG effectively leverages FashionEcoKG to improve retrieval and answer accuracy, outperforming both non-RAG and existing KG-RAG baselines.

Index Terms—Retrieval-augmented generation, Knowledge graph for RAG, Fashion question answering

I. INTRODUCTION

Fashion is a cornerstone of the global economy and a critical application domain for Artificial Intelligence (AI) [1], [2]. While often perceived as a field driven by subjective aesthetics, fashion is fundamentally knowledge-intensive: successful decision-making relies on accumulated expertise spanning design, production, marketing, and communication 1^{1}. Current computational fashion research primarily focuses on visual perception, generation, and outfit-related tasks such as item retrieval [3] and recommendation [4]. However, the more fundamental and knowledge-intensive Question Answering (QA) task remains significantly underexplored [5], [6].

Even though LLMs have demonstrated extraordinary capacity [7], [8] in general-domain tasks, they still face hallucination problems and struggle with specialized queries due to

Figure

Fig. 1: Illustration of knowledge-intensive fashion QA task addressed by various solutions. Off-the-shelf LLMs lack the necessary fashion knowledge for accurate responses. Even with well-structured knowledge graphs, naive KG-RAG methods struggle to precisely target relevant information due to the interference from query noise. In contrast, our PG-RAG facilitates effective knowledge retrieval by pruning distractors and extracting the most relevant knowledge path(s).

insufficient domain knowledge. As the example illustrated in Figure 1, answering fashion questions with high conceptual density is challenging for general-purpose LLMs. Although Retrieval-Augmented Generation (RAG) [9], [10] incorporates external references, standard flat text-based methods fail to leverage underlying structural knowledge. By neglecting relations between concepts separated across multiple pages, these retrievers provide fragmented information lacking long-range dependencies, which is insufficient for complex or deep reasoning [11].

To address these limitations, Knowledge Graph (KG) integration offers a promising solution by providing structured domain intelligence without costly fine-tuning [12], with successful applications in other knowledge-intensive domains [13]–[16]. However, general-purpose KGs [17] often lack the specialized details required for advanced fashion reasoning. While fashion-specific KGs have been developed to fill this gap [18], they remain constrained by narrow focuses: product-level attributes for e-commerce [19]–[21], basic relational patterns between items [3], [4], or transient social media trends [22], [23]. Although these product-focused KGs may be effective and useful to enhance tasks such as recommendation, they are too narrow to capture the broader Fashion Ecosystem, which encompasses critical dimensions beyond fashion products, including business strategy, cultural history, and production science. Furthermore, because these resources are typically built on large-scale observational data rather than authoritative expert knowledge, they lack the professional rigor necessary.

Yujuan Ding, Shijie Wang, Xu Yuan and Qing Li are with Department of Computing, Hong Kong Polytechnic University, Linyin Luo is with School of Computer Science and Engineering, Sun Yat-sen University; Wenqi Fan is with Department of Computing and Department of Management and Marketing, Hong Kong Polytechnic University; Yunshan Ma is with School of Computing and Information Systems, Singapore Management University; Yi Bin is with School of Computer Science and Technology, Tongji University.

1^{1}https://www.mckinsey.com/industries/retail/our-insights/state-of-fashion#/ for deep, knowledge-intensive analysis in the fashion domain.

To close these gaps, we propose FashionEcoKG, a comprehensive domain-wide knowledge graph. Unlike previous works that rely on unstructured web data, we utilize LLM agents to anchor our construction process in authoritative fashion textbooks, ensuring the fidelity and professional quality of the resulting knowledge. While LLMs show potential for automated KG construction [15], [24]–[27], building a high-quality expert-level graph from such dense academic sources presents unique challenges. Specifically, restricting our source to canonical references initially yields an inherently narrow core with limited situational coverage. Furthermore, because textbooks often present concepts through high-level exemplification without explicitly mapping every relational dependency, the initial extraction often results in fragmented or isolated entities. To achieve both domain expertise and structural connectivity, we propose a novel three-stage hierarchical pipeline based on LLM agents that evolves a sparse textbook core into a larger and more comprehensive network. First, LLM agents extract concise entities and triples from canonical references to establish a high-quality foundation. Next, we augment this core with general-domain KGs to bridge isolated entities and ensure structural connectivity. Finally, we expand the graph's coverage and further enhance its relational structure using validated, LLM-generated knowledge.

As illustrated in Figure 1, this work focuses on knowledge-intensive fashion QA, where queries typically exhibit high conceptual density and frequently span diverse sub-domains. This multifaceted nature inevitably introduces semantic noise, as mentions or concepts that appear relevant may actually serve as distractors, complicating both the retrieval and generation phases. This distraction may be more amplified in a KG-RAG pipeline than in a pure LLM due to error accumulation. To address these challenges, we propose PG-RAG (Pruning-Grounding RAG), a KG-enhanced framework utilizing a multi-stage path retrieval and re-ranking process. Unlike conventional entity-based reasoning, our approach organizes the FashionEcoKG into multi-hop paths to capture the structural topology. After an initial entity-based coarse retrieval, we introduce Dual-Granularity Path Re-Ranking (DGPR), an architecture that re-ranks the candidate knowledge paths to reconcile retrieval breadth with precision. This dual-stage design begins with Pruning-based Semantic Ranking (PSR), which distills the conceptually dense fashion query into a simplified skeleton to neutralize combinational distractors. PSR serves as a necessary filter to isolate core intent and ensure a high-recall semantic search without interference from linguistic noise. This significant reduction in candidates subsequently enables Grounding-based Agentic Ranking (GAR), where an LLM agent performs point-wise scrutiny against the original full query. Through this Pruning-to-Grounding transition, PG-RAG ensures that the final output is anchored in semantic intent and also considers global context and details.

Our work addresses the limitations of existing fashion QA models through the following technical contributions:

• We introduce FashionEcoKG, a comprehensive, domain-wide Knowledge Graph anchored by authoritative textbooks. By employing an effective three-stage construction pipeline (Extraction, Augmentation, Expansion), we evolve sparse academic concepts into a professional network that captures the broader fashion ecosystem knowledge beyond simple product-centric relations.

• We propose PG-RAG (Pruning-Grounding RAG), a KG-enhanced framework featuring Dual Granularity Path Re-Ranking (DGPR). This multi-stage re-ranking architecture reconciles retrieval breadth with reasoning precision by transitioning from Pruning-based Semantic Ranking (PSR) for noise neutralization to Grounding-based Agentic Ranking (GAR) for logical and detailed verification against the original query.

• We evaluate our method through extensive experiments on a fashion QA dataset with a curated set of multi-type, multi-complexity domain-specific questions. The results show that PG-RAG significantly outperforms traditional non-RAG, text-based RAG, and existing KG-RAG baselines, proving its superior ability to leverage structured domain intelligence for better QA precision.

References (66)