Temporal Score Rescaling for Temperature Sampling in Diffusion and Flow Models

Yanbo Xu, Yu Wu, Sungjae Park, Zhizhuo Zhou, Shubham Tulsiani
10/1/2025
cs.LG

No official code found. Best implementation: temporalscorerescaling/TSR (54 stars, last commit 2025-10-02).

Abstract

We present a mechanism to steer the sampling diversity of denoising diffusion and flow matching models, allowing users to sample from a sharper or broader distribution than the training distribution. We build on the observation that these models leverage (learned) score functions of noisy data distributions for sampling and show that rescaling these allows one to effectively control a `local' sampling temperature. Notably, this approach does not require any finetuning or alterations to training strategy, and can be applied to any off-the-shelf model and is compatible with both deterministic and stochastic samplers. We first validate our framework on toy 2D data, and then demonstrate its application for diffusion models trained across five disparate tasks -- image generation, pose estimation, depth prediction, robot manipulation, and protein design. We find that across these tasks, our approach allows sampling from sharper (or flatter) distributions, yielding performance gains e.g., depth prediction models benefit from sampling more likely depth estimates, whereas image generation models perform better when sampling a slightly flatter distribution. Project page: https://temporalscorerescaling.github.io

View on arXivView PDF

Code Implementations(1)

Official code release for paper "Temporal Score Rescaling for Temperature Sampling in Diffusion and Flow Models"

541Python, Jupyter NotebookOct 1, 20251 years ago

Similar Papers

Cite this paper

@article{xu2025temporal,
  title  = {Temporal Score Rescaling for Temperature Sampling in Diffusion and Flow Models},
  author = {Yanbo Xu and Yu Wu and Sungjae Park and Zhizhuo Zhou and Shubham Tulsiani},
  year   = {2025},
  eprint = {2510.01184},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.01184v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.01184.svg)](https://codeofpaper.com/paper/2510.01184)

Discussion