Introduction
Face sketch synthesis—the process of converting a portrait into a hand-drawn artistic representation—has long been a staple of digital media and forensic science. However, the field faces a significant bottleneck: the reliance on massive, manually curated datasets of photo-sketch pairs. Creating these datasets is prohibitively expensive, and models trained on them often struggle when faced with "in-the-wild" images—photos with complex backgrounds, varied lighting, or diverse demographics not represented in the training set.
This paper introduces a novel framework that tackles these issues through one-shot face sketch synthesis. By leveraging the generative priors of diffusion models and a new "Instruction Tuning" technique, the authors demonstrate that a model can learn a specific artistic style from just a single example and apply it robustly to any face.
The Challenge of One-Shot Synthesis
Traditional approaches based on Generative Adversarial Networks (GANs) or Convolutional Neural Networks (CNNs) are notoriously data-hungry. In a "one-shot" scenario, where only one photo-sketch pair is available for training, these models typically suffer from severe overfitting or fail to generalize to Out-of-Distribution (OOD) data. The goal is to bridge this gap: generating high-quality, identity-preserving sketches for any face using only a single style reference.
Instruction Tuning with Diffusion Priors
The authors propose a two-stage framework built upon Latent Diffusion Models (LDM). Rather than fine-tuning the model's weights—which would likely destroy its broad generative capabilities—the method focuses on optimizing a text instruction ($C_{Text}$).
The process involves:
- Acquiring the Editing Direction: Using a CLIP image encoder, the model calculates the distance between the training photo and the training sketch in a high-dimensional embedding space. This vector represents the "editing direction" required to transform a photo into that specific sketch style.
- Gradient-based Optimization: The model is trained using a combination of Reconstruction Loss ($L_{rec}$) and Editing Loss ($L_{edit}$). The latter ensures the learned text instruction aligns with the CLIP-derived editing direction.
- Hybrid Control: During inference, the learned style instruction can be combined with manual prompts (e.g., "white background") to provide users with fine-grained control over the output.
The OS-Sketch Dataset
To evaluate the model's performance in realistic scenarios, the authors introduced the OS-Sketch (One-shot Face Sketch Dataset). This benchmark contains 400 pairs sourced from various environments, including amateur sketches from the internet and challenging "in-the-wild" portraits. It features a wide range of ages, sexes, expressions, and complex backgrounds specifically designed to test OOD robustness.
Results and Performance
The proposed method demonstrates significant improvements over both specialized sketch synthesis models (like PANet) and general diffusion-based editing tools (like InstructPix2Pix). On the OS-Sketch benchmark, it achieved superior scores across key metrics:
- SSIM: 0.461 (Higher structural similarity)
- LPIPS: 0.348 (Lower perceptual distance)
- FID: 68.46 (Better image quality)
Beyond quality, the method is highly efficient, with an inference speed of approximately 5.99 seconds per image—significantly faster than competing diffusion-based methods like PnP-Diffusion.
Conclusion
By treating style as a latent instruction rather than a set of model weights, this framework unlocks the potential for highly flexible and robust face sketch synthesis. While limitations remain regarding extremely fine texture replication and prompt precision, the use of generative diffusion priors provides a powerful foundation for future work in one-shot image-to-image translation.
Summary updated