arXiv:2611.00819cs.CVOct 2026

Manuscript Offprint

arXiv:2611.00819

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

Kasra Kamali, Basim Azam, Tuan Duong Trinh, Jean Honorio, Naveed Akhtar

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

1 Introduction

Modern text-to-image (T2I) models have opened new creative possibilities, allowing people to generate compelling images that would have been impossible to generate just a few years ago. Models such as Stable Diffusion (Rombach et al., 2022a), Imagen (Saharia et al., 2022), and DALL-E 2 (Ramesh et al., 2022) have demonstrated an unprecedented ability to synthesize visually compelling and artistic images from natural language descriptions, unlocking wide-ranging applications across numerous domains.

However, despite these profound capabilities, current state-of-the-art T2I models frequently fall short in generating images that precisely align with the full semantic meaning and composition of their input text prompts. This lack of precise semantic alignment, a phenomenon we term “semantic drift”, pertains to the frequent failure of these models to precisely adhere to user prompts. For instance, they often misinterpret complex compositional instructions, leading to incorrect attribute binding (e.g., wrong material on objects), catastrophic neglect (Chefer et al., 2023) (omitting subjects from the prompt), or a failure to adhere to specified spatial relationships. This alignment gap forces users into frustrating trial-and-error prompt engineering, a practice that underscores the limitations of such models in accurately interpreting semantic intent.

This difficulty largely stems from how T2I models process textual information. State-of-the-art T2I diffusion models employ a U-Net architecture with cross-attention layers (Rombach et al., 2022a), which are crucial for fusing visual and textual features. While these layers encode rich semantic relations, the interaction can sometimes skew feature representations, causing semantic misalignment between the input and output. A variety of approaches have been proposed to address this problem. Fine-tuning methods like DreamBooth (Ruiz et al., 2023) and CoMat (Jiang et al., 2024), personalize models for specific subjects but can be computationally demanding. Architectural expansions like ControlNet (Zhang et al., 2023) and T2I-Adapter (Mou et al., 2024) provide explicit spatial control through auxiliary inputs but require additional inputs and specialized training. Alternatively, a growing class of methods focuses on training-free, inference-time manipulation of attention maps or latent representations. Techniques such as Attend-and-Excite (Chefer et al., 2023), CONFORM (Meral et al., 2024), and ToMe (Hu et al., 2024) directly intervene in the generation process to ensure robust semantic binding and alignment. While effective for specific tasks such as subject presence and attribute binding, they do not address the misalignment caused by imperfect initial text embeddings. This body of work reveals a clear gap for a method that can efficiently improve text-image alignment by directly correcting the text embedding to resolve complex compositional failures.

In this paper, we address this gap by introducing Orthogonal Drift Correction (ODC), a unique inference-time technique that directly corrects the text conditioning vector to prevent semantic drift. Our approach is based on the central hypothesis that semantic drift originates from the components of the computed text embedding that are orthogonal to the prompt's true semantic direction. ODC guides the image generation process through a two-stage mechanism. First, it generates an initial candidate image. Then, it leverages the shared embedding space of a pre-trained vision-language model, to identify the semantic error vector between the generated image and the prompt. Crucially, instead of using the entire error, it isolates its orthogonal component via vector rejection. This component, which intuitively represents the "off-topic" deviation, is then removed from the initial text embedding. The resulting purified embedding guides a second generation pass, producing a final image with substantially higher prompt-image alignment. Our contributions can be summarized as follows:

  • We identify orthogonal semantic drift in text embeddings as a significant source of prompt-image misalignment in text-to-image models, and propose a model-agnostic, training-free, inference-time method that corrects the text conditioning embeddings without modifying the diffusion process or requiring fine-tuning.

  • We propose an adaptive rank-reduced concept removal strategy that refines the text conditioning by processing the initial text embedding alongside a re-embedded drift representation, obtained via a vocabulary-based surrogate mechanism.

  • We introduce COALBench-300 (COmpositional ALignment Benchmark), 300 synthetically generated prompts curated to rigorously probe semantic drift and prompt-image alignment. To support our method, we curate a large-scale vocabulary of over 300,000 words and phrases, compiled from multiple sources and refined through several preprocessing steps, to effectively capture and mitigate semantic drift.