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

Wrong derivation of negative gradient of sigmoid+BCE #5

Open
GeraldHan opened this issue Nov 19, 2021 · 1 comment
Open

Wrong derivation of negative gradient of sigmoid+BCE #5

GeraldHan opened this issue Nov 19, 2021 · 1 comment

Comments

@GeraldHan
Copy link
Owner

Sorry for the wrong derivation of the negative gradient for Sigmoid+BCE loss.
The correct negative gradient is

$$ \nabla \mathcal{H}_i= y_i - \sigma(\mathcal{H}_i) $$

In theory, as long as the pseudo label has a negative correlation with the bias model prediction, it is able to mine the hard examples.
The wrong gradient in the paper is actually an approximation of $\nabla \mathcal{H}_i$. That's why it still works well.

@Murphyzc
Copy link

What's reason about this statement "In theory, as long as the pseudo label has a negative correlation with the bias model prediction, it is able to mine the hard examples."?

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

2 participants