Skip to main content
QUICK REVIEW

[Paper Review] Training-Free Text-to-Image Compositional Food Generation via Prompt Grafting

Xinyue Pan, Yuhao Chen|arXiv (Cornell University)|Jan 25, 2026
Generative Adversarial Networks and Image SynthesisComputer Science0 citations
TL;DR

This paper introduces Prompt Grafting, a training-free method that prevents object entanglement in multi-food image generation by first forming separable layouts with a layout prompt and then grafting the target food prompts, improving multi-item presence without fine-tuning diffusion models.

ABSTRACT

Real-world meal images often contain multiple food items, making reliable compositional food image generation important for applications such as image-based dietary assessment, where multi-food data augmentation is needed, and recipe visualization. However, modern text-to-image diffusion models struggle to generate accurate multi-food images due to object entanglement, where adjacent foods (e.g., rice and soup) fuse together because many foods do not have clear boundaries. To address this challenge, we introduce Prompt Grafting (PG), a training-free framework that combines explicit spatial cues in text with implicit layout guidance during sampling. PG runs a two-stage process where a layout prompt first establishes distinct regions and the target prompt is grafted once layout formation stabilizes. The framework enables food entanglement control: users can specify which food items should remain separated or be intentionally mixed by editing the arrangement of layouts. Across two food datasets, our method significantly improves the presence of target objects and provides qualitative evidence of controllable separation.

Motivation & Objective

  • Address object entanglement and object omission in compositional food image generation.
  • Enable reliable multi-food generation without fine-tuning diffusion models.
  • Provide a training-free framework that uses text prompts only to create separable layouts and fill them with content.
  • Offer controllable generation where users can decide which items to keep separated or entangled.

Proposed method

  • Two-stage diffusion sampling: first condition on a layout prompt to establish distinct regions, then graft to the target prompt after layout stabilization.
  • Layout interruption with a time-varying conditioning c(t) that switches from c_layout to c_target at a grafting timestep T.
  • Dynamic grafting timestep determination by monitoring CLIP-based layout–text similarity to detect layout stabilization (S_lay).
  • Classifier-free guidance with a negative prompt to discourage all items collapsing onto one plate during final refinement.
  • No model fine-tuning or layout annotations; relies on SD3 with text prompts only.
Figure 1: Example compositional food images generated by stable diffusion v3 model (SD3) and our method with corresponding reference images.
Figure 1: Example compositional food images generated by stable diffusion v3 model (SD3) and our method with corresponding reference images.

Experimental results

Research questions

  • RQ1Can object entanglement in SD3-generated multi-food images be mitigated without additional training or layout annotations?
  • RQ2Does combining explicit layout prompts with spatial cues improve the separation and presence of multiple foods?
  • RQ3Is dynamic grafting timestep selection superior to fixed-step grafting for layout stabilization?
  • RQ4To what extent does PG generalize beyond food to non-food domains?

Key findings

  • PG substantially reduces entanglement and improves target object recall compared with SD3 and other baselines on two datasets.
  • Full PG (layout interruption + spatial cues) achieves the best F1 scores and BLIP object-existence rates across datasets (VFN: F1 0.537; UEC-256: F1 0.165; BLIP-exist ≈ 99.6–99.7%).
  • Using dynamic grafting timesteps yields the highest F1 and BLIP-exist scores vs fixed-step variants.
  • PG increases FID relative to some baselines due to enforced layout separation reducing background diversity (e.g., 49.0 vs 40.5 on VFN).
  • SC provides spatial guidance while layout interruption prevents early fusion; both components are necessary for reliable separation.
Figure 2: Generated image from stable diffusion v1 and stable diffusion v3 model using text prompt: A photo of white rice and soup
Figure 2: Generated image from stable diffusion v1 and stable diffusion v3 model using text prompt: A photo of white rice and soup

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.