InstanceGen: Image Generation with Instance-level Instructions
Etai Sella, Yanir Kleiman, Hadar Averbuch-Elor
TL;DR
InstanceGen tackles the gap between complex textual prompts and image fidelity by coupling image-based structural initialization with LLM-driven instance-level instructions, all without additional training. The method generates a fine-grained instance layout from the initial diffusion output, assigns per-segment objects and attributes via an LLM, and enforces these assignments through cross-attention losses, attention masking, and composition-preserving regularization during a second diffusion pass. It is evaluated on DrawBench, GenEval, and a new CompoundPrompts benchmark, showing superior counting accuracy and spatial fidelity, especially for prompts with multiple objects and instance-level attributes. The approach advances zero-shot controllability in text-to-image generation and provides a rigorous benchmark for evaluating complex prompts, with practical impact for precise visual synthesis of structured prompts.
Abstract
Despite rapid advancements in the capabilities of generative models, pretrained text-to-image models still struggle in capturing the semantics conveyed by complex prompts that compound multiple objects and instance-level attributes. Consequently, we are witnessing growing interests in integrating additional structural constraints, typically in the form of coarse bounding boxes, to better guide the generation process in such challenging cases. In this work, we take the idea of structural guidance a step further by making the observation that contemporary image generation models can directly provide a plausible fine-grained structural initialization. We propose a technique that couples this image-based structural guidance with LLM-based instance-level instructions, yielding output images that adhere to all parts of the text prompt, including object counts, instance-level attributes, and spatial relations between instances.
