TL;DR
Aligning diffusion models with human preferences requires evaluating rewards on noisy intermediate latents, a process that is typically either highly biased or computationally prohibitive. StitchVM solves this by "stitching" a frozen diffusion backbone to a pretrained pixel-space reward model, creating an accurate, noise-aware value model with minimal training cost (~10 GPU-hours). This approach amortizes the value function estimation, speeding up downstream steering and post-training methods by up to 3.2× while significantly reducing memory overhead.
What Problem Does This Paper Address?
To make diffusion or flow-based generative models practical, they must be aligned with task-specific rewards like prompt fidelity or aesthetic appeal. However, standard reward models (like CLIP) are trained exclusively on clean, pixel-space images. During the denoising process, alignment algorithms need to evaluate how "promising" a noisy intermediate latent ($z_t$) is—a concept captured by a value function.
Existing methods rely on two main workarounds, both of which present severe trade-offs:
- Tweedie Approximation: Predicts a clean image proxy from the noisy latent in a single step, then runs the reward model. This is computationally efficient but heavily biased in high-noise regimes.
- Monte Carlo (MC) Approximation: Rolls out multiple full denoising trajectories from the current step to sample clean images and average their rewards. This is unbiased but computationally devastating.
Directly training a value model for noisy latents from scratch would require massive amounts of data and compute, making it unsustainable to repeat for every new diffusion backbone or reward model.
Methods
StitchVM introduces a lightweight model stitching framework that transfers the capabilities of pretrained pixel-space reward models into the noisy latent regime without large-scale retraining.
The framework operates in two distinct stages:
- Stage 1: Selecting the Stitching Interface: The authors truncate a frozen diffusion backbone (the "head," which natively understands noise) and connect it to a sliced pretrained reward model (the "tail," which holds robust preference knowledge). To find the most compatible layers to connect, they perform an exhaustive search across candidate layer pairs. They fit a linear mapping matrix ($W$) in closed form using a tiny probe set of 200 images via feature matching, selecting the pair with the lowest feature-matching loss.
- Stage 2: Lightweight Finetuning: The stitching layer (parameterized as a residual block on top of $W$) and the reward model tail are finetuned for 5 epochs. The model learns to regress the standard value function by predicting the original reward model's score on clean images directly from their noisy latent counterparts.
Datasets
- Training: Unlabeled images from the AVA (Aesthetic Visual Analysis) dataset and HPDv2 (Human Preference Dataset v2).
- Evaluation Benchmarks:
- MSCOCO and Flickr30K for zero-shot image-text retrieval (CLIP-based models).
- ImageReward Benchmark and HPDv2 Benchmark for human preference accuracy.
- AVA test split for aesthetic score correlation.
- DrawBench and GenEval for downstream text-to-image generation quality.
Key Insights and Ideas
- Diffusion Features are Essential for Noise-Awareness: The authors compared StitchVM against a baseline that stitches directly to a VAE decoder. The VAE baseline completely collapsed at high noise levels. This proves that the intermediate features of a diffusion backbone—which are inherently trained to handle noise—are critical for helping a reward model generalize to noisy inputs.
- Closed-Form Search Saves Massive Compute: Finding the optimal layer interface can be solved as a standard linear least-squares problem before any heavy finetuning. This makes the framework exceptionally practical and scalable.
- Cross-Backbone Generalization: Remarkably, a StitchVM trained on a smaller backbone (e.g., Stable Diffusion 3.5 Medium) can guide a larger generator (e.g., SD 3.5 Large) during inference with virtually no loss in alignment quality. This allows researchers to use smaller, cheaper value models to steer larger target models.
Key Results
- Lightweight Training: Stitching and finetuning a CLIP ViT-L reward model onto an SD 3.5 Medium backbone takes only ~10 GPU-hours on a single NVIDIA GH200 GPU.
- Inference Acceleration: Integrating StitchVM into Diffusion Posterior Sampling (DPS) makes the method 3.2× faster while halving peak GPU memory (e.g., dropping from 56.4 GB to 26.0 GB on SD 3.5 Medium). This is because it avoids the long backpropagation chains through the denoiser and VAE decoder required by Tweedie approximations.
- Training Acceleration: For post-training reinforcement learning, StitchVM accelerates DiffusionNFT training by 2.3× and direct reward finetuning (DRaFT) by 1.3×, while achieving higher final generation quality scores.
- Robust Performance: At low noise levels ($\sigma \le 0.5$), StitchVM closely matches the zero-shot performance of the original clean reward models and degrades gracefully as noise increases, vastly outperforming retraining baselines like NoisyCLIP.
Limitations and Future Work
- Feedforward Restriction: StitchVM is currently limited to reward models that can be implemented as feedforward networks (e.g., classifiers or embedding models). It cannot directly ingest non-feedforward rewards without first training a surrogate model.
- Future Directions: The authors note that incorporating more complex, timestep-aware training methods represents a promising path to further enhance StitchVM's predictive accuracy across the entire denoising trajectory.
Summary updated