All models

CoT-MAE

A BERT-base encoder with a shallow decoder, pre-trained on neighboring text spans for dense passage retrieval.

Language · 384 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 (54 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
123.7M
Operations
384
Framework
PyTorch
Recurrent
No
Published
AAAI 2023
Cited by
30 (as of 28 October 2026)
Authors
Xing Wu, Guangyuan Ma, Meng Lin and others
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
m15346
Graph hash
909a6761e6d9cef68e2b21b44f18a7b437acecf9f06e3e3a18418a380a6ab174
Skeleton hash
8b0c6b64e6dfad6a319bfd7b837bca45df20413bd1d721de893839ec4eaf1330
Architecture hash
3755fde162c973f63ddccf950524cb783b6b0bbc80d33bc02da3d69e2ab6324d
Diagram SHA-256
7b8f1ffb06cb6b4e32955985dff479027071215505c6454fadd1bf3843b242d6
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

What it is

CoT-MAE (ConTextual Masked Auto-Encoder) is a pre-training method for dense passage retrieval, the task of finding the passages relevant to a query by comparing dense vectors of the query and the passages. It teaches a text encoder to compress the meaning of a span of text into one vector by combining two masked auto-encoding tasks.

Training uses pairs of neighboring text spans selected from the same document. A deep encoder reconstructs the masked tokens of one span, and a shallow decoder reconstructs the other span from its unmasked tokens and a context embedding, which is the encoder's [CLS] hidden state for the first span. The decoder is deliberately given too few parameters to recover the masked tokens well, which the paper says forces the encoder to provide a better text representation. Masking is asymmetric too, with mask rates of up to 30% on the encoder and 45% on the decoder.

The encoder is initialized from the pre-trained 12-layer BERT-base and the decoder from scratch. After pre-training the decoder is discarded, and the encoder alone is fine-tuned as the query and passage encoder. The paper reports that on the MS-MARCO passage ranking dataset CoT-MAE exceeds the earlier pre-training method coCondenser by 1.2% on MRR at 10.

Key idea. CoT-MAE pre-trains a retrieval encoder with an asymmetric encoder-decoder that reconstructs a masked text span and, from that span's embedding, its masked neighboring span.

  • CoT-MAE
  • ConTextual Masked Auto-Encoder
  • Contextual Mask Auto-Encoder
  • dense passage retrieval
  • dense retrieval pre-training
  • masked auto-encoding
  • passage ranking
  • MS-MARCO
  • text embedding
  • cotmae

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

Cite the paper

@misc{wu2022contextualmaskedautoencoderdense,
      title={ConTextual Masked Auto-Encoder for Dense Passage Retrieval}, 
      author={Xing Wu and Guangyuan Ma and Meng Lin and Zijia Lin and Zhongyuan Wang and Songlin Hu},
      year={2022},
      eprint={2208.07670},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2208.07670}, 
}