All models

CEDR

A document ranker that joins BERT's classification vector with the KNRM neural ranking model.

Language · 1,156 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 (273 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
219M
Operations
1,156
Framework
PyTorch
Recurrent
No
Published
SIGIR 2019
Cited by
23 (as of 27 October 2026)
Authors
Sean MacAvaney, Andrew Yates, Arman Cohan, Nazli Goharian
License
MIT
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
m15072
Graph hash
cd39aad7f38ab5c520bad22604bd5aee640fe9436fe9938f42b4952f759b9703
Skeleton hash
f1cb913e9964e7a79162897b9d301a45e2c39201f69520d9368ef673afd2195b
Architecture hash
db01b6bda1a509f7acfd5d971182f2ee36a665efd0a726ac657fb860d7fa5a8c
Diagram SHA-256
376bb999eb5773d12f7871946c03c0709bb2659d4ac694667120e210dabaabcb
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

CEDR (Contextualized Embeddings for Document Ranking) is a joint approach to ad-hoc document ranking that incorporates BERT's classification vector into existing neural ranking models. The paper starts from the observation that neural ranking architectures had drawn considerable attention while the term representations they take as input had drawn far less.

The authors study how two pretrained contextualized language models, ELMo and BERT, can be used for ad-hoc document ranking. In experiments on TREC benchmarks, they find that several existing neural ranking architectures benefit from the additional context these language models provide. They report that the joint approach outperformed the ad-hoc ranking baselines it was compared with. The paper also deals with two practical issues, the maximum input length imposed by BERT and the runtime cost of contextualized language models.

In the released code, a plain BERT ranker called Vanilla BERT is trained first, and a CEDR model is trained after it. The code offers three CEDR models, named cedr_pacrr, cedr_knrm and cedr_drmm; this model is the KNRM one.

Key idea. CEDR adds BERT's classification vector to existing neural ranking models, which the paper reports outperformed its ad-hoc ranking baselines.

  • cedr
  • contextualized embeddings for document ranking
  • cedr-knrm
  • document ranking
  • ad-hoc document ranking
  • neural ranking
  • document re-ranking
  • contextualized language model ranking

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

Cite the paper

@misc{macavaney2019cedrcontextualizedembeddingsdocument,
      title={CEDR: Contextualized Embeddings for Document Ranking}, 
      author={Sean MacAvaney and Andrew Yates and Arman Cohan and Nazli Goharian},
      year={2019},
      eprint={1904.07094},
      archivePrefix={arXiv},
      primaryClass={cs.IR},
      doi={https://doi.org/10.1145/3331184.3331317},
      url={https://arxiv.org/abs/1904.07094}, 
}