Recall, Expand and Multi-Candidate Cross-Encode: Fast and Accurate Ultra-Fine Entity Typing

Chengyue Jiang, Wenyang Hui, Yong Jiang, Xiaobin Wang, Pengjun Xie +1 more
12/18/2022
cs.CLcs.AI

Official code: modelscope/AdaSeq (452 stars, Python, Apache-2.0, PyTorch, last commit 2023-11-15).

Abstract

Ultra-fine entity typing (UFET) predicts extremely free-formed types (e.g., president, politician) of a given entity mention (e.g., Joe Biden) in context. State-of-the-art (SOTA) methods use the cross-encoder (CE) based architecture.

Show full abstract

CE concatenates the mention (and its context) with each type and feeds the pairs into a pretrained language model (PLM) to score their relevance. It brings deeper interaction between mention and types to reach better performance but has to perform N (type set size) forward passes to infer types of a single mention. CE is therefore very slow in inference when the type set is large (e.g., N = 10k for UFET). To this end, we propose to perform entity typing in a recall-expand-filter manner. The recall and expand stages prune the large type set and generate K (K is typically less than 256) most relevant type candidates for each mention. At the filter stage, we use a novel model called MCCE to concurrently encode and score these K candidates in only one forward pass to obtain the final type prediction. We investigate different variants of MCCE and extensive experiments show that MCCE under our paradigm reaches SOTA performance on ultra-fine entity typing and is thousands of times faster than the cross-encoder. We also found MCCE is very effective in fine-grained (130 types) and coarse-grained (9 types) entity typing. Our code is available at \url{https://github.com/modelscope/AdaSeq/tree/master/examples/MCCE}.

View on arXivView PDF

Code Implementations(1)

modelscope/AdaSeqOfficial100%
PyTorchApache-2.0

AdaSeq: An All-in-One Library for Developing State-of-the-Art Sequence Understanding Models

45243Python, PerlDec 1, 20223 years agoApache-2.0
bertchinese-nlpcrfentity-typinginformation-extraction+11 more

Similar Papers

Cite this paper

@article{jiang2022recall,
  title  = {Recall, Expand and Multi-Candidate Cross-Encode: Fast and Accurate Ultra-Fine Entity Typing},
  author = {Chengyue Jiang and Wenyang Hui and Yong Jiang and Xiaobin Wang and Pengjun Xie and Kewei Tu},
  year   = {2022},
  eprint = {2212.09125},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.09125}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.09125.svg)](https://codeofpaper.com/paper/2212.09125)

Discussion