[Paper Review] KG-GAN: Knowledge-Guided Generative Adversarial Networks
KG-GAN proposes a knowledge-guided generative adversarial network that enhances GAN diversity by integrating domain knowledge via a constraint function, enabling generation of unseen flower categories from seen ones. It outperforms baseline GANs and ablations, achieving SOTA FID scores of 0.1385 (seen) and 0.1386 (unseen) on the Oxford Flowers dataset using semantic embeddings as conditional guidance.
Can generative adversarial networks (GANs) generate roses of various colors given only roses of red petals as input? The answer is negative, since GANs' discriminator would reject all roses of unseen petal colors. In this study, we propose knowledge-guided GAN (KG-GAN) to fuse domain knowledge with the GAN framework. KG-GAN trains two generators; one learns from data whereas the other learns from knowledge with a constraint function. Experimental results demonstrate the effectiveness of KG-GAN in generating unseen flower categories from seen categories given textual descriptions of the unseen ones.
Motivation & Objective
- To address the limitation of GANs in generating data for unseen categories when training data lacks coverage of the full underlying distribution.
- To improve GAN diversity beyond training data by incorporating domain knowledge as a guide for exploration.
- To ensure generated samples remain plausible by constraining generation to semantically valid regions using knowledge-based constraints.
- To demonstrate the effectiveness of knowledge-guided generation in zero-shot and few-shot settings for image generation.
Proposed method
- KG-GAN trains two generators: G₁ learns from seen categories using real data, while G₂ generates unseen categories using knowledge constraints.
- Domain knowledge is formalized as a constraint function using a deep regression network that predicts the semantic embedding of an image’s target category.
- Semantic embeddings from textual descriptions are used as conditional inputs to guide generation, enabling interpolation between seen and unseen categories.
- A shared weight strategy is applied between G₁ and G₂ to transfer knowledge from seen to unseen categories.
- The loss function includes a style-embedding regularization term (ℒse) to align generated images with the semantic space of target categories.
- The framework uses a projection discriminator and spectral normalization for training stability, similar to SN-GAN.
Experimental results
Research questions
- RQ1Can GANs generate realistic images of unseen flower categories when only seen categories are present in the training data?
- RQ2How can domain knowledge be effectively integrated into GANs to guide generation toward diverse, plausible, and semantically valid samples?
- RQ3Does conditioning on semantic embeddings improve generation quality and diversity compared to one-hot labels?
- RQ4To what extent does knowledge-guided generation reduce mode collapse and improve coverage of the underlying data manifold?
- RQ5How does the inclusion of a semantic embedding regularization loss (ℒse) affect the fidelity and diversity of generated images?
Key findings
- KG-GAN achieves state-of-the-art FID scores of 0.1385 on seen categories and 0.1386 on unseen categories, significantly outperforming SN-GAN (0.6922 and 0.6201).
- Conditioning on semantic embeddings yields better FID scores than one-hot encoding, demonstrating the benefit of structured knowledge over categorical labels.
- The ablation without ℒse still performs well (FID 0.1412/0.1408), indicating that knowledge transfer via shared weights enables reasonable zero-shot generation.
- Visual results show that KG-GAN accurately generates correct flower colors based on textual descriptions, but struggles with shape and structural details due to less consistent textual descriptors.
- The averaging of 800 fastText vectors per category preserves color information well but blurs structural and shape-related features, highlighting a limitation in current knowledge representation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.