Bridging the Intent Gap: Knowledge-Enhanced Visual Generation

Yi Cheng, Ziwei Xu, Dongyun Lin, Harry Cheng, Yongkang Wong, Ying Sun, Joo Hwee Lim, Mohan S. KankanhalliarXiv 2024

Abstract

For visual content generation, discrepancies between user intentions and the generated content have been a longstanding problem. This discrepancy arises from two main factors. First, user intentions are inherently complex, with subtle details not fully captured by input prompts. The absence of such details makes it challenging for generative models to accurately reflect the intended meaning, leading to a mismatch between the desired and generated output. Second, generative models trained on visual-label pairs lack the comprehensive knowledge to accurately represent all aspects of the input data in their generated outputs. To address these challenges, we propose a knowledge-enhanced iterative refinement framework for visual content generation. We begin by analyzing and identifying the key challenges faced by existing generative models. Then, we introduce various knowledge sources, including human insights, pre-trained models, logic rules, and world knowledge, which can be leveraged to address these challenges. Furthermore, we propose a novel visual generation framework that incorporates a knowledge-based feedback module to iteratively refine the generation process. This module gradually improves the alignment between the generated content and user intentions. We demonstrate the efficacy of the proposed framework through preliminary results, highlighting the potential of knowledge-enhanced generative models for intention-aligned content generation.

Introduction

Current generative models like Stable Diffusion or DALL-E 2 often suffer from a "hit-and-miss" problem, known as the intent gap. This is the discrepancy between what a user wants to generate and what the AI actually produces. Users frequently find themselves "prompt engineering" because the model fails to capture subtle details or violates basic logic.

The authors identify two primary causes for this gap: the inherent complexity of user intent, where natural language prompts are often too vague to capture a full mental image, and model knowledge limitations, where training on simple image-label pairs leaves models without "common sense" or factual accuracy.

Visual examples of generation challenges addressed by the framework, such as factual integrity and semantic completeness.

Methodology: Knowledge-Enhanced Iterative Refinement

To bridge this gap, we propose a framework that moves beyond single-round generation. Instead of a linear "prompt-to-image" process, the system employs an iterative loop consisting of three main components:

  • Content Generation Baseline: A Semantic Parser (like an LLM) converts text into a structured representation (e.g., scene graphs or bounding boxes), which then feeds into the Generative Model.
  • Knowledge-Based Feedback Module: This module evaluates the generated content against four distinct knowledge sources: human insight (direct user feedback), pre-trained models (LLMs or object detectors), logic rules (ensuring physical consistency), and world knowledge (factual databases to prevent anachronisms).
  • Update Mechanism: Feedback is converted into specific update signals that trigger input revision, condition injection, or direct content editing.
The proposed knowledge-enhanced iterative refinement framework, illustrating the feedback loop between generated content and knowledge sources.

Evaluation and Key Results

The framework was evaluated using a benchmark proposed in the LMD (LLM-grounded Diffusion) study, generating 100 text prompts per task across categories designed to test model limits: Object Numeracy, Attribute Binding, and Spatial Reasoning.

  • Quantitative Improvement: The proposed method achieved an average accuracy of 84%, significantly outperforming the baseline Stable Diffusion (39.7%) and training-based SOTA methods like GLIGEN (53%).
  • Task-Specific Gains: Spatial Reasoning saw the most significant improvement, jumping from 28% (SD) to 86%, a 3.1x increase.
  • Qualitative Superiority: The iterative framework maintained stylistic and logical coherence where other models struggled, such as rendering consistent objects when asked for multiples of the same item.

Discussion and Future Work

A key insight of this research is that knowledge is most effective when used as a critic during an iterative generation process rather than just as additional training data. Moving from raw text to structured formats significantly increases the controllability of the output, allowing for the generation of "rare" scenarios that standard models usually fail at due to training biases.

Future work will focus on reducing "human fatigue" through automatic knowledge selection and optimizing the computational overhead of the iterative loop. Additionally, the authors aim to extend this framework to video generation, where the intent gap is even more pronounced.

Summary updated

BibTeX
@misc{cheng2024bridging,
  author = {Yi Cheng and Ziwei Xu and Dongyun Lin and Harry Cheng and Yongkang Wong and Ying Sun and Joo Hwee Lim and Mohan S. Kankanhalli},
  title = {{Bridging the Intent Gap: Knowledge-Enhanced Visual Generation}},
  year = {2024},
  eprint = {2405.12538},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.12538},
}
Figure