TF-TI2I: Training-Free Text-and-Image-to-Image Generation via Multi-Modal Implicit-Context Learning in Text-to-Image Models

Teng-Fang Hsiao, Bo-Kai Ruan, Yi-Lun Wu, Tzu-Ling Lin, Hong-Han Shuai
3/19/2025
cs.CV

No official code found. Best implementation: BlueDyee/TF-TI2I (17 stars, last commit 2025-08-22).

Abstract

Text-and-Image-To-Image (TI2I), an extension of Text-To-Image (T2I), integrates image inputs with textual instructions to enhance image generation. Existing methods often partially utilize image inputs, focusing on specific elements like objects or styles, or they experience a decline in generation quality with complex, multi-image instructions. To overcome these challenges, we introduce Training-Free Text-and-Image-to-Image (TF-TI2I), which adapts cutting-edge T2I models such as SD3 without the need for additional training. Our method capitalizes on the MM-DiT architecture, in which we point out that textual tokens can implicitly learn visual information from vision tokens. We enhance this interaction by extracting a condensed visual representation from reference images, facilitating selective information sharing through Reference Contextual Masking -- this technique confines the usage of contextual tokens to instruction-relevant visual information. Additionally, our Winner-Takes-All module mitigates distribution shifts by prioritizing the most pertinent references for each vision token. Addressing the gap in TI2I evaluation, we also introduce the FG-TI2I Bench, a comprehensive benchmark tailored for TI2I and compatible with existing T2I methods. Our approach shows robust performance across various benchmarks, confirming its effectiveness in handling complex image-generation tasks.

View on arXivView PDF

Code Implementations(1)

BlueDyee/TF-TI2ICommunity60%

(ICCV'25) TF-TI2I: Training-Free Text-and-Image-to-Image Generation via Multi-Modal Implicit-Context Learning in Text-to-Image Models (Augment your T2I models with arbitrary number of images as references in a Training-Free manner πŸ”₯πŸ”₯πŸ”₯)

173Shell, PythonMar 12, 20251 years ago

Similar Papers

Cite this paper

@article{hsiao2025tftii,
  title  = {TF-TI2I: Training-Free Text-and-Image-to-Image Generation via Multi-Modal Implicit-Context Learning in Text-to-Image Models},
  author = {Teng-Fang Hsiao and Bo-Kai Ruan and Yi-Lun Wu and Tzu-Ling Lin and Hong-Han Shuai},
  year   = {2025},
  eprint = {2503.15283},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.15283v1}
}

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/2503.15283.svg)](https://codeofpaper.com/paper/2503.15283)

Discussion