EPIC: Efficient Predicate-Guided Inference-Time Control for Compositional Text-to-Image Generation
Sunung Mun, Sunghyun Cho, Jungseul Ok
NeurIPS page · Open on the map
Category: Diffusion & Image Generation › Unified Multimodal Generation · Type: new method · Keywords: compositional text-to-image generation, inference-time refinement, predicate-guided search, visual program, prompt accuracy
Areas: Code & Coding Agents › Code Generation and Optimization › Agentic Generation; Multimodal › Multimodal Creation and Editing › Diffusion-Based Image Generation
Summary
EPIC is a training-free inference-time refinement framework that uses predicate-guided search to parse compositional prompts into a fixed visual program and iteratively verify and correct generated images, achieving higher accuracy and lower computational cost.
Explained to a 5-year-old
People want to draw pictures from words that describe many things at once. The computer makes a picture but sometimes forgets some details. A new idea checks the picture step by step to see if everything is there. If something is missing, it fixes just that part or makes a new picture. This helps the pictures match what was asked.
Explained to a 5-year-old, longer
When you type a sentence that has many things, like 'a red ball and a blue car', the computer tries to draw both. Sometimes it draws only one thing or gets the colors wrong. A new idea looks at the picture and checks each thing one by one. It sees if the red ball is there, if the blue car is there, and if they are in the right place. If the ball is missing, it adds a ball. If the car is in the wrong spot, it moves it. If many things are wrong, it starts over and draws a new picture. This way, the final picture matches the whole sentence. It works without needing to train a big model, just by checking and fixing. The process is fast and uses less computer power. It helps people get pictures that are exactly what they wanted.
For a technical reader
The system takes a compositional text prompt, parses it into a static visual program that defines object variables and predicate constraints (e.g., presence, count, attribute, relation). It then generates an initial image and iteratively refines it by extracting visual evidence and checking each predicate. Failed predicates guide either targeted edits (local failures) or a full regeneration (global failures), while the visual program stays unchanged. This inference-time control improves prompt adherence and reduces computational cost compared to prior refinement baselines. The approach operates without any additional training, making it easy to integrate with existing text-to-image models.
Problem
Compositional text-to-image generation often fails to satisfy prompts that involve multiple objects, counts, attributes, and relations, resulting in inaccurate or incomplete images.
Method
The approach parses the prompt into a fixed visual program of object variables and typed predicates, then iteratively refines generated images by extracting visual evidence and checking each predicate, directing edits for local failures and resampling for global failures while keeping the program unchanged.
Results
The approach raises prompt-level accuracy from 34.16% to 71.46% on GenEval2 and surpasses prior baselines by 19.23 points while cutting image-model executions, MLLM calls, and MLLM tokens by 31%, 72%, and 81% respectively.
Contributions
A training-free inference-time refinement method that uses predicate-guided search to systematically verify and correct compositional prompts, along with quantitative improvements on a benchmark.
Practical relevance
Enables more reliable generation of complex scenes for applications requiring precise control over objects and relations.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction