Beyond the Noise: Aligning Prompts with Latent Representations in Diffusion Models

Vasco Ramos, Regev Cohen, Idan Szpektor, João MagalhãesarXiv 2025 · DOI

Beyond the Noise: Aligning Prompts with Latent Representations in Diffusion Models

Introduction

Modern text-to-image diffusion models generate high-quality images through an iterative denoising process. However, these models frequently suffer from semantic misalignments—hallucinating objects or ignoring specific prompt attributes. Currently, verifying alignment requires completing the entire generation process (e.g., 50 steps) to use evaluation tools like CLIP. This "wait-and-see" approach is computationally expensive, especially for "Best-of-N" (BoN) sampling strategies where multiple candidates are generated and only one is selected.

The Challenge of Latent Alignment

The primary obstacle to early alignment detection is that intermediate "noisy" images, or latents, are unrecognizable to standard vision-language models. CLIP is trained on clear, natural images; when presented with the high-variance Gaussian noise of early diffusion steps, its accuracy drops significantly. Consequently, a generation that has already diverged from the prompt at step 10 might not be detectable as a failure until step 40 or 50.

Methodology

To address this, we introduce NoisyCLIP, a noise-aware framework designed to measure prompt-image alignment during the denoising process.

Overview of NoisyCLIP training and assessment during the diffusion process.

The NoisyCLIP architecture involves three key components:

  1. Noisy Latent Mapping: A linear transformation projects noisy latents into an RGB-compatible format for the image encoder.
  2. Contrastive Fine-Tuning: The CLIP image encoder is fine-tuned on intermediate noisy representations using an InfoNCE loss, while the text encoder remains frozen to maintain semantic grounding.
  3. Early Stopping: By scoring trajectories at a midpoint (e.g., step 25), NoisyCLIP enables early rejection of poorly aligned candidates in Best-of-N scenarios.

Experimental Setup and Datasets

Due to a lack of existing resources, two new datasets were curated:

  • Noisy-Conceptual-Captions: 1,000 prompts with generated images and "distractor" prompts to test sensitivity to factual errors.
  • Noisy-GenAI-Bench: 1,600 prompts with full sequences of intermediate latents. The model was trained on 50,000 high-quality noisy latents derived from a rewritten version of the CC12M dataset.

Key Results

NoisyCLIP demonstrates a significant improvement in early-stage alignment detection. It identifies correct prompts versus factually incorrect ones (e.g., wrong colors) as early as step 10, a feat standard CLIP cannot reliably achieve until step 30.

Comparison of NoisyCLIP and standard CLIP scores across denoising steps for a specific prompt.

Key performance metrics include:

  • Efficiency: Reducing computational costs by 50% through early stopping.
  • Accuracy: Maintaining 98% of the selection quality compared to post-generation CLIP scoring.
  • Robustness: Superior performance in complex spatial tasks where standard models often hallucinate.

Conclusion and Future Work

NoisyCLIP bridges the gap between latent representations and natural language, allowing for real-time monitoring of diffusion models. While it inherits some limitations from CLIP—such as difficulties with negation—it offers a robust path toward more efficient generative AI. Future research will explore using NoisyCLIP not just for early stopping, but for active guidance to steer "off-track" generations back toward the prompt.

Summary updated

Abstract

Conditional diffusion models frequently suffer from language-image misalignments. Due to the ambiguity of intermediate noise corrupted latents, assessing prompt adherence currently requires completing the entire sampling trajectory. This late-stage evaluation incurs even higher computational costs during test-time scaling strategies, such as Best-of-N (BoN) sampling, as all misaligned trajectories must finish generation before being discarded. To tackle this, we propose NoisyCLIP, a noise-aware twin-tower model that enables early language-to-latent alignment estimation. By learning a vision encoder on noise-corrupted latents, we allow the model to "see" through the ambiguity of intermediate diffusion steps. To facilitate this training, we investigate noise-data augmentation sampling strategies and introduce two new benchmark datasets: Noisy-Conceptual-Captions and Noisy-GenAI-Bench. When applied as an early-stopping criterion for BoN, NoisyCLIP at half cost matches or beats frozen CLIP at full cost. Ultimately, this transforms alignment assessment from an expensive final check into a continuous monitoring tool, drastically reducing compute costs without sacrificing semantic fidelity.
BibTeX
@misc{ramos2025beyond,
  author = {Vasco Ramos and Regev Cohen and Idan Szpektor and João Magalhães},
  title = {{Beyond the Noise: Aligning Prompts with Latent Representations in Diffusion Models}},
  year = {2025},
  eprint = {2512.08505},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.08505},
}
Figure