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

pos_out > neg_out #8

Closed
GloryyrolG opened this issue Dec 20, 2021 · 1 comment
Closed

pos_out > neg_out #8

GloryyrolG opened this issue Dec 20, 2021 · 1 comment

Comments

@GloryyrolG
Copy link

Hi SW @swyoon ,

As far as I know, the expectation of EBM training at least should be pos_out <= neg_out, right? However, I found in the exp of CelebA 64, we end up early where pos_out > neg_out.

image

@swyoon
Copy link
Owner

swyoon commented Dec 21, 2021

Dear @GloryyrolG ,

Thank you for your observation.

You are right about pos_energy <= neg_energy in general energy-based models. However, in NAE, we regularize (neg_energy ** 2) in order to prevent a model from diverging. I think this regularization is responsible for a slightly smaller neg_energy. From my experience, it is usually fine as long as pos_energy stays not too far from neg_energy.

Please let me know if you observe any notable consequences.

Best,
Sangwoong.

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