Closed LeavesLi1015 closed 1 year ago
Our implementation here is indeed a little bit different from the paper, which is equivalent to M = 1-sigmoid(| u || i |cos(bias)). It it a modified version of BCLoss we implemented for better performance where the imposed angular margin is still positively correlated w.r.t popularity bias(The key of BCLoss), but also taking the norm of user/item popularity representation into account as indicator of confidence of bias factor.
Hello, I'm currently working on graph contrastive learning and I really appreciate your work! However, I get a bit confused by the
ratings_diag
in BCLoss function. It'sratings_diag = torch.cos(torch.arccos(torch.clamp(ratings_diag,-1+1e-7,1-1e-7))+(1-torch.sigmoid(pos_ratings_margin)))
andpos_ratings = torch.cos(torch.arccos(torch.clamp(pos_ratings,-1+1e-7,1-1e-7))+(1-torch.sigmoid(pos_ratings_margin)))
that confuses me. I can't associate M_{ui} in the equation(6) with1-sigmoid(pos_ratings_margin)
. Could you provide an explaination? Thanks a lot!Best, Lucas