HyperAIHyperAI

Command Palette

Search for a command to run...

확산 모델에서의 온폴리시 자기 증류

초록

강화 학습은 확산 모델을 인간의 선호도 및 작업 특정 목표에 정렬시킬 수 있지만, 종점 보상만으로는 중간 디노이징 예측이 어떻게 변화해야 하는지를 명시하지 않는다. 본 연구는 DiffusionOPSD를 온폴리시 자기 증류 프레임워크로 제안하여, 이미지 수준의 보상 신호를 샘플링된 쿼리에서의 깨끗한 출력 예측을 위한 명시적 목표로 변환한다. 각 외부 반복에서 동결된 행동 정책이 궤적을 생성하고 쿼리 상태와 앵커를 제공한다. 보상 기울기는 각 앵커 주변에 경계가 있는 양성 및 음성 목표를 구성한다. 학습 가능한 정책은 유한 피팅을 통해 이러한 목표를 분리된 지도 신호로 적합시키며, 이후 지수 이동 평균 업데이트로 행동 정책을 갱신한다. 이 설정을 통해 목표 구성과 유한 실현을 개별적으로 측정할 수 있다. 통제된 동일 쿼리 실험 결과, 더 큰 목표 구성 이득이 단일 피팅 업데이트 후 더 큰 실현 이득으로 반드시 이어지지는 않음을 보여준다. SD3.5-M과 단계 증류된 Z-Image-Turbo에 걸쳐, 우리의 접근 방식은 두 백본과 열 개의 평가기에서 20개의 보상 일치 설정 중 19개에서 최고의 최종 홀드아웃 점수를 달성했다. 가장 강력한 경쟁 방법 대비 최대 44.0%의 성능 향상을 보였으며, SD3.5-M에서는 40%, Z-Image-Turbo에서는 63%의 학습 GPU 시간을 DiffusionNFT 대비 절감했다. 이러한 결과는 이미지 수준의 보상 신호를 명시적이고 지속적으로 갱신되는 중간 지도 신호로 변환함으로써, 온폴리시 자기 증류가 확산 사후 학습을 위한 효율적이고 분석 가능한 접근 방식임을 뒷받침하며, 더 효율적이고 진단 가능한 정렬로 가는 길을 연다.

One-sentence Summary

Researchers from ByteDance Seed, National University of Singapore, UC San Diego, and other institutions introduce DiffusionOPSD, an on-policy self-distillation approach that translates image-level reward gradients into bounded positive and negative clean-output targets, fits them via finite fitting and EMA policy updates, and attains the best held-out scores in 19 of 20 reward-matched settings on SD3.5-M and Z-Image-Turbo while reducing training GPU-hours by up to 63%63\%63%.

Key Contributions

  • DiffusionOPSD is an on-policy self-distillation framework that converts image-level reward guidance into explicit, bounded positive and negative clean-output targets at sampled denoising queries, fits them as detached supervision, and refreshes the targets as the behavior policy evolves.
  • The framework separates target construction from model fitting, and controlled same-query experiments show that larger target-construction gains do not necessarily translate into larger realized gains after a single fitting update.
  • Across SD3.5-M and Z-Image-Turbo, DiffusionOPSD achieves the best final held-out scores in 19 of 20 reward-matched settings across ten evaluators, outperforms the strongest competing method by up to 44.0%, reduces training GPU-hours relative to DiffusionNFT by 40% on SD3.5-M and 63% on Z-Image-Turbo, and improves all three optimized rewards over DiffusionNFT in joint multi-reward training.

Introduction

Diffusion and flow models are widely used for high-fidelity image generation, and reinforcement learning is increasingly applied to align them with human preferences, aesthetics, and task-specific rewards. A core challenge is that reward is observed only after the final decoded image, while the diffusion policy acts through many intermediate denoising predictions, so outcome-level feedback must be converted into useful local supervision. Prior approaches rely on sampled trajectory credit, backpropagate through a single late clean-output prediction without decoding the full rollout, or reweight final endpoints while leaving the desired intermediate change implicit. The authors introduce DiffusionOPSD, an on-policy self-distillation method that constructs bounded positive and negative targets from image-level reward gradients at behavior-policy queries, fits those targets as detached intermediate supervision, and rebuilds them as the behavior policy evolves. This separates target construction from finite model fitting and enables both stages to be measured independently.

Method

The authors propose DiffusionOPSD, a framework that treats diffusion reward optimization as an on-policy self-distillation process. By converting image-level reward gradients into detached targets for intermediate predictions, the method continuously rebuilds these targets as the behavior policy evolves.

Refer to the framework diagram below for a comprehensive overview of the architecture and training pipeline.

The process begins by establishing a clean-output coordinate system to decode and evaluate predictions. Let vθv_{\theta}vθ be the trainable rectified-flow velocity field and voldv_{\mathrm{old}}vold denote the velocity field of the behavior policy. For a given prompt ccc, noisy latent zσz_{\sigma}zσ, and noise level σ\sigmaσ, the query tuple is defined as s=(c,zσ,σ)s = (c, z_{\sigma}, \sigma)s=(c,zσ,σ). Under the rectified-flow path, the clean-output prediction yθ(s)y_{\theta}(s)yθ(s) corresponding to the velocity prediction is computed as:

yθ(s)=zσσvθ(s)y_{\theta}(s) = z_{\sigma} - \sigma v_{\theta}(s)yθ(s)=zσσvθ(s)

This prediction is evaluated through the local reward R~(y,c)=R(D(y),c)\widetilde{R}(y, c) = R(D(y), c)R(y,c)=R(D(y),c), where DDD is the latent decoder.

During each outer iteration, a frozen behavior policy collects trajectories to supply query states and anchors. A low-noise query state zqz_qzq is selected from the trajectory, and the behavior anchor y0y_0y0 is computed as the clean-output prediction of the behavior policy at that query. Endpoint rewards from the collected trajectories determine a group-normalized fitting weight ω\omegaω. This weight centers each reward within its prompt group while using a global standard deviation over the complete rollout batch, ensuring that all prompt groups are placed on a common scale.

To guide the optimization, the authors construct bounded positive and negative targets starting from the behavior anchor y0y_0y0. They apply stabilized normalized reward-gradient steps to iteratively update the positive and negative targets. Each update step is projected back onto a trust-region ball to ensure the displacement remains bounded by a radius ρy02\rho \|y_0\|_2ρy02. The final detached positive target yˉ+\bar{y}_+yˉ+ is intended to improve the reward, while the negative target yˉ\bar{y}_-yˉ acts as a repulsive reference.

The trainable velocity field is then optimized using a finite fitting procedure. The model forms positive and negative fitting branches around the anchor y0y_0y0 to encode both attraction toward the positive target and rejection of the negative target. Detached adaptive normalizers are utilized to scale the branch losses. The overall objective LOPSD\mathcal{L}_{\mathrm{OPSD}}LOPSD is defined as a weighted sum of the squared fitting errors for both branches, where the weights are derived from the previously computed fitting weight ω\omegaω. Crucially, the query, anchor, weight, and targets remain fixed during this finite fitting phase, completely separating the target construction from the parameter updates.

Finally, the online training loop is completed by refreshing the behavior policy. After applying a finite number of optimizer updates to the trainable policy, the behavior policy is updated via an exponential moving average. This updated behavior policy then generates new trajectories for the subsequent outer iteration, supplying new query states and endpoint rewards. This continuous cycle of trajectory collection, target construction, finite fitting, and behavior policy refresh constitutes the core self-distillation loop of the system.

Experiment

The experiments evaluate DiffusionOPSD against FlowGRPO, ReFL, and DiffusionNFT on SD3.5-M and the step-distilled Z-Image-Turbo, measuring held-out reward-specific quality, training cost, and optimization stability. DiffusionOPSD achieves the best final scores in 19 of 20 reward-matched settings, reduces training cost by 40–63%, and sustains reward gains through the final update, with human annotators preferring its outputs over all baselines. Ablations confirm that the reward-gradient direction in target construction is essential, while most implementation choices and query-state provenance have minor effects, and the method remains effective with native few-step samplers and multi-reward training.

DiffusionOPSD achieves the best held-out evaluator scores in 19 of 20 reward-matched settings across a standard backbone and a native few-step distilled model, with gains reaching 44% on HPSv3 and VLM-Pairwise. It sustains improvement through the final training update, retaining 98% of within-run reward gains, while competing methods often plateau or degrade. A single jointly trained policy preserves near-specialist quality on three rewards, outperforming joint baselines by 8–14% and matching or exceeding individual specialists. DiffusionOPSD leads in 19 of 20 reward-matched comparisons across SD3.5-M and Z-Image-Turbo, with relative gains up to 44% on HPSv3 and VLM-Pairwise. On Z-Image-Turbo, DiffusionOPSD outperforms the strongest baseline by 30.7% on ImageReward and 14.6% on VLM-Pairwise, while DiffusionNFT falls below the unadapted model on eight of ten objectives. DiffusionOPSD retains 98% of its within-run reward improvement at the final update, compared to 83% for FlowGRPO and 90% for DiffusionNFT. A single DiffusionOPSD policy trained on three rewards achieves 113% of the PickScore specialist's gain, statistically matches the HPSv2.1 specialist, and surpasses the joint DiffusionNFT policy by 8–14% across all three metrics.

DiffusionOPSD is evaluated on reward-matched image generation tasks using both a standard backbone and a native few-step distilled model, comparing held-out evaluator scores and training stability. It achieves leading performance in nearly all settings, with sustained improvement through the final training update while competing methods often plateau or degrade. A single jointly trained policy preserves near-specialist quality across multiple rewards, outperforming joint baselines and matching or exceeding individual specialists.


AI로 AI 구축

아이디어에서 출시까지 — 무료 AI 코코딩, 즉시 사용 가능한 환경, 최적의 GPU 가격으로 AI 개발을 가속화하세요.

AI 협업 코딩
바로 사용 가능한 GPU
최적의 가격

HyperAI Newsletters

최신 정보 구독하기
한국 시간 매주 월요일 오전 9시 에 이번 주의 최신 업데이트를 메일로 발송합니다
이메일 서비스 제공: MailChimp