COTREC icon indicating copy to clipboard operation
COTREC copied to clipboard

About diff

Open MTandHJ opened this issue 1 year ago • 1 comments

Hi, I found the implementation for KL loss

        loss_diff = self.diff(scoresI, scoresS, score_adv2, score_adv1, diff_mask)

is different the Equation (9), where the code shall be

        loss_diff = self.diff(scoresI, scoresS, score_adv1, score_adv2, diff_mask)

Moreover, I am confused about the role of diff_mask. It will be helpful if some references could be given.

Thanks !

MTandHJ avatar Jun 01 '23 13:06 MTandHJ

Just read the paper carefully and you will know why.

xiaxin1998 avatar Jun 22 '23 11:06 xiaxin1998