Abstract
Sketch-conditioned diffusion models have revolutionized creative workflows by providing spatial control over image generation. However, existing models often suffer from a "skill gap," rigidly adhering to the geometric flaws of novice sketches. We present KnobGen, a dual-pathway framework designed to balance high-level semantic guidance with fine-grained structural detail. Through a novel "inference knob," users can dynamically adjust the model's interpretation of their sketches, enabling the generation of high-quality images from both rough doodles and professional blueprints.
1. The Skill Gap in Sketch-Conditioned Models
Current state-of-the-art models like ControlNet and T2I-Adapter are designed for precision. While effective for professional artists, these models struggle with the "imperfect" inputs provided by novices. When a user provides a shaky or anatomically incorrect sketch, the model interprets these flaws as literal requirements, leading to distorted and unrealistic outputs. Conversely, models that prioritize abstraction often lose the specific spatial control that makes sketching a valuable input modality.
2. Methodology: The Dual-Pathway Framework
KnobGen addresses this by decoupling the conditioning process into two specialized pathways:
2.1 Macro Pathway (Coarse-Grained Controller)
The Macro Pathway focuses on global semantics and general layout. It utilizes CLIP-based image and text encoders to extract high-level features from the sketch and the prompt. These features are fused and injected into the diffusion model via cross-attention, providing a "big picture" guide that is less sensitive to local line wobbles.
2.2 Micro Pathway (Fine-Grained Controller)
The Micro Pathway handles the precise structural details, such as textures and exact boundaries. This pathway can leverage existing pretrained modules like ControlNet to provide the surgical precision required for professional-grade sketches.
2.3 The Tanh-Based Modulator
During training, fine-grained details can easily overpower high-level semantics, causing the model to overfit to the sketch's lines. To prevent this "bully effect," KnobGen employs a tanh-based modulator. This mechanism gradually increases the influence of the Micro Pathway during the training process, ensuring the model first learns to respect global structure before focusing on minute details.
3. Dynamic Control via the Inference Knob
The defining feature of KnobGen is the Inference Knob ($\gamma$). This user-controlled parameter defines a temporal threshold during the image generation process. For the first $\gamma$ steps of diffusion, both the Macro and Micro pathways are active. After step $\gamma$, the Micro (fine-grained) pathway is deactivated. This allows the model to "clean up" the initial sketch-guided layout in the final stages of generation, effectively abstracting away the imperfections of a rough sketch while maintaining the intended spatial arrangement.
4. Experimental Results
KnobGen was evaluated using a subset of the MultiGen-20M dataset and tested against both professional and novice sketch sets.
4.1 Quantitative Performance
KnobGen achieved state-of-the-art results across key metrics:
- CLIP Score: 0.3353 (indicating superior text-image alignment).
- FID Score: 93.87 (indicating higher image realism and quality).
4.2 Qualitative Comparison
As illustrated in the comparison below, KnobGen excels at interpreting the intent behind a sketch. While baseline models often produce flat or distorted objects when given simple line drawings (e.g., a hot air balloon or a window), KnobGen generates photorealistic results that follow the sketch's placement but ignore its technical flaws.
5. Conclusion
KnobGen democratizes sketch-based image generation by bridging the gap between user skill and model capability. By treating spatial control as a temporal, tunable process, it empowers users of all skill levels to translate their creative visions into high-quality digital art without being penalized for their drawing ability.
Summary updated