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

The E-step and stop_gradient #1

Open
Germanunkol opened this issue Nov 24, 2017 · 2 comments
Open

The E-step and stop_gradient #1

Germanunkol opened this issue Nov 24, 2017 · 2 comments

Comments

@Germanunkol
Copy link

Germanunkol commented Nov 24, 2017

Nice to see there's already an implementation of this!

I just stumbled across tensorflow's "stop_gradient" function. In the examples of where the function might be needed, they mention "The EM algorithm where the M-step should not involve backpropagation through the output of the E-step."

Does this also apply when using the EM algorithm for routing? I don't think I read anything about this in the paper, but then again the paper is very sparse with information about the backpropagation...
Not calculating the gradients for the E-step might considerably speed up training, I believe.
Thoughts?

@gyang274
Copy link
Owner

I agree, there should be no backpropagation through the EM algorithm, other than learning the beta_a and beta_v. Will modify. Thanks.

@andrewsonga
Copy link

@Germanunkol @gyang274 may I ask, why would not calculating gradients for the E-step might considerably speed up training? If we're unrolling multiple EM iterations, wouldn't blocking gradients to E-step prevent gradients from flowing to earlier EM iterations?

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

3 participants