Elamur Research

Highly Parallel Autoregressive Entity Linking with Discriminative Correction

Paper · 2021 · Nicola De Cao, Wilker Aziz and Ivan Titov

Summary

Entity linking turns a reference in a document into a link to a specific entry in a knowledge base. A system reading “New York” has to locate those words and decide which entry they refer to in context. GENRE, an earlier approach, did both jobs by rewriting the document with links inserted into it. That gave it a way to identify entities by their names, but it also meant the system had to work through the document in order, copying ordinary text as it went. De Cao and colleagues keep the idea of generating names and change what the system has to generate. They locate mentions using a shared representation of the document, then handle the entity names for different mentions in parallel.

The system first looks for places where a mention begins and uses each likely start to predict where the mention ends. A small recurrent decoder then processes the name of a candidate entity from left to right. At this stage, each mention has its own decoding process. The document provides context for all of them, so a mention can draw on words elsewhere in the input without waiting for another mention's link to be resolved. The authors also train a classifier to prefer the correct entity over alternatives. The generator learns which names it can produce from a mention, and the classifier gives the system a more direct way to learn which candidate should rank highest.

On the English AIDA-CoNLL test split, with precomputed candidates and evaluation restricted to mentions with a valid knowledge-base entry, the full system scores 85.5 micro-F1. GENRE scores 83.7 in the same results comparison. In a separate timing experiment on the validation split, the new system processes 8.69 queries per second on average and GENRE processes 0.12. The authors report a speedup of more than 70 times. Using the generator score or the classifier score alone gives lower test results than using both. Searching approximately within the candidate lists retains most of the full system’s performance, while searching over the entire knowledge base without those lists reduces test micro-F1 to 49.4. The paper thus demonstrates fast, accurate linking with candidate support and identifies broad coverage of entity names as an open problem for the same design.

Deep dive: Highly Parallel Autoregressive Entity Linking with Discriminative Correction

De Cao and colleagues speed up entity linking by decoding entity names in parallel across mentions and training a classifier to improve the ranking. · about 32 minutes to read

The problem and its context

A reference has a location and a destination

An entity link contains two decisions. The first is where to put it. If an expression covers several words, the link needs the boundaries of that expression. The second is where the link should go. The paper illustrates this with “NYC” and “New York,” both of which can refer to the entry for New York City. The surface form is the expression in the document. The entity is the entry selected from the knowledge base. Different expressions can point to the same entry, and the same expression can be ambiguous. A text match alone therefore leaves the destination unresolved.

The paper calls the boundary decision mention detection and the destination decision entity disambiguation. The distinction matters when a reader encounters a result described as entity linking. A disambiguation system can be given the boundaries and evaluated on the destination it chooses. A full linker is given the document and must supply both. A correct destination attached to the wrong span fails to produce the required pair. Equally, a system can find very plausible spans and still make poor links if it has difficulty choosing their destinations. The paper studies the full task, although its analysis also reports separate scores for these two decisions.

Linking is useful when another system needs to act on a reference after reading it. In question answering, resolving a reference can connect a question or a passage to an entry that subsequent reasoning can use. In information extraction, a link lets a later stage associate extracted information with a particular entity even when the words used to name it vary. The paper also situates linking within text understanding and dialogue. These are motivations for getting the links right and making them affordable to produce. The measured task in this study is English document linking.

The authors define the output as a set of pairs. Each pair supplies the position of a mention and the entry it denotes. This definition leaves considerable freedom in how to arrive at the answer. A system can recognize mentions first and resolve them later, or share computation between the decisions. It can rank entities using vectors, or it can construct their text identifiers. It can even produce a whole annotated copy of the input and recover the pairs from the markup. Those choices can preserve the same task while changing where the work takes place and which decisions must wait for others.

From separate stages to shared representations

The paper describes earlier linkers that treat mention detection and disambiguation as separate problems. This division makes it possible to train specialized components. It also creates a handoff. A disambiguation stage can work only with the spans it receives, while the detection stage has to propose spans without the benefit of later decisions unless the overall design gives it a way to use that information. The two outputs ultimately have to agree even when the system learns to produce them separately.

The authors distinguish such pipelines from end-to-end approaches that use shared architecture. In the example of Kolitsas and colleagues, a bidirectional recurrent encoder represents the input, and scoring uses both local and global information. That system uses entity embeddings from earlier work by Ganea and Hofmann, matching them against representations of mentions in their contexts. Shared representations and global scoring are distinct choices here. A system can share information from a document without explicitly scoring whether its eventual links agree with one another, or it can add a scoring rule that uses the links together. The new design will rely on the first kind of sharing to make the individual linking jobs parallel.

The paper also describes work that jointly learns named entity recognition and linking. Recognizing a named expression and grounding it in a specific knowledge-base entry are closely related tasks. Their relationship motivates architectures that let learning signals affect some of the same machinery. Other work discussed in the paper specializes in linking entities in questions. The authors additionally distinguish cross-lingual linking, where references in a source language can be linked to entries in a standard target language, from the broader multilingual setting. Their own experiments focus on monolingual English.

Retrieving an entity or writing its name

One route to disambiguation is dense retrieval. In the account given in the paper, a dense retriever represents the mention and the entities as numerical vectors. Maximum inner-product search then finds stored entity vectors that score highly against the mention vector. This makes the problem a search in a shared space. Its appeal is that the entity-side representations can be prepared in advance. The authors also point to costs of that separation. A vector stored for an entity does not depend on the particular mention currently being resolved, and the collection of stored representations can consume substantial memory. The paper acknowledges efforts to make dense retrieval more memory-efficient. Scalable Zero-shot Entity Linking with Dense Entity Retrieval is among the earlier work it discusses.

The alternative explored by GENRE is to express the identity of an entity as a sequence of text tokens. Generation can then use information learned during pretraining and condition on the input while deciding how to continue a candidate’s name. The authors characterize this as allowing interaction between the candidate’s text and the context, because the decoder can attend to the context while producing the identifier. It also avoids an index of precomputed entity vectors for the purpose of that match. The text identifier still has to resolve to a specific entry. Its role is both linguistic, because the decoder works with tokens, and administrative, because the complete name identifies an entity in the inventory.

GENRE applies this idea to the full task by generating an annotated version of the input. The output preserves ordinary words and includes markup for the mention and its linked entity. A single sequence therefore carries both the source text and the predicted links. The paper also describes uses of GENRE for disambiguation alone and for retrieving pages in tasks that include fact-checking, open-domain question answering, slot filling and dialogue. It identifies mGENRE as a multilingual extension. Those uses help explain the appeal of textual identifiers, although the comparison in this paper concerns the cost of generating a complete marked-up document for entity linking.

Autoregressive generation means that the next token is predicted using the tokens already produced. In GENRE, that dependence stretches across the whole marked-up output. A later annotation has to wait for the words and annotations before it, including words copied from the original text. The authors also identify the expense of a deep Transformer decoder. Its decoding memory requirements grow with the sequence, and the earlier system used additional pretraining on Wikipedia abstracts. These observations lead to the paper’s question. If the desired output is a collection of links, can the system retain the useful dependence between successive tokens of an entity name while dropping the requirement to serialize all of the document’s links in a single output?

The method, step by step

Read the document once and give each mention its own decoding job

The authors start by changing the unit of generation. The encoder reads the document, and each relevant token receives a representation of its context. A detector then looks for mention boundaries. For every span it takes forward, the linker can score or generate candidate names using the document information carried by that span. A final ranking uses evidence from the name generator and from a classifier trained on candidate choices. The system returns a collection of span–entity pairs.

Think of a document that uses “NYC” in one passage and “New York” in another. The detector treats their boundaries as separate decisions. The corresponding decoding jobs both have access to context from the encoded document. If both expressions refer to New York City, the destination can be the same even though the span representations differ. One decoding job can consider the next token of the identifier while the other does the same for its own identifier. Within either job, the order of the tokens still matters. The name that starts with “New” creates a different continuation problem from a name with a different beginning.

This is the distinction behind the parallelism. The architecture makes a document available to all mention decisions, then drops explicit dependence of one predicted link on the other predicted links. Context in the input and predictions in the output play different roles. A token representation can carry information from another part of the text, subject to the encoder’s attention pattern. It does not have to carry the linking decision already made for that part. With this design, a relatively small decoder can focus on the identifier for a mention. It has no copying task for the stretches of text outside mention spans.

From a document to ranked entity links

The steps in order.

From a document to ranked entity linksStep 1: Encode the document with Longformer1. Encode the document with LongformerStep 2: Score each token as a possible mention start2. Score each token as a possible mention startStep 3: Predict span ends from likely starts3. Predict span ends from likely startsStep 4: Represent each mention using its boundary tokens4. Represent each mention using its boundary tokensStep 5: Score or generate entity names across mentions5. Score or generate entity names across mentionsStep 6: Rerank candidate entities using the classifier6. Rerank candidate entities using the classifierStep 7: Return spans paired with knowledge-base entries7. Return spans paired with knowledge-base entries

Factor the document-level prediction

The probability expression in the paper makes the architectural decision explicit. It assigns a detection factor and a disambiguation factor to each observed mention–entity pair. Those products can be evaluated across pairs without stepping through a generated copy of the input.

p(Y | x, θ) = ∏[⟨m, e⟩ ∈ Y] p(m | x, θ_MD) p(e | m, x, θ_ED)

Here p denotes a probability, the bar means “conditional on,” and x is the input document. Y is the collection of observed links. Each ⟨m, e⟩ pairs a mention span m with a knowledge-base entity e. The symbol ∈ restricts the product ∏ to pairs in Y. Multiplication joins the detection probability for m and the disambiguation probability for e. The notation θ denotes the parameters of the whole system, with θ_MD used for mention detection and θ_ED for entity disambiguation. Their union is θ. The paper allows them to overlap, so a shared encoder can contribute to both terms.

Conditional independence here is an assumption made given x. The factors can depend on the same document, and learning can change shared parameters. There is no factor that reads one selected entity as evidence when predicting another. The detection part, in turn, finds a span from the input, and the entity part depends on that span. This avoids imposing an order on the collection of links while keeping the distinction between finding a reference and grounding it.

Encode context with a windowed attention mechanism

The document encoder is Longformer, a Transformer designed for long inputs. The authors describe it as a version of RoBERTa that limits the attention window. A token can receive contextual information through the encoder without every attention operation having to connect every position directly to every other position. Encoder pretraining uses a masked-token objective, where some input tokens are hidden and their identities must be recovered from context.

The implementation uses an attention window of 128 tokens. From Longformer’s 12 layers, the authors retain the first 8 to reduce computation. According to their report, the encoder they describe has 149M parameters, 12 attention heads, and a hidden size of 768. A hidden size is the width of the vector representation passed through the network. Attention heads carry out different attention operations within a layer. The full linker's parameter count, including the detection, decoding and classification components, is 202M.

The encoder is therefore where the design spends substantial computation building context. The same contextual token vectors are then available to the jobs of finding spans and identifying entities. This matters when comparing the shallow decoder with GENRE’s deep one. The new system still relies on a pretrained Transformer for reading the document. Its efficiency decision is to avoid running a deep decoder across a serialized output containing the document and every link.

Find starts before considering ends

A span is specified by its beginning and ending positions. A detector that scores every possible pair of positions would have to consider a number of spans that grows quadratically with input length. The paper proposes a factorization that allows the linker to screen positions for likely starts. Only retained starts need to be considered when locating ends at inference time.

p(m | x, θ_MD) = p(m_s | x, θ_MD) p(m_e | m_s, x, θ_MD)

The symbol m denotes the whole mention span. The subscripts s and e indicate the start position m_s and end position m_e. The standalone entity symbol e in the previous expression has a different role from the end-position subscript here. x is the document and θ_MD contains the detection parameters. The first factor gives the probability of starting a mention at m_s. The second gives the probability of ending it at m_e, conditional on that start and on the document. The product gives the score for the complete span under this factorization.

The authors treat choosing the end as choosing a length from a set of categories. Since the endpoints are inclusive, the mapping between the two can be written as follows.

ℓ = m_e − m_s + 1

Here ℓ is the number of tokens in the span. m_e and m_s are the end and start positions, and adding 1 includes the token at the start. Treating lengths as categories gives the detector a separate possibility for each supported length. The authors cap spans at 15 tokens to limit memory use and report that the longest mentions in the training set have no more than 12 tokens.

The start and end predictors use feed-forward networks on contextual token representations. In each network the authors use layer normalization, a hidden layer of width 128, a rectified linear activation, another layer normalization operation and a scalar output. The activation gives the network a nonlinear transformation, and Layer Normalization acts on its intermediate representations. Dropout of 0.1 is applied before the linear projections. In training, the annotated spans already identify which positions serve as starts. At inference, the system retains positions whose start scores pass a threshold selected on the validation set.

That threshold determines which mentions can receive entity predictions. If a true start is filtered out, even an excellent candidate ranker has no span to resolve. If too many starts survive, the system can spend work on unlikely spans and produce spurious links. Choosing the threshold on the full linking metric connects the detector’s operating point to the downstream result. The paper reports how the authors select that threshold, while the probability factorization explains why applying it early saves work.

Score the tokens of an entity name in order

Once the system has a mention, it represents it using the contextual embeddings at the start and end. The linker uses both boundaries to prepare the small recurrent decoder. This decoder is an LSTM, or long short-term memory network. A recurrent decoder maintains a state that it updates as it processes successive tokens. Here the state follows the tokens of a single candidate identifier. It is separate from the states used for other mentions.

The generator assigns a probability to the entity through the token sequence of its unique name. Each factor is the probability of the next token given the span, the input and the preceding tokens of that name.

p(e | x, m, θ_ED) = ∏[i = 1 … |t|] p(t_i | x, m, t_<i, θ_ED)

e is the entity, x is the document, m is the mention and θ_ED denotes the disambiguation parameters. t is the sequence of tokens in the entity’s unique textual identifier. |t| is the length of that sequence. The product ∏ starts at the first token and continues through the last. i indexes the token within the name, t_i is the token at that index and t_<i means the tokens earlier than i. The inner p is a next-token probability. The left-hand p assigns a probability to the entity through the whole name in this generative component.

The same operation supports two uses. With a fixed candidate list, the system can take a proposed identifier and find how strongly the decoder supports its successive tokens. It can then compare that score with scores for other complete names. During search, the decoder can propose another token for a partial name, and a search procedure can retain some partial names for later expansion. In both cases the next token is conditional on the prefix. A fixed list changes which complete names need to be considered, while a search procedure changes how those names are explored.

The authors use a single-layer LSTM and supply it with mention information through several paths. Three feed-forward networks derive its initial hidden state, an initial context vector and a vector supplied at each decoding step. All take their information from the start and end embeddings. Each network uses the same arrangement of layer normalization, a layer of width 768, a rectified linear activation, another layer normalization operation and an output of width 768. The LSTM has input size 1536 and hidden size 768. The decoder shares its input token embeddings with Longformer, and the output head is initialized from the encoder.

This arrangement makes mention context available throughout name processing. The initial states provide information before the identifier is read, and the vector supplied at successive steps gives the decoder continued access to the mention representation as it deals with the prefix. The name’s final decoder representation also becomes evidence for the classifier. Generation and ranking are thus connected through the representations of the same candidate, as well as through the shared document.

Train a classifier to prefer the right candidate

A next-token objective tells the generator which continuations to favor for observed correct names. It does not directly ask which of several plausible complete names is best for a particular mention. A decoder can also give probability to token sequences that do not name a valid entry. These points motivate a second training signal. The classifier takes a representation of the mention and the final LSTM context vector for a candidate. It returns a scalar that can be compared with the classifier scores for other candidates.

The paper expresses the classifier probability using a softmax over entity identifiers. The softmax exponentiates each raw score and divides by the total of the exponentiated scores.

p(e | x, m, θ_ED) = exp(f(x, m, t; θ_ED)) / Σ[c] exp(f(x, m, c; θ_ED))

In this expression p is the discriminative probability for entity e, conditional on the input x, the mention m and the disambiguation parameters θ_ED. The symbol t denotes the name of e. The function f is the classifier’s scalar score for a proposed name given the document and span. The semicolon in its argument list separates the parameters from the inputs. exp is the exponential function. The sum Σ ranges over names c in the knowledge base in the formal definition. The numerator uses the score of the particular name t, and the denominator is the normalizer. This is the classifier’s expression for the same entity decision described by the generative probability above.

The classifier is a feed-forward network with layer normalization, a hidden layer of width 768, a rectified linear activation, further layer normalization and a scalar output. It sees the final context vector from processing a candidate name, so it can judge a complete identifier in relation to the span. For an ambiguous reference, this gives learning a way to favor the correct entity against particular competitors even when all of their names are plausible token sequences. The negative logarithm of the correct candidate’s discriminative probability is the classifier loss.

The full denominator defines a comparison over the knowledge base. Actually evaluating it for every training instance would require scoring a great many entries. The authors approximate it with negatives from a precomputed, instance-specific candidate set. A negative in this context is an alternative entity used as a competitor to the annotated entity for the same mention. This exposes the classifier to confusable choices under the candidate setup used for the experiment. Those sets have a second role at test time, where they ordinarily delimit the choices the linker compares.

The full result uses both generation and classification evidence. The article distinguishes their probability expressions and reports experiments that isolate the scoring components. Its method description does not specify a more detailed equation for the combined inference score. The documented roles are that the LSTM generates or scores identifiers and the classifier reranks candidates, with joint training allowing the ranking objective to affect the representations used by the generator.

Fit the components together

Training examples contain documents with annotated mention spans and target entities. The given spans let the detector learn which positions start a mention and how long those mentions are. For entity disambiguation, the target entry supplies the text identifier to be learned by the generator. Candidate lists from Pershina and colleagues supply alternatives for the discriminative loss. The system learns its components jointly, so the document representation is trained in the context of both span detection and entity choice.

The authors use stochastic optimization, implemented with Adam. The generator uses length normalization and label smoothing. Length normalization addresses how the score accumulates across the tokens of identifiers of different lengths. Label smoothing gives the target distribution some probability mass beyond the observed target token during training. The authors regularize the components with dropout, which temporarily removes some activations during learning. They also report manually exploring the use of layer normalization and the number of Longformer layers to retain.

The reported weight decay is 1e-2. The learning rate for Longformer is 1e-4 and the rate for the other components is 1e-3. The learning-rate schedule uses 500 warm-up steps and linear decay over a maximum of 10,000 steps. The training batch size is 32, with a maximum of 100 epochs. The authors select the trained system by micro-F1 on the validation split. They also search for the mention-start threshold using validation micro-F1, testing values from -5 to 5 in steps of 0.1. The paper describes the threshold conceptually in terms of start probability and reports the grid in these numerical terms without giving a conversion between the two descriptions.

The reported training time is roughly one hour on 4 Nvidia Titan X GPUs with 12 GB each. That run benefits from the pretrained document encoder. The training distinction the paper emphasizes concerns the decoder, which was fitted for short entity identifiers without the extra Wikipedia-scale pretraining used by the earlier generative approach. The authors make the implementation available as efficient-autoregressive-EL.

Experiments and results

What the benchmark supplies

The authors use the standard splits of English AIDA-CoNLL. The training split has 942 documents with 18,540 mentions, the validation split has 216 documents with 4,791 mentions, and the test split has 230 documents with 4,485 mentions. The annotated data supervise both localization and resolution. A learner thus has examples of what a mention covers as well as which entity is its destination. The validation data are used for system selection and the mention threshold. The main accuracy results come from the test split, and the speed experiment uses the validation split.

The evaluation follows the InKB setting. It considers mentions with a valid reference entry in the knowledge base. A system is consequently evaluated on finding and resolving references whose annotation provides an entity destination. Handling a reference to an entity outside the inventory is a different decision, and the paper’s headline score does not test it. This scope matters because an application that serves arbitrary documents might need to recognize a span and abstain from linking it. The benchmark result measures performance on the stated in-knowledge-base task.

The main setting also assumes precomputed candidates for disambiguation. These give the linker a restricted inventory of plausible entities to compare for a mention. The authors use the candidates from Pershina and colleagues in order to follow an established comparison setup. Under that setup the supervised task still includes finding mentions in the document. The candidate list helps answer a different question, namely which entries to consider after a possible mention has been identified. Candidate construction and candidate ranking therefore contribute different kinds of evidence to the final result.

The reported measure is micro-F1. Precision measures how many predicted links are correct, and recall measures how many annotated links are recovered. F1 combines those measures, and the micro average pools the underlying decisions across the split. For full linking, a correct prediction must identify the span and choose its entity. This metric makes the whole pipeline accountable for missed mentions, extraneous predictions and wrong destinations. The aggregate figure can be high while some groups of references remain difficult, because the paper gives the score over pooled predictions.

Linking accuracy on the test split

The main comparison places the new system alongside established linkers, including the earlier autoregressive GENRE system. Representative results are plotted below. Each value is test micro-F1 for InKB linking. The paper reports additional baselines, so the selected rows illustrate the range of approaches discussed in the article as well as the closest scores.

Entity linking systems on the AIDA-CoNLL InKB test split

The parallel generative linker with classifier reranking has the highest test score in the comparison.

Entity linking systems on the AIDA-CoNLL InKB test splitHoffart et al.: 72.8Hoffart et al.72.8Peters et al.: 73.7Peters et al.73.7Martins et al.: 81.9Martins et al.81.9Kolitsas et al.: 82.4Kolitsas et al.82.4Kannan Ravi et al.: 83.1Kannan Ravi et al.83.1GENRE: 83.7GENRE83.7De Cao et al. with discriminative correction (this paper): 85.5De Cao et al. with discriminativecorrection (this paper)85.5
The numbers
System or settingMicro-F1
Hoffart et al.72.8
Peters et al.73.7
Martins et al.81.9
Kolitsas et al.82.4
Kannan Ravi et al.83.1
GENRE83.7
De Cao et al. with discriminative correction (this paper)85.5

The closest earlier result in the main table is GENRE at 83.7, followed there by Kannan Ravi and colleagues at 83.1. The full proposed system reaches 85.5. The authors describe that improvement as an 11% reduction in micro-F1 error relative to the previous best test result. The relative error reduction and the test score are different quantities. The first expresses how much of the remaining error the paper says has been removed. The second is the aggregate linking metric itself.

The earlier results give some context for the gain. Kolitsas and colleagues achieve 82.4, and Martins and colleagues score 81.9. Broscheit’s result is 79.3. The results in the paper also include 80.5 for van Hulst and colleagues, with a note that this row uses the Wikipedia 2019 setting instead of the 2014 setting. The paper describes the earlier snapshot as having fewer entities. Since the knowledge base determines which entity destinations are available, that detail is relevant to interpreting the comparison. The table provides evidence about performance on the standard benchmark, with this qualification for the marked row.

The authors separately report approximately ≈94 micro-F1 for mention detection and ≈92 for entity disambiguation. These are component scores for the AIDA evaluation. They serve a different purpose from the 85.5 result. The component measurements help locate possible weaknesses or gains, while the joint score demands that both decisions be correct for the same prediction. The paper does not derive the joint score from the two component figures.

Separate disambiguation figures are available for some of the earlier systems. The authors report ≈89 for Kolitsas and colleagues, ≈88 for Broscheit, and ≈84 for van Hulst and colleagues, all as entity-disambiguation micro-F1 values in their comparison. This leads them to suggest that better disambiguation is the main source of improvement. The comparison is suggestive because the proposed system resolves entities well among the systems for which the relevant diagnostic is available. Most of the baselines lack the corresponding breakdown, including several important rows in the main comparison. The results consequently support the interpretation more narrowly than they support the ranking by full linking score.

Throughput on the validation split

The timing experiment measures how many document queries each system handles per second. It runs on one Nvidia Titan X GPU with 12 GB, with a batch size of 1. The authors perform 3 independent runs on the validation split and time the systems while feeding them one input at a time. GENRE’s input is truncated to its maximum supported length where necessary. The chart shows the reported central throughput values. The spread reported with each one is given in the discussion below.

Entity linking throughput on the AIDA-CoNLL validation split

The proposed system has the highest reported throughput and is much faster than GENRE in this setup.

Entity linking throughput on the AIDA-CoNLL validation splitGENRE: 0.12GENRE0.12Kolitsas et al.: 7.39Kolitsas et al.7.39De Cao et al. with discriminative correction (this paper): 8.69De Cao et al. with discriminativecorrection (this paper)8.69
The numbers
System or settingQueries per second
GENRE0.12
Kolitsas et al.7.39
De Cao et al. with discriminative correction (this paper)8.69

The full system records 8.69 ± 5.13 queries per second. The reported throughput for GENRE is 0.12 ± 0.08 queries per second, and that of Kolitsas and colleagues is 7.39 ± 5.03. These values refer to the validation timing experiment. The paper presents the full system as more than 70 times faster than GENRE, and describes it as slightly faster than the linker of Kolitsas and colleagues. The size of the difference from GENRE is the headline speed result. The difference between the two faster systems is modest in the reported figures, which are accompanied by substantial spreads.

A document query can require resolving many mentions. Batch size 1 means that the timing does not depend on grouping several documents into a single batch. It can still benefit from parallel computation across mentions inside the current document. This is where the architectural change is supposed to save time. GENRE has to advance through the ordinary source text as well as the markup, whereas the new system performs detection on the encoded input and reserves recurrent decoding for names. Limiting the amount of output work and allowing names to be processed together both contribute to the comparison. The benchmark does not time the two changes independently.

There is a practical reason to report throughput alongside accuracy. A faster way to produce a link would be of limited value if its changes degraded the requested annotations, while an accurate linker that serializes lengthy outputs can be difficult to use on many documents. Under the candidate-supported benchmark, the new design has the highest full linking score reported and throughput comparable to the fast conventional linker tested. The separate search experiments show how much of that accuracy persists when the system changes how it explores candidates.

What the ablations show

Generation and classification each contribute evidence

The score ablations compare the complete design with variants relying on a single source of evidence. A generator-only system depends on the scores assigned while processing entity names. A classifier-only score reflects the learned preference among candidate names. The classifier takes a representation from the LSTM, so using the classifier score alone is a statement about the score used for ranking. It should not be read as a demonstration that the system can remove the recurrent representation on which that classifier relies.

In the AIDA-CoNLL InKB test comparison, generator scoring alone gives 81.5 micro-F1 and classifier scoring alone gives 81.7. The full combination gives 85.5. The authors describe each single-score result as a 4% drop in performance. The figures show that both routes to a score matter for the configuration tested. The direct classifier objective is useful in a system already able to score entity names, and the generative score contributes evidence beyond the classifier’s preference.

The two mechanisms ask different questions of the same examples. The generator learns to make the gold identifier probable as a sequence of next-token choices. The classifier learns to give the correct completed identifier an advantage over other candidate entities. A candidate can be natural to generate from a span while still being the wrong destination. Conversely, the classifier’s judgment of a complete name can benefit from token-level evidence that would be discarded if only the classifier score carried through to the final ranking. The test comparison shows the value of the combined design on the benchmark. It does not report a direct measurement of how the underlying token probabilities change after adding the classifier.

Approximate search within the candidate lists

Complete scoring is practical in the main setup because the per-mention candidate lists are small enough to evaluate. The paper also considers the situation in which there may be too many candidates to score exhaustively. It tests constrained beam search, which tracks a limited set of partial identifiers and expands only prefixes compatible with valid choices. At each step, the beam retains a fixed number of promising possibilities. A complete identifier can be missed if its prefix is discarded early, which makes the technique an approximation to evaluating all allowable names.

With the precomputed candidate lists and a beam size of 5, the system reaches 84.9 micro-F1 on the AIDA-CoNLL InKB test split. Complete scoring reaches 85.5 in the same test comparison. The authors describe the performance drop as <1%. The approximate setting still scores above all the earlier entries in the main baseline table. On these lists, the generator can therefore guide search toward sufficiently good identifiers even when it does not finish scoring every possible competitor. The paper reports the accuracy of this approximation. Its separate throughput experiment does not give a speed breakdown for the beam variant.

This is also an experiment about where information enters the decision. When a list is already supplied, the search procedure can use it to eliminate prefixes that could never finish as an allowed candidate. The generator decides which of the remaining prefixes merit continued search, and the ranking stage can judge the resulting complete identifiers. The beam result shows that this procedure works well with the evaluated constraints. Broadening the source of allowed names changes the search problem much more substantially.

Opening the search to the whole knowledge base

The paper then removes the precomputed lists and lets constrained beam search consider entity names throughout the knowledge base. There is still a constraint. A name must correspond to an entry in the inventory. The difference is that the search no longer receives the short, mention-specific set before it starts processing prefixes. The generator must use the mention and its context to guide the search among a much broader set of possible names.

Test performance with this whole-inventory search falls to 49.4 micro-F1. The authors describe it as a 42% drop in performance. Their explanation centers on training coverage. The analysis reports that the generator saw identifiers for 1537 entities, against a knowledge base containing ≈500,000. Seeing words from an identifier in ordinary text and learning to generate that complete identifier for an ambiguous mention are different forms of exposure. A pretrained document encoder helps represent the context, while supervised linking still gives the decoder examples of how particular names map to mention contexts.

Scoring and search variants on the AIDA-CoNLL InKB test split

Combining both scores works best, and beam search retains much more accuracy when it has mention-specific candidates.

Scoring and search variants on the AIDA-CoNLL InKB test splitGenerator score only: 81.5Generator score only81.5Classifier score only: 81.7Classifier score only81.7Beam search with candidates: 84.9Beam search with candidates84.9Beam search over the knowledge base: 49.4Beam search over the knowledge base49.4Complete candidate scoring with both scores (this paper): 85.5Complete candidate scoring with bothscores (this paper)85.5
The numbers
System or settingMicro-F1
Generator score only81.5
Classifier score only81.7
Beam search with candidates84.9
Beam search over the knowledge base49.4
Complete candidate scoring with both scores (this paper)85.5

The two search results help distinguish choosing good names from a short list and discovering good names in a large inventory. The constrained beam does well at the first under the paper’s conditions. The second combines a broader search space with sparse identifier exposure in training. The experiment changes the candidate restriction and reveals a large gap, but it does not trace individual failures to a particular cause. Some relevant names may be hard to propose, and a beam can also discard plausible prefixes as it searches. The paper does not give a separate error count for those cases.

The authors point to the additional Wikipedia pretraining used by GENRE as a way earlier work addressed coverage. They leave analogous pretraining for future work because they lacked the computational budget to run it. The result directly demonstrates the weakness of the trained system in the large-inventory experiment. It does not establish how much additional pretraining would close the gap, or whether the same architecture could match its candidate-supported score after broader training.

What the comparisons isolate

The scoring ablations test whether direct supervision on candidate ranking is valuable alongside generation. The search ablations test how the system behaves when it scores fewer paths or receives fewer restrictions on those paths. Each addresses a specific decision within the method. The headline comparison with GENRE changes several things together, including the output structure and the decoder. It therefore demonstrates that the resulting system is faster and more accurate in the reported experiments without assigning a separate contribution to each architectural choice.

The mention and disambiguation breakdown adds a different kind of evidence. It suggests that choosing the entity is a particular strength of the proposed system, which fits the motivation for discriminative correction. Since it compares available component results across different systems, it cannot isolate the effect of the classifier by itself. The single-score comparisons provide the more direct evidence that the extra scoring signal matters, and the end-to-end test result shows what the full combination delivers once mention detection and entity selection both have to succeed.

Limitations

Limits identified by the authors

The clearest limit is weak performance without the supplied candidate lists. The generative design can search over valid names in the knowledge base, but broad search is much less accurate for the trained system than the candidate-supported setting. The authors connect that gap to the small portion of the inventory seen during supervised training. They explicitly leave broader pretraining for future work. The result is important because the ability to write a valid entity name creates the possibility of linking without a precomputed shortlist, whereas reliable use of that ability requires finding the right name among the available entries.

The authors also observe that the baseline results rarely separate mention detection from entity disambiguation. This limits the evidence behind their suggestion that the improvement mainly comes from better disambiguation. The component scores cited in the paper support that interpretation for the systems for which such results are available. They do not provide a complete diagnosis of comparative strengths. For example, the full scores cannot alone tell a reader whether a system tends to miss spans, add extra ones or choose a plausible but incorrect entry for an accurately detected reference.

The authors set the study in English, with InKB evaluation and precomputed candidates in the main comparison. Other work mentioned in their background considers cross-lingual and multilingual linking. Their own results apply to the monolingual experiment. The detector also has a span-length cap introduced for memory reasons. The authors report that the cap is above the maximum length encountered in training, which supports the choice for those examples. Longer references outside the measured distribution could still exceed the supported span length.

Limits visible in the experimental setup

Candidate coverage and the quality of the candidate ranking are intertwined in the main result. A correct entity that is absent from the allowable choices cannot be recovered through ranking within that list. A list that contains the correct entry alongside a few plausible competitors puts much less pressure on search than a large inventory. The benchmark demonstrates strong performance with the supplied lists. A change to the inventory or the candidate generator would change which decisions the decoder has to make, and the paper does not quantify performance under such changes beyond the whole-inventory ablation.

InKB scoring likewise bounds the meaning of the test result. The paper studies links for references whose gold entry is valid in the designated knowledge base. The result leaves open how well the system recognizes a genuine mention when the entity is missing from the inventory. More broadly, micro-F1 pools the benchmark decisions. The paper gives no breakdown by how often an entity occurs, whether an identifier was observed during training, or how similar the mention’s surface form is to its canonical name. The large-inventory result motivates interest in those distinctions, but the aggregate scores do not establish which groups account for the losses.

The independence assumption makes decoding efficient while limiting which dependencies can be expressed directly. If another predicted entity would resolve an ambiguity, the system has to rely on evidence that passes through the document and mention representations. It cannot condition that decision explicitly on the other selected link under the stated factorization. The paper does not report a matched experiment that adds explicit dependencies among predicted links while preserving the other design choices. The benchmark therefore does not measure when such dependencies are useful or their cost under a comparable architecture.

The authors design the encoder to accommodate long sequences and time the systems with single-document input on a specified GPU. The throughput result does not provide latency by document length, by mention count or by how many candidates survive for each span. Those variables would help explain how the work shifts between encoding, detection and decoding. The timing also describes the configured systems, with GENRE inputs truncated to its supported maximum. It provides a concrete comparison under these conditions, while leaving throughput under different hardware and batching arrangements unmeasured.

Finally, the paper’s claim about training requirements concerns the extra training used for generative linking. The method inherits a pretrained document encoder and uses its token embeddings and output-head initialization in the decoder. The reported run demonstrates that the supervised configuration can reach the benchmark result without separate large-scale decoder pretraining. It leaves unresolved how much the inherited initialization contributes, how well the method transfers to other data distributions, and what training would be needed to produce similarly reliable links across the entire knowledge base.

What came after

The two later works that cite this paper place it in different contexts. One concerns the relationship between language technology and structured knowledge, and the other concerns how entity linking is evaluated. In this paper those concerns meet in a concrete way. A generated string has to name an entry in a fixed inventory, and success depends on whether the system finds both the reference and the correct entry. Each later work offers a context in which to read that design, even though a citation alone cannot establish that the work adopted its training or decoding procedure.

Unifying Large Language Models and Knowledge Graphs takes the broader perspective of a roadmap for connecting language systems and knowledge graphs. The connection to De Cao and colleagues is the use of ordinary text as an interface to a structured entity inventory. The linker generates or scores an identifier as a sequence, while the resulting link resolves to a specific entry. The roadmap cites the paper in that broader area. Its citation does not establish a reuse of Longformer, the recurrent decoder or the discriminative correction.

Elevant concerns fully automatic, fine-grained evaluation. Its connection to this study is especially clear in the distinction between detecting a mention and resolving it. De Cao and colleagues can compare full linking scores across many systems, yet can compare the component decisions for only a few. The contrast between candidate-supported and whole-inventory search also shows how an aggregate score can depend on the evaluation conditions. Elevant cites the study from the evaluation side of entity linking. The citation establishes that connection without establishing that Elevant adopted the parallel decoder, the ranking objective or the paper’s benchmark settings.

Cite

Cite as Nicola De Cao, Wilker Aziz and Ivan Titov. 2021. Highly Parallel Autoregressive Entity Linking with Discriminative Correction. Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2021.emnlp-main.604

@inproceedings{cao2021highly,
  title = {{Highly Parallel Autoregressive Entity Linking with Discriminative Correction}},
  author = {Nicola {De Cao}, Wilker Aziz and Ivan Titov},
  booktitle = {Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.604},
  url = {https://doi.org/10.18653/v1/2021.emnlp-main.604}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/cao-2021-highly-parallel-autoregressive-entity-linking/