ODC: Orthogonal Drift Correction for Improved Text-to-Image Semantic Alignment at Inference

Kasra Kamali, Basim Azam, Tuan Duong Trinh, Jean Honorio, Naveed AkhtararXiv 2026

TL;DR

ODC (Orthogonal Drift Correction) is a training-free, plug-and-play method that improves the alignment between text prompts and generated images at inference time. By identifying "off-topic" semantic components in an initial generation and surgically removing them from the text embeddings, ODC significantly reduces hallucinations and attribute-binding errors without requiring model retraining.

What Problem Does This Paper Address?

Despite the impressive quality of modern text-to-image (T2I) models like Stable Diffusion XL and FLUX.1, they frequently suffer from "semantic drift." This occurs when the generated image fails to capture the full nuance of a prompt—for example, neglecting a requested object, swapping colors between two items (attribute binding), or ignoring spatial relationships.

Existing solutions usually fall into three camps:

  1. Prompt Engineering: Iterative, manual, and often frustrating.
  2. Fine-tuning: Computationally expensive and specific to certain subjects (e.g., DreamBooth).
  3. Attention Manipulation: Intervening during the denoising process to "excite" certain tokens.

The authors identify a gap: most methods don't address the fact that the initial text embedding itself might contain components that lead the model astray. ODC targets the source of the problem by refining the text conditioning signal before the final image is ever generated.

Methods

ODC operates through a clever two-stage "generate-correct-regenerate" pipeline:

Stage 1: Identifying the Drift 1. Initial Generation: The model generates a candidate image from the user's prompt. 2. Drift Calculation: Using a pre-trained Vision-Language Model (VLM) like BLIP-2, both the prompt and the generated image are projected into a shared embedding space. The difference between these vectors is the "semantic drift." 3. Orthogonal Isolation: Crucially, ODC doesn't just subtract the whole error. It uses vector rejection to isolate the component of the drift that is orthogonal to the prompt. This represents the "off-topic" noise—the stuff the model added that wasn't asked for. 4. Vocabulary Retrieval: Because the VLM's embedding space differs from the T2I model's space, ODC translates this drift vector back into text by finding the top-$k$ closest words from a massive 323,000-word vocabulary.

Stage 2: Refinement and Final Generation 5. Rank-Reduced Concept Removal: The retrieved "drift words" are re-embedded using the T2I model's own encoders. ODC then applies an adaptive rank-reduction strategy (using QR decomposition) to identify the most significant dimensions of the drift while ignoring minor noise. 6. Final Pass: These purified embeddings are used to generate a second, final image that is much more faithful to the original intent.

Figure 1: The workflow of Orthogonal Drift Correction (ODC). In the first stage, vocabulary items that best capture the orthogonal drift vector are retrieved. In the second stage, these vocabulary items are used in a concept removal operation, producing embeddings that better align with the user’s text prompt and serve as input for the final image generation.

Datasets

The authors evaluated ODC across several benchmarks:

  • COALBench-300 (New): The "COmpositional ALignment Benchmark," a new set of 300 imaginative and complex prompts (e.g., "Steampunk octopus playing violin underwater") designed to stress-test semantic adherence.
  • PartiPrompts: A standard benchmark for probing imaginative and open-ended generation.
  • T2I-CompBench (Complex): A subset specifically focused on multiple objects, attributes, and relationships.
  • Vocabulary: A curated dataset of ~323k items compiled from Open Images, Visual Genome, and Wikipedia to serve as the "surrogate" for drift correction.

Key Insights and Ideas

  • The Power of Orthogonality: The "aha moment" is the realization that the most harmful errors are "off-axis." By removing only the orthogonal component of the drift, ODC avoids stripping away useful semantic information that is aligned with the prompt.
  • Vocabulary as a Bridge: One of the biggest hurdles in T2I research is that different models (CLIP, T5, BLIP) "speak" different embedding languages. Using a discrete vocabulary of words acts as a universal translator, allowing a VLM to communicate errors to a Diffusion model's text encoder.
  • Adaptive Correction: Not all prompts are equally complex. By using QR decomposition to determine the "semantic rank" of the drift, ODC automatically adjusts its correction strength—simple errors get a light touch, while complex hallucinations get a more robust removal.

Key Results

ODC demonstrates consistent improvements across different model backbones (SDXL and FLUX.1):

  • Quantitative Gains: ODC increased CLIP scores by up to 5.4% over vanilla baselines on COALBench-300. On the challenging T2I-CompBench, it improved the "3-in-1" compositional score by 4.5% compared to state-of-the-art methods like Attend-and-Excite.
  • Human Preference: In a blind study with 600 pairwise comparisons, experts preferred ODC-corrected images 61.8% of the time.
  • Efficiency: While ODC roughly doubles the generation time (due to the two-pass approach), it requires zero additional GPU memory and no training, making it highly practical for deployment.

Limitations and Future Work

  • VLM Bottleneck: ODC is only as good as the "eyes" of the Vision-Language Model used in Stage 1. If the VLM can't perceive an error (like a subtle counting mistake), ODC can't fix it.
  • Polysemy Issues: The VLM can sometimes be misled by words with multiple meanings. For example, a prompt about "glass" (the material) might lead the model to retrieve keywords for "glass" (the drinking vessel).
  • Latency: The two-stage process is inherently slower than a single pass. The authors suggest that future work could explore using faster, task-specific evaluators (like dedicated object counters) to streamline the drift estimation.

For more details, you can find the full paper and code at https://github.com/kasrakamali/ODC.

Summary updated

Abstract

Text-to-image models have achieved remarkable success in generating high-quality images from textual descriptions. However, they often struggle with "semantic drift," where the generated output fails to precisely align with complex or nuanced text prompts. While recent approaches have attempted to address semantic errors regarding attribute binding or object presence, there remains a gap for a more holistic method that addresses these issues by directly refining the text embeddings of the initial user prompt. In this work, we introduce Orthogonal Drift Correction (ODC), an inference-time guidance method designed to mitigate semantic drift without requiring model retraining or additional user inputs. ODC guides image generation through a two-stage process. In the first stage, it identifies the semantic drift by evaluating the initially generated image against the user prompt in a shared vision-language embedding space. It then isolates the component of this drift vector that is orthogonal to the prompt's direction and translates it back into text via a vocabulary-based surrogate mechanism. In the second stage, it produces refined text conditioning for a second generation pass by feeding both the initial text embedding and the re-embedded drift representation into an adaptive rank-reduced concept removal module. Our experiments demonstrate that ODC consistently improves prompt-image alignment, increasing CLIP scores by up to 5.4% over the baseline on the COALBench-300 and PartiPrompts benchmarks. Furthermore, on the T2I-CompBench complex subset, ODC improves the average 3-in-1 score by 4.5% over the competing methods. As a plug-and-play module, ODC offers a practical and efficient method for improving the reliability of text-to-image models. Code is available at https://github.com/kasrakamali/ODC.
BibTeX
@misc{kamali2026odc,
  author = {Kasra Kamali and Basim Azam and Tuan Duong Trinh and Jean Honorio and Naveed Akhtar},
  title = {{ODC: Orthogonal Drift Correction for Improved Text-to-Image Semantic Alignment at Inference}},
  year = {2026},
  eprint = {2611.00819},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.00819},
}
Figure