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

Vasco Ramos, Regev Cohen, Idan Szpektor, João Magalhães

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.

Extracted figure from page 3 of Beyond the Noise: Aligning Prompts with Latent Representations in Diffusion Models

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.

Extracted figure from page 1 of Beyond the Noise: Aligning Prompts with Latent Representations in Diffusion Models

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.

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