Skip to content

Retrieving loss info in MTL #323

Closed
Closed

Description

@trunghng

Great paper. I wonder if there is any way to retrieve the loss information in multi-task learning?
In particular, in the example of MTL, do you still have to add loss=loss1+loss2 into the script?

Activity

  1. ValerianRey commented on Apr 24, 2025

    @ValerianRey
    Member

    Hi! In multi-task learning, we typically consider each loss independently, as they each represent a different task. You may still want to track the average loss, or the sum of losses, by recording the value of loss=loss1+loss2 for instance. But note that with JD, this loss is not necessary anymore for training, as you use the individual losses instead.
    Also, note that loss1 and loss2 may have very different scales (e.g. loss1 could be typically around 1e-5 while loss2 could be around 1e-2). In this example, summing them could thus give a value very close to loss2, which would give little information on loss1.

    So yes, you can do that, but be careful!

  2. locked and limited conversation to collaborators on Apr 24, 2025
  3. converted this issue into a discussion #324 on Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions