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

Self-attn in decoder layers. #16

Open
TsingWei opened this issue Apr 5, 2023 · 1 comment
Open

Self-attn in decoder layers. #16

TsingWei opened this issue Apr 5, 2023 · 1 comment

Comments

@TsingWei
Copy link

TsingWei commented Apr 5, 2023

I noticed there is a section about DETA does not need self-attention in the decoder. in the paper. The results show that when the self-attn is replaced by ffn in decoder, the performance is better. I wonder whether the final version in the table of compared-with-other-SOTAs using this setting? Because I found in the code that the self-attn is hard-coded in the decoder layer:

self.self_attn = nn.MultiheadAttention(d_model, n_heads, dropout=dropout)

@jozhang97
Copy link
Owner

Thank you for your interest!

I wonder whether the final version in the table of compared-with-other-SOTAs using this setting?
No, our default model still contains self-attention.

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