← Back to Leaderboard
DTencent-TEXCH

Tencent-TEXCH/DiffusionPOND

HF Paper ↗

Online RL for few-step image and video diffusion via positive–negative distribution matching

LLM TrainerQuickstart ↓
Engineering Health (Methodology)
B+ · 72/100
Maintenance Activity
● Updated yesterday
Latest Release
Rolling commits (main)
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption6/25
Release Cadence11/20
License Clarity20/20
CLIGPU
Total Stars
★ 21
24h Growth
+13
7d Growth
+21
Forks
1

GitHub Star History

Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.

Tencent-TEXCH/DiffusionPOND Star History (2026-12-01 - 2026-12-03) DAILY STAR HISTORY (3-DAY D1 TELEMETRY) +20 in 2d · avg +10/day 25 13 0 2026-12-01: ★ 12026-12-02: ★ 152026-12-03: ★ 21 ★ 21 12-01 12-02 12-03

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

DiffusionPOND is a Python/PyTorch research trainer for online post-training of few-step diffusion and flow generators. For each condition, an exponential moving average (EMA) copy of the evolving generator produces N candidates. A black-box scalar reward ranks them into top-k positive and bottom-k negative distributions. Two LoRA score critics share the generator backbone and train by flow matching: one models the positives, and the other models a mixture of current-generator samples and negatives, controlled by the mixture weight rho.

The generator update re-noises online samples and uses the critics’ score difference in a single DMD-style surrogate for reverse KL in the noisy sample space. The update does not require a pretrained teacher, reward gradients, or a tractable denoising likelihood. The training recipe pairs a 4:1 critic-to-generator update ratio with EMA tracking and rollout replay. The practical integration surface is the YAML configuration, scalar reward path, and model-specific training recipes. The core package pins PyTorch 2.6.0 and depends on NumPy, PyYAML, and W&B; Diffusers, Transformers, Accelerate, and PEFT are available through the diffusers extra.

Key Capabilities & Differentiators

The released training and evaluation scope covers text-to-image with SD3.5-M-Turbo, text-to-video with Wan2.1-T2V 1.3B (rCM, AnyFlow, and SMD) and 14B (rCM), and autoregressive Causal-rCM Wan2.1-1.3B with chunk sizes 1 and 3 and KV caching. Image recipes target PickScore, OCR, GenEval, or a joint reward. The configs/pond/ tree includes ablations for candidate ranking, EMA, the negative-mixture weight, rollout steps, and replay. The 33B MiniMax-H3 joint audio–video experiments used a separate codebase and are not part of this release scope.

At 1024×1024 and four function evaluations (NFE), SD3.5-M-Turbo with POND records 23.885 PickScore, 0.948 OCR, and 0.767 GenEval, versus 22.331, 0.284, and 0.587 for the Turbo initialization. At 480p and 81 frames, Wan2.1-T2V 1.3B with POND reaches 84.25 VBench Total and 85.14 VBench Quality at four NFE, up from 83.70 and 84.57 for the four-NFE rCM initialization. The 14B result uses a different metric: a +20.1% Gemini-judged test-set preference gain over the four-step initialization, not a VBench gain.

Trade-offs & Limitations

POND is a candidate when the inference budget is fixed at a few evaluations. Four NFE instead of 40 or 50 reduces the number of model evaluations; it is not an end-to-end latency measurement or evidence of lower training cost. In the Wan 1.3B table, POND costs 764 GPU-hours versus 329 for ReFL and 704 for Flow-GRPO Fast, while leading both on VBench Total. It costs less than the listed DiffusionNFT run at 2,682 GPU-hours. The image ranking is also metric-dependent: four-NFE POND leads on PickScore, but 40-NFE DiffusionNFT leads on GenEval.

Dropping the pretrained teacher and reward gradients does not remove the cost of generating and scoring multiple candidates or alternating critic and generator updates. Reward choice and top/bottom partitioning define what the generator is pushed toward, so held-out metrics matter when adopting a new reward mix. configs/baselines/ gives researchers aligned DiffusionART, DiffusionNFT, Flow-GRPO-Fast, and ReFL recipes for comparison. The code is Apache-2.0, but checkpoint, reward-model, and third-party terms still need their own review.

Hardware & Deployment Guide

The local setup uses uv and uv.lock with Python 3.10 or newer and a documented PyTorch 2.6.0 / CUDA 12.4 stack. For image training, install the locked Diffusers and image-reward extras, resolve the ${ENV_VAR} placeholders in the chosen recipe, and use visual_rl.prepare_assets --plan to inspect asset requirements. Run visual_rl.check_environment and visual-rl --config <config.yaml> --validate before allocating GPUs. GenEval runs in a separate worker environment selected through GENEVAL_PYTHON.

Wan and Causal-rCM use a dedicated Linux x86_64 environment, ffmpeg/ffprobe, and pinned Wan/VideoReward dependencies. FlashAttention-3 is optional on H100/H200. The supplied image and Wan 1.3B examples use eight GPUs; the Wan 14B example uses 32 across four nodes, with --nnodes, --node-rank, and --master-addr for the distributed launch. No exact VRAM floor is specified. VBench evaluation can run offline after the required assets are in place, while Gemini pairwise judging is an optional external API path. The package is versioned 0.1.0.dev0; checkpoints are hosted on Hugging Face, and there is no tagged GitHub release.

Rollout ranking: An EMA generator samples N candidates per condition; black-box rewards define top-k positives and bottom-k negatives.
Score critics: Two LoRA adapters share the generator backbone and learn the positive and online–negative mixture distributions through flow matching.
Training schedule: A 4:1 critic-to-generator update ratio is paired with EMA tracking and rollout replay; YAML recipes expose ablations for the mixture weight, ranking, and replay.
Model coverage: SD3.5-M-Turbo, Wan2.1-T2V 1.3B with rCM, AnyFlow, and SMD, Wan2.1-T2V 14B with rCM, and Causal-rCM with one- or three-frame chunks as configured by chunk size.
Measured trade-off: Wan2.1-T2V 1.3B reaches 84.25 VBench Total at four NFE and 764 training GPU-hours; ReFL uses 329 GPU-hours and reaches 82.82 at 50 NFE.
Evaluation paths: Offline checkpoint sampling and VBench scoring are documented separately from optional Gemini pairwise evaluation.
Best For

Research teams that already have a few-step image or video checkpoint and GPU capacity, and want to test black-box reward alignment without increasing the inference step budget.

Skip If

You need a turnkey inference service, can only budget CPU or single-GPU training without first validating a smaller recipe, or need the 33B joint audio–video training stack.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

CLIGPU
git clone https://github.com/Tencent-TEXCH/DiffusionPOND.git
cd DiffusionPOND

# Core + diffusers + image rewards + W&B (recommended for SD3.5-M-Turbo POND)
export UV_PROJECT_ENVIRONMENT="$HOME/envs/pond"
uv sync --locked --python 3.10 \
  --extra diffusers --extra image-rewards --extra wandb

# Optional extras:
#   --extra ocr      # PaddleOCR reward support (see docs/sd3-ocr.md)
#   --extra hpsv2    # HPSv2.1 reward (uses vendored wheel in third_party/hpsv2)
#   --extra dev      # pytest & ruff for development

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/Tencent-TEXCH/DiffusionPOND.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

Tencent-TEXCH/DiffusionPOND Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about DiffusionPOND

How do I bring my own reward or generator?

The reward interface is conceptually simple: return a scalar for each generated sample and its conditioning input. POND uses the scores to rank rollouts, not to backpropagate through the scorer. The generator integration is more involved: it needs rollout generation and the training path for two LoRA score critics that share the generator backbone. The supplied SD3.5-M-Turbo and Wan recipes are better starting points than assuming an arbitrary checkpoint is plug-and-play.

Can I run it on one GPU, and how much VRAM should I budget?

The CPU smoke configuration validates setup, not training feasibility. The supplied SD3.5-M-Turbo and Wan 1.3B recipes use eight GPUs, and the supplied Wan 14B recipe uses four eight-GPU nodes. There is no published per-GPU VRAM minimum in the supplied specs. Size a run using the actual model, video resolution and frame count, candidate count, and concurrency; measure peak memory and reward throughput before scaling out.

Can we self-host it for commercial work?

The repository code is Apache-2.0, which permits commercial use subject to its terms. Review LICENSE, NOTICE, and THIRD_PARTY_NOTICES.md, and verify the terms for checkpoints, reward models, prompt data, and bundled dependencies separately. Training is self-hosted; the optional Gemini pairwise evaluation requires an API key and an external submission, so review data-handling requirements before using it.

When should I choose POND over DiffusionNFT or Flow-GRPO?

Use POND when the model is already a few-step generator and preserving that inference budget is a hard requirement. Keep multi-step baselines in the comparison if inference can spend more evaluations or if you care most about a metric where they lead: in the image table, 40-NFE DiffusionNFT scores 0.913 on GenEval versus POND's 0.767. Compare training GPU-hours as well as inference NFE; they measure different costs.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining Tencent-TEXCH/DiffusionPOND? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature Tencent-TEXCH/DiffusionPOND on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare