Manuscript Offprint

arXiv:2610.29415

CCG Diffusion: Combinatory Categorial Grammar-Driven Compositional and Syntactically Disambiguated Text-to-Image Generation

Ryosuke Yamaki, Daichi Mochihashi, Nobutaka Shimada, Seitaro Shinagawa, Tadahiro Taniguchi

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

arXiv:2610.29415v1 [cs.CV]

IEEE Access Multidisciplinary Rapid Review Open Access Journal

This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.

CCG Diffusion: Combinatory Categorial Grammar–Driven Compositional and Syntactically Disambiguated Text-to-Image Generation

RYOSUKE YAMAKI 1^{1}, DAICHI MOCHIHASHI 2^{2}, NOBUTAKA SHIMADA 1^{1}, (Member, IEEE), SEITARO SHINAGAWA 3^{3}, AND TADAIHIRO TANIGUCHI 4,1^{4,1}, (Member, IEEE)

Ritsumeikan University, Ibaraki, Osaka 567-8570, Japan (e-mail: yamaki.ryosuke@em.ci.ritsumei.ac.jp; shimada@ci.ritsumei.ac.jp)

The Institute of Statistical Mathematics, Tachikawa, Tokyo 190-8562, Japan (e-mail: daichi@ism.ac.jp)

Nara Institute of Science and Technology, Ikoma, Nara 630-0192, Japan (e-mail: sei.shinagawa@is.naist.jp)

Kyoto University, Sakyo-ku, Kyoto 606-8501, Japan (e-mail: taniguchi@i.kyoto-u.ac.jp)

Corresponding author: Ryosuke Yamaki (e-mail: yamaki.ryosuke@em.ci.ritsumei.ac.jp).

This work was supported by JST ACT-X, Japan, Grant Number JPMJAX24CS.

ABSTRACT

Text-to-image generation models do not explicitly receive the syntactic structure of the prompt, i.e., which word modifies which and where each phrase attaches. Consequently, they often struggle to bind attributes to the correct objects, to depict spatial relations and counts correctly, and to render syntactically ambiguous prompts in the intended interpretation. Existing syntax-based control methods mainly address attribute binding and have limited ability to control spatial relations and counts or to specify the interpretation of syntactically ambiguous prompts. They rely on phrase-structure or dependency grammars and require additional rules or constraints on the tree structure to extract modification relations between words or to specify a syntactic interpretation. We propose CCG Diffusion, a training-free method that controls image generation using Combinatory Categorial Grammar (CCG). In CCG, the category of each word carries rich syntactic information: it specifies what the word combines with and what phrase it forms. Modification relations between words can therefore be read directly from a CCG parse. Moreover, prepositional phrase (PP) attachment ambiguity, a representative syntactic ambiguity, can be resolved simply by fixing the preposition's category. CCG Diffusion applies the same two CCG-based mechanisms, prompt rewriting and attention guidance, both to controlling attribute binding, spatial relations, and counts and to resolving PP ambiguity. On two architecturally different backbones, Stable Diffusion and Sana, CCG Diffusion achieves the highest scores among the compared methods in attribute binding and 2D spatial relations and significantly outperforms all of them in PP ambiguity resolution.

INDEX TERMS Attention guidance, Combinatory Categorial Grammar, compositional text-to-image generation, diffusion models, syntactic ambiguity resolution, text-to-image generation.

References (76)