HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Autoregressive Entity Retrieval

Nicola De Cao Gautier Izacard Sebastian Riedel Fabio Petroni

Autoregressive Entity Retrieval

Abstract

Entities are at the center of how we represent and aggregate knowledge. For instance, Encyclopedias such as Wikipedia are structured by entities (e.g., one per Wikipedia article). The ability to retrieve such entities given a query is fundamental for knowledge-intensive tasks such as entity linking and open-domain question answering. Current approaches can be understood as classifiers among atomic labels, one for each entity. Their weight vectors are dense entity representations produced by encoding entity meta information such as their descriptions. This approach has several shortcomings: (i) context and entity affinity is mainly captured through a vector dot product, potentially missing fine-grained interactions; (ii) a large memory footprint is needed to store dense representations when considering large entity sets; (iii) an appropriately hard set of negative data has to be subsampled at training time. In this work, we propose GENRE, the first system that retrieves entities by generating their unique names, left to right, token-by-token in an autoregressive fashion. This mitigates the aforementioned technical issues since: (i) the autoregressive formulation directly captures relations between context and entity name, effectively cross encoding both; (ii) the memory footprint is greatly reduced because the parameters of our encoder-decoder architecture scale with vocabulary size, not entity count; (iii) the softmax loss is computed without subsampling negative data. We experiment with more than 20 datasets on entity disambiguation, end-to-end entity linking and document retrieval tasks, achieving new state-of-the-art or very competitive results while using a tiny fraction of the memory footprint of competing systems. Finally, we demonstrate that new entities can be added by simply specifying their names. Code and pre-trained models at https://github.com/facebookresearch/GENRE.

Code Repositories

facebookresearch/GENRE
Official
pytorch
Mentioned in GitHub
amzn/seqzero
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
entity-disambiguation-on-ace2004GENRE
Micro-F1: 90.1
entity-disambiguation-on-aida-conllGENRE
In-KB Accuracy: 93.3
entity-disambiguation-on-aquaintGENRE
Micro-F1: 89.9
entity-disambiguation-on-msnbcGENRE
Micro-F1: 94.3
entity-disambiguation-on-wned-cwebGENRE
Micro-F1: 77.3
entity-disambiguation-on-wned-wikiGENRE
Micro-F1: 87.4
entity-linking-on-aida-conllDe Cao et al. (2021a)
Micro-F1 strong: 83.7
entity-linking-on-derczynski-1De Cao et al. (2021a)
Micro-F1: 54.1
entity-linking-on-kilt-aida-yago2GENRE
Accuracy: 89.85
KILT-AC: 89.85
R-Prec: 89.85
Recall@5: 94.76
entity-linking-on-kilt-wned-cwebGENRE
Accuracy: 71.22
KILT-AC: 71.22
R-Prec: 71.22
Recall@5: 79.22
entity-linking-on-kilt-wned-wikiGENRE
Accuracy: 87.44
KILT-AC: 87.44
R-Prec: 87.44
Recall@5: 94.91
entity-linking-on-msnbc-1De Cao et al. (2021a)
Micro-F1: 73.7

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp