Skip to content

feat(scalarization): add GradNormScalarizer implementation#734

Closed
powerofaisinstudy-debug wants to merge 6 commits into
SimplexLab:mainfrom
powerofaisinstudy-debug:feat-gradnorm
Closed

feat(scalarization): add GradNormScalarizer implementation#734
powerofaisinstudy-debug wants to merge 6 commits into
SimplexLab:mainfrom
powerofaisinstudy-debug:feat-gradnorm

Conversation

@powerofaisinstudy-debug

Copy link
Copy Markdown

Summary:
This pull request implements the GradNormScalarizer, a method for balancing multi-task learning losses by dynamically adjusting gradient norms.

Key Changes:

Added GradNormScalarizer class in gradnorm.py.

Implemented the loss balancing logic based on the GradNorm paper (Chen et al.).

Integrated with the base Scalarizer interface.

Added necessary type hints and docstrings.

Additional Context:

This implementation addresses the need for dynamic loss balancing within the TorchJD framework.

Pre-commit hooks and type checks have been verified.

@powerofaisinstudy-debug powerofaisinstudy-debug requested a review from a team as a code owner June 12, 2026 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant