-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auxiliary loss: usage unclear #529
Comments
Any hints, maybe @philip30 ? I'll be happy to fix this myself but don't want to undo any previous design decisions and would like to know what the best way is:
Also, there seems to be a bug in case of more than one auxiliary loss. In this case, both are combined via |
Hey @msperber , @neubig was the one who designed this, but I can answer few questions:
I would not have time to fix this since we are currently running urgent experiment until the end of the month, so I would strongly recommend delaying fixing this unless it creates major problem in our experiment. In my case, I use the CompositeLoss, combining GlobalFertilityLoss and FeedbackLoss(with MLE child). Do you think that will cause a problem? |
I found that it's no longer enough to implement
on_calc_additional_loss()
to add an additional loss in my model, but that the loss calculator needs to be changed, as well.Is the
FeedbackLoss
the intended loss calculator for this? The code suggests that it is, but I find the name quite confusing. I'm actually not interested in computing a loss based on another loss, just add an independent second loss. This is a very common thing to do so I think we should make it intuitive to do so.However, I'm wondering if it's intended not to compute additional losses by default (i.e. with the default loss calculator)? If so, that should be documented, but it doesn't seem super intuitive to me.
The text was updated successfully, but these errors were encountered: