Variational Test-time Optimization for Diffusion Synchronization

Hyunsoo Lee, Farrin Marouf Sofian, Kushagra Pandey, Stephan MandtarXiv 2026

TL;DR

This paper introduces SyncVC (Synchronized Diffusion with Variational Controls), a mathematically grounded framework that unifies collaborative diffusion generation under the lens of optimal control. Operating entirely at test-time without any retraining, SyncVC optimizes control variables to keep multiple generation trajectories globally consistent while strictly adhering to the underlying pretrained diffusion prior.

What Problem Does This Paper Address?

Pretrained diffusion models excel at generating content within their training domains, but extending them to "collaborative" tasks—such as stitching together overlapping patches for ultra-wide panoramas, creating multi-view consistent 3D textures, or generating optical illusions—remains a major challenge.

Existing solutions, known as diffusion synchronization methods, attempt to couple multiple generation trajectories on the fly. However, they rely heavily on task-specific heuristics, empirical tuning, or restrictive mathematical assumptions (like assuming conditional scores are perfectly Gaussian). As a result, these methods frequently suffer from style drift, color inconsistencies, and boundary artifacts when applied to complex or extreme generation scenarios.

Methods

Instead of relying on heuristics, the authors mathematically derive diffusion synchronization as a variational inference problem over trajectories.

Overall mechanism of SyncVC, introducing control variables into the diffusion process.

The core architecture introduces auxiliary parameters called variational controls ($u_t$) directly into the reverse diffusion transition. At each denoising step, the framework optimizes these control variables using a newly derived Evidence Lower Bound (ELBO) loss function. This objective balances two competing goals:

  1. Maximizing a task-specific reward ($r$) that enforces consistency across different trajectories (e.g., minimizing the pixel distance in overlapping regions of a panorama).
  2. Minimizing a KL-divergence regularizer that prevents the trajectories from drifting away from the high-quality data manifold of the pretrained prior.

To make this optimization computationally tractable at each timestep without rolling out the entire diffusion chain, the authors use Tweedie’s estimate to approximate the clean, denoised sample on the fly. They also provide a simplified, reformulated objective specifically tailored for DDIM samplers.

Datasets

The authors evaluated SyncVC across three distinct modalities using established generation tasks and priors:

  • Wide Image Generation: Evaluated using text prompts from prior synchronization literature, leveraging pretrained Stable Diffusion v2.1 and the high-resolution SANA model.
  • Optical Illusion Generation: Tested using prompt/transformation pairs from prior work, utilizing the pretrained two-stage DeepFloyd-IF model.
  • Text-Guided 3D Mesh Texturing: Evaluated using 350 distinct (mesh, prompt) pairs sampled from the Objaverse dataset, utilizing a depth-conditioned ControlNet.

Key Insights and Ideas

  • Synchronization as Optimal Control: The most significant conceptual leap is framing collaborative generation as controlled sampling. This moves the sub-field away from ad-hoc latent averaging and provides a rigorous mathematical foundation.
  • Robustness in Extreme Scenarios: Because SyncVC models complex, multi-modal relationships between trajectories via its variational formulation, it is uniquely robust. For instance, it successfully generates seamless wide images even under an extreme 16-pixel patch overlap (just 3.125% of the patch width), where baseline methods completely break down.
  • Seamless Extensibility: The framework naturally accommodates external constraints. By simply adding a style-transfer loss to the reward function, SyncVC can ingest a style reference image and enforce it across all trajectories without requiring a redesign of the core algorithm.
Figure 3: SyncVC enables flexible generation under external constraints such as style guidance, transferring texture and overall color from the style reference while preserving the semantics of the given prompt without artifacts.

Key Results

SyncVC consistently outperformed state-of-the-art synchronization baselines (including MultiDiffusion, SyncTweedies, SyncSDE, and StochSync) across all tasks:

  • Wide Image Generation: SyncVC achieved a massive drop in Intra-Style-Loss (44.34 vs. MultiDiffusion's 58.46) and $\chi^2$-Histogram distance (0.751 vs. 1.211), indicating vastly superior color and style consistency across stitched patches.
  • Optical Illusions: It scored the highest image quality (MUSIQ score of 54.40) and the lowest Kernel Inception Distance (KID), successfully embedding dual semantics into single images without the blurriness typical of baselines.
  • 3D Mesh Texturing: SyncVC delivered the lowest FID (161.63) and KID scores, preserving fine-grained details (like bulldozer tracks and tire textures) while avoiding over-smoothed or disjointed multi-view projections.
Figure 1: Our method produces style-consistent, high-quality wide images, outperforming all baselines. (Left) Only ours maintains a unified sky and mountain style, while baselines suffer from color inconsistency and structural discontinuities. (Right) SyncVC shows consistent sky, cacti, and ground appearance, whereas the others show varying colors in the sky and cacti, along with boundary artifacts.

Limitations and Future Work

The primary trade-off for SyncVC's high quality is computational cost. Because it performs iterative gradient-based optimization at every single test-time generation step, it is noticeably slower than optimization-free baselines. For example, generating a wide image took ~232 seconds compared to MultiDiffusion's ~68 seconds.

Additionally, the current mathematical formulation is strictly limited to differentiable reward functions. The authors note that extending the framework to handle non-differentiable objectives is a crucial direction for future work to enable even broader applicability.

Summary updated

BibTeX
@misc{lee2026variational,
  author = {Hyunsoo Lee and Farrin Marouf Sofian and Kushagra Pandey and Stephan Mandt},
  title = {{Variational Test-time Optimization for Diffusion Synchronization}},
  year = {2026},
  eprint = {2606.15614},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.15614},
}
Figure