TP2O: Creative Text Pair-to-Object Generation using Balance Swap-Sampling
Jun Li, Zedong Zhang, Jian Yang
TL;DR
TP2O introduces Balance Swap-Sampling (BASS), a training-free method to generate creative objects from two object texts by swapping prompt embeddings, enforcing a CLIP-distance balance region, and selecting via SAM-based segmentation. The method combines a swapping mechanism with a geometric balance region defined by $|d(I_f,I_1)-d(I_f,I_2)|\le\alpha$ and $d(I_f,I_1)+d(I_f,I_2)\le 2\beta$, followed by coarse-to-fine sampling and semantic scoring to pick an optimal composite image. Experimental results on 5075 ImageNet-derived prompt pairs show BASS outperforms state-of-the-art T2I models and even rivals human artworks in novelty and appeal, with user studies indicating strong preference for BASS outputs. The approach demonstrates a practical, training-free path to out-of-distribution creative synthesis and suggests extensions to multi-concept prompts and learned swapping strategies.
Abstract
Generating creative combinatorial objects from two seemingly unrelated object texts is a challenging task in text-to-image synthesis, often hindered by a focus on emulating existing data distributions. In this paper, we develop a straightforward yet highly effective method, called \textbf{balance swap-sampling}. First, we propose a swapping mechanism that generates a novel combinatorial object image set by randomly exchanging intrinsic elements of two text embeddings through a cutting-edge diffusion model. Second, we introduce a balance swapping region to efficiently sample a small subset from the newly generated image set by balancing CLIP distances between the new images and their original generations, increasing the likelihood of accepting the high-quality combinations. Last, we employ a segmentation method to compare CLIP distances among the segmented components, ultimately selecting the most promising object from the sampled subset. Extensive experiments demonstrate that our approach outperforms recent SOTA T2I methods. Surprisingly, our results even rival those of human artists, such as frog-broccoli.
