How Context Affects Language Models' Factual Predictions
Paper · 2020 · Fabio Petroni, Patrick Lewis, Aleksandra Piktus et al.
Summary
A system answering a factual question needs access to the relevant information and a way to use it. Keeping every useful fact inside a fixed collection of learned parameters is an ambitious requirement, especially when the available evidence occupies large document collections. “How Context Affects Language Models’ Factual Predictions” investigates a simpler alternative: give an existing language model additional text when it answers. The authors ask whether this arrangement can improve factual prediction without supervised training of the resulting reader, and whether the reader can resist passages that look informative but concern the wrong subject.
The experiments use LAMA, a benchmark of factual statements containing a missing answer token. Its Google-RE component has 5527 facts covering 3 relations; T-REx has 34,039 facts covering 41 relations; and its SQuAD component contains 305 questions manually converted into completion statements. The authors test BERT-large and RoBERTa-large with several sources of accompanying text. Associated Wikipedia snippets provide a favorable reference condition. Automatically retrieved paragraphs test a practical evidence pipeline. Generated passages investigate whether another predictor’s internal knowledge can become useful written support. Deliberately mismatched snippets test susceptibility to distracting answers. None of these experiments involves supervised adaptation of the masked reader to the factual completion task.
Relevant text produces substantial improvements. With associated Wikipedia snippets, BERT’s reported performance rises by factors of ×7.4 on Google-RE, ×1.9 on T-REx, and ×3.5 on SQuAD relative to its context-free condition. Taking a paragraph from an existing retrieval system also helps considerably. That arrangement performs comparably to the supervised DrQA baseline on Google-RE and SQuAD and better on T-REx. Most retrieval benefits occur when the paragraph includes the answer, but the authors also identify improvements when the answer itself is absent. BERT can therefore use supporting information without being restricted to copying a span from the passage.
The representation of the input strongly affects reliability. When BERT receives the question and passage as distinct segments, adversarial passages reduce its average result by only 0.5 P@1, where P@1 measures success of the highest-ranked answer. Combining them within a shared segment produces a reduction of 12.4 P@1. The authors connect this contrast to Next Sentence Prediction, or NSP, a pretraining task that teaches BERT to distinguish successive text segments from randomly paired material. Their analyses support a relationship between segment compatibility and contextual influence. They do not establish that an NSP probability explicitly gates the masked-answer calculation. Generated passages reveal another boundary: text can fit the question convincingly while containing unreliable information, and generated context performs worse overall than answering without context.
The contribution is a controlled demonstration of unsupervised reading within a restricted factual task. Existing retrieval and a pretrained masked predictor can cooperate effectively, while input boundaries help determine whether additional text becomes useful evidence or a distraction. The paper does not establish unrestricted question answering, dependable rejection of arbitrary falsehoods, or generation of answers of unrestricted length. RoBERTa also uses a vocabulary-filtered benchmark subset, so its absolute scores should not be compared directly with BERT’s. These qualifications matter because the strongest lesson concerns the conditions under which external text helps, instead of a general claim that adding context makes factual answering reliable.
Interesting ideas
Evaluate the information environment. A factual score reflects both the predictor and the evidence available when it answers. Keeping the request fixed while changing access to supporting material reveals capabilities that an unaided completion test cannot separate. This approach is useful in document-based answering, decision support, and information extraction, where a failure may arise because the evidence never arrived or because the system could not use it. The comparison should preserve the distinction between recovering an association unaided and answering with documentary assistance.
Establish a favorable-evidence reference. Before investing in more elaborate retrieval, test whether a reader benefits from material known to concern the requested fact. The oracle condition serves this purpose: it makes evidence selection easier so that the experiment can inspect evidence use. A favorable reference is useful in any multi-stage pipeline because it helps locate the next development problem. If carefully selected material remains ineffective, retrieval improvements alone may leave the main obstacle untouched. If it helps substantially, automatic selection becomes a more promising target.
Make boundaries testable. The paper shows that the interface between a request and its supporting passage can change behavior dramatically. Boundaries should therefore be treated as experimental choices with consequences, including when the content itself appears unchanged. This principle extends to structured records, demonstrations, quoted documents, and intermediate analyses. The appropriate representation depends on the system: BERT uses segment embeddings and a separator, whereas another architecture may need explicit fields or typed objects. What transfers is the need to measure the boundary’s effect.
Build distractions that preserve plausibility. A passage about an entirely different topic may be easy to disregard. Sampling another fact under the same relation supplies an alternative of the right general kind while changing the subject and answer. This creates a sharper test of whether the system follows the requested relationship. The design applies to entity linking, relation extraction, dictionary evidence selection, and document-grounded reasoning. It is particularly useful when a convincing answer can belong to a nearby but incorrect entity.
Inspect answer movement. Final accuracy conceals the examples context repairs and the examples it damages. Comparing predictions before and after evidence arrives exposes those opposing effects. Grouping changes by whether the passage contains the answer adds another useful distinction: availability and successful use are separate properties. Such analysis can direct effort towards retrieval, interpretation, or control of misleading influence, instead of treating every error as a failure of the same component.
Keep compatibility separate from correctness. BERT often regards generated passages as suitable companions to the question, yet those passages can reduce factual accuracy. A signal of topical or sequential fit therefore cannot establish that a claim is true. This lesson applies to similarity scores, fluent explanations, retrieval ranks, and other convenient indicators of apparent relevance. Systems should evaluate well-matched false support as well as visibly unrelated material, because a filter effective against the latter may remain vulnerable to the former.
Judge components across their uses. The authors find value in NSP for a setting different from the supervised downstream evaluations through which it had frequently been assessed. A component can appear dispensable under one evaluation regime while supporting another useful behavior. Researchers can borrow this broader perspective when comparing objectives, representations, and auxiliary checks. The important question is which capability a component supports under stated conditions, including whether that capability survives without supervised adaptation.
Deep dive: How Context Affects Language Models' Factual Predictions
How context changes BERT’s factual predictions, why retrieved passages help, and how separating questions from evidence improves robustness. · about 41 minutes to read
How Mova uses it
Mova is a small language system implemented in Rust, organized around explicit parsing, frames, world state, compiled knowledge, and bounded operations. Its native factual reasoning differs substantially from the masked prediction studied here. The useful transfers therefore concern evidence organization, evaluation, and transparent control of context. The status marks below describe proposed correspondences with documented Mova mechanisms; they do not establish an application of this paper or a measured improvement. Where the existing record does not resolve the implementation scope, that uncertainty remains.
Idea: Compare unaided answers with document-assisted answers. Where: Methodology and Results. Area: evaluation. Mova: частково є (world/src/knowledge/retention/fastread.rs). The fast reader already distinguishes fresh-text reading from answering through a prepared graph. Mova could extend that comparison to the same factual requests answered from existing knowledge and after a separately identified passage is supplied. Why Mova: This would reveal whether failures concern missing support, inaccessible retained knowledge, or unsuccessful interpretation. The paper motivates the comparison; an improvement in Mova remains unmeasured.
Idea: Use favorable passages to diagnose reading capacity. Where: Methodology, Oracle Contexts. Area: evaluation. Mova: нове. A proposed test would pair factual requests with reviewed passages that genuinely address the requested subject and relation, then compare them with automatically selected passages. The available digest does not establish this exact diagnostic in Mova, so the novelty mark is provisional. Why Mova: It would help decide whether to improve passage selection, frame construction, entity resolution, or reasoning, before expanding the retrieval system.
Idea: Preserve request and evidence as different objects. Where: Methodology, Contexts; Results, Adversarial Robustness. Area: data representation. Mova: частково є (docs/architecture.md; tools/dictindex/README.md). Mova distinguishes the current document state, persistent knowledge, and attributed corpus examples. A document-assisted answer could preserve an equally explicit boundary between the request and each retrieved passage throughout interpretation. Why Mova: Separate objects make incorrect evidence attachment inspectable. BERT’s segment result supports testing this principle, but does not validate any particular Rust representation.
Idea: Ablate the boundary representation itself. Where: Results, Adversarial Robustness; Discussion, Practical Takeaways. Area: evaluation. Mova: нове. Mova could compare evidence merged into a narrative world with evidence retained in a separate source-scoped world, using identical questions and passages. This particular experiment is not established by the digest. Why Mova: Explicit data structures can still permit accidental information transfer. A controlled comparison would show whether source boundaries alter answers, rather than merely making logs look clearer. The expected benefit is a hypothesis.
Idea: Retrieve evidence without replacing native reasoning. Where: Introduction; Methodology, Sourcing Relevant Contexts. Area: architecture. Mova: частково є (tools/dictindex/README.md; world/src/knowledge/retention/fastread.rs). The dictionary index already retrieves attributed occurrences from existing parses, while native readers interpret document structure. A proposed factual path could connect retrieved examples to those readers through a bounded interface. Why Mova: External support could expand accessible evidence while keeping rules and reasons inspectable. The paper’s neural reader is evidence for its own arrangement, not a reason to substitute a neural component into Mova.
Idea: Keep source retrieval distinct from knowledge admission. Where: Methodology, Sourcing Relevant Contexts; Discussion, Comparison with DrQA. Area: knowledge management. Mova: вже є (tools/dictindex/README.md; tools/enrich/README.md). Mova’s index does not admit dictionary knowledge, and enrichment stages reviewed drafts before separate admission. The paper’s inference-time use of passages offers a compatible evaluation perspective: consulting text need not change durable knowledge. Why Mova: This distinction permits useful temporary evidence without silently revising compiled seeds, accepted dictionary entries, or retained learning.
Idea: Challenge answers with another subject under the same relation. Where: Methodology, Adversarial Contexts. Area: evaluation. Mova: нове. A proposed contrast set would preserve the requested relation while supplying a passage about a different entity with a different answer. Existing Mova contrast checks do not establish this exact construction. Why Mova: The test would expose whether frame roles and entity identities prevent a plausible nearby value from attaching to the wrong subject. It could serve factual reading, dictionary lookup, and configured task interpretation.
Idea: Test lexical overlap without correct reference. Where: Methodology, Adversarial Contexts. Area: semantics and evaluation. Mova: частково є (docs/architecture.md; tools/enrich/README.md). Mova’s readers operate on frame roles, and enrichment documentation already limits what lexical similarity can establish. The adversarial construction suggests checking cases where vocabulary and relation type match but the referent does not. Why Mova: Such cases would test whether structural interpretation provides practical protection beyond a surface match. The existing architecture supplies a mechanism to examine, not an established result on this test.
Idea: Record helpful and harmful answer changes separately. Where: Results, the T-REx analysis of changed outputs. Area: evaluation. Mova: частково є (tools/enrich/README.md; world/src/knowledge/retention/fastread.rs). Mova already calls for comparisons on unchanged questions and classifies reading failures. A context experiment could additionally record which previously incorrect answers become correct and which correct answers are lost. Why Mova: These transitions would distinguish useful new evidence from destabilizing context, making a reported gain more informative than a final score alone.
Idea: Separate answer presence from successful interpretation. Where: Results, analysis of answer occurrence in retrieved contexts. Area: information retrieval and evaluation. Mova: частково є (tools/dictindex/README.md). The index preserves exact sentences and token positions, which could support checking whether an accepted answer is literally present in a retrieved witness. A further analysis would compare that property with the native reader’s outcome. Why Mova: Failure in spite of available evidence points towards interpretation or inference; failure without evidence points towards selection or coverage. This classification has not been measured for the proposed factual path.
Idea: Distinguish direct evidence from indirect support. Where: Results, answer-absent context cases; Discussion, Comparison with DrQA. Area: reasoning and provenance. Mova: частково є (prag/src/frames.rs; world/src/knowledge/retention/fastread.rs). Mova already records evidential categories and reasoning information, but those categories are not automatically the same as answer provenance. A factual trace could distinguish a directly stated answer from an answer reached through declared links. Why Mova: This would let readers assess the actual support for a conclusion instead of treating every successful answer as extraction.
Idea: Evaluate prediction beyond explicit answer spans. Where: Introduction; Results; Discussion, Comparison with DrQA. Area: reasoning. Mova: частково є (docs/architecture.md; README.md). Mova’s world reasoning can already answer through state relations and compiled links rather than copying a phrase. The paper suggests a focused assessment where supporting passages omit the answer expression while retaining useful premises. Why Mova: Such a test would measure whether transparent inference contributes beyond literal lookup. The neural results do not establish the quality of Mova’s inference on analogous examples.
Idea: Compare documentary context with generated context. Where: Methodology, Sourcing Relevant Contexts; Results, Generated context. Area: evaluation. Mova: частково є (tools/enrich/README.md; world/src/knowledge/retention/mice.rs). Mova separates source-bound teaching material from optional review notes. A proposed experiment could compare native answers supported by retrieved text, reviewed summaries, and unadmitted generated notes. Why Mova: The comparison would test whether compression or generation preserves useful evidence while introducing misleading claims. Generated material would retain its actual status throughout the experiment.
Idea: Keep generated notes outside trusted observations. Where: Results, Generated context. Area: data provenance. Mova: вже є (world/src/knowledge/retention/mice.rs; docs/hybrid-system.md). Optional external review produces a note that does not revise native observations, and consultant output has a separate review boundary. The generated-context result provides a reason to preserve that rule even when prose fits the task well. Why Mova: Plausibility can increase influence without improving correctness. Existing separation should be retained and evaluated, rather than relaxed because a note appears coherent.
Idea: Represent relevance and truth as different judgments. Where: Results, Generated context; Results, Adversarial Robustness. Area: pragmatics and knowledge representation. Mova: частково є (prag/src/frames.rs; tools/dictindex/README.md). Mova has typed evidential information and attributed examples, but these do not by themselves prove factual truth. A passage’s match to a query could be stored separately from source status, assertion status, and inferential support. Why Mova: This would prevent retrieval relevance or narrative compatibility from silently becoming authority. The paper demonstrates why the distinction matters, not a complete truth-checking procedure.
Idea: Use an explicit relevance decision appropriate to native structure. Where: Results, Adversarial Robustness. Area: semantics. Mova: нове. Rather than reproducing NSP, Mova could test a transparent relevance check based on subject identity, requested relation, and source-scoped frames before allowing a passage to affect an answer. The digest does not establish this complete admission rule. Why Mova: A native relevance decision would fit the direction toward logic and rules while making rejection reasons visible. Its coverage and error behavior would need measurement.
Idea: Inspect whether relevance predicts contextual influence. Where: Results, the NSP probability analysis. Area: statistics and evaluation. Mova: частково є (prag/src/eval.rs). Existing evaluation examines confidence against correctness, but that is different from testing whether relevance scores predict changes caused by evidence. A proposed report could relate a native relevance score to changed answers or changed support. Why Mova: This would check whether a score has the operational meaning its users assume. Correlation would remain a diagnostic, not proof that the score causes the behavior.
Idea: Preserve the direction of evidence effects. Where: Results, the absolute probability-change analysis. Area: statistics. Mova: нове. An analogous native analysis could report both the magnitude and the direction of a context effect, separating support gained from support lost. The paper’s absolute difference motivates this refinement because it measures influence without retaining direction. Why Mova: A large change can indicate a repair or a new error. Keeping these apart would make evaluation clearer when Mova uses scores, weighted alternatives, or competing proof paths.
Idea: Report relation-level behavior alongside an aggregate. Where: Methodology, main-results table caption; Results. Area: statistics and evaluation. Mova: частково є (docs/school.md; prag/src/eval.rs). Mova reports results across task areas and fields. A factual-context assessment could additionally stratify by relation, avoiding a headline score that hides consistently weak relation types. Why Mova: Dictionary relations, state changes, ownership, location, and other interpreted structures may respond differently to context. The paper’s relation-based analysis supplies an evaluation pattern, while the appropriate native strata remain a design choice.
Idea: Make aggregation weights visible. Where: Methodology, main-results table caption. Area: statistics. Mova: нове. A proposed context report would state whether it weights examples, relation types, documents, or sources, and would preserve that choice across conditions. The digest does not establish a report for this exact experiment. Why Mova: Corpus frequency can otherwise determine the apparent improvement without readers noticing. The paper’s explicit relation weighting shows why an aggregate needs a declared interpretation, especially when a dictionary or corpus has uneven coverage.
Idea: Use paired tests over meaningful task units. Where: Results, pairwise sign tests across relations. Area: statistics. Mova: частково є (README.md; wordgraph/src/eval.rs; peta/tools/treeagree/src/kappa.rs). Mova already emphasizes paired evaluation and resampling units that reflect shared structure. A factual-context comparison could use the same relations or documents on both sides and choose its test accordingly. Why Mova: This would keep claims about improvement aligned with the units that actually vary. The paper’s test should be borrowed as a design example, not applied mechanically to every native task.
Idea: Expose vocabulary filtering as a changed population. Where: Methodology, Datasets. Area: data and evaluation. Mova: частково є (tools/dictindex/README.md). Mova’s index reports exclusions and absent coverage. Similar discipline could accompany comparisons between dictionaries, language resources, or readers whose accepted answer spaces differ. Why Mova: A system can appear stronger after difficult or unsupported examples are removed. Reporting the retained population prevents a coverage difference from being mistaken for a capability difference. The paper explicitly gives this caution for its RoBERTa comparison.
Idea: Separate benchmark adaptation from system capability. Where: Methodology, Baselines. Area: evaluation. Mova: частково є (docs/architecture.md; docs/school.md). The paper adapts completion statements to questions and restricts the baseline’s output. Mova could make equivalent adapters visible whenever it compares a native reader with another solver. Why Mova: Converting inputs or narrowing answers changes what the comparison establishes. Existing assessment boundaries provide a foundation, but a particular adapter still needs its own documented assumptions and failure cases.
Idea: Measure evidence reach before reader quality. Where: Results, retrieval recall figure. Area: information retrieval. Mova: частково є (tools/dictindex/README.md). The index reports actual imported coverage and preserves evidence locations. A reader experiment could separately ask whether useful passages were available in the searched store and whether the selected passage delivered the necessary support. Why Mova: This would prevent missing corpus coverage from being blamed on native inference. Retrieval recall and answer correctness would remain separate measurements with different denominators.
Idea: Treat context budgets as part of the evidence contract. Where: Methodology, Contexts; Results, retrieval recall figure caption. Area: resource management. Mova: частково є (docs/hybrid-system.md; world/src/knowledge/retention/mice.rs). Mova already uses bounded operations and capped reading processes. A retrieved-evidence path could retain what was selected, what was excluded, and why it fit the budget. Why Mova: A limited reader can answer only from material that reaches it. Recording budget effects would make omissions distinguishable from failures to understand available evidence.
Idea: Match comparisons when testing a proposed mechanism. Where: Results, Adversarial Robustness; Discussion, Re-examining NSP. Area: experimental design. Mova: частково є (README.md; docs/training.md). Mova already uses gated changes and deterministic comparisons. When testing a relevance rule, it could hold the parser, corpus, question set, and answer procedure fixed while changing that rule alone. Why Mova: This would provide stronger evidence about the native mechanism than comparing systems with many differences. The paper’s NSP interpretation is suggestive, which makes this an especially useful methodological transfer.
Idea: Evaluate a component beyond its usual benchmark. Where: Discussion, Re-examining NSP. Area: evaluation strategy. Mova: частково є (README.md; docs/architecture.md). Mova already assesses parsing, worlds, schools, and mathematical readers separately. A rule or representation that brings little improvement to parsing might still help source separation, ambiguity handling, or explanation. Why Mova: Broader evaluation can identify a useful role without inflating a narrow score change into a general gain. Each proposed role would need its own outcome measure and controls.
These proposals preserve an important architectural boundary. The paper shows how pretrained neural predictors behave under context changes. Mova can borrow the experimental distinctions while testing mechanisms appropriate to its own typed structures, rules, and retained graphs. Nothing in the comparison establishes that NSP should be reproduced inside Mova, or that a context-assisted answer should automatically become learned knowledge.
The problem and its context
Facts inside parameters and facts in documents
The paper begins from a tension between broad pretraining and dependable factual access. Training on large text collections can produce systems that answer some factual completions successfully. Yet the source material contains far more detail than can be assumed recoverable with sufficient precision from a fixed parameter set. The authors frame external text as a practical way to reduce the burden placed on internal storage.
This is a question about both representation and access. A successful completion shows that the system can produce the expected object for a given subject and relation. A failure leaves several possibilities open. The association may not have been learned, its retrieval may depend on wording, or the predictor may need additional information to disambiguate the request. Supplying a passage changes those conditions without requiring the researcher to settle exactly where the missing fact resides internally.
The immediate factual-probing background is Language Models as Knowledge Bases?. That work introduced LAMA as an instrument for examining factual associations through completion questions. Instead of training a separate classifier for every relation, a researcher expresses the relation in text and asks the pretrained predictor to supply the object.
The current paper retains that observable task but changes what the predictor can consult. This shift is consequential for interpretation. An unaided result concerns what the system produces from the query and its learned parameters. A document-assisted result concerns the joint contribution of prior learning and supplied text. Both are meaningful, but they answer different questions.
Probing had already become more demanding
The authors place their work among investigations of what pretraining makes accessible. Earlier probes examined syntactic organization, semantic phenomena, function words, and other linguistic distinctions. Structural probing and BERT’s linguistic pipeline are cited examples of this broader effort. Factual completion adds another observable behavior to that research program.
The paper describes several ways factual probing had been refined. Automatic prompt discovery investigates better ways to express a relation. Other cited studies introduce negation, remove questions whose answers are easy to guess, or examine textual reasoning. These directions make an important background point: the apparent factual competence of a predictor depends on the test used to elicit it.
The present authors focus on an additional variable, the accompanying passage. A query does not have to arrive alone. It can appear beside useful evidence, weakly related material, or a passage carrying a plausible competing answer. Studying those alternatives reveals behavior that a context-free probe cannot expose.
This remains an assessment of factual prediction rather than an exhaustive account of knowledge. The paper does not attempt to map each fact to an internal representation. Its intervention is external and behavioral: change the available context, preserve the reference answer, and observe what happens.
Retrieval and reading provided an established alternative
The other major background is open-domain answering. In this setting, a question arrives without a document already identified as its source. A system must locate relevant material and then produce an answer. The paper describes an established division between information retrieval, which finds candidate documents, and a reader, which interprets them.
DrQA supplies the central baseline. Its retrieval component finds Wikipedia material, and its reading component learns from supervised examples. The authors’ intervention keeps an existing retriever but asks whether a pretrained masked predictor can perform the reading role without supervised adaptation.
The paper also discusses REALM, where retrieval and reading are trained together during pretraining and later fine-tuning. That is a different route to external knowledge access. The current experiment instead joins available components at prediction time.
Earlier open-domain research, as the authors describe it, had improved retrieval, evidence aggregation, and efficiency. The novelty of the present arrangement is narrower than inventing retrieval-based answering. It tests what can be achieved when the assembled factual reader receives no supervised task training.
Why an auxiliary pretraining task becomes relevant
BERT and RoBERTa offer a useful contrast because their training objectives differ. BERT combines masked-token learning with NSP. RoBERTa uses masked-token learning without NSP.
For masked prediction, the system learns to recover hidden words from surrounding material. NSP instead asks about the relationship between paired text segments. During BERT’s pretraining, successive segments and randomly combined segments supply the distinction to be learned. The authors hypothesize that this experience could help regulate the influence of context.
That possibility matters because a reader needs selective behavior. Absorbing more text indiscriminately can be harmful when the text concerns another subject. A useful evidence mechanism should permit relevant passages to change predictions while limiting unrelated passages. The paper investigates whether BERT already exhibits such selectivity and whether explicit segment boundaries make it accessible.
The method, step by step
The central experiment changes the input rather than training a new reader. Each factual request has a reference answer. The authors evaluate that request without context and with context drawn from different sources. They then compare correctness, answer changes, and compatibility signals.
From factual request to context analysis
The steps in order.
Start with a relational completion
The paper uses q for the cloze question, a for its reference answer, and c for an accompanying context. A cloze question is a statement with a blank where the answer should appear. In the relational setting, it expresses a subject and a relation while leaving the object unspecified.
This setup differs from ordinary free-form answering. The position of the answer is known, and the answer must fit the benchmark’s token restriction. The system does not have to decide how long a response should be or generate an explanatory sentence. It ranks vocabulary items for the missing position.
The experiment concerns how that ranking changes when c accompanies q. Context can introduce the answer directly, provide related information, or supply a distracting alternative. The reference a stays unchanged across these conditions.
Use a benchmark with aligned passages
LAMA is suitable for the study because its facts are relational and its examples have associated Wikipedia material. That alignment makes a favorable evidence condition possible without constructing an unrelated document-selection task from scratch.
The authors use Google-RE, T-REx, and the cloze-converted SQuAD questions. The first components organize examples around relation types; the last contributes manually reformulated questions. These are evaluation examples for the context experiment, not supervised training material for a newly learned reading component.
For RoBERTa, vocabulary compatibility changes the evaluation set. About 15% of the examples are removed so that the remaining reference answers belong to its vocabulary. This filtering is necessary for the stated prediction task, but it means that BERT and RoBERTa are evaluated over slightly different populations.
That detail affects the interpretation of every cross-system comparison. A higher absolute score could partly reflect the examples retained after filtering. The paper therefore cautions against directly comparing their benchmark numbers as though all questions were identical.
Define the baseline reader fairly
DrQA expects natural questions rather than statements with a masked object. The authors adapt LAMA’s relation templates into interrogative forms, following the cited approach in zero-shot relation extraction. A completion requesting a subject’s birthplace becomes a question asking for that birthplace.
DrQA’s document retrieval uses TF-IDF, a weighting scheme that distinguishes informative query terms using their occurrence patterns across documents. Its supervised reading component was trained on SQuAD v1.1. For this evaluation, the authors restrict its predictions to answers consisting of a single token.
This restriction aligns the baseline with the benchmark but also narrows the comparison. DrQA normally extracts spans, and span extraction naturally permits answers of different lengths. The experiment asks which system performs better under LAMA’s answer format, rather than which handles every ordinary reading task best.
Keep the pretrained reader unchanged
The principal masked reader is the large cased BERT version. The authors select it in part because it was the strongest language-model predictor among those examined in the earlier LAMA study. RoBERTa-large provides an additional pretrained reader.
Both had encountered Wikipedia as part of their pretraining corpora. This matters because the experiment does not require the contextual fact to be new to the system. A supplied passage may reinforce, disambiguate, or activate an association learned earlier. The method measures improved factual prediction, not exclusively the acquisition of unfamiliar knowledge.
The reader produces a distribution over the evaluation vocabulary established by the earlier LAMA setup. The leading candidate is compared with the reference answer, and performance is reported as mean precision at 1, abbreviated P@1. Under this completion setup, the metric focuses on whether the top-ranked token is correct.
Construct the oracle condition
The oracle condition uses the Wikipedia snippet accompanying each LAMA example. It is limited to five sentences. The authors characterize these snippets as relevant and informative, with the answer frequently appearing explicitly.
This condition is a diagnostic of evidence use under favorable selection. It asks whether the pretrained reader can benefit when the document-selection problem has largely been resolved. A substantial gain establishes that the reader has useful context-processing ability even without supervised adaptation.
The oracle does not amount to a universal maximum over all possible passages. Its role is an experimental reference grounded in the associated snippets. Other wording or evidence arrangements are outside that comparison. The authors use it as a favorable bound for their study, rather than as a deployable source-selection procedure.
Obtain retrieved evidence
The retrieval condition takes the first paragraph returned by DrQA’s retrieval system. The masked reader processes that paragraph beside the cloze query. The supervised DrQA reader does not participate in producing this condition’s answer.
The main setup uses k=1, meaning the first retrieved paragraph. The authors note that an individual paragraph can already consume considerable input space. Their purpose is to test a simple connection between an existing retriever and an unchanged pretrained reader, rather than develop a complicated evidence aggregation mechanism.
This condition includes realistic retrieval imperfections. The paragraph may contain the reference answer, may discuss the subject without stating it, or may be unhelpful. Those differences are examined later rather than assumed away.
Produce generated context
For the generated condition, the authors use an autoregressive generator with 1.4B parameters trained on CC-NEWS. Autoregressive generation predicts successive text continuations. The generator receives a natural-question version of the factual request as its prefix.
It produces five sentences using delayed beam search. The paper cites earlier decoding research as the basis for this choice and for selecting the CC-NEWS-trained generator. It does not train a new generator specifically for the LAMA experiment.
This condition explores whether facts represented in a generator can be surfaced as text and then used by another reader. Its output may concern the correct entity while remaining inaccurate. The method therefore separates generating a plausible passage from obtaining documentary support.
That distinction is crucial. A generated context is not equivalent to an independently sourced document merely because both consist of sentences. Their information origins and failure modes differ, which is exactly why comparing them is informative.
Sample adversarial passages
The adversarial condition begins with an oracle passage associated with another benchmark question. The sampled question must have the same relation type but a different reference answer, written a′ in the paper.
The passage therefore supplies a tempting candidate of the appropriate semantic kind while describing another subject. This is a controlled mismatch: the relation remains compatible, but the evidence belongs elsewhere.
The construction tests whether a nearby candidate can displace the answer to the actual request. It does not require the distracting passage itself to be false. A true fact about another subject can still be harmful when incorrectly attached to the queried entity.
Encode the input boundary
BERT receives q with segment index 0 and c with segment index 1. A [SEP] marker sits between them. The distinct segment embeddings and separator together make the two roles visible to the architecture.
The authors also evaluate an alternative in which query and passage share a segment. This tests whether their explicit separation matters, instead of assuming that appending text has a single unambiguous implementation.
RoBERTa lacks the same segment-embedding mechanism. Its separated input uses an end-of-sentence marker between the query and passage. The comparison removes that intervening marker in the concatenated condition.
Inputs are truncated to 512 tokens. As a result, the evidence available to the reader is bounded even if the source passage is longer. The evaluated system can only use the material that survives this input construction.
Measure the strength of contextual influence
Beyond checking the leading answer, the authors inspect how much context changes the probability assigned to the reference token.
|P_LM(a | q) − P_LM(a | q + c)|
P_LM denotes the masked reader’s probability. The symbol a is the reference answer, q is the original query, and c is the added passage. The expression q + c means an input containing both pieces; it does not imply a shared segment. The surrounding vertical bars take the absolute value of the difference.
This quantity measures magnitude rather than direction. A large value can arise because context increases the answer’s probability or because it decreases it. The distinction becomes important when relating influence to relevance: stronger contextual effects are not automatically improvements.
The authors compare that magnitude with the probability supplied by BERT’s NSP classifier.
P_NSP(q, c)
P_NSP is the estimated NSP compatibility of the question–context pair. The symbols q and c keep their earlier meanings. The probability concerns the paired-segment distinction learned in pretraining, not the truth of the context’s claims.
The paper states that reproduction code and data will be released. The method itself remains an input-construction and evaluation procedure: select evidence, preserve or remove the boundary, obtain the unchanged reader’s prediction, and inspect the consequences.
Experiments and results
The score and its aggregation
The main result measure is mean P@1 over factual completions. A system succeeds when its leading vocabulary prediction matches the reference token. This is a narrow but clear outcome: it assesses answer selection, not explanation quality or evidence attribution.
The aggregate weights results through relation counts. Google-RE contributes 3 relations, T-REx contributes 41 relations, and the SQuAD component counts as a single contribution. The resulting average therefore reflects the benchmark’s relation structure.
The authors also conduct pairwise sign tests across relations. They report p-values below 1e-5 for the comparisons establishing the improvements of retrieved-context and oracle-context BERT. These tests support the consistency of the result across relation-level outcomes.
The statistical result should be read alongside the experimental scope. It strengthens the evidence for the reported comparisons, but does not broaden the answer format or turn the benchmark into a comprehensive test of open-domain answering.
Favorable evidence demonstrates unsupervised reading
Associated Wikipedia snippets substantially improve BERT’s factual completions. The paper reports ×7.4 relative improvement on Google-RE, ×1.9 on T-REx, and ×3.5 on SQuAD compared with its context-free condition.
These figures describe separate within-dataset comparisons. They should not be treated as a ranking of which dataset is easiest, because each factor depends on its own baseline. Their common implication is that relevant evidence can alter the effectiveness of an otherwise unchanged reader considerably.
The gain is important because no supervised factual-reading adaptation is used. The reader already has the ability to exploit nearby text sufficiently well to improve the selected answer. The experiment activates that ability by changing the input.
Oracle evidence remains more favorable than an ordinary search result. Its success demonstrates available reading capacity under targeted support. It does not establish that a practical retriever will consistently deliver material of comparable usefulness.
Retrieved paragraphs make the practical case
The automatically retrieved condition remains clearly stronger than context-free BERT. On Google-RE and SQuAD, it performs comparably to DrQA, while on T-REx it achieves better results.
The key comparison is between different readers connected to retrieval. DrQA’s reader has supervised training on SQuAD v1.1. The BERT reader is used without supervised adaptation for this task. The result shows that a simple unsupervised arrangement can be competitive with that established supervised baseline under LAMA’s restrictions.
The authors do not claim to surpass every supervised system. Their discussion explicitly recognizes stronger open-domain approaches. The result is valuable precisely at its stated scope: an existing retriever and pretrained masked reader cooperate effectively with little architectural elaboration.
The retrieval condition also makes clear that perfect evidence selection is unnecessary for a substantial improvement. Some paragraphs omit the answer or fail to provide direct support, yet the overall result still improves. Robustness to imperfect evidence is therefore part of the practical value.
Answer occurrence explains much of the benefit
The retrieval analysis checks whether the reference answer appears in the passage. Most of the gain comes from examples where it does. This supports the interpretation that BERT can read answer-bearing material rather than merely produce the same associations regardless of context.
The paper also identifies improvements without the answer token in the retrieved text. In those cases, related information helps BERT choose the reference answer from its vocabulary. An extractive reader cannot return a span that is absent from its passage.
That contrast describes an output capability, not a complete account of reasoning. The experiment does not identify whether the passage activates a remembered association, resolves ambiguity, or supports another internal process. It establishes that literal answer occurrence is unnecessary for every successful context effect.
This is why answer presence and final correctness deserve separate measurements. A passage may contain the right token while failing to support it in the relevant relation. Conversely, a passage may support a useful inference without spelling out the final answer.
Adversarial damage depends on segmentation
The strongest boundary comparison concerns the distracting passages. Distinct segments leave BERT only slightly below its context-free result. A shared-segment input produces much greater damage.
LAMA adversarial context: average BERT P@1 reduction
Keeping the question and passage in distinct segments limits the damage from distracting evidence.
The numbers
| System or setting | P@1 decrease relative to context-free BERT |
|---|---|
| Shared segment | 12.4 |
| Distinct segments (this paper) | 0.5 |
The authors describe the shared-segment result as a 40.7% relative performance reduction. That statement refers to the same adversarial comparison, expressed relative to the context-free result.
Segmentation also helps with useful evidence. Retrieved and oracle contexts consistently produce better results when BERT processes the query and passage separately. The boundary therefore supports selective context use rather than merely suppressing all contextual effects.
RoBERTa is more susceptible to the adversarial passages, and its boundary manipulation produces a smaller difference. This is consistent with the NSP interpretation, although the systems and evaluation populations differ.
Generation supplies occasional help and aggregate harm
Generated context does not match retrieval. Overall, it performs below context-free BERT. The passages can be relevant and fluent while still introducing unreliable facts or distracting information.
The condition is not uniformly unsuccessful. Generated context improves performance for 13 T-REx relations and helps on 7% of T-REx questions. These cases show that a generator can sometimes express information that becomes useful to the masked reader.
The negative aggregate result means that such successes coexist with sufficient harmful changes to outweigh them. This is an important result for systems that generate their own notes before answering. More text can expose useful associations while also strengthening errors.
The NSP analysis helps explain the danger. Generated passages commonly receive high compatibility scores. Their apparent suitability to the question encourages influence even when the content is unreliable. A relevance-like signal can therefore fail precisely when misleading material is well matched.
What the ablations show
The boundary is part of the mechanism under test
The segmentation comparison is the clearest controlled intervention. It changes how the query and passage are represented while preserving their general informational roles. Under adversarial context, that change strongly affects the outcome.
This rules out a simple account in which BERT is inherently unaffected by irrelevant passages. Its resistance depends on the input arrangement. The authors’ favorable robustness result belongs to the distinct-segment setup.
It also changes the interpretation of adding retrieved text. Context augmentation is not fully specified by saying which paragraph is appended. The interface carrying that paragraph can determine how strongly it influences the answer.
For practical evaluation, this means that a boundary choice deserves an ablation alongside the passage-selection strategy. Otherwise, a system may be judged through an input arrangement that obscures useful pretrained behavior or exposes avoidable vulnerability.
Oracle and retrieved contexts test different bottlenecks
The favorable and retrieved conditions illuminate different parts of the pipeline. Oracle snippets make selection easier. Retrieved paragraphs require an automatic process to find useful support.
Their comparison shows that the reader has more capacity to benefit from evidence than imperfect retrieval always realizes. It motivates attention to evidence selection without implying that selection is the only remaining problem.
The comparison is not a clean mathematical decomposition of errors. The contexts can differ in wording, answer presence, and other properties. Still, it provides a practical diagnosis: useful evidence helps, while automatically obtained evidence helps less consistently.
A careful interpretation preserves both parts. Strong oracle performance establishes a reading opportunity. Strong retrieved performance establishes that a simple practical pipeline captures some of it.
Changed predictions reveal the balance behind the score
The paper examines when context improves an answer and when it makes the answer worse. It groups these transitions by the presence of the reference answer in the passage.
This analysis matters because a net gain can hide destabilization. A system may repair many failures while also losing answers it previously got right. Those losses can reveal overdependence on nearby candidates or insufficient discrimination between subjects.
Answer-presence grouping adds another diagnostic layer. When the answer is available but unused, the reader may have failed to interpret or select it. When it is absent, a successful change points toward indirect support or an interaction with prior learning.
The analysis therefore moves beyond whether context is beneficial on average. It investigates what kind of evidence produces which kind of behavioral change.
NSP classifications fit a relevance-sensitive account
BERT classifies many retrieved, generated, and oracle pairs as compatible with the successive-segment category. Far fewer adversarial pairs receive that classification.
This is consistent with a learned distinction between relevant pairings and mismatched material. The adversarial passage can be perfectly reasonable by itself; the problem is its relationship to the current question. NSP behavior appears sensitive to that relationship.
The authors then compare NSP probability with the absolute change in the reference answer’s probability. Across adversarial, retrieved, and generated conditions, higher NSP probabilities accompany stronger contextual changes.
Together, these observations support the proposed account that segment compatibility is associated with how much context matters. They do not show that an NSP output is explicitly inserted into the answer calculation as a numerical control.
The probability analysis requires a directional caution
The formal measure takes an absolute difference. It records how much the reference answer’s probability moves, regardless of whether the movement is helpful.
Accordingly, the strongest justified reading is about influence. Higher compatibility is associated with a larger contextual effect. It would be stronger than the measure warrants to say that every increase in compatibility improves the correct answer’s probability.
This distinction becomes essential for generated passages. Their strong compatibility can accompany harmful influence. The probability analysis and the task results must therefore be read together.
More broadly, a diagnostic signal can behave as expected while the system still makes errors. A relevance mechanism may successfully distinguish pairings and yet remain unable to assess factual reliability within a compatible passage.
RoBERTa supports the hypothesis without isolating its cause
RoBERTa provides a useful comparison because it was pretrained without NSP. Its greater vulnerability and weaker boundary effect align with the authors’ proposed explanation.
However, this is not an experiment where NSP alone is removed from an otherwise identical system. BERT and RoBERTa differ as pretrained systems, and their boundary mechanisms are not equivalent. The RoBERTa evaluation also excludes examples for vocabulary reasons.
The comparison therefore contributes supporting evidence rather than a definitive causal estimate. It suggests where a mechanism may come from, while leaving room for other training or representation differences.
The broader methodological point is still strong. Auxiliary objectives should be assessed against the behaviors they may support, including unsupervised robustness. Their value cannot be settled solely through another task family.
Generated passages test the limit of the relevance account
The generated condition supplies the most informative counterexample to a broad truth-filtering interpretation. These passages frequently look suitable to BERT, but their factual value is inconsistent.
The authors’ explanation is that high NSP compatibility reduces selectivity: the reader permits the generated material to influence it. When that material is wrong, the same willingness to use context becomes a liability.
This distinguishes unrelated distraction from compatible misinformation. A mechanism trained to recognize mismatched segments may help with the former while offering much less protection against the latter.
The generated experiment is therefore an analysis of robustness boundaries as well as an alternative way to source context. It shows why a successful relevance check should not be promoted into a general guarantee of reliable evidence.
Limitations
Restrictions acknowledged by the authors
The authors explicitly limit the comparison through LAMA’s answer format. Every reference answer is a single token. This makes masked prediction straightforward but excludes many ordinary factual responses.
They also explain why longer answers change the comparison. Bidirectional masked predictors do not automatically offer a simple procedure for producing unrestricted contiguous answers. Extractive readers can consider spans of varying lengths in their input. A capability to predict an absent token therefore comes with a different limitation from span extraction.
The DrQA result is similarly bounded. The authors recognize that more advanced supervised open-domain systems exist. Competitiveness with DrQA under this benchmark does not establish competitiveness with the strongest supervised approach across broader tasks.
The paper also states that its objective is factual assessment in this arrangement, rather than general progress on every aspect of open-domain answering. That focus shapes the data, answer format, and reported outcomes.
Finally, the discussion proposes that retrieved documents might help other tasks, but leaves that investigation open. The proposal should remain distinct from the factual completion results actually reported.
A favorable reference is not ordinary retrieval
A limitation visible in the design is that oracle snippets are associated with the examples in advance. This makes them useful for diagnosing reading capacity but unlike the uncertainty faced by a practical search pipeline.
The oracle result does not establish that all necessary evidence can be found reliably. Nor does it establish that the selected snippets are optimal among all possible contexts. It provides a favorable empirical reference.
Automatic retrieval is deliberately simple: the first returned paragraph is used. The experiment does not explore the full range of passage reranking, evidence combination, or document selection strategies.
The input limit creates another boundary. Material beyond 512 tokens does not participate in prediction. The results therefore concern the evidence that survives this bounded construction, not arbitrary document collections presented in full.
These choices support a clean experiment. They also leave unanswered how the same reader would behave with more passages, conflicting sources, or different ways of allocating limited input space.
The experiment does not isolate unfamiliar facts
Both BERT and RoBERTa were pretrained on corpora including Wikipedia. Wikipedia also supplies the oracle and retrieved evidence.
A careful reader therefore cannot interpret every context-assisted success as learning a previously unseen fact. The text may supply new information, but it may also make an old association easier to recover.
This distinction does not weaken the practical improvement. Users care whether evidence helps produce the correct answer. It does limit a stronger scientific claim about acquiring knowledge absent from parameters.
A separate study would be needed to isolate novelty of information. The present paper investigates the effect of context availability without making that separation.
The adversary represents a particular error source
The adversarial construction is controlled and useful: another subject, the same relation, and a different answer. It tests whether relevant-looking material about the wrong entity can mislead the reader.
It does not systematically test a passage that names the correct subject while asserting a false fact. It also does not establish behavior under multiple mutually contradictory sources.
Those are distinct challenges because the evidence may be highly compatible with the query. The generated condition suggests that such compatibility can increase harmful influence, but it is not a comprehensive experiment on deliberate misinformation.
The robustness conclusion must also retain its segmentation condition. Removing the distinct-segment treatment changes the result sharply. BERT should therefore not be described as uniformly resistant to irrelevant context.
The proposed explanation remains partly unresolved
The authors explicitly frame the NSP mechanism as a hypothesis supported by several observations. Distinct segments help; adversarial pairs have low NSP compatibility; compatibility accompanies stronger influence; and RoBERTa behaves differently.
These observations are mutually consistent, but they do not fully identify the internal computation. There is no matched pretraining intervention in which NSP alone is changed while all other factors remain fixed.
Nor does the paper establish that the classifier’s output directly controls information flow. The behavior could reflect representations learned jointly through pretraining rather than an explicit use of the final NSP score.
The generated-context result adds a substantive boundary even if the relevance explanation is correct. Recognizing a plausible pairing does not establish the factual quality of the passage. Relevance and truth remain separate properties.
P@1 leaves important qualities unmeasured
The main metric rewards a correct leading token. It does not require the system to identify a source, explain a conclusion, express uncertainty accurately, or refuse an unsupported request.
A correct token can therefore coexist with weak evidence handling. Conversely, a defensible answer expressed outside the permitted form cannot receive credit under this setup.
The probability-change diagnostic also has a narrow role. It measures contextual influence on the reference answer, not overall reliability. Its interpretation depends on the correctness analysis and the nature of the context.
These are limitations visible to a careful reader rather than additional failures demonstrated by the paper. They define what the measurements establish: useful single-token factual reading and conditional robustness, with broader evidential reliability still open.
What came after
The citing works connect this paper to retrieval-based answering, prompt sensitivity, factual representation, and context reliability. Their titles identify those connections, but citation alone does not establish adoption of the segmentation method or confirmation of the NSP explanation. Where a later work’s available description gives only its subject, the connection should remain at that level.
Retrieval becomes a wider architectural question
Retrieval-Augmented Generation addresses knowledge-intensive tasks through retrieval and generation. It belongs to the same broad architectural conversation: what should be recovered from internal parameters, and what should be obtained from external documents?
The present paper supplies a particularly simple instance of external evidence use. Its reader is not supervised for the assembled task, and its main intervention occurs in the input. The later title establishes a broader retrieval-and-generation direction, without supplying grounds to claim that the same reader or boundary mechanism is used.
KILT concerns benchmarking knowledge-intensive language tasks. This relates to the evaluation boundary exposed here. A factual completion probe can demonstrate useful behavior while leaving many other demands untested.
The connection is therefore partly methodological. Once documentary access becomes part of a system, evaluation must distinguish unaided factual recovery from successful evidence use. KILT’s stated benchmark focus belongs to that broader problem, although its task details are not specified by the citation alone.
Atlas connects retrieval-augmented language systems with few-shot learning. That subject differs from the present paper’s emphasis on no supervised adaptation of the factual reader.
The shared question is how retrieved material changes what a system can accomplish with its existing parameters and available task information. The distinction matters: evidence documents and labeled task examples can both appear in context, but they serve different purposes.
A survey of RAG and LLMs treats retrieval-augmented language systems as a broader research area. Its citation places the current work within that expanding conversation.
The enduring contribution here is the separation of context sources and failure conditions. Documentary retrieval, generated support, favorable snippets, and relation-matched distractions should not be assumed interchangeable merely because all are text.
Reliability becomes a central context problem
Robustness to irrelevant context directly takes up a problem central to the adversarial experiment. Retrieval increases access to information while creating an opportunity for unsuitable material to affect the answer.
The earlier study shows that reliability depends in part on how evidence enters the predictor. The later work’s title makes irrelevant context a dedicated target. Its specific solution and results cannot be inferred from the title, but the continuity of the research question is clear.
Lost in the Middle concerns the use of long contexts. That focus extends beyond the compact evidence arrangement tested here.
The conceptual connection is that receiving information and using it successfully are different achievements. The current paper demonstrates sensitivity to boundaries and passage compatibility. It does not answer how evidence position or long inputs affect use, leaving that broader context problem open.
Adaptive Chameleon or Stubborn Sloth examines behavior under knowledge conflicts. This introduces a distinction that the present experiments only partly reach.
A passage about another subject is a mismatch. A passage that directly contradicts an internal factual association can be highly relevant while creating a conflict. Generated context hints at this difficulty because plausible support can be wrong, but the present study does not establish a general conflict-resolution rule.
BIDER identifies knowledge inconsistency and supporting evidence as concerns for retrieval-augmented systems. Its subject connects naturally to the difference between compatibility and factual support.
That connection should not be overstated as a shared implementation. The earlier result establishes a problem: suitable-looking text can exert harmful influence. The later title identifies inconsistency and evidence as targets without documenting its mechanics here.
Prompt research broadens the meaning of input design
Pre-train, Prompt, and Predict surveys prompting methods. The current paper contributes an example of input design that goes beyond the wording of a factual question.
The request’s surroundings and their representation affect the answer. A prompt is therefore an information arrangement as well as a sentence. The segmentation experiment makes that distinction concrete without requiring supervised task adaptation.
Fantastically Ordered Prompts focuses on order sensitivity in few-shot prompting. Its subject concerns another aspect of arranging information at prediction time.
The relationship is methodological rather than a demonstrated common mechanism. This paper manipulates the boundary between query and evidence; the later title concerns the order of prompt material. Neither observation by itself establishes the other, but both motivate explicit evaluation of input organization.
MetaICL addresses learning to learn through context. Its title points toward task information conveyed by examples, rather than factual support supplied by a retrieved paragraph.
Keeping these roles distinct is useful. A demonstration can indicate what operation to perform, whereas a document can provide premises for the answer. Both can influence prediction, but a mechanism effective for one purpose need not provide trustworthy evidence handling for the other.
Factual knowledge remains a separate object of study
Locating and editing factual associations concerns intervention on associations within GPT. That direction differs from changing the evidence available at inference time.
The distinction helps clarify the present contribution. Better context-assisted answering does not identify where a fact resides internally, nor does it show how that fact could be edited. External support and internal revision address related practical needs through different interventions.
Long-tail knowledge concerns difficulties with less prominent factual information. Its title connects to the motivation for consulting documents instead of assuming complete parameter-based coverage.
The current paper does not isolate long-tail facts or provide a separate analysis of their frequency. Its result supports the usefulness of external evidence generally within the benchmark, leaving that particular coverage issue to other investigations.
Consistency of factual predictions identifies another property beyond a correct leading answer on an isolated query. A system’s predictions may need to remain coherent across related formulations.
This connects to the broader lesson that factual evaluation depends on the conditions of elicitation. The present paper varies context rather than establishing a complete consistency measure, so the subjects complement each other without being equivalent.
Language Models As or For Knowledge Bases makes a useful distinction explicit in its title. A predictor treated as a repository of facts occupies a different role from a predictor used to recover facts from external material.
The current experiments provide evidence for the second role. An existing masked reader can answer more effectively when supplied with useful documents, even when its unaided completion is weaker. Its contribution is to show that this gain can emerge without supervised reader adaptation, while also demonstrating that evidence selection and input boundaries shape the result.
Source-aware training identifies knowledge attribution as a further research concern. That subject highlights something the present evaluation does not require: a correct answer need not come with an account of its source.
The connection marks an important boundary around factual success. Producing the right token, using a passage appropriately, and attributing the answer are different capabilities. This paper illuminates the first capabilities through controlled context changes; source attribution remains a separate question that later work explicitly names.
Institutions
Fields, topics and concepts
Shelves 5The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksArts and Humanities · 17,959 worksLanguage and Linguistics · 17,789 worksInformation Systems · 1,888 works
Topics 1Research subjects and languages the work is about.Language models & pretraining · 4,145 works
Cite
Cite as Fabio Petroni, Patrick Lewis, Aleksandra Piktus, Tim Rocktäschel, Yuxiang Wu, Alexander H. Miller and Sebastian Riedel. 2020. How Context Affects Language Models' Factual Predictions. arXiv:2005.04611.
@misc{petroni2020how,
title = {{How Context Affects Language Models' Factual Predictions}},
author = {Fabio Petroni, Patrick Lewis, Aleksandra Piktus, Tim Rocktäschel, Yuxiang Wu, Alexander H. Miller and Sebastian Riedel},
year = {2020},
doi = {10.48550/arxiv.2005.04611},
eprint = {2005.04611},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2005.04611}
}References
- Yonatan Bisk, Rowan Zellers, Ronan Le Bras, Jianfeng Gao, and Yejin Choi. PIQA: reasoning about physical commonsense in natural language. CoRR, abs/1911.11641, 2019. our card
- Danqi Chen, Adam Fisch, Jason Weston, and Antoine Bordes. Reading wikipedia to answer open-domain questions. ACL, 2017. our card
- Eunsol Choi, Daniel Hewlett, Jakob Uszkoreit, Illia Polosukhin, Alexandre Lacoste, and Jonathan Berant. Coarse-to-fine question answering for long documents. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 209–220, Vancouver, Canada, July 2017. Association for Computational Linguistics. . URL https://www.aclweb.org/anthology/P17-1020. OpenAlex ↗ · Scholar ↗
- Christopher Clark and Matt Gardner. Simple and effective multi-paragraph reading comprehension. ACL, 2018. our card
- Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. Think you have solved question answering? try arc, the AI2 reasoning challenge. CoRR, abs/1803.05457, 2018. URL http://arxiv.org/abs/1803.05457. our card
- Rajarshi Das, Shehzaad Dhuliawala, Manzil Zaheer, and Andrew McCallum. Multi-step retriever-reader interaction for scalable open-domain question answering. In ICLR (Poster). OpenReview.net, 2019. our card
- Nicola De Cao, Michael Schlichtkrull, Wilker Aziz, and Ivan Titov. How do decisions emerge across layers in neural models? interpretation with differentiable masking. arXiv preprint arXiv:2004.14992, 2020. OpenAlex ↗ · Scholar ↗
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. NAACL-HLT, 2019. our card
- Hady Elsahar, Pavlos Vougiouklis, Arslen Remaci, Christophe Gravier, Jonathon Hare, Elena Simperl, and Frederique Laforest. T-rex: A large scale alignment of natural language with knowledge base triples. LREC, 2018. our card
- Kelvin Guu, Kenton Lee, Zora Tung, Panupong Pasupat, and Ming-Wei Chang. Realm: Retrieval-augmented language model pre-training. arXiv:2002.08909, 2020. our card
- John Hewitt and Christopher D. Manning. A structural probe for finding syntax in word representations. In NAACL-HLT (1), pages 4129–4138. Association for Computational Linguistics, 2019. our card
- Zhengbao Jiang, Frank F. Xu, Jun Araki, and Graham Neubig. How can we know what language models know? CoRR, abs/1911.12543, 2019. our card
- Nora Kassner and Hinrich Schütze. Negated lama: Birds cannot fly. arXiv preprint arXiv:1911.03343, 2019. OpenAlex ↗ · Scholar ↗
- Najoung Kim, Roma Patel, Adam Poliak, Patrick Xia, Alex Wang, Tom McCoy, Ian Tenney, Alexis Ross, Tal Linzen, Benjamin Van Durme, Samuel R. Bowman, and Ellie Pavlick. Probing what different NLP tasks teach machines about function word comprehension. In *SEM@NAACL-HLT, pages 235–249. Association for Computational Linguistics, 2019. our card
- Zhen-Zhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut. Albert: A lite bert for self-supervised learning of language representations. ArXiv, abs/1909.11942, 2019. our card
- Jinhyuk Lee, Seongjun Yun, Hyunjae Kim, Miyoung Ko, and Jaewoo Kang. Ranking paragraphs for improving answer recall in open-domain question answering. In EMNLP, pages 565–569. Association for Computational Linguistics, 2018. OpenAlex ↗ · Scholar ↗
- Kenton Lee, Ming-Wei Chang, and Kristina Toutanova. Latent retrieval for weakly supervised open domain question answering. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 6086–6096, Florence, Italy, July 2019. Association for Computational Linguistics. . URL https://www.aclweb.org/anthology/P19-1612. our card
- Omer Levy, Minjoon Seo, Eunsol Choi, and Luke Zettlemoyer. Zero-shot relation extraction via reading comprehension. CoNLL, 2017. our card
- Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Ves Stoyanov, and Luke Zettlemoyer. Bart: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. arXiv preprint arXiv:1910.13461, 2019a. our card
- Patrick Lewis, Ludovic Denoyer, and Sebastian Riedel. Unsupervised question answering by cloze translation. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 4896–4910, Florence, Italy, July 2019b. Association for Computational Linguistics. . URL https://www.aclweb.org/anthology/P19-1484. our card
- Yankai Lin, Haozhe Ji, Zhiyuan Liu, and Maosong Sun. Denoising distantly supervised open-domain question answering. In ACL (1), pages 1736–1745. Association for Computational Linguistics, 2018. our card
- Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692, 2019. our card
- Rebecca Marvin and Tal Linzen. Targeted syntactic evaluation of language models. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, Brussels, Belgium, October 31 - November 4, 2018, pages 1192–1202, 2018. URL https://aclanthology.info/papers/D18-1151/d18-1151. OpenAlex ↗ · Scholar ↗
- Luca Massarelli, Fabio Petroni, Aleksandra Piktus, Myle Ott, Tim Rocktäschel, Vassilis Plachouras, Fabrizio Silvestri, and Sebastian Riedel. How decoding strategies affect the verifiability of generated text. arXiv preprint arXiv:1911.03587, 2019. OpenAlex ↗ · Scholar ↗
- Sewon Min, Victor Zhong, Richard Socher, and Caiming Xiong. Efficient and robust question answering from minimal context over documents. In ACL (1), pages 1725–1735. Association for Computational Linguistics, 2018. our card
- Liang Pang, Yanyan Lan, Jiafeng Guo, Jun Xu, Lixin Su, and Xueqi Cheng. HAS-QA: hierarchical answer spans model for open-domain question answering. In AAAI, pages 6875–6882. AAAI Press, 2019. our card
- Fabio Petroni, Tim Rocktäschel, Patrick Lewis, Anton Bakhtin, Yuxiang Wu, Alexander H Miller, and Sebastian Riedel. Language models as knowledge bases? EMNLP, 2019. our card
- Nina Poerner, Ulli Waltinger, and Hinrich Schütze. Bert is not a knowledge base (yet): Factual knowledge vs. name-based reasoning in unsupervised qa. arXiv preprint arXiv:1911.03681, 2019. OpenAlex ↗ · Scholar ↗
- Alec Radford, Jeff Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI Blog, 2019. OpenAlex ↗ · Scholar ↗
- Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. CoRR, abs/1910.10683, 2019. our card
- Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. Squad: 100,000+ questions for machine comprehension of text. EMNLP, 2016. our card
- Siva Reddy, Danqi Chen, and Christopher D. Manning. CoQA: A conversational question answering challenge. Transactions of the Association for Computational Linguistics, 7:0 249–266, March 2019. . URL https://www.aclweb.org/anthology/Q19-1016. our card
- Kyle Richardson and Ashish Sabharwal. What does my QA model know? devising controlled probes using expert knowledge. CoRR, abs/1912.13337, 2019. our card
- Kyle Richardson, Hai Hu, Lawrence S. Moss, and Ashish Sabharwal. Probing natural language inference models through semantic fragments. CoRR, abs/1909.07521, 2019. our card
- Min Joon Seo, Jinhyuk Lee, Tom Kwiatkowski, Ankur P. Parikh, Ali Farhadi, and Hannaneh Hajishirzi. Real-time open-domain question answering with dense-sparse phrase index. In ACL (1), pages 4430–4441. Association for Computational Linguistics, 2019. our card
- Alon Talmor, Yanai Elazar, Yoav Goldberg, and Jonathan Berant. olmpics - on what language model pre-training captures. CoRR, abs/1912.13283, 2019. our card
- Ian Tenney, Dipanjan Das, and Ellie Pavlick. BERT rediscovers the classical NLP pipeline. In ACL (1), pages 4593–4601. Association for Computational Linguistics, 2019a. our card
- Ian Tenney, Patrick Xia, Berlin Chen, Alex Wang, Adam Poliak, R. Thomas McCoy, Najoung Kim, Benjamin Van Durme, Samuel R. Bowman, Dipanjan Das, and Ellie Pavlick. What do you learn from context? probing for sentence structure in contextualized word representations. In ICLR (Poster). OpenReview.net, 2019b. our card
- Jesse Vig and Yonatan Belinkov. Analyzing the structure of attention in a transformer language model. Second BlackboxNLP Workshop on Analyzing and Interpreting Neural Networks for NLP, 2019. our card
- Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel Bowman. GLUE: A multi-task benchmark and analysis platform for natural language understanding. In Proceedings of the 2018 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP, pages 353–355, Brussels, Belgium, November 2018a. Association for Computational Linguistics. . URL https://www.aclweb.org/anthology/W18-5446. our card
- Alex Wang, Yada Pruksachatkun, Nikita Nangia, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel Bowman. Superglue: A stickier benchmark for general-purpose language understanding systems. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d' Alché-Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems 32, pages 3261–3275. Curran Associates, Inc., 2019. our card
- Shuohang Wang, Mo Yu, Xiaoxiao Guo, Zhiguo Wang, Tim Klinger, Wei Zhang, Shiyu Chang, Gerry Tesauro, Bowen Zhou, and Jing Jiang. R${}^{\mbox{3}}$: Reinforced ranker-reader for open-domain question answering. In AAAI, pages 5981–5988. AAAI Press, 2018b. our card
- Shuohang Wang, Mo Yu, Jing Jiang, Wei Zhang, Xiaoxiao Guo, Shiyu Chang, Zhiguo Wang, Tim Klinger, Gerald Tesauro, and Murray Campbell. Evidence aggregation for answer re-ranking in open-domain question answering. In ICLR (Poster). OpenReview.net, 2018c. our card
- Alex Warstadt and Samuel R Bowman. Linguistic analysis of pretrained sentence encoders with acceptability judgments. arXiv preprint arXiv:1901.03438, 2019. OpenAlex ↗ · Scholar ↗
- Alex Warstadt, Yu Cao, Ioana Grosu, Wei Peng, Hagen Blix, Yining Nie, Anna Alsop, Shikha Bordia, Haokun Liu, Alicia Parrish, Sheng-Fu Wang, Jason Phang, Anhad Mohananey, Phu Mon Htut, Paloma Jeretic, and Samuel R. Bowman. Investigating bert's knowledge of language: Five analysis methods with npis. In EMNLP/IJCNLP (1), pages 2877–2887. Association for Computational Linguistics, 2019. our card
- Ledell Wu, Fabio Petroni, Martin Josifoski, Sebastian Riedel, and Luke Zettlemoyer. Zero-shot entity linking with dense entity retrieval. arXiv preprint arXiv:1911.03814, 2019. OpenAlex ↗ · Scholar ↗
- Wenhan Xiong, Mo Yu, Xiaoxiao Guo, Hong Wang, Shiyu Chang, Murray Campbell, and William Yang Wang. Simple yet effective bridge reasoning for open-domain multi-hop question answering. Second Workshop on Machine Reading for Question Answering, 2019. OpenAlex ↗ · Scholar ↗
- Vikas Yadav, Steven Bethard, and Mihai Surdeanu. Alignment over heterogeneous embeddings for question answering. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 2681–2691, Minneapolis, Minnesota, June 2019. Association for Computational Linguistics. . URL https://www.aclweb.org/anthology/N19-1274. OpenAlex ↗ · Scholar ↗
- Wei Yang, Yuqing Xie, Aileen Lin, Xingyu Li, Luchen Tan, Kun Xiong, Ming Li, and Jimmy Lin. End-to-end open-domain question answering with BERTserini. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics (Demonstrations), pages 72–77, Minneapolis, Minnesota, June 2019a. Association for Computational Linguistics. . URL https://www.aclweb.org/anthology/N19-4013. our card
- Wei Yang, Haotian Zhang, and Jimmy Lin. Simple applications of BERT for ad hoc document retrieval. CoRR, abs/1903.10972, 2019b. OpenAlex ↗ · Scholar ↗
- Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Russ R Salakhutdinov, and Quoc V Le. Xlnet: Generalized autoregressive pretraining for language understanding. In Advances in neural information processing systems, pages 5754–5764, 2019c. our card
- Zeynep Akkalyoncu Yilmaz, Shengjin Wang, Wei Yang, Haotian Zhang, and Jimmy Lin. Applying BERT to document retrieval with birch. In EMNLP/IJCNLP (3), pages 19–24. Association for Computational Linguistics, 2019. OpenAlex ↗ · Scholar ↗
This page in Markdown https://md.research.elamur.ai/free/en/papers/petroni-2020-context-affects-language-models-factual/