
xlm-prophetnet
Language1,976 ops616.1M params
An encoder-decoder pre-trained to predict the next n tokens at once with n-stream self-attention.
Language · 1,976 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
transformers.AutoModel.from_config()
About this model's family
ProphetNet is an encoder-decoder model that can predict n future tokens, for what its authors call "ngram" language modeling, instead of just the next token. The paper introduces a self-supervised objective named future n-gram prediction together with an n-stream self-attention mechanism. Instead of one-step-ahead prediction, ProphetNet is optimised by n-step-ahead prediction, predicting the next n tokens simultaneously from the previous context tokens at each time step.
Architecturally it follows the original Transformer, but swaps the standard self-attention in the decoder for a main self-attention mechanism plus a self and n-stream (predict) self-attention mechanism. It was pre-trained on a 16GB base-scale dataset and a 160GB large-scale dataset, then tested on CNN/DailyMail, Gigaword and SQuAD 1.1 for abstractive summarization and question generation. Because it uses absolute position embeddings, inputs are usually padded on the right rather than the left.
Key idea. Future n-gram prediction, a self-supervised sequence-to-sequence objective paired with an n-stream self-attention mechanism.
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.