TL;DR
This paper introduces $\Psi$-Sampler, a novel framework for aligning generative models with user preferences. It tackles the inefficiency of current methods by using a sophisticated sampling technique (pCNL) to initialize particles from a reward-aware posterior, leading to significantly improved generation quality and alignment across various tasks.
What Problem Does This Paper Address?
Score-based generative models, like those used for image generation, have become incredibly powerful. A recent trend is "inference-time reward alignment," where we guide these models to produce outputs that align with specific user preferences or task requirements after the model has been trained. This is often achieved using Sequential Monte Carlo (SMC), which treats the generation process as a series of steps. However, a major bottleneck is how the initial "particles" (potential generation paths) are chosen. Current methods typically start from a generic Gaussian distribution, which is too broad and doesn't capture the desired reward-relevant regions. This leads to inefficient exploration and suboptimal results, especially when the desired outputs are rare. The paper aims to solve this by developing a more intelligent way to select these initial particles.
Methods
The core of $\Psi$-Sampler lies in its approach to initial particle sampling. Instead of drawing from the standard Gaussian prior, $\Psi$-Sampler draws initial particles from the reward-aware posterior distribution. This posterior distribution, derived from the reward function and the model's prior, is much more likely to contain promising generation paths.
To sample from this high-dimensional posterior distribution effectively, the authors introduce the Preconditioned Crank-Nicolson Langevin (pCNL) algorithm. This algorithm combines the dimension-robustness of the Crank-Nicolson method with the gradient-informed dynamics of Langevin methods. This hybrid approach allows for efficient exploration in the complex latent spaces of generative models, a task where traditional methods like MALA struggle.
Once these well-informed initial particles are sampled, they are fed into a standard SMC framework for the rest of the generation process. The paper also leverages recent advances in score-based models that enable more accurate estimation of the optimal initial distribution, making the pCNL approach even more effective.
Datasets
The paper evaluates $\Psi$-Sampler on three main task domains:
- Layout-to-Image Generation: Uses the HRS-Spatial dataset and evaluates using metrics like mIoU (mean Intersection-over-Union) with GroundingDINO and Salience DETR detectors.
- Quantity-Aware Image Generation: Uses a custom dataset constructed via GPT-40 and evaluates using T2ICount, CountGD, and ImageReward.
- Aesthetic-Preference Image Generation: Uses prompts from a dataset provided in [45] and evaluates using the LAION Aesthetic Predictor V2 and ImageReward.
The paper also mentions using FLUX-Schnell and SANA-Sprint as the score-based generative models for experiments.
Key Insights and Ideas
- Posterior-informed initialization is crucial: Simply starting SMC from a generic prior is inefficient. Sampling from the reward-aware posterior distribution at the beginning of the generation process significantly improves alignment and efficiency.
- High-dimensional sampling is a key challenge: Traditional MCMC methods like MALA struggle in the high-dimensional latent spaces of modern generative models. The pCNL algorithm offers a more robust solution.
- pCNL bridges the gap: By combining dimension-robustness with gradient-informed dynamics, pCNL enables efficient and scalable posterior sampling, which is essential for effective initial particle selection.
- SMC benefits from better starting points: The effectiveness of SMC in reward alignment is amplified when provided with high-quality, reward-informed initial particles.
- Generality across models: The proposed method is shown to work well with different score-based generative models (FLUX and SANA-Sprint), indicating its broad applicability.
Key Results
- State-of-the-art performance: $\Psi$-Sampler consistently achieves the best performance across all three task domains (layout-to-image, quantity-aware, and aesthetic-preference generation) for both seen and held-out reward metrics.
- Significant improvement over baselines: For instance, in quantity-aware generation, negative smooth L1 loss improves from 1.804 (TDS) to 0.850 with $\Psi$-Sampler, a substantial gain.
- Robust generalization: The method shows strong generalization to held-out reward models, indicating it learns genuine alignment rather than overfitting.
- pCNL's advantage over MALA: Figure 3 and 4 demonstrate that pCNL maintains stable acceptance rates and better performance across a wider range of step sizes compared to MALA, especially in high-dimensional settings.
- Qualitative improvements: Figures 2, 5, 6, 7, 8, and 9 showcase $\Psi$-Sampler's ability to generate images that are more aligned with specified conditions, visually appealing, and accurately reflect desired quantities.
Limitations and Future Work
- Differentiable reward models: The approach assumes access to differentiable reward models and accurate Tweedie approximations at early denoising steps.
- Potential for misuse: The paper acknowledges that improved control over generative models could be misused to create misleading or harmful content, highlighting the need for responsible development and deployment.
- Future work: The authors suggest exploring further applications and potentially extending the method to handle non-differentiable reward models. The ablation study on NFE allocation also suggests that finding the optimal balance between initial sampling and SMC steps is an important consideration.
Summary updated