TPLinker
TPLinker extracts entities and relations from text in one stage by tagging links between token pairs.
Language · 1,053 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
- 114.3M
- Operations
- 1,053
- Framework
- PyTorch
- Recurrent
- No
- Published
- COLING 2020
- Cited by
- 490 (as of 27 October 2026)
- Authors
- Yucheng Wang, Bowen Yu, Yueyang Zhang and others
- 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
- m20826
- Graph hash
- a94970f18577fe44edeacf8f16ce63d238689217af8dfffaed89ef6df438b7da
- Skeleton hash
- 73d94b2ac8253f437c84b58f4a18aa8ebfcf79882bbd48e5c36ae4c267d375ff
- Architecture hash
- 412d95ab7016750cb9e3d48c62ca1ce3658e12d3f249c20b30495dc2b5ca6da6
- Diagram SHA-256
- d7d237dfadf2f2b140585cbb6fd87cf2f867f49acb107c75870c3787966d99fb
- 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
TPLinker is a one-stage model for extracting entities and relations from unstructured text. The paper explains that earlier joint models usually involve sequential interrelated steps and suffer from exposure bias: at training time they predict with the ground truth conditions, while at inference they have to extract from scratch, and this discrepancy leads to error accumulation. TPLinker instead formulates joint extraction as a token pair linking problem, with a handshaking tagging scheme that aligns the boundary tokens of entity pairs under each relation type.
The paper describes the model as capable of discovering overlapping relations that share one or both entities. It reports that TPLinker performs significantly better on overlapping and multiple relation extraction, with results on two public datasets. The code repository lists a score of 91.9 for TPLinker on NYT and the same score on WebNLG. Its training configuration sets the encoder to BERT, with BiLSTM as the alternative. Long texts are split with a sliding window, and the maximum sequence length is set to 100 for training and 512 for inference. The same repository holds a variant, TPLinkerPlus, whose details were left to an extended paper.
Key idea. TPLinker formulates joint extraction of entities and relations as a token pair linking problem, using a handshaking tagging scheme that aligns entity pair boundary tokens under each relation type.
- tplinker
- tplinkerplus
- joint entity and relation extraction
- relation extraction
- token pair linking
- handshaking tagging scheme
- overlapping relations
- exposure bias
- nested entities
- information extraction
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{wang2020tplinkersinglestagejointextraction,
title={TPLinker: Single-stage Joint Extraction of Entities and Relations Through Token Pair Linking},
author={Yucheng Wang and Bowen Yu and Yueyang Zhang and Tingwen Liu and Hongsong Zhu and Limin Sun},
year={2020},
eprint={2010.13415},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2010.13415},
}