Tree-of-Thoughts Reasoning for Text-to-Image In-Context Learning

Stepanida Alekseeva, Jenifer Kalafatovich, Seong-Whan Lee
7/8/2026
cs.CVcs.AI

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

In text-to-image in-context learning (T2I-ICL), a model has to infer a latent compositional pattern from fewshot demonstrations for generating a query image. Recent studies show that state-of-the-art multimodal large language models struggle with this setting, particularly due to limited compositional reasoning and sensitivity to prompt construction.

Show full abstract

In this work, we propose a Tree-of-Thoughts (ToT) reasoning framework for T2I-ICL that introduces a multi-stage reasoning and selection layer that generates, evaluates, and selects among multiple candidate hypotheses before constructing the final prompt for image synthesis. By exploring alternative reasoning branches and selecting a coherent interpretation, the proposed approach mitigates prompt ambiguity and compositional errors. We implement the proposed approach in a complete ToT-T2IICL inference pipeline and evaluate it on the CoBSAT benchmark. Both qualitative and quantitative results show that structured multi-branch reasoning leads to more consistent and semantically aligned image generation compared to baseline and Chain-of-Thought prompting strategies, without any additional training or fine-tuning.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{alekseeva2026treeofthoughts,
  title  = {Tree-of-Thoughts Reasoning for Text-to-Image In-Context Learning},
  author = {Stepanida Alekseeva and Jenifer Kalafatovich and Seong-Whan Lee},
  year   = {2026},
  eprint = {2607.07117},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.07117v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.07117.svg)](https://codeofpaper.com/paper/2607.07117)

Discussion