Add GR00T + PLADIS single-pass sparse cross-attention guidance (Phase 1)#6
Open
KwanjoonPark wants to merge 1 commit into
Open
Add GR00T + PLADIS single-pass sparse cross-attention guidance (Phase 1)#6KwanjoonPark wants to merge 1 commit into
KwanjoonPark wants to merge 1 commit into
Conversation
Implements PLADIS (arXiv:2503.07677) as a new test-time guidance for GR00T-N1, mirroring the ACG guidance plumbing. - pladis.py: PLADISAttnProcessor extrapolates between dense (softmax) and sparse (entmax1.5/sparsemax) cross-attention: attn = dense + pladis_scale*(sparse - dense). Single forward pass per denoising step (no incoherent second pass), installed on cross-attention (even-idx) DiT blocks only. - guidance/__init__.py: register name=="pladis" dispatch. - gr00t_config.py: add guidance.pladis_scale (1.5), .method (ent15max), .pladis_layers. - PLADIS_INTEGRATION_TASKS.md: phased plan (GR00T+PLADIS, GR00T+ACG+PLADIS). - CLAUDE.md: repo guidance for Claude Code. Verified: pladis_scale=0 reduces exactly to standard softmax attention; scale=1.5 differs and is finite; bf16 path is NaN-free. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Author
|
Cross Attention에 pladis 적용 |
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.
Implements PLADIS (arXiv:2503.07677) as a new test-time guidance for GR00T-N1, mirroring the ACG guidance plumbing.
Verified: pladis_scale=0 reduces exactly to standard softmax attention; scale=1.5 differs and is finite; bf16 path is NaN-free.