Repository navigation
|
I used to think the absolute value of the energy_weight and force_weight doesn't matter, what we need is the ratio of these two. But recently I've found that I was wrong. That is if I set these two 1,1 or 10000,10000, training process doesn't go as the same, the former value often makes the optimization be stagnant. I've read the source code(/mace/modules/loss.py), it seems the weight actually determines the value of loss, then the gradient of loss, which is directly relevant to parameter update. Or maybe is there something like regularization to eliminate this issue? And how should I effectively find a reasonable value of weight? |
Replies: 2 comments 5 replies
|
Can you show some learning curves with the two settings? Do you actually get better models with one of these settings? There are other parameters like the learning rate and the batch size that will interact with the loss weights |
|
Hey, Adam with weight decay is not scale invariant, so it is not surprising that you see an impact on the training dynamics. I recommand you to use something like 10/100 on forces and 1/10 on energy. |
Hey,
Adam with weight decay is not scale invariant, so it is not surprising that you see an impact on the training dynamics. I recommand you to use something like 10/100 on forces and 1/10 on energy.