arXiv:2610.24051cs.AIOct 2026

Manuscript Offprint

arXiv:2610.24051

LogicVal:A Logic-Formalized Benchmark for Constraint Satisfaction in Text-to-Image Generation

Savitha Sam Abraham, Marjan Alirezaie, Hossein Rahnama

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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 ( ∀\forall, ∃\exists, count, →\rightarrow). 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.

1 Introduction

Text-to-Image (T2I) generative models have made impressive progress in recent years, producing images that capture both realistic scenarios and highly imaginative concepts. This progress has enabled the widespread adoption of T2I models across a range of applications including fashion, architecture (Li et al., 2026; Ni, 2025), and beyond. As T2I models become increasingly capable, an important question arises: What comes next? A key challenge is moving beyond generating visually compelling images toward generating images that reliably satisfy the constraints specified in a prompt. Current T2I models typically treat prompts as a form of soft conditioning, providing no formal guarantee that all specified requirements will be satisfied in the generated image. This gap is particularly important for applications where controllability and reliability are critical. The appeal and educational potential of T2I models in medical pedagogy have been investigated by Temsah et al. (2024), which highlights concerns regarding their reliability in educational settings.

Enabling further progress toward controllable and reliable T2I generation requires benchmarks that can systematically characterize what a model can and cannot satisfy. Existing T2I benchmarks have made important progress in this direction, with much of the literature focusing on three core capabilities: attribute binding to objects, numeracy, and spatial relationships between objects (Huang et al., 2025). These benchmarks typically define their own sets of objects, attributes, and relations, together with prompt templates that are instantiated using elements from these sets. Evaluation is then commonly performed using multimodal large language model (MLLM)-based metrics like Soft-TIFA (Kamath et al., 2025) or other learned similarity measures like CLIPScore (Hessel et al., 2021). Existing T2I evaluation often lacks a formal speci-

  • Equal contribution. † Corresponding authors.

fication of the properties that an image is required to satisfy. We introduce such a specification, and use it to turn evaluation into a logical constraint-satisfaction problem.

In this paper, we propose a new perspective on T2I benchmarking by placing logical formalization at its core. We realize this by formally specifying two key components: (i) the domain specification, which defines the objects, attributes, and relations considered in the benchmark, and (ii) the constraint specification, which defines the constraints on properties and relationships that a generated image is required to satisfy (see Figure 1). Both specifications are expressed in Answer Set Programming (ASP) (Eiter et al., 2009); the domain specification is domain-agnostic, and we instantiate it here for CLEVR (Johnson et al., 2017). The constraint specification supports templates ranging from simple attribute binding to more complex relational structures involving multiple objects and relations, including graph-structured compositions. This formalization decouples the specification of the evaluation criteria from their natural-language realization and, importantly, casts T2I evaluation as a constraint-satisfaction problem that can be addressed by combining neural detection models for visual grounding with logical solvers for constraint verification. Building on this formalization, we introduce LogicVal, a benchmark and evaluation framework for logical constraint satisfaction in T2I generation. The contributions of this paper are as follows:

• The LogicVal benchmark. 1^{1} We formalise evaluation criteria as domain specification (objects, attributes, relations) and constraint specification in ASP, decoupling what is evaluated from how it is phrased. We define 9 constraint classes, with each class having 4 to 11 templates of varying complexity and logical expressivity, from attribute binding to quantifier alternation and count comparison, and instantiate them into 509 solver-labelled (SAT/UNSAT) specifications.

• The LogicVal score and its meta-evaluation. We introduce the LogicVal score, which makes the correctness of a T2I-generated image a matter of logical entailment. We combine neural grounding with a logic solver to verify an image’s alignment with the constraints specified. LogicVal judgement is validated against human-judgement for a set of 3887 images: it reaches a ROC-AUC of 0.88–0.98 with human judgments.

• An analysis of state-of-the-art T2I models. We evaluate four T2I models on their ability to generate images that satisfy single-constraint mentioned in a prompt vs multiple-constraints specified jointly in a prompt, as well as their ability to identify prompts containing unsatisfiable constraints. We provide a detailed analysis of the challenges posed by different classes of constraints, individual logical operators ( ∀\forall, ∃\exists, count, →\rightarrow), and their combinations, investigating whether particular constraint types or compositions pose consistent difficulties across models.