End-to-end Training for Text-to-Image Synthesis using Dual-Text Embeddings
Yeruru Asrar Ahmed, Anurag Mittal
TL;DR
This work tackles text-to-image synthesis by jointly learning text representations tailored to the synthesis model through end-to-end training. It introduces Dual Text Embeddings (DTE), comprising generator-ready S_G and discriminator-ready S_D, learned via separate gradient flows to optimize photo-realism and text–image alignment respectively. The architecture uses a single-stage generator with conditioning augmentation and a two-branch discriminator trained with adversarial and multi-modal contrastive losses, achieving state-of-the-art or competitive FID/R-precision metrics across Oxford-102, CUB, and MS-COCO, while enabling cross-task benefits such as text-to-image manipulation. The results demonstrate that task-specific embeddings outperform pre-trained, generic embeddings, and that dual embeddings generalize to other models (e.g., AttnGAN) and downstream tasks, highlighting the practical impact of end-to-end, dual-representation learning in language-vision systems.
Abstract
Text-to-Image (T2I) synthesis is a challenging task that requires modeling complex interactions between two modalities ( i.e., text and image). A common framework adopted in recent state-of-the-art approaches to achieving such multimodal interactions is to bootstrap the learning process with pre-trained image-aligned text embeddings trained using contrastive loss. Furthermore, these embeddings are typically trained generically and reused across various synthesis models. In contrast, we explore an approach to learning text embeddings specifically tailored to the T2I synthesis network, trained in an end-to-end fashion. Further, we combine generative and contrastive training and use two embeddings, one optimized to enhance the photo-realism of the generated images, and the other seeking to capture text-to-image alignment. A comprehensive set of experiments on three text-to-image benchmark datasets (Oxford-102, Caltech-UCSD, and MS-COCO) reveal that having two separate embeddings gives better results than using a shared one and that such an approach performs favourably in comparison with methods that use text representations from a pre-trained text encoder trained using a discriminative approach. Finally, we demonstrate that such learned embeddings can be used in other contexts as well, such as text-to-image manipulation.
