All models

mulrel-nel

A neural entity linker that induces latent relations between the mentions of a document to score candidate entities.

Language · 331 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 (166 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
377.7M
Operations
331
Framework
PyTorch
Recurrent
Yes
Published
ACL 2018
Cited by
226 (as of 28 October 2026)
Authors
Phong Le, Ivan Titov
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
m21669
Graph hash
32bdf4aeeab769b4c2c7b08e21d2166bb59a6d78ff6f1c980ba28be55ca9cdcd
Skeleton hash
4cbcae12e30425a862fe1228e3348656cf280241165d9f04d7998e6de20bc7e7
Architecture hash
6e01cdfa7cfd44f31649fe64d2bdbde394c46071be0743b8698c2c9e8a67a2c6
Diagram SHA-256
b08068cedfd9e8e94c787e665bd2c6d9e9f75686b4173dabd64d7044f0301b90
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

mulrel-nel (Multi-relational Named Entity Linking) is a model for named entity linking, the task of assigning entity mentions in a text to their entries in a knowledge base. Linking systems often use relations between the mentions of a document, such as coreference, to decide whether their decisions are compatible. This model treats those relations as latent variables and induces them without any supervision while the linker is optimized end to end.

The model assumes K latent relations, and the pairwise score for two mentions is a weighted sum of relation-specific pairwise scores. The weights come from a single-layer neural network with tanh activation applied to each mention and its context. In the ment-norm variant the weights are normalized over the mentions of the document, which the authors relate to multi-head attention. The local and pairwise scores define a conditional random field, and max-product loopy belief propagation estimates the max-marginal probability for each mention.

The repository's training command builds a 3-relation ment-norm model. The paper points out that the earlier model of Ganea and Hofmann (2017) is the special case of ment-norm with a single relation and uniform weights. On the AIDA-CoNLL dataset it reports an improvement of 0.85% F1 over the best scores reported before it. It also reports that training the full model took ten times less wall-clock time than training the relation-agnostic version.

Key idea. The paper treats relations between mentions as latent variables in a neural entity linker and induces them without supervision while training the linker end to end.

  • mulrel-nel
  • Multi-relational Named Entity Linking
  • Improving Entity Linking by Modeling Latent Relations between Mentions
  • entity linking
  • named entity linking
  • NEL
  • latent relations between mentions
  • ment-norm
  • AIDA-CoNLL

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

Cite the paper

@misc{le2018improvingentitylinkingmodeling,
      title={Improving Entity Linking by Modeling Latent Relations between Mentions}, 
      author={Phong Le and Ivan Titov},
      year={2018},
      eprint={1804.10637},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/1804.10637}, 
}