Elamur Research

Knowledge Enhanced Contextual Word Representations

Paper · 2019 · Matthew E. Peters, Mark Neumann, Robert Logan et al.

Summary

Learning how words occur together does not necessarily teach a language system which particular person, object, or meaning a passage concerns. “Knowledge Enhanced Contextual Word Representations” investigates how an existing contextual language architecture can consult explicitly identified entities while processing text. Its proposed system, KnowBert, extends BERT with connections to external knowledge resources. The aim is to improve the representations used throughout language processing, rather than attach a knowledge lookup to the final answer of a single application.

The central component is Knowledge Attention and Recontextualization, abbreviated KAR. It connects ordinary contextual processing with a collection of entity representations. A fixed selector proposes text spans and possible interpretations; a learned linker evaluates those interpretations using context. Retrieved entity vectors enrich the span representations, and an attention operation makes this information available to the surrounding words. KAR occupies an intermediate position within BERT, allowing the remaining layers and existing language-prediction objectives to continue operating. Its design separates finding plausible candidates, interpreting them, and distributing the information obtained from them.

The experiments integrate WordNet and Wikipedia through different resource preparations. WordNet contributes lexical distinctions, relationships, and definitions. Wikipedia contributes representations associated with page titles, learned from descriptions without requiring an explicit graph between pages. The integration therefore depends on a common computational interface, rather than identical internal resource structures. Entity vectors are prepared separately and subsequently held fixed. The surrounding architecture learns through ordinary text together with annotated entity links, using a staged procedure before broader joint adaptation.

The authors report improvements in masked-word perplexity and factual completion, including comparisons with the larger BERT architecture. Their factual probe uses 90K Wikidata tuples covering 17 relationships. Application evaluations concern relation extraction, entity typing, and distinguishing meanings across contexts. On TACRED, the reported advantage over ERNIE is 3.5%; the paper also reports an advantage of 1.4% over the larger BERT comparison. Results on SemEval 2010 Task 8 are competitive without placing KnowBert above every alternative. Its WordNet linker performs competitively on word-sense disambiguation, while its Wikipedia linker remains below the strongest dedicated linking system considered.

KnowBert’s contribution is consequently both architectural and experimental. It shows a workable route for making external entity information participate in general contextual representation learning, with benefits across the tasks examined. It also illustrates why a large stored resource need not require dense computation over every entry: each mention considers a bounded candidate collection. The findings do not establish perfect entity identification, traceable factual reasoning, or benefits from arbitrary knowledge sources. They establish that the particular resource preparations, training procedure, and integration mechanism studied here can improve several kinds of language performance.

Interesting ideas

Bound the search before making a difficult judgment. KnowBert does not ask its contextual linker to inspect the whole entity inventory. A cheaper selector supplies plausible interpretations first. This makes expensive contextual analysis manageable and gives failures a useful structure: an answer can be unavailable because retrieval missed it, or available but selected incorrectly. The same arrangement can support terminology resolution, record matching, dictionary services, and document retrieval.

Represent refusal alongside ambiguity. Several interpretations may retain useful support, while another mention may have no acceptable interpretation at all. Thresholded weighting and NULL handling give these situations different computational treatments. The broader lesson is to avoid turning every retrieved candidate into an accepted attachment. Systems using rules or statistical evidence can preserve alternatives and abstain without adopting KnowBert’s vector operations.

Allow interpretation to travel in both directions. The passage first helps determine what a mention means; the interpreted mention then contributes information to the passage. KnowBert implements these movements through attention among spans and attention from words to enriched spans. The reusable insight is that lookup should not be an isolated endpoint. A resolved technical term, organization name, or lexical sense may help interpret material elsewhere in the document.

Protect the surrounding architecture through an explicit extension point. KAR changes an intermediate representation and returns something the existing upper layers can consume. This permits additional knowledge without redesigning each application around a new input format. Comparable extension points are useful in parsers, reasoning systems, and retrieval pipelines, provided the interface states what information enters, what leaves, and how unsupported cases behave.

Inspect every route by which a hidden target could reappear. Masking text is insufficient when auxiliary entity identities still reveal the missing material. KnowBert therefore corrupts the associated candidate channel during masked-word training. Its exclusion of WiC examples from WordNet-derived supervision addresses a related cross-resource problem. These practices generalize to metadata, cached annotations, retained graphs, and retrieved examples that can quietly undermine an evaluation boundary.

Measure a component in the role it actually serves. An integrated linker supports representation learning while also making link predictions. Its standalone ranking need not match the ranking of the complete system on applications. KnowBert evaluates language prediction, factual completion, linking, and downstream tasks separately. This approach helps engineers avoid treating an improved intermediate score as sufficient evidence of a useful end-to-end change.

Account for active work separately from stored capacity. A resource may occupy substantial memory while only a small part participates in any particular request. KnowBert’s sparse candidate access makes that distinction operationally important. Similar accounting helps with graph stores, indexes, specialist dictionaries, and caches: storage size, consulted records, trainable parameters, and elapsed time describe different properties and should not be collapsed into one efficiency claim.

Deep dive: Knowledge Enhanced Contextual Word Representations

How KnowBert brings WordNet and Wikipedia into contextual word representations, and what its training, evaluations, and limits reveal. · about 42 minutes to read

How Mova uses it

Mova is a small language system written in Rust. Its native understanding proceeds through dependency structure, frames, and a maintained world of the text, supported by explicit knowledge and rules. KnowBert’s relevance is therefore primarily a collection of architectural and experimental ideas. Transferring them need not mean importing neural attention or replacing native explanations with vector similarity.

The status labels below compare proposed correspondences with documented Mova mechanisms. They describe scope, instead of proving that this paper motivated an existing feature. A proposed benefit remains unverified until Mova measures it. In particular, a shared design principle does not make a dictionary index, a runtime interpretation, and admitted knowledge the same kind of evidence.

Idea: Make candidate retrieval a separate stage. Where: Knowledge Bases; KAR, entity linker. Area: lexical semantics and retrieval. Mova: частково є (tools/dictindex/README.md; docs/architecture.md, concept senses). Mova already retrieves attributed occurrences and provides cue-based sense selection. A common candidate record could expose possible concept identifiers, their sources, and the evidence available before interpretation. This would make dictionary coverage distinguishable from contextual selection. The documented mechanisms do not establish a universal linker shared by all readers.

Idea: Keep unresolved alternatives available. Where: KAR, candidate weighting. Area: ambiguity management. Mova: частково є (docs/hybrid-system.md, ambiguous requests; prag/src/frames.rs, alternative connective senses). Mova already preserves ambiguity in specific paths. The paper suggests extending that practice to lexical bindings, allowing later world constraints to reject alternatives. Such an extension would need explicit bounds and reasons; the presence of an alternative connective sense does not establish general reasoning over competing entity interpretations.

Idea: Provide an explicit no-link outcome. Where: Knowledge Bases; KAR, NULL embedding. Area: uncertainty and failure behavior. Mova: вже є (docs/hybrid-system.md, unsupported requests and missing_context; en/src/french_rules.rs, abstention). Mova already records unsupported cases instead of manufacturing an operation or repair. The transferable principle is to preserve that behavior at every knowledge interface. A failed lookup should remain distinguishable from an accepted sense, even when a deterministic fallback would be convenient.

Idea: Check contextual support before using retrieved knowledge. Where: KAR, score thresholding. Area: runtime evidence assessment. Mova: частково є (layers, routing thresholds; tools/dictindex/README.md, reviewed selectors). Mova has thresholds and admission checks in particular components. A further application would test whether an occurrence supports a proposed dictionary interpretation before that interpretation affects a world update. This runtime decision must remain separate from whether the dictionary entry itself was previously admitted.

Idea: Let neighboring mentions influence interpretation. Where: KAR, mention-span attention. Area: discourse and entity resolution. Mova: частково є (coref; world; world/src/knowledge/retention/mice.rs). Mova has shared document state and specialist observations. A rule-based counterpart could compare proposed referents with established participants and events before choosing among senses. Shared state supplies a foundation, but it does not establish that Mova already resolves arbitrary overlapping mentions jointly.

Idea: Return resolved information to the wider passage. Where: KAR, recontextualization. Area: pragmatics and world interpretation. Mova: частково є (docs/architecture.md, frames, global knowledge, and context). Mova already lets knowledge inform interpretation. A more explicit propagation record could show how resolving one participant constrains a later role or reference. The benefit would be inspectable reuse of established information, with every dependency recorded instead of treating a successful lookup as an unexplained global hint.

Idea: Define a stable knowledge extension interface. Where: Introduction; KAR, return projection. Area: software architecture. Mova: вже є (layers, Global, Domain, and Context; docs/hybrid-system.md). Mova already declares responsibilities and interfaces across knowledge, context, and execution. The paper reinforces the value of making a new resource return an observation compatible with an existing consumer. This correspondence concerns interface discipline; automatic composition and separately deployed domain modules remain outside established implementation scope.

Idea: Admit heterogeneous resource structures. Where: Knowledge Bases. Area: knowledge representation. Mova: частково є (onto; compiled global; tools/dictindex/README.md). Mova already works with lexical resources, compiled seeds, and corpus evidence. A common lookup contract could make these resources easier to consult while preserving what each supports. A witnessed sentence, a dictionary gloss, and a typed relation should keep their distinct provenance and inferential status after passing through that contract.

Idea: Combine descriptions with relationships. Where: Experimental Setup, WordNet. Area: lexical knowledge. Mova: частково є (onto, WordNet support; tools/dictindex/README.md, glosses and frames). KnowBert’s early experiments favor including definitions alongside graph vectors. Mova could compare a candidate meaning against its definition, relational neighborhood, and observed grammatical frames as separate evidence channels. The neural perplexity finding motivates this test but supplies no measured result for Mova’s logical reader.

Idea: Consult a limited part of a large dictionary. Where: Knowledge Bases; Intrinsic Evaluation, speed. Area: resource efficiency. Mova: частково є (tools/dictindex/README.md, bounded queries and feature windows). Mova’s index already limits returned examples and statistical proposals. A useful extension would record which entries interpretation actually consulted and whether the imposed limit excluded a needed meaning. This would connect bounded retrieval to coverage measurements without asserting a universal response-time guarantee.

Idea: Score candidate availability before final choice. Where: Knowledge Bases; Intrinsic Evaluation, integrated linking. Area: evaluation. Mova: нове. A proposed evaluation would first check whether an independently reviewed interpretation was present in the candidate set, then examine whether the reader selected it. The novelty label is provisional because existing evidence is incomplete. Why Mova: It would direct repairs towards missing dictionary evidence or toward a selection rule rather than mixing those failures together.

Idea: Keep probability-like weights distinct from explanations. Where: KAR, candidate scoring and weighted embeddings. Area: interpretation and evidence. Mova: частково є (docs/architecture.md, answer justifications; tools/dictindex/README.md, PMI proposals). Mova already distinguishes statistical candidates from accepted definitions. If it adopts weighted sense evidence, those weights should indicate preference rather than become a proof. A native conclusion would still need a supported relation, rule, or source statement explaining why the interpretation was admitted.

Idea: Use occurrence priors as evidence rather than authority. Where: Knowledge Bases; KAR, linking scores. Area: statistics and lexical selection. Mova: частково є (tools/dictindex/README.md, frequencies and source strata). Mova can retrieve frequency information, but the documented index does not establish a general prior-aware sense resolver. A proposed resolver could compare background prevalence with local frame evidence. This could help common interpretations without allowing frequency to erase a well-supported rare use.

Idea: Handle multiword mentions as meaningful units. Where: KAR, mention-span representations. Area: lexical units and syntax. Mova: частково є (prag, idiomatic interpretation; coref; concept codes in docs/architecture.md). Mova already represents some expressions beyond isolated words. The transferable proposal is a shared span record connecting the exact text boundaries with a possible concept. This could prevent a multiword name or technical expression from losing its identity between parsing and knowledge lookup.

Idea: Detect competition between overlapping spans. Where: KAR, entity-linker context exchange. Area: segmentation and interpretation. Mova: нове. A bounded candidate procedure could make overlapping dictionary matches explicit, then compare their compatibility with the dependency structure and surrounding world. No general implementation is established by the available evidence. Why Mova: It could reduce cases where independently plausible lexical matches produce incompatible bindings for the same words.

Idea: Hide auxiliary clues when hiding a target. Where: Training Procedure, candidate corruption. Area: assessment integrity. Mova: частково є (tools/dictindex/README.md, assessment exclusions; tools/enrich/README.md). Mova already protects school assessment material from specified training and indexing paths. The paper suggests auditing derived graph fields and dictionary annotations as additional channels. Removing a target from the question text is insufficient if a prepared observation still exposes its identity.

Idea: Check overlap across resource boundaries. Where: Experimental Setup, WordNet supervision. Area: data processing. Mova: частково є (tools/dictindex/README.md, exact school-field checks and source restrictions). Mova already excludes specified assessment material from its evidence index. A broader audit could compare dictionary examples and corpus witnesses with evaluation instances, retaining exact exclusion reasons. This is a proposal for additional coverage, not a claim that existing source classification already detects every shared example.

Idea: Freeze source knowledge during a reader comparison. Where: Training Procedure, frozen entity vectors. Area: experimental control. Mova: вже є (tools/dictindex/README.md, immutable source versions and index epochs). Mova already refuses silent changes to indexed source identities. The paper’s separation between fixed resource representations and an adapting reader suggests applying the same discipline to evaluation: compare contextual rules against an unchanged dictionary snapshot so that source drift cannot explain the observed difference.

Idea: Introduce a component before adapting the whole system. Where: Training Procedure. Area: incremental development. Mova: частково є (tools/enrich/README.md, preparation, review, and staging; docs/architecture.md, gated learning). Mova already separates proposed material from admitted learning. A new reader component could similarly pass local checks before evaluation with all consumers. KnowBert’s gradient-based explanation does not establish a universal ordering for symbolic modules, but it motivates controlling integration stages.

Idea: Separate knowledge acquisition from knowledge use. Where: Training Procedure, embedding preparation and later adaptation. Area: learning architecture. Mova: вже є (docs/hybrid-system.md, distinct revision, graph import, and training operations). Mova already distinguishes a receipt or review note from a change to its understanding. The paper reinforces the usefulness of holding those stages apart: information can be available to a reader without every consultation becoming a new learning event.

Idea: Assess local decisions and consumer outcomes independently. Where: Intrinsic Evaluation; Downstream Tasks. Area: evaluation design. Mova: вже є (docs/architecture.md, parser, reader, and school measurements). Mova already measures different levels of its pipeline. KnowBert suggests maintaining this separation when adding dictionary knowledge: better sense selection deserves its own report, while school or story improvements require additional evidence. A local improvement should not stand in for an application measurement.

Idea: Match ordinary training data when comparing architectures. Where: Intrinsic Evaluation, perplexity. Area: experimental control. Mova: частково є (tools/enrich/README.md, before-and-after comparison on identical questions; README measurement principles). Mova already emphasizes controlled comparisons. The paper adds a specific control: adapt the baseline to the same prepared text. A Mova experiment should likewise distinguish a new interpretation mechanism from a benefit caused by altered corpus preparation or additional examples.

Idea: Diagnose annotation-policy mismatch. Where: Intrinsic Evaluation, Wikipedia linking discussion. Area: annotation and benchmarks. Mova: частково є (peta/tools/treeagree/README.md, explicit conventions; tools/dictindex/README.md, provenance classification). Mova already encounters source-specific syntactic and lexical conventions. A diagnostic report could distinguish a genuinely wrong observation from one outside a benchmark’s labeled scope. Such a report must inspect examples; annotation differences cannot automatically excuse a lower score.

Idea: Declare test-time assistance. Where: Experimental Setup, WordNet; Intrinsic Evaluation, WSD. Area: evaluation conditions. Mova: частково є (world/src/knowledge/retention/fastread.rs, fresh-text and prepared-graph measurements). Mova already separates some assisted and unassisted reading conditions. The paper’s gold lemma and part-of-speech restrictions suggest documenting analogous assistance whenever corrected parses, prepared boundaries, or retained observations are supplied. Those conditions define what a result establishes.

Idea: Distinguish repeatability from training sensitivity. Where: Supplemental Material, task fine-tuning. Area: statistics and reproducibility. Mova: частково є (README deterministic repetition; learned parser parameters in docs/architecture.md). Mova checks that repeated execution agrees. Where training or optional neural components are involved, it could separately examine sensitivity to training initialization or parameter choice. Identical inference runs demonstrate repeatability, while variation among trained instances concerns a different source of uncertainty.

Idea: Report development selection separately from test evidence. Where: Supplemental Material, task fine-tuning. Area: evaluation reporting. Mova: вже є (README held-out measurement principles; docs/architecture.md, release assessment boundaries). Mova already reserves test evidence for declared assessment use. KnowBert’s development means, strongest restarts, and test comparisons illustrate why reports should label each statistic precisely. A favorable development selection is useful operational information but is not another independent test result.

Idea: Audit early proxy objectives against final usefulness. Where: Supplemental Material, pretraining tuning. Area: optimization and evaluation. Mova: частково є (docs/architecture.md, regression-gated changes; tools/enrich/README.md, improvement limits). KnowBert selects partial training configurations using perplexity before application evaluation. Mova could record which cheap diagnostic approved a proposed rule and later check whether its consumers benefited. More frames or a better local score should remain a hypothesis about usefulness until assessed.

Idea: Profile actual knowledge access. Where: Intrinsic Evaluation, speed. Area: systems measurement. Mova: частково є (tools/jobs; tools/twin; tools/dictindex/README.md, measured query scope). Mova already records resource behavior in particular tools. Adding consulted-record counts and decoded payload sizes could explain why a dictionary request is expensive. This would preserve the distinction between stored capacity, retrieval work, and interpretation cost instead of attributing all latency to dictionary size.

Idea: Preserve a direct path through an extension. Where: KAR, residual connection. Area: robust integration. Mova: частково є (docs/hybrid-system.md, bounded capabilities and explicit failure behavior). A logical counterpart could retain the original parse and world observation alongside a knowledge-assisted proposal, making their disagreement reviewable. The documented system preserves diagnostic results, but it does not establish this exact dual-path interpretation mechanism. Any fallback policy would need to prevent inconsistent conclusions from being silently combined.

Idea: Distinguish resource compatibility from shared meaning. Where: Knowledge Bases; KAR, vector alignment. Area: interface semantics. Mova: частково є (docs/groupants.md as described in the hybrid-system contract; layers). Mova already requires declared observations and compatibility boundaries. A shared identifier format or vector dimension does not establish that two resources encode equivalent concepts. Dictionary integration could therefore require an explicit correspondence record before one source’s observation substitutes for another’s.

Idea: Keep factual recovery separate from justified reasoning. Where: Intrinsic Evaluation, factual recall. Area: reasoning. Mova: вже є (docs/hybrid-system.md, evidence categories; README world answers and reasons). Mova already distinguishes receipts, proofs, and knowledge. A completion probe could test whether it retrieves a fact, while another evaluation checks whether its conclusion follows from an identified world relation. The paper’s factual ranking results motivate the former without satisfying the latter.

Idea: Test knowledge sources independently before composing them. Where: Experimental Setup; Intrinsic Evaluation. Area: integration experiments. Mova: частково є (docs/architecture.md, domain routing and regression gates). Mova could compare a dictionary-only reader, a graph-assisted reader, and their admitted combination on identical questions. Existing modular responsibilities support this design, but automatic general composition remains direction. Independent source checks would make an interaction failure easier to locate.

Idea: Preserve negative integration findings. Where: Experimental Setup, early Wikidata-derived vectors. Area: research process. Mova: вже є (docs/architecture.md, self-play journal; README retraining principles). Mova already retains unsuccessful experiments. KnowBert’s unsuccessful early graph-vector alternative shows why those records matter: a plausible source of knowledge can fail to improve a particular integration. Recording that outcome helps prevent later work from treating an attractive representation as an established benefit.

Idea: Extend into a domain through a bounded trial. Where: Introduction; Conclusion. Area: domain knowledge. Mova: частково є (layers, domain interfaces; docs/architecture.md, Direction). Mova already has specific domain components and declared routing. A new specialist dictionary could be tested for supported questions, abstentions, and regressions before broader integration. KnowBert proposes domain-specific resources as future work; it supplies motivation for such a trial rather than evidence of successful unrestricted transfer.

The problem and its context

Distributional evidence does not identify every referent

The paper belongs to the development of contextual language representations: representations whose values depend on the passage being processed. Its starting point is the substantial progress associated with systems such as BERT and ELMo. These systems learn from large text collections through prediction objectives that do not require a human to label every sentence.

The authors contrast this with earlier approaches to word embeddings. Work represented by word2vec and GloVe concentrated on lexical vectors learned through prediction or corpus statistics. Context-sensitive approaches make the surrounding passage part of the representation process. This helps distinguish uses that a single lexical vector would have to summarize together.

Nevertheless, contextual variation is not identical to explicit reference. A representation can encode that a passage concerns music without identifying a particular performer. It can capture semantic similarity without selecting an entry in a lexical resource. It can also support fluent prediction while failing to recover a fact that a knowledge collection records directly.

The authors connect these weaknesses to the indirect nature of learning facts from text. Some commonsense information is rarely stated because writers assume it. Other information depends on relationships distributed across a passage. A prediction objective can learn from these patterns, but it does not automatically create an explicit connection between a mention and a persistent entity identifier.

External knowledge provides another source of evidence. Human-curated resources distinguish entries, record relationships, and supply descriptions that may complement the training corpus. The question is how to make this information participate in contextual processing without rebuilding the architecture around every application.

Knowledge is more than a graph format

A conventional knowledge graph represents entities connected through relations. The related-work discussion describes embedding methods that assign scores to graph triples. Distance-oriented methods include the tradition represented by TransE. Other approaches use similarity-based scoring, including ComplEx and the family to which the paper assigns TuckER.

The authors also describe representations learned from entity descriptions, textual contexts, or combinations of textual and relational information. Their integration mechanism does not require choosing one universally correct embedding procedure. Instead, it accepts vectors prepared through different procedures, provided the entities can be proposed as interpretations of text.

That flexibility is central to the experimental design. Wikipedia pages form the entity inventory for one resource, but their vectors are learned from descriptions rather than page-to-page graph relations. WordNet receives a more elaborate preparation involving lexical entries, synsets, relations, and definitions.

A synset groups lexical expressions around a sense. This makes WordNet useful for word-sense disambiguation, where a system must determine which meaning is expressed in a particular occurrence. Wikipedia linking concerns another kind of ambiguity: which identifiable page-associated entity a mention refers to. KnowBert handles both through a common linking framework while allowing their supervision and representations to differ.

Previous integration often targeted a narrower purpose

The paper identifies earlier systems that introduce knowledge into generative language processing or maintain entity-centered representations. In the authors’ account, some such approaches involve latent decisions that require extensive annotation or computational treatment of unobserved alternatives. KnowBert seeks a training arrangement that can exploit abundant ordinary text alongside more limited linking annotations.

Another line of earlier work incorporates knowledge into architectures built for individual applications. Such systems can benefit from external resources, but their integration is closely coupled to a particular task and its labels. The authors instead want representations that transfer across several applications after ordinary task adaptation.

This distinction does not eliminate task-specific learning. Relation extraction still requires a classifier for relations; entity typing still requires predictions over types. What becomes reusable is the contextual representation that these classifiers receive. The knowledge connection is trained before the final application-specific stage.

The interface is the main design problem

Introducing external vectors creates several connected difficulties. The text is represented as word pieces, whereas an entity mention may occupy multiple pieces. The entity inventory may contain many plausible interpretations of the same expression. Its vectors may have a different dimensionality and learning history from the contextual vectors. Finally, information attached to a mention must become useful elsewhere in the sentence.

KAR addresses these difficulties through an intermediate representation of mention spans. A span is a contiguous stretch of input positions proposed as a possible reference. It provides a meeting point between token-level processing and entity-level knowledge.

The resulting architecture is neither a simple dictionary attachment nor a final-stage fact lookup. Context influences which entity information is retrieved, and the retrieved information influences subsequent contextual processing. The experiments investigate whether that interaction improves the representations enough to benefit several evaluations.

The method, step by step

Follow the information before following the equations

The architecture begins with BERT processing the input normally up to an intermediate layer. Candidate selection identifies possible mentions and their interpretations. KAR summarizes each mention, allows mentions to exchange contextual information, scores candidate entities, and retrieves a weighted entity representation.

The retrieved vectors are added to the span representations. A separate attention operation then lets the word-piece positions consult these enriched spans. The result returns to BERT’s original representation space and continues through the remaining layers.

The route from text to knowledge-enriched context

The steps in order.

The route from text to knowledge-enriched contextStep 1: Encode the passage with lower BERT layers1. Encode the passage with lower BERT layersStep 2: Propose mention boundaries and entity candidates2. Propose mention boundaries and entity candidatesStep 3: Summarize spans and exchange mention information3. Summarize spans and exchange mention informationStep 4: Rank candidates using context and priors4. Rank candidates using context and priorsStep 5: Add retrieved vectors to span representations5. Add retrieved vectors to span representationsStep 6: Connect word pieces with enriched spans6. Connect word pieces with enriched spansStep 7: Continue through the upper BERT layers7. Continue through the upper BERT layers

The two attention operations have different jobs. Mention-level attention helps decide what the text refers to. Word-to-span attention makes the interpreted references useful to the rest of the text. Keeping those jobs distinct is important for understanding the architecture.

Establish the contextual backbone

The input is a sequence of N WordPiece positions. Subword tokenization allows a written expression to occupy several positions, so mention boundaries must ultimately be compatible with that representation. The paper cites work on subword-based translation in its discussion of these units.

BERT produces L layers of contextual information. At layer i, the matrix Hᵢ has N rows and D features per row:

Hᵢ = Fᵢ(Hᵢ₋₁)

Hᵢ denotes the current layer’s representations, Hᵢ₋₁ the preceding representations, and Fᵢ the layer transformation. N counts word-piece positions, D is the contextual feature dimension, and L counts the layers through which the sequence passes.

The paper expresses the layer transformation through attention followed by a positionwise network:

Fᵢ(Hᵢ₋₁) = MLP(MultiHeadAttn(Hᵢ₋₁, Hᵢ₋₁, Hᵢ₋₁))

MLP is a multilayer perceptron applied to position representations. MultiHeadAttn is the attention operation, with arguments corresponding to queries, keys, and values. Here all arguments use Hᵢ₋₁, so the operation is self-attention over the sequence. This follows the Transformer architecture associated with Attention Is All You Need.

The existing training objective remains available:

ℒ_BERT = ℒ_NSP + ℒ_MLM

ℒ_BERT is the combined loss. ℒ_NSP concerns whether one input sentence follows another. ℒ_MLM concerns predicting word pieces hidden or otherwise corrupted during training. Maintaining these objectives lets ordinary text provide a learning signal for the added knowledge machinery.

Specify the resource contract

The resource contains K identifiable entries. Each entity eₖ has an embedding vector of dimension E. Entity types are not required, nor is a particular graph structure. The essential additional requirement is a candidate selector that connects stretches of text with plausible entries.

The candidate collection can be written as:

𝒞 = {⟨(startₘ, endₘ), (eₘ,₁, …, eₘ,Mₘ)⟩ | m ∈ 1 … C}

𝒞 is the collection returned by selection. C counts proposed mention spans. For mention m, startₘ and endₘ specify its boundaries, while Mₘ counts its candidate entities. Each eₘ,ₖ identifies an entry drawn from the resource’s K entities.

The selector can also return a prior for each candidate. Such a prior summarizes evidence available before the current contextual decision, for instance dictionary statistics about how frequently an expression refers to an entry. The prior becomes an input to learned scoring rather than a mandatory interpretation.

Selection remains fixed during the reported experiments. The learned linker must work with its output. This is computationally convenient but also restrictive: a later score cannot recover a correct entity absent from the proposed list.

The experiments retain 30 candidates per mention. Selection runs asynchronously on the CPU. Neural scoring consequently depends on a small active subset of the resource, while the complete embedding inventory still requires storage.

Build vectors for proposed mentions

The contextual features and entity vectors need a compatible dimensional space. KAR first projects the BERT representations:

Hᵢᵖʳᵒʲ = HᵢW₁ᵖʳᵒʲ + b₁ᵖʳᵒʲ

Hᵢᵖʳᵒʲ is the projected matrix. W₁ᵖʳᵒʲ is a learned linear transformation from contextual dimension D to entity dimension E. The vector b₁ᵖʳᵒʲ supplies the bias.

For every candidate span, the architecture pools the projected representations of its constituent word pieces. It uses self-attentive pooling associated with earlier work on neural coreference resolution. Rather than giving each constituent an identical contribution, pooling learns how to summarize the span.

The resulting vector sₘ represents mention m in E dimensions. Collecting these vectors produces S, a matrix with C rows. At this point, each proposed mention has a representation derived from the passage, but the resource’s entity information has not yet been added.

Share context among mentions

The linker applies a Transformer block to the mention matrix:

Sᵉ = TransformerBlock(S)

S contains the pooled span vectors. Sᵉ contains their contextualized successors. The superscript e marks the entity-oriented stage of processing instead of a separate entity identifier.

This operation lets each candidate mention use information from other mentions. The authors motivate it through entity co-occurrence and competition among overlapping spans. Interpretation can therefore depend on a wider configuration of references instead of only the words inside a candidate boundary.

The mention-processing component uses four attention heads and a feed-forward hidden dimension of 1024. The authors describe it as substantially smaller than the BERT layers. Early experiments favored including it for linking, although the paper does not give a complete numerical removal study across the final application evaluations.

Combine contextual similarity with prior evidence

Each candidate receives a scalar score:

ψₘₖ = MLP(pₘₖ, sₘᵉ · eₘₖ)

ψₘₖ scores candidate k for mention m. The candidate prior is pₘₖ. The mention vector after contextual exchange is sₘᵉ, and eₘₖ is the candidate’s embedding. The dot indicates an inner product. The MLP combines that similarity with the prior.

The scorer uses a two-layer network with 100 hidden dimensions. This permits a learned relationship between prior popularity and contextual fit. A common interpretation can remain a useful default tendency without preventing contextual evidence from favoring another entry.

Available linking labels supply an additional loss. The WordNet setup uses a normalized likelihood:

ℒ_EL = −Σₘ log(exp(ψₘg) / Σₖ exp(ψₘₖ))

ℒ_EL denotes linking loss. The index g identifies the annotated candidate for mention m. The numerator uses its score, and the denominator ranges over candidate scores for that mention. Training penalizes assigning insufficient normalized support to the annotated entity.

The Wikipedia setup uses a margin-based alternative:

ℒ_EL = max(0, γ − ψₘg) + Σₑₘₖ≠ₑₘg max(0, γ + ψₘₖ)

γ is the margin. The first term penalizes an annotated entity score below the desired margin. The remaining terms penalize incorrect candidates whose scores are too high. This expression gives the contribution associated with a mention; the relevant training examples provide the learning signal.

Using different losses demonstrates an important aspect of the framework. The common architecture does not require identical supervision conventions for every knowledge resource.

Retrieve supported information without forcing one winner

The architecture discards candidates whose scores fall below δ and normalizes those remaining:

ψ̃ₘₖ = exp(ψₘₖ) / Σⱼ:ψₘⱼ≥δ exp(ψₘⱼ) when ψₘₖ ≥ δ; otherwise ψ̃ₘₖ = 0

δ is the fixed acceptance threshold. ψ̃ₘₖ is the resulting weight. The denominator ranges over candidates j whose scores meet the threshold. Candidates below it contribute no weight.

The retrieved entity vector is then:

ẽₘ = Σₖ ψ̃ₘₖeₘₖ

ẽₘ is the entity information assembled for mention m. Each candidate vector eₘₖ contributes according to ψ̃ₘₖ. This is a continuous mixture, so retrieval need not commit immediately to one discrete interpretation.

When every candidate falls below the threshold, the architecture uses a special NULL vector. In the Wikipedia configuration, candidate lists also include a NULL entity to help reject proposed spans that should not count as links.

The retrieved vector enriches the contextual span:

sₘ′ᵉ = sₘᵉ + ẽₘ

sₘ′ᵉ is the updated mention representation. It contains the contextual span vector sₘᵉ together with retrieved entity information ẽₘ. The matrix S′ᵉ stacks these updated vectors for subsequent access by word pieces.

Make the enriched mentions useful beyond their boundaries

KAR next performs attention with word-piece queries and enriched-span keys and values:

Hᵢ′ᵖʳᵒʲ = MLP(MultiHeadAttn(Hᵢᵖʳᵒʲ, S′ᵉ, S′ᵉ))

Hᵢ′ᵖʳᵒʲ is the resulting projected contextual matrix. Hᵢᵖʳᵒʲ supplies queries, while S′ᵉ supplies both keys and values. The MLP processes the attention output at each word-piece position.

This arrangement allows a word piece to consult any enriched mention within the context. External information is therefore not confined to the original mention’s constituent positions. Once again, the recontextualization component employs four attention heads, while its feed-forward network has 1024 hidden units.

The result returns to the original contextual dimension:

Hᵢ′ = Hᵢ′ᵖʳᵒʲW₂ᵖʳᵒʲ + b₂ᵖʳᵒʲ + Hᵢ

W₂ᵖʳᵒʲ maps the enriched projected features back to dimension D. The bias is b₂ᵖʳᵒʲ. Adding Hᵢ provides a residual route from the original contextual representation. Hᵢ′ becomes the input to the remaining BERT layers.

The authors describe initializing the return projection from an inverse of the initial projection to encourage alignment. Their purpose is to connect separately prepared representation spaces. The account does not establish that the projection is information-preserving; the residual connection also matters because it retains access to the earlier contextual features.

Prepare Wikipedia and WordNet

Wikipedia uses candidate machinery and embeddings adopted from Ganea and Hofmann. CrossWikis and YAGO dictionaries contribute candidate identities and priors. The vectors have 300 dimensions and represent Wikipedia page titles. Their preparation uses a skip-gram-like objective over descriptions, without requiring an explicit relational graph between the page entries.

The available inventory contains roughly 470K entities. AIDA-CoNLL supplies annotated links using its standard partitions. Its labels cover selected named-entity categories, whereas the candidate selector can also propose common-noun references. The NULL option helps distinguish real annotated links from excessive proposals.

WordNet preparation begins with WordNet 3.0. The authors extract synsets, lemmas, and relations, remove selected inverse relationships, and retain 28 relation types from that extraction. A special lemma_in_synset relation connects lexical entries with synsets.

TuckER supplies graph-derived vectors with 200 dimensions. A separate sentence-representation method encodes synset definitions into 2048-dimensional vectors. Concatenating the two produces 2248-dimensional representations, held fixed before a learned projection reduces them to 200 dimensions for KAR.

WordNet linking supervision combines SemCor with example usages from WordNet. All WiC instances are excluded from those usages because the resources share underlying material. Training does not supply gold lemmas or part-of-speech tags. Standard WSD evaluation, however, narrows candidates using both gold lemma and gold part-of-speech information.

Adapt the architecture in stages

The authors first prepare entity vectors and freeze them. Where linking annotations exist, they pretrain the resource-specific linker while keeping the surrounding architecture fixed. Broader adaptation then uses:

ℒ_KB = ℒ_BERT + ℒ_EL

ℒ_KB is the combined objective. ℒ_BERT supplies the existing sentence and masked-word objectives, and ℒ_EL supplies annotated linking feedback. Updates use batches drawn from either ordinary text or linking supervision rather than requiring every text instance to have entity labels.

The ordinary corpus combines Wikipedia with the Books Corpus, whose source the paper associates with Aligning Books and Movies. Preparation follows BERT except for a strong preference for shorter sequences of 128 word pieces.

The individual-resource configurations insert knowledge between layers 10 and 11 in the 12-layer backbone. The combined configuration places Wikipedia at that location and WordNet between layers 11 and 12. Resources are added from lower to higher positions. The authors argue that this reduces disruption because layers above a newly initialized component experience a stronger early change.

Learning rates also vary by location. Newly introduced components receive α, layers below receive 0.25 α, and layers above receive 0.5 α. The procedure gives fresh parameters more freedom while moving established contextual processing more cautiously.

Finally, training corrupts the knowledge channel when mention spans overlap masked word pieces. The paper uses 80% masked-entity substitution, 10% random candidate substitution, and 10% unchanged candidates for this treatment. Otherwise, candidate identities could reveal lexical material that the text objective intended to hide.

Experiments and results

Separate representation quality from application performance

The authors evaluate resource-specific configurations and a combined Wikipedia–WordNet configuration. The intrinsic measurements concern masked-word prediction, factual completion, execution cost, and the integrated linkers. Application experiments concentrate on the combined configuration because of its overall intrinsic performance.

The comparisons include the smaller and larger BERT architectures, established task systems, and contemporary knowledge-enhancement approaches. ERNIE connects mentions to Wikidata through TAGME and introduces retrieved entity information through further adaptation. Matching the Blanks uses entity-linked text for relation-oriented pretraining.

These alternatives ask related but different questions. A comparison with the larger BERT architecture tests whether knowledge integration can compete with additional backbone capacity. ERNIE provides a contemporary knowledge-aware comparison. Matching the Blanks supplies an alternative whose pretraining is more directly concerned with relations.

Masked-word prediction and factual completion

Before measuring perplexity, the authors adapt the BERT comparisons to their prepared corpus. This control matters because corpus preparation differs from the original BERT training conditions. Without it, a result might partly reflect additional exposure to differently prepared text instead of the knowledge interface.

The paper reports lower masked-word perplexity for the knowledge-enhanced configurations, including favorable comparison with the larger BERT architecture. Perplexity here measures the prediction task used in evaluation. It is not a measure of factual correctness for every output, nor a direct count of facts acquired.

Factual probing uses Wikidata tuples. The authors select 90K tuples from 17 relations and express them as natural-language statements. Each statement yields separate subject-masking and object-masking cases. A relation such as companyFoundedBy thereby becomes a language-completion test.

The metric is mean reciprocal rank, abbreviated MRR, computed over masked word pieces. It rewards placing the correct target high in the ranked predictions. The paper reports improved factual recall compared with both BERT sizes, with the combined resource configuration stronger still.

The scope of that finding is important. It shows better recovery through the masked-prediction interface. It does not establish that the system retrieved an explicit tuple at inference time or that the complete entity identity was validated as a structured answer.

Execution cost under the reported workload

The timing experiment measures forward and backward execution on a TITAN Xp with 12 GB RAM. Its batch consists of 32 pairs of sentences, totaling 80 word pieces in length. Memory limitations require accumulation across smaller batches.

The prose reports overheads of 8% and 32% for knowledge-enhanced configurations relative to the smaller BERT reference. It also states that KnowBert is substantially faster than the larger BERT comparison. These measurements support the claim that the added mechanism need not impose a cost proportional to the entire stored entity collection.

The paper explains this through sparse activation. For a typical input of 25 tokens, roughly 2M entity-embedding parameters participate. The contrast with the larger BERT architecture concerns its use of most of its 336M parameters on an input.

Those quantities describe different kinds of capacity. Entity vectors are frozen and accessed selectively; the backbone’s contextual layers participate much more broadly. A large stored inventory can therefore coexist with a comparatively modest active computation, while still requiring memory for the inventory.

Diagnostic linking evaluations

WordNet linking is measured as fine-grained WSD F₁ using the ALL collection. This combines the specified SemEval and Senseval evaluations. The comparison follows standard WSD conditions by restricting candidates using gold lexical information.

The ELMo and BERT baselines use nearest-neighbor procedures trained on SemCor. KnowBert’s integrated linker is evaluated without another round of task-specific adaptation. The authors describe it as competitive, and the combined-resource configuration can match the WordNet-focused version on this diagnostic.

Wikipedia linking uses AIDA-A and AIDA-B. Its measure is micro-averaged F₁ under strong matching, so correct linking requires agreement under the benchmark’s matching conditions. KnowBert remains below the strongest specialized linking approach discussed, although it performs favorably against established systems including AIDA and DBpedia Spotlight.

The authors suggest that annotation scope contributes to this outcome. AIDA labels selected named entities, while the candidate mechanism also proposes common nouns that may supply useful information for representation learning. This is a possible explanation for the tradeoff, rather than a demonstrated decomposition of the linking errors.

Relation extraction with supplied arguments

Information extraction includes identifying relationships expressed between entities. Here the input already marks the subject and object. The system predicts the relevant relation or the absence of a target relation.

KnowBert inserts special markers around both argument spans. Their opening-marker representations are concatenated for classification. TACRED additionally uses special tokens indicating argument types, appended to the input.

TACRED provides 106K sentences and 41 relation classes, together with the no-relation category. The paper reports a maximum development micro F₁ of 71.7%. On the test comparison, KnowBert exceeds ERNIE by 3.5% and the larger BERT comparison by 1.4%. It also matches the performance attributed to relation-specific Matching the Blanks pretraining.

The second relation dataset is SemEval 2010 Task 8. It contains 10K sentences with untyped argument spans and 18 relation classes, besides no relation. Because the task lacks a standard development partition, the authors sample 500 examples from the 8000 training instances.

Test F₁ falls between the entity-aware system discussed by Wang and colleagues and Matching the Blanks. Thus, the application evidence supports competitive transfer across both relation datasets without establishing a universal advantage over specialized alternatives.

The appendix also reports development variability. The following chart compares the selected configuration’s mean with its strongest restart. It describes aggregation within the fine-tuning experiment, not two independently designed architectures.

SemEval 2010 Task 8 development F1 reporting views

The strongest individual restart scores above the mean across restarts.

SemEval 2010 Task 8 development F1 reporting viewsKnowBert selected configuration, restart mean: 89.1KnowBert selected configuration, restartmean89.1KnowBert selected configuration, best restart (this paper): 90.5KnowBert selected configuration, bestrestart (this paper)90.5
The numbers
System or settingF1
KnowBert selected configuration, restart mean89.1
KnowBert selected configuration, best restart (this paper)90.5

The reported variation accompanying the mean is ± 0.77. These development values should not be substituted for the test ranking. Their purpose is to explain selection and variability, including the distinction between a typical selected-setting result and the most favorable observed restart.

Meaning comparison and entity typing

WiC tests whether a word with the same lemma expresses the same sense in two sentences. Its 7.5K annotated pairs define a binary classification problem. KnowBert processes the sentences together with a separator and adapts the classification-token representation.

The paper reports a leading result among its comparisons, an improvement of 1.4% over the larger BERT reference, and a 13.3% reduction in the relative gap to the stated human performance of 80%. Its maximum development accuracy is 72.6.

These measurements concern meaning agreement for the dataset’s paired examples. They complement WSD because the task asks whether senses match rather than requiring the system to output a particular lexical inventory identifier. The authors also find parameter averaging useful for reducing development variation on the small dataset.

Entity typing uses a broad-category protocol adopted for comparison with ERNIE. The target span receives special boundary markers, and classification uses the opening marker’s representation. The evaluation concerns nine general categories rather than the full fine-grained typing problem.

The paper reports a test advantage of 0.6% F₁ over ERNIE and another reported baseline advantage of 2.5%. For development selection, its mean F₁ is 75.5 with variation ± 0.38 across five seeds; the maximum is 76.0. Development selection statistics and test comparisons answer different questions and should remain separately labeled.

How the task adaptation was selected

The appendix describes a shared optimization procedure using Adam, linear warmup over the first 10% of updates, and subsequent linear decay. Gradient norms above 1.0 are clipped, non-bias parameters receive weight decay of 0.01, and the task batch size is 32.

Most task settings use five random restarts. TACRED instead uses a single seed. Early stopping relies on development data. As a result, the evidence about variability is not equally extensive for every task.

Learning-rate searches and epoch ranges vary by dataset. WiC and entity typing also consider parameter averaging. These details matter because a reported application score reflects both the pretrained representation and the procedure used to select its task-specific adaptation.

What the ablations show

The paper offers design comparisons, not a complete component audit

The paper includes resource variants, diagnostic evaluations, and observations from early experiments. It does not supply a comprehensive numerical removal study for every part of KAR. Its analyses therefore help explain the chosen design without establishing the individual contribution of every operation to every downstream gain.

The distinction matters because the final system changes several things together: it introduces external representations, linking supervision, new attention operations, and a staged adaptation procedure. A favorable end-to-end comparison demonstrates the value of that package under the tested conditions. It does not automatically distribute the gain among its ingredients.

Resource combinations support compatibility

The Wikipedia-focused, WordNet-focused, and combined configurations establish that the framework can accommodate substantially different sources. Their intrinsic behavior motivates concentrating application evaluation on the combination.

This supports a compatibility claim: the two resources can coexist usefully in the tested architecture. It does not reveal which source explains a particular TACRED or WiC improvement. The downstream focus on the combination leaves those attribution questions open.

The preparations also differ in more than source identity. Wikipedia vectors come from descriptions; WordNet vectors combine descriptions with relational structure. Their linking annotations and losses differ as well. These are comparisons between complete resource configurations, not a single-variable test of whether graph structure helps.

Definitions complement the selected graph representation

Early WordNet experiments favor combining gloss information with graph embeddings over graph embeddings alone, according to the authors’ perplexity observations. This is the reason for concatenating TuckER representations with definition representations.

The finding is conceptually useful. Relations indicate how entries connect, while definitions can express characteristics not adequately captured by the selected relational representation. Combining them gives the integration access to two descriptions of lexical meaning.

The result is nevertheless narrower than a general principle that descriptions always improve graph-based systems. The paper gives no numerical account of this early comparison in its prose, and it does not show the corresponding effect separately for every application. Resource quality and embedding preparation remain part of the explanation.

The Wikipedia experiments supply a negative counterpart. Early vectors derived from Wikidata relations did not improve results. This cautions against equating more explicit structure with guaranteed benefit: a representation can be plausible in isolation yet fail to cooperate with the surrounding language architecture.

Insertion depth and contextual exchange influenced the design

The authors report worse perplexity in earlier experiments placing the knowledge component lower in the network. Their final locations near the upper layers reflect that observation.

The result suggests that insertion position matters, but it does not establish an optimal depth for all resources. A different resource, adaptation budget, or surrounding architecture could change the tradeoff. The staged training procedure and the insertion location also interact, so the early comparison cannot isolate every reason for the observed difference.

Mention-level attention receives a similar form of support. The authors state that early experiments found improved linking when mentions exchanged contextual information. That is consistent with the motivation that references constrain one another.

However, the paper does not report a full downstream removal comparison for that attention stage. Its existence is empirically motivated, while its precise contribution to relation extraction, typing, and factual completion remains less directly measured.

Diagnostic rankings expose the training tradeoff

The Wikipedia linker’s position below the strongest specialized system illustrates the difference between a component’s isolated task and its role in representation learning. KnowBert must use linking supervision while preserving broad usefulness for language prediction.

The authors’ proposed annotation explanation is credible as a hypothesis because the resource selector and benchmark do not cover exactly the same kinds of mentions. Yet a causal explanation would require more direct inspection or controlled comparison. The reported score alone cannot determine whether annotation policy, optimization, candidate quality, or another factor is responsible.

The WordNet diagnostic adds another condition: gold lemmas and part-of-speech tags restrict its test candidates. That makes it comparable with standard WSD evaluation but changes the problem relative to unrestricted linking from text. Its result demonstrates useful sense selection under the stated assistance.

Data controls rule out particular shortcuts

Adapting the BERT baselines to the same prepared corpus strengthens the perplexity comparison. It addresses one identifiable alternative explanation: differences in text exposure or preparation.

Corrupting entity candidates when corresponding words are masked addresses another shortcut. Without it, the candidate channel could expose lexical identities that the primary input hides. The intervention makes the masked-prediction task a more meaningful test of contextual learning.

Removing WiC examples from WordNet usages controls cross-resource overlap. The relevant boundary is not merely between named datasets; shared underlying examples can cross that boundary through a lexical resource. This is an important methodological contribution even though it is not an architectural ablation.

These controls address specific risks. They do not demonstrate that every possible form of overlap or indirect memorization has been eliminated. Their strength comes from identifying concrete channels and treating them explicitly.

Limitations

What the authors acknowledge

The authors describe substantial limits on pretraining exploration. Computational cost permits little hyper-parameter tuning, and the full configuration receives no such search. Instead, partial runs are monitored through early perplexity and underperforming configurations are stopped.

The reported system is therefore a successful selected design, not a demonstrated optimum. Its resource preparation, insertion locations, and training settings are supported by experiments, but the search is not broad enough to establish that alternatives cannot do better.

Perplexity is still decreasing at the end of training. The authors interpret this as suggesting that further training could help. That observation leaves the endpoint uncertain and also complicates comparisons of attainable quality under different training budgets.

The authors acknowledge that their Wikipedia linker trails the strongest dedicated approach. They suggest a tradeoff between selective annotation and general representation learning, but they do not resolve that tradeoff through a targeted experiment.

Finally, specialist resources remain future work. The architecture is presented as applicable to additional knowledge collections, including domain-oriented ones, but the demonstrated integrations concern WordNet and the selected Wikipedia inventory.

Candidate coverage is an architectural constraint

A careful reader should distinguish efficient candidate scoring from unconstrained access to knowledge. The linker sees only the entries selected for a proposed mention. If the right interpretation is absent, subsequent attention cannot select it through this interface.

The fixed cap of 30 supports predictable active computation but may exclude useful candidates. The paper does not establish that the cap preserves adequate coverage for every kind of input or every resource.

Candidate priors create another dependence on resource preparation. They can help resolve familiar mentions, yet they can also favor common interpretations. Contextual scoring can counter this tendency, but no guarantee ensures that a rare interpretation survives selection and receives appropriate support.

NULL handling reduces forced links without guaranteeing reliable uncertainty. A wrong candidate can exceed the threshold, while a useful one can fall below it. The mechanism exposes an abstention route; it does not certify all accepted links.

Entity vectors do not supply explicit derivations

KnowBert adds information through compressed continuous representations. It then combines that information with contextual features and further transforms the result. A correct final prediction need not identify which resource entry or textual association caused it.

This is a limitation inferred from the mechanism and evaluation. The factual probe measures prediction ranks, not a derivation assembled from named premises. It cannot establish that every successful answer is supported by an explicit relation in the external resource.

Likewise, attention weights do not constitute proofs of semantic dependence. They determine how representations interact, but the paper does not show that a large weight reliably identifies the factual reason for an output.

A mixture of candidate vectors also need not describe one coherent entity. It is a computational representation of supported alternatives. Its usefulness for prediction should not be confused with a resolved, inspectable account of reference.

Each benchmark evaluates a restricted problem

The factual probe uses statements generated from Wikidata relationships. It does not establish performance on unrestricted question answering, changing facts, or explanations requiring several linked premises.

Relation extraction receives marked argument spans. TACRED also supplies argument types that the system uses. These conditions omit the difficulty of discovering all relevant mentions and arguments independently. The results concern classification with specified arguments rather than an entire extraction pipeline.

Entity typing uses broad categories chosen for the comparison protocol. It does not demonstrate equally strong performance over every finer distinction in the underlying task.

WSD evaluation supplies gold lexical restrictions. The absence of those labels during training is interesting, but it does not make the evaluation an unassisted reading task. A reader should keep training inputs and test-time assistance separate.

The comparisons leave causal questions open

The final system combines additional parameters, external representations, annotated links, and staged adaptation. The paper demonstrates that the combination works; it does not fully isolate how much each ingredient contributes.

A result above the larger BERT comparison does not establish that explicit knowledge always provides a better use of resources than increasing contextual capacity. The conclusion applies to the particular comparisons and measurements.

The downstream emphasis on the combined resource configuration also leaves source attribution unresolved. Without matched application results for each resource configuration, a gain cannot confidently be assigned to lexical distinctions, named-entity information, or their interaction.

The differing restart procedures limit what can be said about stability. Most tasks use repeated runs, while TACRED uses a single seed. A favorable selected score and robustness across training variation are separate properties.

Sparse access does not remove systems costs

The runtime argument concerns a bounded active candidate set. It does not eliminate storage for all entity embeddings, the cost of constructing candidate dictionaries, or the resources required to prepare the vectors.

The measured workload specifies hardware, batch composition, and sequence length. Different workloads can change how much time is spent on candidate selection, memory access, attention, and the backbone. The experiment supports the reported setting instead of a universal latency claim.

Frozen entity vectors also make updating knowledge a separate engineering concern. The training procedure explains how the prepared inventory is used, but it does not evaluate unrestricted, continuous replacement of entity representations or resource contents.

These limitations do not weaken the central architectural demonstration. They define it: KnowBert makes external entity representations useful within contextual processing, while leaving broader coverage, provenance, updating, and reliability questions open.

What came after

Entity-centered representations continued in several directions

KnowBert is cited by later work on entity representations, knowledge integration, retrieval, and factual evaluation. Those citations establish a connection in the research record. They do not, on their own, establish that every citing system implements KAR or adopts its training procedure.

LUKE places contextual entity representations and entity-aware attention at the center of its stated contribution. It continues the broad question of how entities should participate directly in contextual computation. The thematic relationship is close to KnowBert’s explicit mention representations, although it should not be reduced to an assumption of identical attention operations.

Entities as Experts explicitly brings together entity supervision and selective memory access. This connects with KnowBert’s systems distinction between a large inventory and the much smaller portion activated by an input. The shared research question concerns accessing entity-associated information without dense computation over the entire store.

E-BERT identifies efficient entity embeddings for BERT as its subject. It belongs to the same effort to connect a pretrained contextual architecture with externally identifiable entities. Its bibliographic description does not establish a particular runtime comparison with KnowBert.

CoLAKE concerns contextualized language and knowledge embedding. Its framing continues the integration problem: how representations associated with text and knowledge can be learned or used together. The connection is conceptual without implying that its resource interface matches KnowBert’s.

Knowledge entered through other architectural and data interfaces

REALM makes retrieval-augmented pretraining its organizing subject. It is relevant to the broader issue of accessing information beyond ordinary contextual parameters. KnowBert’s specific retrieved objects are candidate entity vectors; the retrieval framing alone does not establish an equivalent retrieval unit or training mechanism in REALM.

K-Adapter names adapters as the means for introducing knowledge into pretrained processing. This provides another architectural perspective on preserving useful existing representations while adding specialized information. It shares the extension problem with KAR without establishing an identical solution.

TaBERT concerns joint processing of text and tables. Its relationship to the knowledge-enhancement discussion lies in making structured information available to contextual language understanding. Tables, entity inventories, and lexical graphs remain different sources with different interfaces.

Knowledge Graph Based Synthetic Corpus Generation identifies corpus construction as another point of intervention. This places graph-derived information in training material rather than necessarily retrieving entity vectors during contextual processing. The distinction matters because knowledge can influence a system through its data, its architecture, or both.

ERNIE 3.0 frames knowledge-enhanced pretraining as supporting understanding and generation. Its stated scope shows the continuing breadth of that research direction. It should not be confused with the earlier ERNIE comparison in KnowBert’s experiments or treated as evidence about the same implementation.

Lexical and relational understanding remained important tests

Breaking Through the 80% Glass Ceiling explicitly concerns bringing graph information into WSD. This continues a question made concrete by KnowBert’s WordNet integration: whether externally organized lexical knowledge helps distinguish meanings in context. Its title identifies the research direction without supplying a matched comparison against KnowBert.

ERICA emphasizes contrastive learning for entity and relation understanding. It addresses the same broad desire for pretraining that benefits relational applications, through a training emphasis different from KnowBert’s combined language and linking objectives.

Learning from Context or Names? identifies an empirical question particularly relevant to entity-aware relation extraction. Improved performance can reflect useful sentence interpretation, information associated with familiar names, or some interaction between them. KnowBert’s application gains make this distinction important, while its own experiments do not fully separate those possibilities.

TACRED Revisited turns attention to evaluation of a benchmark central to KnowBert’s downstream evidence. Its existence supports treating benchmark design as a continuing research issue. It does not authorize a revised KnowBert score or a claim about particular annotation changes without additional evidence.

Factual recall became part of a wider measurement problem

Measuring and Improving Consistency foregrounds a property different from successful completion of an individual statement. A system can rank one answer favorably while responding inconsistently to related formulations. KnowBert’s factual probe concerns recovery; consistency requires its own evaluation.

Language Models as Knowledge Bases explicitly connects entity representations, storage capacity, and paraphrased queries. These themes revisit boundaries visible in KnowBert: what is represented, how much can be stored, and how the input formulation reaches the relevant information.

Calibrating Factual Knowledge places confidence calibration alongside factual prediction. KnowBert’s internal thresholds and NULL mechanism address candidate handling, but they do not establish that final factual predictions express appropriate confidence.

The broader discussion is also represented by the survey of pretrained NLP approaches, the review of language systems as knowledge bases, and On the Opportunities and Risks of Foundation Models. Their citation of KnowBert places its architecture within an ongoing examination of contextual knowledge, external information, and evaluation.

Across these connections, the paper supplies a concrete design to examine instead of a general guarantee about knowledge. It makes mention detection, contextual disambiguation, selective retrieval, and redistribution of information explicit parts of one architecture. Later research can change any of those interfaces while continuing to ask the question KnowBert makes experimentally tractable: when identifiable external knowledge enters contextual processing, what improves, under which conditions, and how can that improvement be demonstrated?

Cite

Cite as Matthew E. Peters, Mark Neumann, Robert Logan, Roy Schwartz, Vidur Joshi, Sameer Singh and Noah A. Smith. 2019. Knowledge Enhanced Contextual Word Representations. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/d19-1005 · arXiv 1909.04164

@inproceedings{peters2019knowledge,
  title = {{Knowledge Enhanced Contextual Word Representations}},
  author = {Matthew E. Peters, Mark Neumann, Robert Logan, Roy Schwartz, Vidur Joshi, Sameer Singh and Noah A. Smith},
  booktitle = {Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP)},
  year = {2019},
  doi = {10.18653/v1/d19-1005},
  eprint = {1909.04164},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.18653/v1/d19-1005}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/peters-2019-knowledge-enhanced-contextual-word-representations/

References

69 references, from the paper's own bibliography.

  1. Sungjin Ahn, Heeyoul Choi, Tanel Pärnamaa, and Yoshua Bengio. 2017. A neural knowledge language model. arXiv:1608.00318. our card
  2. Christoph Alt, Marc Hübner, and Leonhard Hennig. 2019. Improving relation extraction by pre-trained language representations. In AKBC. OpenAlex ↗ · Scholar ↗
  3. Ivana Balazevic, Carl Allen, and Timothy M. Hospedales. 2019. TuckER: Tensor factorization for knowledge graph completion. In EMNLP. our card
  4. Lisa Bauer, Yicheng Wang, and Mohit Bansal. 2018. Commonsense for generative multi-hop question answering tasks. In EMNLP. our card
  5. Olivier Bodenreider. 2004. The Unified Medical Language System (UMLS): integrating biomedical terminology. Nucleic Acids Research, 32 Database issue:D267–70. OpenAlex ↗ · Scholar ↗
  6. Antoine Bordes, Nicolas Usunier, Alberto Garcia-Duran, Jason Weston, and Oksana Yakhnenko. 2013. Translating embeddings for modeling multi-relational data. In NeurIPS. our card
  7. Qian Chen, Xiaodan Zhu, Zhen-Hua Ling, Diana Inkpen, and Si Wei. 2018. Neural natural language inference models enhanced with external knowledge. In ACL. our card
  8. Xinxiong Chen, Zhiyuan Liu, and Maosong Sun. 2014. A unified model for word sense representation and disambiguation. In EMNLP. our card
  9. Eunsol Choi, Omer Levy, Yejin Choi, and Luke Zettlemoyer. 2018. Ultra-fine entity typing. In ACL. OpenAlex ↗ · Scholar ↗
  10. Ronan Collobert and Jason Weston. 2008. A unified architecture for natural language processing: Deep neural networks with multitask learning. In ICML. OpenAlex ↗ · Scholar ↗
  11. Andrew M. Dai and Quoc V. Le. 2015. Semi-supervised sequence learning. In NeurIPS. our card
  12. Joachim Daiber, Max Jakob, Chris Hokamp, and Pablo N. Mendes. 2013. Improving efficiency and accuracy in multilingual entity extraction. In I-SEMANTICS. OpenAlex ↗ · Scholar ↗
  13. Tim Dettmers, Pasquale Minervini, Pontus Stenetorp, and Sebastian Riedel. 2018. Convolutional 2d knowledge graph embeddings. In AAAI. OpenAlex ↗ · Scholar ↗
  14. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding. In NAACL-HLT. our card
  15. Bjarke Felbo, Alan Mislove, Anders Søgaard, Iyad Rahwan, and Sune Lehmann. 2017. Using millions of emoji occurrences to learn any-domain representations for detecting sentiment, emotion and sarcasm. In EMNLP. our card
  16. Paolo Ferragina and Ugo Scaiella. 2010. TAGME: on-the-fly annotation of short text fragments (by wikipedia entities). In CIKM. our card
  17. Octavian-Eugen Ganea and Thomas Hofmann. 2017. Deep joint entity disambiguation with local neural attention. In EMNLP. OpenAlex ↗ · Scholar ↗
  18. Nitish Gupta, Sameer Singh, and Dan Roth. 2017. Entity linking via joint encoding of types, descriptions, and context. In EMNLP. our card
  19. Iris Hendrickx, Su Nam Kim, Zornitsa Kozareva, Preslav Nakov, Diarmuid Ó Séaghdha, Sebastian Padó, Marco Pennacchiotti, Lorenza Romano, and Stan Szpakowicz. 2009. SemEval-2010 task 8: Multi-way classification of semantic relations between pairs of nominals. In HLT-NAACL. our card
  20. Johannes Hoffart, Mohamed Amir Yosef, Ilaria Bordino, Hagen Fürstenau, Manfred Pinkal, Marc Spaniol, Bilyana Taneva, Stefan Thater, and Gerhard Weikum. 2011. Robust disambiguation of named entities in text. In EMNLP. OpenAlex ↗ · Scholar ↗
  21. Jeremy Howard and Sebastian Ruder. 2018. Universal Language Model Fine-tuning for Text Classification (http://arxiv.org/abs/1801.06146). In Proceedings of ACL 2018. OpenAlex ↗ · Scholar ↗
  22. Yangfeng Ji, Chenhao Tan, Sebastian Martschat, Yejin Choi, and Noah A Smith. 2017. Dynamic entity representations in neural language models. In EMNLP. our card
  23. Diederik P. Kingma and Jimmy Ba. 2015. Adam: A method for stochastic optimization. In ICLR. our card
  24. Nikolaos Kolitsas, Octavian-Eugen Ganea, and Thomas Hofmann. 2018. End-to-end neural entity linking. In CoNLL. OpenAlex ↗ · Scholar ↗
  25. Kenton Lee, Luheng He, Mike Lewis, and Luke S. Zettlemoyer. 2017. End-to-end neural coreference resolution. In EMNLP. our card
  26. Yankai Lin, Zhiyuan Liu, Maosong Sun, Yang Liu, and Xuan Zhu. 2015. Learning entity and relation embeddings for knowledge graph completion. In AAAI. OpenAlex ↗ · Scholar ↗
  27. Xiao Ling, Sameer Singh, and Daniel S. Weld. 2015. Design challenges for entity linking. Transactions of the Association for Computational Linguistics, 3:315–328. OpenAlex ↗ · Scholar ↗
  28. Robert L Logan, Nelson F. Liu, Matthew E. Peters, Matthew Ph Gardner, and Sameer Singh. 2019. Barack's wife hillary: Using knowledge graphs for fact-aware language modeling. In ACL. our card
  29. Bryan McCann, James Bradbury, Caiming Xiong, and Richard Socher. 2017. Learned in Translation: Contextualized Word Vectors (http://arxiv.org/abs/1708.00107). In Advances in Neural Information Processing Systems. our card
  30. Oren Melamud, Jacob Goldberger, and Ido Dagan. 2016. context2vec: Learning generic context embedding with bidirectional LSTM. In CoNLL. our card
  31. Todor Mihaylov and Anette Frank. 2018. Knowledgeable reader: Enhancing cloze-style reading comprehension with external commonsense knowledge. In ACL. our card
  32. Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. 2013a. Efficient estimation of word representations in vector space. arXiv:1301.3781. our card
  33. Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. 2013b. Distributed representations of words and phrases and their compositionality. In NeurIPS. our card
  34. George A Miller. 1995. WordNet: a lexical database for English. Communications of the ACM, 38(11):39–41. our card
  35. George A. Miller, Martin Chodorow, Shari Landes, Claudia Leacock, and Robert G. Thomas. 1994. Using a semantic concordance for sense identification. In HLT. our card
  36. Roberto Navigli, José Camacho-Collados, and Alessandro Raganato. 2017. Word sense disambiguation: A unified evaluation framework and empirical comparison. In EACL. our card
  37. Maximilian Nickel, Volker Tresp, and Hans-Peter Kriegel. 2011. A three-way model for collective learning on multi-relational data. In ICML. OpenAlex ↗ · Scholar ↗
  38. Jeffrey Pennington, Richard Socher, and Christopher D. Manning. 2014. GloVe: Global vectors for word representation. In EMNLP. our card
  39. Matthew E. Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. 2018. Deep contextualized word representations (http://arxiv.org/abs/arXiv:1802.05365v1). In NAACL-HLT. our card
  40. Mohammad Taher Pilehvar and José Camacho-Collados. 2019. WiC: the word-in-context dataset for evaluating context-sensitive meaning representations. In NAACL-HLT. our card
  41. Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. 2018. Improving language understanding by generative pre-training. OpenAlex ↗ · Scholar ↗
  42. Alessandro Raganato, Claudio Delli Bovi, and Roberto Navigli. 2017. Neural sequence learning models for word sense disambiguation. In EMNLP. OpenAlex ↗ · Scholar ↗
  43. Rico Sennrich, Barry Haddow, and Alexandra Birch. 2016. Neural machine translation of rare words with subword units. In ACL. our card
  44. Peng Shi and Jimmy Lin. 2019. Simple BERT models for relation extraction and semantic role labeling. our card
  45. Livio B. Soares, Nicholas FitzGerald, Jeffrey Ling, and Tom Kwiatkowski. 2019. Matching the blanks: Distributional similarity for relation learning. In ACL. our card
  46. Robert Speer, Joshua Chin, and Catherine Havasi. 2017. ConceptNet 5.5: An open multilingual graph of general knowledge. In AAAI. OpenAlex ↗ · Scholar ↗
  47. Valentin I. Spitkovsky and Angel X. Chang. 2012. A cross-lingual dictionary for English Wikipedia concepts. In LREC. OpenAlex ↗ · Scholar ↗
  48. Sandeep Subramanian, Adam Trischler, Yoshua Bengio, and Christopher J Pal. 2018. Learning general purpose distributed sentence representations via large scale multi-task learning (http://arxiv.org/abs/arXiv:1804.00079v1). In ICLR. OpenAlex ↗ · Scholar ↗
  49. Haitian Sun, Bhuwan Dhingra, Manzil Zaheer, Kathryn Mazaitis, Ruslan R. Salakhutdinov, and William W. Cohen. 2018. Open domain question answering using early fusion of knowledge bases and text. In EMNLP. our card
  50. Théo Trouillon, Johannes Welbl, Sebastian Riedel, Éric Gaussier, and Guillaume Bouchard. 2016. Complex embeddings for simple link prediction. In ICML. our card
  51. Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. In NeurIPS. our card
  52. Denny Vrandečić and Markus Krötzsch. 2014. Wikidata: A free collaborative knowledgebase (https://doi.org/10.1145/2629489). Commun. ACM, 57(10):78–85. our card
  53. Alex Wang, Yada Pruksachatkun, Nikita Nangia, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. 2019a. SuperGLUE: A stickier benchmark for general-purpose language understanding systems. arXiv:1905.00537. our card
  54. Chao Wang and Hui Jiang. 2019. Explicit utilization of general knowledge in machine reading comprehension. In ACL. OpenAlex ↗ · Scholar ↗
  55. Haoyu Wang, Ming Tan, Mo Yu, Shiyu Chang, Dakuo Wang, Kun Xu, Xiaoxiao Guo, and Saloni Potdar. 2019b. Extracting multiple-relations in one-pass with pre-trained transformers. In ACL. OpenAlex ↗ · Scholar ↗
  56. Linlin Wang, Zhu Cao, Gerard de Melo, and Zhiyuan Liu. 2016. Relation classification via multi-level attention CNNs. In ACL. our card
  57. Zhen Wang, Jianwen Zhang, Jianlin Feng, and Zheng Chen. 2014a. Knowledge graph and text jointly embedding. In EMNLP. our card
  58. Zhen Wang, Jianwen Zhang, Jianlin Feng, and Zheng Chen. 2014b. Knowledge graph embedding by translating on hyperplanes. In AAAI. OpenAlex ↗ · Scholar ↗
  59. Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. 2016. Google's neural machine translation system: Bridging the gap between human and machine translation. arXiv:1609.08144. OpenAlex ↗ · Scholar ↗
  60. Han Xiao, Minlie Huang, and Xiaoyan Zhu. 2016. From one point to a manifold: knowledge graph embedding for precise link prediction. In AAAI. OpenAlex ↗ · Scholar ↗
  61. Ruobing Xie, Zhiyuan Liu, J. J. Jia, Huanbo Luan, and Maosong Sun. 2016. Representation learning of knowledge graphs with entity descriptions. In AAAI. OpenAlex ↗ · Scholar ↗
  62. An Yang, Quan Wang, Jing Liu, Kai Liu, Yajuan Lyu, Hua Wu, Qiaoqiao She, and Sujian Li. 2019. Enhancing pre-trained language representations with rich knowledge for machine reading comprehension. In ACL. OpenAlex ↗ · Scholar ↗
  63. Bishan Yang and Tom Michael Mitchell. 2017. Leveraging knowledge bases in LSTMs for improving machine reading. In ACL. OpenAlex ↗ · Scholar ↗
  64. Bishan Yang, Wen-tau Yih, Xiaodong He, Jianfeng Gao, and Li Deng. 2014. Embedding entities and relations for learning and inference in knowledge bases. arXiv:1412.6575. our card
  65. Zichao Yang, Phil Blunsom, Chris Dyer, and Wang Ling. 2017. Reference-aware language models. In EMNLP. OpenAlex ↗ · Scholar ↗
  66. Yuhao Zhang, Peng Qi, and Christopher D. Manning. 2018. Graph convolution over pruned dependency trees improves relation extraction. In EMNLP. our card
  67. Yuhao Zhang, Victor Zhong, Danqi Chen, Gabor Angeli, and Christopher D. Manning. 2017. Position-aware attention and supervised data improve slot filling. In EMNLP. OpenAlex ↗ · Scholar ↗
  68. Zhengyan Zhang, Xu Han, Zhiyuan Liu, Xin Jiang, Maosong Sun, and Qun Liu. 2019. ERNIE: Enhanced language representation with informative entities. In ACL. OpenAlex ↗ · Scholar ↗
  69. Yukun Zhu, Ryan Kiros, Richard S. Zemel, Ruslan R. Salakhutdinov, Raquel Urtasun, Antonio Torralba, and Sanja Fidler. 2015. Aligning books and movies: Towards story-like visual explanations by watching movies and reading books. ICCV. our card