mpnet
A pre-trained language model trained with masked and permuted language modeling.
Language · 391 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.
At a glance
- Task
- Language
- Parameters
- 109.5M
- Operations
- 391
- Framework
- PyTorch
- Recurrent
- No
- Source
- transformers 5.18.0
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
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.
Details
- Stable ID
- m7501
- Graph hash
- fcbf3690745e31266502bbefce1f05008245412c84120981a902b595e6f98e4e
- Skeleton hash
- e9d726086e6d286df38cef1d918da9d7dd8837458d12ed3810b4d525b986c7ea
- Architecture hash
- ba196108a5e2455cbb5c450e6c15570a3c399aa3967e381321f3262b7e59386e
- Diagram SHA-256
- b1b777d888d547335a7237a8bd78a8b3efba7916ce71808197ba7e35407eea70
- TorchLens version
- 2.35.3
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
How this diagram was made
transformers.AutoModel.from_config()
What it is
MPNet is a pre-trained language model for natural language understanding, named for its pre-training method, masked and permuted language modeling. The paper starts from two observations: BERT neglects the dependency among the tokens it predicts, and XLNet, which introduced permuted language modeling to address that, does not use the full position information of a sentence. MPNet uses permuted language modeling to exploit the dependency among predicted tokens, and it takes auxiliary position information as input so that the model sees a full sentence.
The authors pre-trained it on over 160GB of text corpora and fine-tuned it on downstream tasks that include GLUE and SQuAD. The paper reports better results on these tasks than BERT, XLNet and RoBERTa under the same model setting. MPNet has no token_type_ids, so nothing marks which token belongs to which segment and segments are simply separated with the separation token.
Key idea. MPNet combines permuted language modeling, which uses the dependency among predicted tokens, with auxiliary position information that lets the model see a full sentence.
- mpnet
- masked and permuted pre-training
- masked and permuted language modeling
- permuted language modeling
- masked language modeling
- language understanding
- pre-trained language model
- text encoder
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.