All models

MatchSum

A Siamese BERT that scores candidate summaries against the source document by cosine similarity.

Language · 930 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 (27 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
109.5M
Operations
930
Framework
PyTorch
Recurrent
No
Published
ACL 2020
Cited by
431 (as of 28 October 2026)
Authors
Ming Zhong, Pengfei Liu, Yiran Chen and others
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
m18346
Graph hash
f0fe475ed71f21a06b653211b6dee16b990f5884d37836bd064534771ec72ffb
Skeleton hash
12b2e88c16aa6131556e00ec8839644e5a110a795d4cec822f0e0fdd2633fb5e
Architecture hash
1026b730004a94ecb7655d07d03748d7d1feb379e22d1686a6e39f7301a6a8e5
Diagram SHA-256
d760847c84a84ba9b74536c1cb95190b1251c4c915bda591710d8ddbb015195f
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

MatchSum formulates extractive summarization as a semantic text matching problem, in which a source document and candidate summaries extracted from it are matched in a semantic space. The idea is that a good summary should be more semantically similar as a whole to the source document than the unqualified summaries. This replaces the common practice of scoring and extracting sentences one by one.

The model is a Siamese-BERT: two BERTs with tied weights and a cosine-similarity layer. The vector of the [CLS] token from the top BERT layer represents a document or a summary, and the similarity score is the cosine of the two vectors. A margin-based triplet loss fine-tunes it, built so that the gold summary gets the highest matching score and a better candidate scores higher than a worse one. Because scoring every possible candidate is a combinatorial problem, a content selection module first pre-selects salient sentences, and candidates are formed from combinations of those.

On CNN/DailyMail the paper reports 44.41 ROUGE-1, which it describes as the best extractive result at that time. The repository's results table gives 44.22 ROUGE-1 for the BERT-base encoder and 44.41 for RoBERTa-base. Either BERT or RoBERTa can be chosen as the encoder.

Key idea. MatchSum recasts extractive summarization as matching whole candidate summaries against the source document in a semantic space, instead of extracting sentences one by one.

  • MatchSum
  • extractive summarization
  • text matching
  • summary-level extraction
  • Siamese-BERT
  • document summarization
  • CNN/DailyMail
  • candidate summary ranking

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

Cite the paper

@misc{zhong2020extractivesummarizationtextmatching,
      title={Extractive Summarization as Text Matching}, 
      author={Ming Zhong and Pengfei Liu and Yiran Chen and Danqing Wang and Xipeng Qiu and Xuanjing Huang},
      year={2020},
      eprint={2004.08795},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2004.08795}, 
}