LogicVal:A Logic-Formalized Benchmark for Constraint Satisfaction in Text-to-Image Generation
Organizations: City St George’s, University of London · Toronto Metropolitan University · Flybits Labs, Creative AI Hub, Toronto · MIT Media Lab, Massachusetts Institute of Technology
Abstract
Text-to-Image (T2I) generative models have made significant progress in producing high-fidelity images from natural-language prompts. Alongside this progress, numerous benchmarks have been developed to evaluate capabilities such as attribute binding, numeracy, spatial reasoning, and commonsense reasoning. In this work, we propose a new perspective on T2I evaluation by casting it as a constraint-satisfaction problem. We introduce a logical framework that formally specifies the benchmark domain, including objects, attributes, and relations, alongside the constraints that generated images must satisfy. We evaluated four state-of-the-art T2I models across 9 classes of constraints ranging from a single-object-attribute to multi-object relationships constraints involving logical operators (). Our results reveal a substantial gap between single-object and complex conditional multi-object relationship constraint classes, with the best-performing model achieving 98% accuracy on the former and just 53% on the latter. We assess compositional generalisation, finding that the best-performing model`s accuracy drops from 84% on single-constraint prompts to 20% when satisfying multiple constraints simultaneously. Identifying unsatisfiable constraints is also challenging, with the best model correctly recognizing only 23% of such prompts. Building on this framework, we introduce LogicVal, an evaluation methodology that combines neural visual detection with logical reasoning to assess constraint satisfaction in generated images. On CLEVR, LogicVal achieves ROC-AUC scores ranging from 0.88 to 0.98, indicating strong alignment with human judgments. These findings underscore the value of logic-based evaluation for characterizing T2I model capabilities and limitations.
Figures & tables
| Benchmark | Negation | Counting | Composition | UNSAT | Formal spec. | |
|---|---|---|---|---|---|---|
| T2I-CompBench ( 2023 ) | – | ✓ | – | – | ||
| GenEval ( 2023 ) | – | – | – | |||
| GenEval 2 ( 2025 ) | – | ✓ | – | – | ||
| GenAI-Bench ( 2024 ) | ✓ | ✓ | ✓ | – | – | |
| GeckoNum ( 2024 ) | – | – | – | |||
| NegT2IBench ( 2026 ) | ✓ | – | – | – |
| ID | Name | #T | Abstract Form | Example template instance (ASP) | Natural language |
|---|---|---|---|---|---|
| Object-level | |||||
| C1 | Existential Object | 11 | :- #count{X: obj(X), hP(X,color,red)} = 0. | A red object is in the scene. | |
| C2 | Universal Object | 9 | :- obj(X), hP(X,shape,sphere). | No object is sphere. | |
| C3 | Conditional Object | 10 | :- obj(X), hP(X,color,blue), hP(X,region,r3). | Every blue object is not in r3. | |
| SubGraph-level | |||||
| C4 | Existential | 4 | :- #count{Z,X1,X2: …, hP(Z,shape,sphere), hP(X1,region,r1), hP(X2,shape,cube), hR(Z,X1,right), hR(Z,X2,behind)} = 0. | There exists a sphere object that is to the right of an object in r1, and also behind a cube object. | |
| GPT | Gemini | Flux | QwenImage | |
|---|---|---|---|---|
| 1SAT | 0.577 | 0.848 | 0.031 | 0.017 |
| 3SAT | 0.200 | 0.480 | 0.000 | 0.000 |
| 6SAT | 0.000 | 0.200 | 0.000 | 0.000 |
| GPT | Gemini | Flux | QwenImage | |
|---|---|---|---|---|
| 1SAT | 0.001 | 0.000 | 0.138 | 0.507 |
| 3SAT | 0.000 | 0.000 | 0.040 | 0.120 |
| 6SAT | 0.000 | 0.000 | 0.040 | 0.040 |
| Metric | GPT | Gemini | Flux | QwenImage |
|---|---|---|---|---|
| ClipScore | -0.081 | 0.158 | 0.046 | 0.009 |
| VLM-Judge | 0.127 | 0.152 | 0.217 | 0.160 |
| Soft-TIFA (AM) | 0.247 | 0.128 | 0.276 | 0.223 |
| Soft-TIFA (GM) | 0.289 | 0.216 | 0.246 | 0.206 |
| LogicVal | 0.970 | 0.700 | 0.712 | 0.522 |
| GPT | Gemini | Flux | QwenImage | |
|---|---|---|---|---|
| 1SAT | 96.34 | 90.70 | 97.61 | 96.62 |
| 3SAT | 96 | 88 | 100 | 100 |
| 6SAT | 100 | 92 | 100 | 100 |
| GPT | Gemini | Flux | QwenImage | |
|---|---|---|---|---|
| 1SAT | 0.744 | 0.323 | 0.154 | 0.141 |
| 3SAT | 0.600 | 0.560 | 0.040 | 0.200 |
| 6SAT | 0.480 | 0.680 | 0.160 | 0.240 |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| C3 (template 1propA_1propC ), | |
|---|---|
| ASP | :- object(X), hasProperty(X,color,green), not hasProperty(X,material,metal). :- #count{X: object(X), hasProperty(X,color,green)} = 0. |
| Short | At least one object is green, and every green object is also metal. |
| Long | The scene must contain at least one object that is green. Whenever an object is green, it must simultaneously be metal. |
| C7 (template 1prop_exact ), | |
| ASP | :- object(X), hasProperty(X,region,r1), #count{Y: object(Y), X!=Y, hasProperty(Y,material,rubber), hasRelationship(Y,X,behind)} != 3. :- #count{X: object(X), hasProperty(X,region,r1)} = 0. |
| Short | There must be at least one object that is in r1. Every such object has exactly three rubber objects that are behind it. |
| Constraints per spec ( ) | SAT | UNSAT | Total |
|---|---|---|---|
| 1 | 355 | 25 | 380 |
| 3 | 25 | 10 | 35 |
| 6 | 25 | 69 | 94 |
| Total | 405 | 104 | 509 |
| Templates covered ( 1SAT ) | 71 | 14 |
| Category | Sub-question | Expected answer |
| Common sub-questions | ||
| Common (SAT) | Is there any shape other than cube, sphere, or cylinder? | No |
| Common (SAT) | Are all objects among the following colors: gray, red, blue, green, brown, purple, cyan, or yellow? | Yes |
| Common (SAT) | True or False: All objects are either metal or rubber. | True |
| Common (SAT) | Is the image an empty scene with a white background? | No |
| Common (SAT) | How many objects are in the scene? | number_of_objects (from the prompt) |
Image Generation Evaluation
Image generation evaluation measures the quality, fidelity, diversity, and instruction-following ability of AI-generated images.
See all 108 papers