Test-Time Alignment of Text-to-Image Diffusion Models via Null-Text Embedding Optimisation

Taehoon Kim, Henry Gouk, Timothy Hospedales
11/25/2025
cs.CVcs.AIcs.LG

No official code found. Best implementation: kthone/null-tta (6 stars, MIT, last commit 2026-02-28).

Abstract

Test-time alignment (TTA) aims to adapt models to specific rewards during inference. However, existing methods tend to either under-optimise or over-optimise (reward hack) the target reward function. We propose Null-Text Test-Time Alignment (Null-TTA), which aligns diffusion models by optimising the unconditional embedding in classifier-free guidance, rather than manipulating latent or noise variables. Due to the structured semantic nature of the text embedding space, this ensures alignment occurs on a semantically coherent manifold and prevents reward hacking (exploiting non-semantic noise patterns to improve the reward). Since the unconditional embedding in classifier-free guidance serves as the anchor for the model's generative distribution, Null-TTA directly steers model's generative distribution towards the target reward rather than just adjusting the samples, even without updating model parameters. Thanks to these desirable properties, we show that Null-TTA achieves state-of-the-art target test-time alignment while maintaining strong cross-reward generalisation. This establishes semantic-space optimisation as an effective and principled novel paradigm for TTA.

View on arXivView PDF

Code Implementations(1)

kthone/null-ttaCommunity66%
MIT

official implementation of CVPR 2026 paper: Test-Time Alignment of Text-to-Image Diffusion Models via Null-Text Embedding Optimisation (Null-TTA)

61PythonFeb 28, 20267 months agoMIT

Similar Papers

Cite this paper

@article{kim2025testtime,
  title  = {Test-Time Alignment of Text-to-Image Diffusion Models via Null-Text Embedding Optimisation},
  author = {Taehoon Kim and Henry Gouk and Timothy Hospedales},
  year   = {2025},
  eprint = {2511.20889},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.20889v1}
}

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

Discussion