Skip to content
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

损失函数Ls与pooler #10

Open
LGW2YT777 opened this issue Jun 26, 2024 · 0 comments
Open

损失函数Ls与pooler #10

LGW2YT777 opened this issue Jun 26, 2024 · 0 comments

Comments

@LGW2YT777
Copy link

   (1)     
    l1 = - torch.mean(torch.sum(q1 * F.log_softmax(zc2 / self.tau, dim=1), dim=1))
    l2 = - torch.mean(torch.sum(q2 * F.log_softmax(zc1 / self.tau, dim=1), dim=1)) ,请问:按照论文中的意思难道不是只算l2就行了吗? 为什么代码中还算了l1(生成的表征质量更高,用其聚类结果作为标签,指导原始表征的学习)                        

(2)请问:pooler类中的实现方法是否与论文中有区别,感觉不太一样

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant