All models

rembert

A multilingual BERT with untied input and output embeddings, rebalanced for better transfer.

Language · 913 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (19 KB)

Open in a new tab

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

Parameters
993.3M
Operations
913
Framework
PyTorch
Recurrent
No
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 diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m8770
Graph hash
a4da98b36b5fc5b5ac9139ccaf33e996e01b9a9048fa5e213f8512b9237b8ece
Skeleton hash
9d797e5a739bdb0c1c34213026aa75ef65ecf9ffca77faa599fa82dc1c95c8d1
Architecture hash
bb75c54744964219f6de71fbeadc61203ecc627a2909d361790ea7acb0ea6cd7
Diagram SHA-256
f4a4bd09fc3f91badb2d250a7ce6bc1f9c8f5873f11b7a65ed5541d736f81277
TorchLens version
2.36.0
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.AutoModelForMaskedLM.from_config()

What it is

RemBERT comes from the paper Rethinking Embedding Coupling in Pre-trained Language Models, by Hyung Won Chung, Thibault Févry, Henry Tsai, Melvin Johnson and Sebastian Ruder. The paper re-evaluates the standard practice of sharing weights between the input and output embeddings of pre-trained language models. Decoupling them gives increased modeling flexibility and a significantly more efficient allocation of parameters in the input embedding of multilingual models. Larger output embeddings keep the model's last layers from overspecializing to the pre-training task and make the Transformer representations more general and transferable to other tasks and languages.

For fine-tuning, RemBERT can be thought of as a bigger version of mBERT with an ALBERT-like factorization of the embedding layer. The embeddings are untied in pre-training, unlike BERT, which allows smaller input embeddings that survive fine-tuning and bigger output embeddings that are discarded at fine-tuning.

Key idea. Decoupled input and output embeddings, which give increased modeling flexibility and a more efficient allocation of input-embedding parameters in multilingual models.

  • rembert
  • rem bert
  • rethinking embedding coupling
  • decoupled embeddings
  • mbert
  • multilingual bert
  • xtreme
  • masked language modeling

AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.