English

Stencil: Subject-Driven Generation with Context Guidance

Computer Vision and Pattern Recognition 2025-09-23 v1

Abstract

Recent text-to-image diffusion models can generate striking visuals from text prompts, but they often fail to maintain subject consistency across generations and contexts. One major limitation of current fine-tuning approaches is the inherent trade-off between quality and efficiency. Fine-tuning large models improves fidelity but is computationally expensive, while fine-tuning lightweight models improves efficiency but compromises image fidelity. Moreover, fine-tuning pre-trained models on a small set of images of the subject can damage the existing priors, resulting in suboptimal results. To this end, we present Stencil, a novel framework that jointly employs two diffusion models during inference. Stencil efficiently fine-tunes a lightweight model on images of the subject, while a large frozen pre-trained model provides contextual guidance during inference, injecting rich priors to enhance generation with minimal overhead. Stencil excels at generating high-fidelity, novel renditions of the subject in less than a minute, delivering state-of-the-art performance and setting a new benchmark in subject-driven generation.

Keywords

Cite

@article{arxiv.2509.17120,
  title  = {Stencil: Subject-Driven Generation with Context Guidance},
  author = {Gordon Chen and Ziqi Huang and Cheston Tan and Ziwei Liu},
  journal= {arXiv preprint arXiv:2509.17120},
  year   = {2025}
}

Comments

Accepted as Spotlight at ICIP 2025

R2 v1 2026-07-01T05:48:22.030Z