Skip to content

Case of no-conflict #393

Answered by PierreQuinton
ogencoglu asked this question in Q&A
Jun 30, 2025 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

I am not entirely sure I understand your question, let me know if I got this wrong.

The main reason to scale losses is to ensure that the gradients are not too imbalanced (they cannot typically be completely balanced but that's already a start). One way to do that is to scale the loss vector, i.e. $[\alpha L_1, \beta L_2, \gamma L_3 ]^\top$. If say $\alpha=0$, then the first gradient of this vector-valued loss is $0$ and therefore does not conflict with any vector, it will then be completely ignored by UPGrad. But still, at that point, $L_1$ might not have zero gradient, and you may want to have a decision that does not conflict with its gradient, even if you give it a weight of $0$. To d…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ogencoglu
Comment options

@PierreQuinton
Comment options

Answer selected by ogencoglu
@ogencoglu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants