Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
For questions related to the transformer, which is a deep machine learning model introduced in 2017 in the paper "Attention Is All You Need", used primarily in the field of natural language processing (NLP).
1
vote
Are transformer models better than comparable-complexity MLP-based models?
I can't provide you with numbers and results, but I'd expect (for not triavial problems) the MLP-based model to be worse than a Transformer. … Moreover, positional encoding provides the transformer to use the sequence order information, enabling it to learn to attend even to relative positions. …
2
votes
Accepted
What is the different between feeding transformer with continous data and with bins data (to...
These dense vectors (or embeddings) are the representation learned by the transformer model to represent the different words. … Now, if you want to use continuous input features you need to drop the embedding table and feed them directly to the transformer blocks. …
0
votes
Accepted
Shape of biases in Transformer's Feedforward Network
The biases are vectors, and their shape should be $b_1\in \mathbb R^{d_{ff}}$ and $b_2\in \mathbb R^{d_\text{model}}$.
To verify that let's compute the shapes of the above formula (for simplicity we c …
8
votes
Can you confirm that the transformer works strictly deterministically and there is no random...
Can you confirm that the transformer works strictly deterministically and there is no randomness inside or between the attention layers? … For example, at the end of the Transformer you have a dense layer which outputs $K$ logits: unnormalized probabilities over $K$ tokens. …
0
votes
Why shouldn't the attention matrices $W^Q$, $W^K$, $W^V$ be the same?
A typical number of heads value is eight, for example: each head is responsible of learning to attend to different parts of the sequence, thus you can (partially) interpret transformer-based models by …