Directional Noise Conditioning for Diffusion Models

Mahdi Shafiei, Azade Farshad, Nassir Navab, Yousef YeganehNeurIPS 2026

TL;DR

Standard diffusion models suffer from "conditioning decay"—as they sculpt an image out of static, they pay attention to your instructions early on, then forget them at the end while obsessing over fine textures. Directional Noise Conditioning (DNC) fixes this not by tweaking the neural network architecture, but by geometrically shifting the starting noise along specific, orthogonal directions for each visual attribute. The result is pinpoint quantitative control—enabling everything from exact angle rotations to reconstructing coherent 3D brain scans and CAD meshes out of 2D slices.

What Problem Does This Paper Address?

Diffusion models generate images by iteratively cleaning up pure Gaussian noise. To steer this process, we usually inject instructions (like text prompts or class labels) into the middle of the denoising network using tools like cross-attention or timestep embeddings.

While great for broad strokes ("a dog in space"), these mid-stream injections struggle with precise, continuous control—like rotating an object to exactly 37 degrees, or dialing in a quantitative medical marker. Why? Because of conditioning decay. Early in the denoising loop, the model listens closely to the conditioning signal to lay out the global structure. Later in the loop, it shifts focus to hallucinating crisp, high-frequency details, often drifting away from the original target attribute. Furthermore, pure random starting noise introduces high variance that fights against fine-grained precision.

Methods

Instead of shouting instructions from the sidelines during denoising, DNC bakes the instructions directly into the starting coordinates of the latent space.

Overview of DNC Training: Visual features are mapped to orthogonal shift directions in the noise distribution, while a Feature VAE extracts unannotated attributes.

Here is how the recipe differs from a standard Latent Diffusion Model:

  • Orthogonal Noise Shifts: Every visual feature $f_j$ (normalized to $[-1, 1]$) is assigned a unique, learned unit direction vector $d_j$ in the noise space. Using Gram–Schmidt initialization and an orthogonality regularization loss ($\mathcal{L}_{\text{ortho}}$), these directions are kept perpendicular so features don't tangle. The total shift $S$ is simply a linear combination of these scaled vectors.
  • Orthogonalized Starting Noise: Rather than starting from pure noise $\epsilon$, DNC strips away the component of random noise that points along $S$ (leaving $\epsilon_{\perp}$), and replaces it with the exact shift: $x_T = \epsilon_{\perp} + S$. That way, random luck never cancels out your conditioning signal.
  • Anti-Decay Shift Loss ($\mathcal{L}_{\text{shift}}$): A standard U-Net denoiser is trained to predict the combined target ($\epsilon_{\perp} + S$). Crucially, DNC adds an auxiliary loss that projects the network's prediction onto $S$ at every timestep, penalizing any drift and curing conditioning decay.
  • Unsupervised Feature Discovery: What if your dataset doesn't have labels? The authors attach a Feature VAE that looks at a representative sample (like a single middle 2D slice of a 3D brain MRI) to extract unannotated "identity" features. These discovered features are concatenated with known labels (like slice depth) and fed straight into DNC.
Figure 2: Overview of the Model Training and Inference.

Datasets

The authors test DNC across four datasets—including a newly introduced synthetic benchmark:

  1. Arrows (New): A synthetic dataset of 2,000 images of arrows rotated uniformly between $0^\circ$ and $180^\circ$ (in both plain white and a tricky black-and-white grid texture) to measure angular precision without confounding variables.
  2. COIL-100: Real-world photos of objects on a turntable captured at $5^\circ$ intervals (72 views per object).
  3. Thingi10K: 10,000 3D-printing models, sliced into 2D cross-sections to test 3D shape generation.
  4. BraTS2020: Multi-modal 3D brain MRI scans, also sliced into 2D images to test anatomical coherence.

Key Insights and Ideas

  • The starting point is the steering wheel: You don't need heavy architectural surgery (like cross-attention layers) to control a diffusion model. Structuring the terminal noise distribution $x_T$ gives the standard U-Net a cleaner, geometry-aware path to follow.
  • Turning 2D models into coherent 3D generators: If you ask a normal 2D diffusion model to generate 100 vertical slices of a brain and stack them, looking at the stack horizontally reveals a fragmented mess—each slice hallucinated a slightly different brain. By locking a Feature VAE's "identity" vector into DNC's noise shift and sweeping the "slice depth" vector from $-1$ to $1$, a pure 2D model generates 3D volumes that stay remarkably coherent across unseen axes.
Figure 1: Directional Noise Conditioning for 3D Generation using 2D Diffusion

Key Results

Using an identical 331.5M-parameter U-Net backbone across all baselines (Timestep Embedding, Cross-Attention, and FiLM), DNC dominates quantitative and qualitative benchmarks:

  • Pinpoint Rotation (Arrows): DNC cuts average angular L1 error by 51–59% on uniform arrows, achieving a $1.21^\circ$ average error ($r^2 = 0.9993$) compared to $2.50^\circ$ for Cross-Attention and $2.96^\circ$ for Timestep Embedding, while cleanly preserving grid textures ($1.85^\circ$ error).
  • Unsupervised Control (COIL-100): Without seeing rotation labels during training, sweeping a single VAE-discovered feature from $-1$ to $1$ smoothly rotates toy trucks across $360^\circ$.
  • Order-of-Magnitude 3D Reconstruction (Thingi10K): Reconstructing a 3D mesh from a single middle 2D slice yields an IoU of 0.7486 and Chamfer Distance of 0.2680 for DNC. Baselines completely collapse on this task, scoring $\le 0.0219$ IoU and $\ge 13.49$ Chamfer Distance. Generative fidelity (FID) drops from $\ge 43.76$ in baselines to 13.55 (nearly matching the 10.56 ground truth).
Figure 3: Qualitative Comparison of Generated 3D Objects on Thingi10K [37]. Each method is conditioned on the depth of 2D vertical slices during training. For visualization, the generated slices are stacked to reconstruct full 3D objects, which are then converted to meshes and rendered from multiple viewpoints.
  • Cross-Slice Medical Coherence (BraTS2020): When stacking generated vertical MRI slices and slicing them horizontally (an axis the model never trained on), DNC achieves an FID of 60.42 (ground truth: 50.68), whereas baselines degrade severely to 133.00–141.57.

Limitations and Future Work

  • Scale and Resolution: All models were trained from scratch at $256 \times 256$ resolution. Whether DNC plays nicely with massive, pretrained text-to-image foundation models is still an open question.
  • Categorical & High-Dimensional Bottlenecks: Encoding features as scalars along single lines works wonders for continuous, ordered traits (angle, depth), but struggles with unordered categories (like digit classes, where correlation dropped to $r = 0.323$) and was only tested up to $M \le 6$ simultaneous attributes.
  • No Dense Spatial Control: Because $S$ is a single global vector shift, it cannot handle spatially dense prompts like segmentation masks or virtual try-on images.
  • Linearity Limits for Text: Mapping complex text embeddings linearly onto a fixed orthogonal basis is likely too rigid. For future work, the authors suggest replacing the linear combination with a learned nonlinear shift mapper $S = g_\psi(\text{embedding})$, keeping the initial-noise paradigm while unlocking rich semantic prompts.

Summary updated

Abstract

Conditioning diffusion models on visual features is essential for controlled image generation and counterfactual reasoning across diverse applications, from creative design to medical imaging. Existing conditioning methods, such as timestep embedding and cross-attention mechanisms, suffer from limited control over feature accuracy, require substantial architectural modifications, and struggle to maintain conditioning precision throughout the denoising process, as the model's focus shifts toward fine-grained details in later steps rather than the desired conditioned features. We present a novel approach that addresses these limitations by learning to shift the initial noise distribution in the latent space. Our method assigns each visual feature a distinct direction in the latent space and applies proportional shifts during both training and inference, enabling precise control over continuous and discrete visual attributes. We introduce a combined loss function that explicitly enforces shift accuracy alongside denoising, ensuring consistent conditioning across all denoising steps. Furthermore, we extend this framework to datasets with hidden or inaccessible visual features by employing a Variational Autoencoder to extract latent representations in an unsupervised manner. This enables high-fidelity counterfactual generation on complex, real-world datasets where explicit feature annotations are unavailable or prohibitively expensive to obtain. Project Page: https://sites.google.com/view/dncdiff
BibTeX
@inproceedings{shafiei2026directional,
  author = {Mahdi Shafiei and Azade Farshad and Nassir Navab and Yousef Yeganeh},
  title = {{Directional Noise Conditioning for Diffusion Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=jzTnuYTSXT},
}
Figure