[Feature] Improve VISReg loss numerical stability and defaults - #431
Open
HaiyuWu wants to merge 1 commit into
Open
[Feature] Improve VISReg loss numerical stability and defaults#431HaiyuWu wants to merge 1 commit into
HaiyuWu wants to merge 1 commit into
Conversation
- VISRegLoss: clamp std to a minimum instead of adding 1e-6, so the scale term and normalisation stay unbiased for well-conditioned features while still guarding against division-by-zero on collapsed dimensions. - VISRegLoss: keep the Gaussian quantile target in fp32 rather than casting it to the input dtype, for a more stable shape term under 16-mixed. - VISReg: change the default convex weight lamb from 0.02 to 0.9.
HaiyuWu
force-pushed
the
feature/visreg-loss-stability
branch
from
July 25, 2026 22:28
40c4fb6 to
3657caa
Compare
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.
Description
Checklist