arXiv

Hallucinations as Orthogonal Noise: Inference-Time Manifold Alignment via Dynamic Contextual Orthogonalization

Title: Treating Hallucinations as Orthogonal Noise: Aligning Inference-Time Manifolds Through Dynamic Contextual Orthogonalization

Abstract:

The generation of information that conflicts with contextual facts or logical constraints—a phenomenon known as hallucination in Large Language Models (LLMs)—continues to hinder their reliable real-world deployment. To tackle this persistent issue, our study introduces a geometric perspective grounded in the linear representation hypothesis. We posit that hallucinations should be understood as noise vectors that are orthogonal to the semantic manifold of the residual stream. In this view, while attention heads are designed to propagate information that aligns with the context subspace, hallucinations occur when certain heads inject components that are perpendicular to this subspace, thereby destabilizing the latent representation’s coherence.

Building on this theoretical foundation, we present Dynamic Contextual Orthogonalization (DCO), a novel intervention technique applied during inference. DCO leverages the input residual stream as a dynamic anchor for context, enabling the orthogonal decomposition of attention head outputs. To separate meaningful semantic updates that align with the context from divergent noise, the method implements a layer-wise Z-score suppression mechanism. This mechanism statistically identifies and attenuates outlier orthogonal components.

We evaluated DCO on Llama-3 models (both 8B and 70B) using benchmarks including XSum, NQ-Swap, and IFEval. The results indicate that DCO delivers superior contextual faithfulness when compared to current state-of-the-art intervention baselines. Additionally, DCO preserves high performance on knowledge-dependent tasks such as TriviaQA and TruthfulQA. This success is significant because it effectively resolves the common trade-off seen in existing methods, where suppressing hallucinations often leads to a loss of parametric knowledge. Our findings confirm the geometric interpretation of hallucinations and position DCO as a computationally efficient strategy for enforcing manifold alignment. The source code for this project is accessible at https://github.com/Harry-Miral/DCO.


Source: arXiv Generated at: 2026-06-03 00:00:00 UTC

Related Articles

TikTok Billionaire Tops Ambani as Asia’s Second-Richest
Bloomberg

TikTok Billionaire Tops Ambani as Asia’s Second-Richest

TikTok founder surpasses Mukesh Ambani to become Asia’s second-richest person, marking a significant shift in the region...

Publishers in UK can opt out of Google AI search results
BBC News

Publishers in UK can opt out of Google AI search results

UK publishers can now opt out of Google’s AI search summaries, a CMA ruling designed to boost their bargaining power and...

Kioxia Edges Nearer Toyota’s Market Cap in Shakeup to Japan Inc.
Bloomberg

Kioxia Edges Nearer Toyota’s Market Cap in Shakeup to Japan Inc.

Kioxia’s market cap nears Toyota’s, signaling a major shift in Japan’s corporate hierarchy. This narrowing gap highlight...

Reuters

Morning Bid: Marvell, a fitting name for the latest AI darling

Reuters highlights Marvell as a top AI stock, noting its name perfectly suits its status as the newest market darling.

Financial Times

Tim Hayward: I built the Jaguar E-Type of computer keyboards

Tim Hayward compares his bespoke keyboard designs to the Jaguar E-Type. He explores high-end customization for personal ...

Financial Times

AI Labs: Zuckerberg’s $100bn gamble

Meta’s $100 billion AI investment aims to secure AI dominance, but questions remain whether sheer spending can outpace c...