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).
0
votes
Accepted
What is the difference between transformer types?
The original transformer architecture (Attention Is All You Need, 2017) which was developed for machine translation tasks utilized both an encoder and a decoder. … Over the years various encoder-only models have been developed based on the encoder module of the original transformer model with notable examples including BERT (Bidirectional Encoder Representations …
0
votes
Accepted
How transformers can be used to fix typos?
Obviously the decoder-only transformers like GPT or CTRL models are more naturally suited for generative autocorrection tasks using BPE like subword tokenization methods along with their vast training …
1
vote
Accepted
What's make transformer encoder difference from its decoder part?
You’re right that encoder-decoder transformer aligns with the traditional autoencoder (AE) structure except AE’s encoder output is usually a compressed latent representation while transformer’s encoder … Also transformer decoders are optimized for token-by-token autoregressive generation, while your sliding windows require reprocessing overlapping inputs which can be computationally expensive. …
4
votes
Accepted
Why not increase the number of attention heads rather than stacking transformer layers?
In many NLP tasks information is intrinsically structured hierarchically, for instance, early layers in a transformer model may specialize in short-range dependencies such as syntactic relationships between … Multiple transformer blocks allow the model to perform a hierarchical transformation of the input at different levels of contextualized abstraction. …
1
vote
Accepted
Why GPT2 uses biases in QKV attention?
Your intuition is right. For each token in the sequence, GPT-2 linearly projects token’s embedding into three different Q/K/V spaces using three separate linear layers, each of which has weights and b …
0
votes
If masked attention tells which token precedes which token, why are positional embeddings re...
Without positional embeddings, the self-attention mechanism even with causal mask is permutation-invariant, meaning it simply treats the causally attended input sequence portion as a bag of words with …
1
vote
Accepted
Is transformer still need windowed batch input?
It depends on the context bound limitation of your transformer and how temporal relations in your time series should be captured for your task. … If your hardware and transformer can handle the memory and computational cost and if capturing long-range dependencies across the entire 5000 length time series is critical to your task such as detecting …
1
vote
Accepted
Difference of encoder-decoder to decoder-only transformers w.r.t. loss
For autoregressive tasks like language modeling, decoder-only models can process long sequences in a straightforward way and avoid the encoder step entirely. The CE loss is calculated for each token p …
0
votes
Autoregressive Models(LLM) inference Prediction
During inference, autoregressive models predicts text one token at a time sequentially. At each prediction step, attention mechanism takes query from only the current token and scores with all previou …
1
vote
Accepted
Should I use the same learning rate when I compare the performance for different language mo...
Since learning rate is a hyperparameter, using different learning rates or epochs for each model is not only allowed but generally encouraged as long as the hyperparameter tuning process such as grid …
1
vote
Accepted
Is having many tokens generally good for NLP performance?
Indeed several studies provide evidence that the design of tokenizers significantly impacts transformer model performance such as the original BERT paper that introduced WordPiece tokenization algorithm … Therefore without subword tokenization, an extremely powerful transformer cannot deal with out-of-vocabulary (OOV) word well such as 'rel8tivity'. …
0
votes
Accepted
Fine tuning or just feature extraction or both using Roberta?
According to this reference:
feature extraction involves creating new features that still capture the essential information from the original data but in a more efficient way.
Feature extraction te …
3
votes
Why different noise in GAN generate different images?
To further address you comment question, it's GAN's generator network's deep learning ability consisting of multiple layers of nonlinear transformations (e.g., convolutional layers, transposed convolu …
1
vote
Accepted
Transformer Encoder give worse performance when the sequence length during training is diffe...
Indeed transformer with fixed-length positional encodings such as your SinePositionEncoding doesn't inherently generalize well to sequence lengths that differ from those used during training, because … To resolve this issue you may try alternative positional embeddings such as rotary positional embedding (RoPE) or relative position encodings used in Transformer-XL and T5. …