Dheeraj Nagaraj

Dheeraj Nagaraj

Research Scientist

About

Dheeraj Nagaraj is a Research Scientist at Google DeepMind. He works on various problems in theoretical machine learning, applied probability, and statistics. His current work focuses on sampling and generative modeling with diffusion models. He completed his PhD at the Lab for Information and Decision Systems (LIDS) at MIT in 2021 and earned his dual degree in Electrical Engineering from IIT Madras in 2016.

Diffusion models are widely used for generative tasks across domains. While pre-trained diffusion models effectively capture the training data distribution, it is often desirable to shape these distributions using reward functions to align with downstream applications. Policy gradient methods, such as Proximal Policy Optimization (PPO), are widely used in the context of autoregressive generation. However, the marginal likelihoods required for such methods are intractable for diffusion models, leading to alternative proposals and relaxations.

In this context, we unify variants of Rejection sampling based Fine-Tuning (RAFT) as GRAFT and show that this implicitly performs PPO with reshaped rewards. We then introduce P-GRAFT to shape distributions at intermediate noise levels and demonstrate empirically that this can lead to more effective fine-tuning. We mathematically explain this via a bias-variance tradeoff. Motivated by this, we propose inverse noise correction to improve flow models without leveraging explicit rewards. We empirically evaluate our methods on text-to-image(T2I) generation, layout generation, molecule generation, and unconditional image generation.

Notably, our framework, applied to Stable Diffusion 2, improves over policy gradient methods on popular T2I benchmarks in terms of VQAScore and shows a relative improvement over the base model. For unconditional image generation, inverse noise correction improves FID of generated images at lower FLOPs/image.

Read More →