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

Relaxed Alignments? #4

Open
fermat97 opened this issue Jan 3, 2019 · 1 comment
Open

Relaxed Alignments? #4

fermat97 opened this issue Jan 3, 2019 · 1 comment

Comments

@fermat97
Copy link

fermat97 commented Jan 3, 2019

Is Algorithm 2: relaxed alignment included in this repository, since I could only see examples for categorical case. thank you.

@da03
Copy link
Contributor

da03 commented Jan 3, 2019

Nope, it's not included here. Relaxed alignment underperforms baseline soft attention (see Table 1 in our paper), and since we need to pretrain with E_p \log p and then finetune to get sensible results, it seems hacky to me. However, if you were interested, it is straightforward to implement using PyTorch's builtin Dirichlet rsample function: https://pytorch.org/docs/stable/_modules/torch/distributions/dirichlet.html#Dirichlet.rsample.

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