RAVEL: Rare Concept Generation and Editing via Graph-driven Relational Guidance
Abstract
Text-to-image (T2I) models often omit or misrepresent the defining attributes of rare and culturally specific concepts. We introduce RAVEL, a training-free framework that improves rare concept generation across diffusion and autore- gressive image generators through knowledge graph-based retrieval-augmented generation. RAVEL retrieves visual, relational, and contextual attributes from a knowledge graph constructed from textual sources and uses a large language model to incorporate them into text conditioning. This conditioning emphasizes distin- guishing attributes and relevant relationships without requiring reference images for T2I generation. To further improve RAVEL’s attribute accuracy, we introduce Self-Correcting RAG-Guided Diffusion (SRD), an optional module that uses a vision-language model to check generated images against the retrieved attributes and refine the conditioning for subsequent generations. Beyond guiding genera- tion and refinement, the retrieved attributes and relationships also inform editing instructions, extending RAVEL to context-aware image editing. For evaluation, we introduce three benchmarks, MythoBench, Rare-Concept-1K, and NovelBench, cov- ering cultural symbolism, fine-grained concept attributes, and literary descriptions. Experiments with Stable Diffusion XL, FLUX.1 [dev], DALL-E 3, GLM-Image, and Janus-Pro show that RAVEL achieves substantial improvements in attribute accuracy and text–image alignment over the corresponding base generators and outperforms the evaluated retrieval and prompt-enhancement baselines. Human preference evaluations further support these improvements over the corresponding base generators.