feat(ltx2): add CLAP-only T2AV reward recipe - #475
Open
leviking98z-rgb wants to merge 19 commits into
Open
leviking98z-rgb wants to merge 19 commits into
leviking98z-rgb wants to merge 19 commits into
Conversation
leviking98z-rgb
requested review from
KemingWu,
Zcchill,
celve and
haonan3
as code owners
September 16, 2026 11:02
Collaborator
Author
|
100-rollout H20 validation completed successfully.
|
leviking98z-rgb
force-pushed
the
codex/ltx2-clap-reward-smoke
branch
from
September 22, 2026 05:19
d4738f6 to
95fdc36
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Nonepreserves latent-element weighting, while0.0..1.0selects an explicit modality mixture; the AudioCaps recipe uses1.0(audio-only policy objective).matched cosine + retrieval marginwith weights1.0 + 1.0.d004db3ea1b01cf4fd0347dd8d27db90cadc8809.Related Issue
N/A
Data
The positive CLAP text is read directly from each record's standard
promptfield. Seven deterministic captions from other records in the same split are stored as negative candidates. For each generated waveform:This is still an audio-only reward: CLAP embeds the generated waveform and text captions. "Audio-only policy" separately means that the GRPO importance ratio uses the audio trajectory log-prob; LTX-2.3 continues to jointly denoise audio and video.
Test Plan
pre-commit run --all-files --show-diff-on-failure_target_paths resolved.OmegaConf.resolve, with assertions for batch size 8, group size 8, audio-only log-prob, constant1e-4LR, zero warmup, per-group advantage normalization, independent rolloutx_T, and deterministic eval.1e-4for 500 synthetic optimizer steps.e13b1ac4: 100 rollouts, batch size 8 prompts, group size 8 samples per prompt, 49 frames, 4 denoise steps, 2 SDE steps, 256x384, 2 optimizer updates per rollout, exit code 0.-0.10874, last 20 mean+0.00322; matched component-0.01884 -> +0.05051and margin component-0.08990 -> -0.04730.0.00452..0.08740.1e-4for all 200 updates: constant schedule, zero warmup, no decay.0; clipping stayed0; observed ratio range was0.99878..1.00009.adv_use_global_std=trueandsampling.init_same_noise=truechanged; batch/group size, reward, audio-only policy, optimizer, LR, and rollout budget were unchanged. Exit code 0.eval_eta=0.0, and prompt-stable per-samplex_T.x_T-0.1784 -> -0.0433(+0.1351)+0.0014940.9119-0.0433 @ 100x_T-0.1784 -> -0.1199(+0.0585)+0.0009430.4797-0.0580 @ 80For the retained recipe, deterministic matched cosine improved
-0.0666 -> +0.0075, retrieval margin improved-0.1118 -> -0.0508, and 8-way retrieval top-1 improved16.41% -> 32.03%(best35.94%at rollout 80).Compatibility / Risk
audio_policy_logp_weightkeeps latent-element weighting,matched_cosine_weightdefaults to1.0, andretrieval_margin_weightdefaults to0.0.[-1, 1]. The configured composite reward is not: with unit weights its mathematical range is[-3, 3], because the retrieval margin is also included. Absolute score should not be interpreted as a percentage or benchmark grade.eta=0.7; evaluation useseval_eta=0.0. The recipe deliberately uses a constant learning rate with no warmup and no decay.Reviewer Notes
eta=0.7; although its initial noise was stable, its per-step SDE noise changed with the eval step. The ODE sweep above is the comparable checkpoint curve, and the recipe now defaults to that evaluation mode.0.0000because signed normalized advantages cancel at a ratio near 1 and the logger prints four decimals. Raw W&B history contains finite, nonzero loss values.Checklist