Exp: Use Muti-objective learning #26
Open
stevengogogo wants to merge 14 commits into
Open
Conversation
Collaborator
Author
|
Collaborator
Author
Experiment Dual Cone method on DRMUse Dual Cone method for PINN + DRMDual Cone method for PINN + DRM |
Collaborator
Author
Exp: Verify dual-cone optimization helps PINNs + soft BC lossDual Conesnapshot of weights of gradients PINN with
|
Collaborator
Author
|
@liruipeng Please take a look. It's ready. The main change is the loss function now has two output |
Collaborator
Author
|
Fix CI package and conflict |
stevengogogo
commented
Jun 27, 2025
| u = model.get_solution(x) | ||
| loss = loss_func(u, mesh.u_ex) | ||
| return loss | ||
| return loss, [loss,] |
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.






This implementation provides an API for multi-objective learning.
where A is an aggregator that combines gradients
For$loss = 1.0 loss_{drm} + 500 loss_{bc}$
python pinn_1d.py --levels 1 --epochs 10000 --lr 1e-4 --activation gelu --sweeps 1 --hidden_dims 256 256 256 --high_freq 3 --loss_type 1 --bc_weight 1 --nx 2000 --aggregator "Constant" 1. 500.For Dual Cone optimization
This optimize pinn loss and boundary loss at the same time.
Monitor weights
add
--monitor_aggregatorTorchJD package for Jacobian method
Many ways to combine gradients: