Training-Free Diffusion Priors for Text-to-Image Generation via Optimization-based Visual Inversion
Samuele Dell'Erba, Andrew D. Bagdanov
TL;DR
Problem: diffusion priors impose substantial training costs for text-to-image generation. Approach: replace priors with Optimization-based Visual Inversion (OVI), optimizing a latent CLIP image embedding to align with text, augmented by Mahalanobis and Nearest-Neighbor regularizers to keep results realistic. Findings: unconstrained OVI often matches TextEmb and reveals benchmark metric issues; constrained variants, especially Nearest-Neighbor, yield higher visual fidelity and competitive scores relative to trained priors like ECLIPSE. Significance: demonstrates a feasible training-free alternative for diffusion priors and motivates re-evaluation of T2I benchmarks to better reflect perceptual quality.
Abstract
Diffusion models have established the state-of-the-art in text-to-image generation, but their performance often relies on a diffusion prior network to translate text embeddings into the visual manifold for easier decoding. These priors are computationally expensive and require extensive training on massive datasets. In this work, we challenge the necessity of a trained prior at all by employing Optimization-based Visual Inversion (OVI), a training-free and data-free alternative, to replace the need for a prior. OVI initializes a latent visual representation from random pseudo-tokens and iteratively optimizes it to maximize the cosine similarity with input textual prompt embedding. We further propose two novel constraints, a Mahalanobis-based and a Nearest-Neighbor loss, to regularize the OVI optimization process toward the distribution of realistic images. Our experiments, conducted on Kandinsky 2.2, show that OVI can serve as an alternative to traditional priors. More importantly, our analysis reveals a critical flaw in current evaluation benchmarks like T2I-CompBench++, where simply using the text embedding as a prior achieves surprisingly high scores, despite lower perceptual quality. Our constrained OVI methods improve visual fidelity over this baseline, with the Nearest-Neighbor approach proving particularly effective, achieving quantitative scores comparable to or higher than the state-of-the-art data-efficient prior, indicating that the idea merits further investigation. The code will be publicly available upon acceptance.
