Elamur Research

Can Retriever-Augmented Language Models Reason? The Blame Game Between the Retriever and the Language Model

Paper · 2023 · Parishad BehnamGhader, Santiago Miret and Siva Reddy

Summary

A search can turn up a passage that sounds relevant and still miss the fact that makes an answer possible. Consider a question about how to classify Phobos. Knowing that it orbits Mars helps, but the explanation also needs facts about Mars and about what moons orbit. Those facts can complete the argument without mentioning Phobos at all. The authors use problems like this to ask where retrieval-augmented generation breaks down. They test whether a search component can collect the premises of an argument and whether a reader, the component that produces an answer, can combine them once they are available.

The experiments use EntailmentBank and StrategyQA for question answering and for a sentence-ranking task in which a system has to prefer a correct statement to plausible alternatives. The authors can inspect or change the evidence available for each question, since the benchmarks identify supporting statements. On the EB-Hard test set, Contriever was the strongest of the search components studied, with 47% retrieval accuracy for question answering when told how many supporting statements to return. Giving readers every required premise still left their answer scores below those obtained when they received the already established conclusion. Adding irrelevant statements could lower scores further, even with the required evidence intact. On EB-Hard question answering, Flan-T5’s performance dropped by 28.6% when Contriever retrieved 5 statements, compared with the condition that supplied the gold evidence.

Larger Flan-T5 variants generally performed better in the comparisons. On the EB-Hard question-answering test set, Flan-T5-xxl reached 51.8% token-overlap F1 when it had to work across statements and 59.7% when it received the single concluding statement. The authors also tried a multihop procedure that lets a reader generate follow-up searches. It improved GPT-3.5’s performance over its retrieve-then-read setup. Flan-T5 did worse with the multihop procedure, and inspection showed how a follow-up could simply restate the original question or how a final response could repeat much of the retrieved material. Across the experiments, finding the evidence, drawing the inference and expressing the answer each contributed to the result.

Deep dive: Can Retriever-Augmented Language Models Reason? The Blame Game Between the Retriever and the Language Model

An evaluation of whether retrieval-augmented language systems can find and combine the evidence needed to answer questions that require several steps. · about 34 minutes to read

The problem and its context

Why a relevant result can leave a question unanswered

The authors are interested in questions whose answers depend on facts scattered across several statements. Each statement can play a different part. One may identify the object in the question, another may assign it to a category, and a general rule may connect that category to the expected answer. The usefulness of a premise depends on what the other premises say. An isolated statement can look only loosely related to the question while serving as the bridge that makes the whole argument work.

The Phobos example illustrates how that dependency changes the search problem. A statement about the origin of the name Phobos shares a distinctive word with the question and is genuinely about the right object. A statement classifying Mars as a planet shares less of the surface wording, yet it connects the observation about Phobos’s orbit to the general fact about moons. The search component must therefore do more than recognize the subject of the question. To retrieve a usable set of premises, it has to find information whose relevance can emerge only after another result is in hand.

There is a parallel problem for the reader. A search component could supply the fact about Phobos’s orbit, the fact about Mars and the rule about moons. The reader would still have to recognize the relation among them and produce the answer appropriate to the question. A reader that looks for a promising phrase in an individual statement may seize on the most familiar entity. A reader that generates freely may produce an answer from prior knowledge. The final answer alone leaves the researcher with little evidence about where either process went wrong.

The distinction matters because retrieval is supposed to let a language model draw on information outside its learned parameters. The parameters are the values adjusted during training. A retriever can bring in additional text at the time of the query, giving the reader access to facts that may be absent from those parameters. The authors describe earlier work as finding this arrangement valuable for adapting to changes in the subject matter. Retrieved text can also help someone inspect the information made available to the reader. That visibility gives the experimenter something concrete to check, particularly when the answer itself gives little indication of the evidence behind it.

What earlier systems were built to do

The paper describes work on both parametric and non-parametric memory. It uses parametric for information represented in trained weights and non-parametric for the external material accessed through retrieval or a memory component. The systems under study can use both. A reader still brings its learned expectations about language and facts to a question, even when a separate search stage selects text for it. A plausible answer can therefore come from the retrieved material, the learned weights or a combination of the two.

The authors place this development alongside prior research on reasoning in systems that generate text. The work they cite on chain-of-thought prompting investigates what happens when a response is encouraged to articulate intermediate reasoning. Work on parametric and non-parametric memories examined performance on facts of different popularity. The question here concerns a different property of the available information. Even when the facts are present in a searchable collection, the answer may require putting several of them together. Chain-of-Thought Prompting and When Not to Trust Language Models

The standard workflow in the earlier retrieval systems is retrieve-then-read. The search component receives the query and ranks material from a collection. The reader works with the selected material to complete a task such as finding an answer or predicting text. The paper discusses a range of implementations within that workflow. Dense Passage Retrieval represents questions and passages as vectors, so search can use a numerical similarity score. Fusion-in-Decoder encodes retrieved passages separately and lets the decoder use their representations together. ATLAS provides for joint adjustment of the retriever and reader, including training with limited examples.

Other designs differ in what the search component can retrieve and what the reader can do with it. A nearest-neighbor memory can supply suggestions about the next token based on previously stored sequences. An extractive reader can select a span, a consecutive stretch of text, from a retrieved statement. A generative reader can compose an answer across several statements. These differences make the systems useful comparisons for the authors’ question. They also make a common score an imperfect guide to the cause of a failure, since each architecture has a different route from retrieved text to output. Nearest Neighbor Language Models

The paper also describes earlier work in which search and reading are interleaved. An answerer can generate a new search after seeing the results of an earlier one. The new query may name an entity discovered in those results, ask for a missing definition or address a smaller question whose answer helps resolve the original. Demonstrate-Search-Predict provides the framework the authors use to investigate that possibility. Its intermediate queries and summaries also give them material to inspect when a later search or the final answer goes astray.

Why the evidence needs to be controlled

A large shared corpus makes it difficult to tell whether a missing premise reflects the search procedure, the available documents or the way the experiment records relevant evidence. The authors instead center the study on collections assembled for individual examples. For EntailmentBank, they can use statements already designated as premises in an explanation and compare them with statements that resemble useful evidence but play no role in that explanation. The reasoning path is generally implicit in the question. Giving the search component the original wording still leaves it to discover why a statement about a related entity might matter.

This design turns a broad question about reasoning into several observable events. A search can be checked against the expected premises. The reader can be given all those premises directly. The experiment can then change the material around them or replace them with the conclusion they support. Each intervention changes what the reader has to do. Together they provide a way to investigate errors that would be indistinguishable in a test consisting only of a question and its final answer. Explaining Answers with Entailment Trees

The method, step by step

Set up a small evidence collection for each query

The authors start with a question or a statement-completion problem and a collection of candidate facts associated with it. They call the facts annotated as necessary for arriving at the answer gold statements. A distractor is a candidate outside that annotated evidence. A distractor may mention the right topic or the same entities, which makes it a credible search result. The gold labels let the authors check whether the search returned the evidence a benchmark explanation actually uses.

In the paper’s notation, the available statements are written as follows.

S = {s₁, s₂, …, sₘ}

Here, S is the complete candidate collection for the current sample. Each s with a subscript identifies a statement in that collection. The index begins with ₁ and ends with ₘ, where m is the number of candidate statements. The braces enclose the set, and the ellipsis stands for the intervening indexed statements.

The selected evidence is a subset of that collection.

Sᵣ = {r₁, r₂, …, rₖ} ⊆ S

Here, Sᵣ denotes the retrieved set, with the subscript ᵣ indicating retrieval. Each indexed r is a selected statement, and k is how many statements the retriever is asked to return. The braces and ellipsis again describe the indexed entries in the set. The symbol ⊆ says that every selected statement comes from S. The reader then uses the query and this evidence to produce or score an answer.

How the retrieve-then-read evaluation works

The steps in order.

How the retrieve-then-read evaluation worksStep 1: Prepare the query and its candidate statements1. Prepare the query and its candidate statementsStep 2: Score candidates against the query2. Score candidates against the queryStep 3: Select the requested amount of evidence3. Select the requested amount of evidenceStep 4: Give the selected evidence to the reader4. Give the selected evidence to the readerStep 5: Generate an answer or score candidate completions5. Generate an answer or score candidate completionsStep 6: Check evidence selection and answer quality6. Check evidence selection and answer quality

The authors also intervene at the evidence-selection stage. They can feed the reader only gold premises, give it gold premises together with distractors, or let a retriever choose the input. EntailmentBank supplies a further option through its entailment trees. An entailment tree connects starting facts to intermediate conclusions and finally to a hypothesis that answers the question. Providing that final hypothesis gives the reader a self-contained statement of the conclusion. The paper calls it the oracle statement. The reader must still recognize the answer and express it in the expected form.

Search for statements or for token sequences

DPR, Contriever and REALM’s retriever compare dense representations of the query and candidates. A dense representation is a vector of learned numerical features. The paper describes the search score as an inner product, which combines the corresponding entries of the query and statement vectors into a single value. This gives each statement an individual score for how well it matches the query. It does not give a separate score to the logical argument that a set of statements might form.

The retrievers differ in how they acquired their representations. DPR uses a pair of BERT encoders and was trained on Natural Questions. Contriever provides a pretrained encoder from work on unsupervised dense retrieval. REALM’s retriever comes from pretraining on Wikipedia that asks the system to recover salient masked spans, followed by adaptation to Natural Questions for question answering. The experiment changes where these retrievers are allowed to look. The search space becomes the statements for the current example, while the encoders retain what they learned in their original training. Unsupervised Dense Information Retrieval with Contrastive Learning

kNN-LM stores a different kind of evidence. It treats a statement as a sequence of tokens, the units into which the system divides text. A partial sequence serves as a key whose associated value is the next token. For a statement with n tokens, this yields n − 1 key–value pairs, with n standing for the statement length and the subtraction accounting for the lack of a following token after the complete sequence. Different keys from the same statement can consequently occupy multiple places among the nearest neighbors.

The kNN-LM search uses L2 distance between the query representation and those stored keys. After selecting neighbors, the reader combines its own next-token distribution with the distribution supplied by the memory. The authors used the available kNN-LM checkpoint and chose the interpolation weight λ = 0.65 using the EntailmentBank development sets. Here λ is the setting that governs how much the memory and the underlying predictor contribute to next-token prediction. Because the retrieval units are keys, a retrieval budget in kNN-LM has a different meaning from a budget of the same size in a retriever that returns whole statements.

How readers use the search results

REALM uses a BERT-based reader to score possible answers within statements. In question answering, it chooses a span using retrieval and reader scores. This gives it a direct way to output an answer already present in a passage. The reader scores statements separately, so increasing the amount of evidence gives it more places to look for a span. It does not give the span-scoring procedure the same joint view of the evidence that a decoder attending across statements has.

FiD and ATLAS use sequence-to-sequence readers based on T5. For each retrieved statement, the encoder processes that statement alongside the query. The decoder then attends across the resulting representations. This allows the output to depend on information represented in separate statements. FiD is paired with DPR in the main comparison, while the ATLAS checkpoint supplies its reader and Contriever retriever. Using the original checkpoints preserves the systems’ earlier training for their intended tasks.

Flan-T5 provides an instruction-tuned reader that the authors pair with Contriever. Instruction tuning trains a system to act on descriptions of tasks given in text. Flan-T5 can be given retrieved evidence in its input and asked to answer from it, even though it was not specifically built around a search component. The authors use the base variant for the main comparisons, then use other variants in the size analysis. They keep the sizes of the main systems approximately comparable where possible, so that the principal comparison concerns the performance of established retrieval and reading designs at similar scales.

Prepare the questions and the sentence-ranking problems

For EntailmentBank question answering, the authors use the dataset’s question and answer format. For its language-modeling evaluation, they start from the hypothesis that the evidence supports. The aim is to score a correct statement above similar statements with a different entity inserted. The authors use this format so that a masked predictor and an autoregressive predictor, which generates tokens in sequence, can both be assessed on the same decision. The systems ultimately rank candidate completions even though they obtain the scores in different ways.

StrategyQA starts from questions with yes or no answers. To create sentence-ranking examples, the authors turn the question and its answer into a declarative sentence. They look for entity mentions in the resulting sentences and in EntailmentBank hypotheses. The preparation retains examples with an entity mention, uses spaCy to identify and mask the last mention in the query sentence, and samples up to four alternative entities from the statements attached to that example. Each candidate replaces the masked mention in the same position. Choosing an entity from the local statements means a wrong candidate can still be familiar from the material the system sees.

The preparation preserves EntailmentBank’s existing development and test partitions. The StrategyQA test answers were unavailable to the authors for converting questions into declarative sentences, so they used 25% and nearly 35% of the training data to construct their development and test sets, respectively. In the StrategyQA question-answering evaluation, the decision is whether the system scores the correct yes or no answer above the other. The authors append yes and no to the statements for REALM and kNN-LM in that setting.

How the candidate scores are calculated

The paper denotes the candidate entity as a sequence of tokens.

T = t₁ t₂ … tₘ

Here, T is the complete candidate mention and each t with a subscript is one of its tokens, written in their original order. In this display ₘ marks the final token of the mention. The paper uses capital M for this length to distinguish it from the number m of available statements. The ellipsis stands for any intervening tokens.

The masked query likewise consists of an ordered sequence.

Q = q₁ q₂ … qₙ

Here, Q is the query, and the indexed q symbols represent the successive query tokens. The final subscript ₙ marks the end of the sequence. The paper uses capital N for the query length in the scoring rule. Juxtaposition gives token order in both displays.

For kNN-LM, FiD and Flan-T5, the target-ranking rule scores the completed statement. The authors use the following expression for each candidate.

(1 / N) log p(Qₜ | Sᵣ)

Here, Qₜ is the completed query with the candidate T substituted for the mask. The subscript ₜ indicates that substitution. The function p gives the system’s probability of the completed sentence given the retrieved evidence Sᵣ, with the vertical bar marking the conditioning information. The logarithm is log. The factor 1 / N divides the log probability by the query token count N. The system prefers the candidate with the higher score.

ATLAS scores a masked-span completion in its T5 format.

(1 / (M + 1)) log p(<extra_id_0> T | Q, Sᵣ)

Here, T is again the candidate mention, M is its token count and <extra_id_0> is the special token preceding the completion. The + 1 in the denominator counts that extra token. The function p is the probability of generating the special token followed by T, given the masked query Q and the retrieved evidence Sᵣ. The vertical bar separates the output being scored from the conditioning inputs. The logarithm and division yield the normalized score. The authors found this masked format slightly better for ATLAS than scoring the full sentence.

REALM’s language-modeling rule combines evidence from individual statements. It weights the score of filling the mask with the candidate by the retrieval probability of the statement on which that score depends.

log ((1 / |Sᵣ|) ∑ⱼ∈ⱼ(Sᵣ) p([MASK] = T | Q, sⱼ) p(sⱼ | Q))

Here, Sᵣ is the retrieved set, |Sᵣ| is its size, and j(Sᵣ) means the indices of the statements in that set. The summation ∑ runs over those indices, with ∈ marking membership and sⱼ denoting the statement at index j. The event [MASK] = T means that the blank is filled by candidate T. The first p assigns a probability to that event given Q and sⱼ. The second p assigns a retrieval probability to sⱼ given Q. Juxtaposing those probabilities multiplies them. The score takes the logarithm of the weighted sum scaled by 1 / |Sᵣ|.

A surface-mining example in the paper shows how the same choice appears to the different readers. The sentence has a blank for one of the things surface mining affects. The candidates include lithosphere and coal. The completed-sentence rule scores the sentence with each word inserted. ATLAS scores the masked continuation in its own format, and REALM combines its per-statement contributions to the probability of each word. The accuracy metric checks which choice wins. These different probability calculations are thus a way to accommodate the readers’ interfaces while preserving a common test outcome.

Let the reader search again

The multihop experiment uses the authors’ implementation of the Demonstrate-Search-Predict approach with Contriever. The reader generates a text query, searches for evidence and produces an intermediate account of what the results contribute. A later search can then pursue a more specific part of the original question. The final answer has access to the information that the procedure has assembled. This gives the reader a chance to retrieve a premise whose relationship to the initial query would otherwise be difficult to recognize.

The main experiments use existing pretrained and task-adapted checkpoints. The authors set the kNN-LM interpolation weight on development data and report test performance for configurations chosen using development results. For the multihop comparison they use the original DSP prompt templates and few-shot demonstrations, examples included in the prompt to show how to perform the task. The appendix describes two demonstrations for multihop and five for retrieve-then-read, with the longer multihop context constrained by Flan-T5’s context window. The multihop runs retrieve 5 statements per search. The authors also make their evaluation code available.

Experiments and results

Benchmarks and what the scores measure

The central benchmark condition is EB-Hard, the authors’ name for EntailmentBank’s EB-2 split. It gives each input up to 25 candidate statements, with up to 12 required for the annotated explanation. Its distractors make a useful test of the difference between topical similarity and evidential relevance. For a question relating fossils to the history of living organisms, a statement connecting fossils to sedimentary rock advances the reasoning. A definition of rock also sounds relevant to the subject, yet does little to establish where fossils are found.

The authors use two other EntailmentBank conditions to check the pattern. EB-Easy corresponds to EB-1 and supplies the required statements without distractors. A sample of 25 statements from a large corpus makes up EB-3 and includes both relevant and irrelevant statements. The question-answering results there broadly follow the EB-Hard results with distractors, while EB-Easy resembles the EB-Hard condition with only gold evidence. StrategyQA provides a different kind of question and uses up to 5 Wikipedia statements as support. A system chooses between yes and no, even when the question leaves the relevant reasoning steps implicit.

On EntailmentBank question answering, the main answer metric is token-overlap F1. Its precision component asks how much of the prediction overlaps with reference answer tokens. Its recall component asks how much of the reference answer is covered by the prediction. F1 combines these quantities, so both a missing answer word and a response full of extra material can matter. For StrategyQA the main test comparison reports accuracy for choosing the correct yes or no answer. In sentence ranking, accuracy measures how often the correct completion receives the highest score.

The retrieval evaluation has its own accuracy and recall measures. When the experiment asks for the known number of necessary statements, retrieval accuracy reflects how closely the selected set matches the required evidence at that budget. The recall analysis varies the budget and asks how much of the required evidence was recovered as more search results were admitted. The two measurements help distinguish a retriever that identifies the strongest premises early from one that reaches them only after returning much of the candidate collection.

The main system comparison spans kNN-LM, REALM and DPR + FiD. It also includes Contriever paired separately with ATLAS and with Flan-T5. These are existing systems or pairings of existing components. The study uses their different modes of evidence access to see whether weaknesses recur across designs. Its ideal-evidence and oracle conditions provide comparisons for the same readers with changes to what they are given.

The retrievers miss premises even when given the correct budget

In the budget-controlled retrieval experiment, the authors tell the retriever how many gold statements each EB-Hard test example requires. The retriever still has to identify which statements they are. Contriever achieved 57% retrieval accuracy for the language-modeling queries and 47% for the question-answering queries. The authors describe DPR’s retrieval accuracy as around 15% in this comparison and REALM’s as 40%. The retrieval performance of kNN-LM drops 16 points from the language-modeling queries to the question-answering queries, which the authors relate to its training for next-token prediction.

Increasing the budget retrieved more of the supporting evidence. For the retrievers that return complete statements, recall reached 100% by 25 selections, the maximum size of the EB-Hard candidate collection. For kNN-LM, the retrieval count refers to token-sequence keys. The paper reports recall of roughly 97% even at 100 keys. A long list of keys can include several entries from the same statement, which explains how the key budget can grow while some statements remain unrepresented.

These retrieval scores concern evidence recovery. A high-recall result can still give the reader a substantial amount of irrelevant material. In a benchmark where taking the entire local store guarantees access to the gold statements, a reader’s answer quality provides an additional test of what it can do with that access. The paper reports both kinds of scores because each captures a different step in the route to the final answer.

Question answering across the test sets

The appendix reports test results for settings selected on development performance. Contriever + Flan-T5 led the EB-Hard comparison on token-overlap F1, followed by Contriever + ATLAS. The difference between the generative readers and REALM is relevant to the evidence-combination question, since REALM scores individual statements for answer spans. The systems also differ in training and retrieval, so the table compares full configurations.

Question-answering systems on the EB-Hard test set by token-overlap F1

Contriever with Flan-T5 leads the comparison, followed by Contriever with ATLAS.

Question-answering systems on the EB-Hard test set by token-overlap F1kNN-LM: 8.13kNN-LM8.13REALM: 13.14REALM13.14DPR + FiD: 27.32DPR + FiD27.32Contriever + ATLAS: 33.14Contriever + ATLAS33.14Contriever + Flan-T5 (this paper): 39.68Contriever + Flan-T5 (this paper)39.68
The numbers
System or settingtoken-overlap F1
kNN-LM8.13
REALM13.14
DPR + FiD27.32
Contriever + ATLAS33.14
Contriever + Flan-T5 (this paper)39.68

The same leading pair appears on the other EntailmentBank variants. On the EB-Easy question-answering test set, Contriever + Flan-T5 scored 45.33 token-overlap F1, and Contriever + ATLAS scored 35.95. On EB-3, the respective test scores were 42.29 and 37.63. These comparisons show that the relative position of the leading configurations persists when the benchmark changes how irrelevant statements enter the candidate collection.

On the StrategyQA question-answering test partition, Contriever + Flan-T5 scored 67.34 accuracy. Contriever + ATLAS scored 53.69. DPR + FiD achieved 46.98, and REALM achieved 46.76, with kNN-LM at 23.94. Here the score comes from choosing between answer polarities. EntailmentBank gives a system more freedom to word its answer, while judging the overlap with the accepted answer. As a consequence, a numerical comparison across the benchmarks also changes what counts as a successful prediction.

The paper describes a separate comparison between the gold-evidence condition and ordinary retrieval from a mixture of gold and distracting statements. In that EB-Hard question-answering experiment, Flan-T5’s performance dropped by 28.6% when the system used 5 statements returned by Contriever. The authors report this as a performance drop under the stated retrieval condition. The development-selected appendix scores summarize a different comparison among the system configurations.

Ranking statements completes the picture

The sentence-ranking task also favors Contriever + Flan-T5. This is useful because the system is making a choice among candidate hypotheses. It cannot gain from the reference-style wording of a freely generated answer, and a differently phrased response does not incur a token-overlap penalty. Its success depends on which of the available completions it ranks highest.

Language-modeling systems on the EB-Hard test set by target-ranking accuracy

Contriever with Flan-T5 is the strongest configuration for choosing the correct completion.

Language-modeling systems on the EB-Hard test set by target-ranking accuracykNN-LM: 62.74kNN-LM62.74REALM: 71.48REALM71.48DPR + FiD: 67.68DPR + FiD67.68Contriever + ATLAS: 85.55Contriever + ATLAS85.55Contriever + Flan-T5 (this paper): 91.63Contriever + Flan-T5 (this paper)91.63
The numbers
System or settingtarget-ranking accuracy
kNN-LM62.74
REALM71.48
DPR + FiD67.68
Contriever + ATLAS85.55
Contriever + Flan-T5 (this paper)91.63

On the EB-Easy sentence-ranking test set, Contriever + Flan-T5 achieved 92.92 accuracy and Contriever + ATLAS achieved 81.25. Their results on the EB-3 test set were 87.64 and 84.56. On the StrategyQA sentence-ranking test partition, Flan-T5 with Contriever led at 70.92 accuracy. REALM scored 59.73, ahead of Contriever + ATLAS at 57.94 in that particular column. The leading system is consistent across the tasks, while the order below it depends on the benchmark and answer format.

kNN-LM is the weakest system in the sentence-ranking comparisons even though its original training objective concerns predicting text. Its StrategyQA target-ranking accuracy, for instance, was 25.06 on the test partition. The relevant distinction is between next-token prediction using nearby stored sequences and preferring a completed sentence because several candidate facts jointly support it. A system trained for the former can still have difficulty on the latter. The sentence-ranking degradation with distractors and imperfect retrieval also broadly follows the question-answering pattern, giving the authors evidence of that problem under a different scoring procedure.

Scale improves the reader, within the conditions tested

The size analysis spans Flan-T5 variants identified in the paper as ranging from 80M to 11B parameters. They are compared using Contriever as the retriever for the retrieval-based conditions. The paper reports better question-answering performance for larger variants on EB-Hard and shows the same general direction on EB-Easy and StrategyQA. Holding the retrieval method fixed helps the comparison focus on the reader family.

For Flan-T5-xxl, the EB-Hard question-answering test scores illustrate how much the task changes when the evidence is already assembled into a conclusion. The study reports 51.8% token-overlap F1 when the reader must work across statements. It reports 59.7% with the single oracle statement. The latter score measures what that reader achieves when much of the inference has been done for it, leaving it to identify and communicate the answer.

Flan-T5-xxl on the EB-Hard question-answering test set by evidence condition

The reader scores higher when the evidence supplies the conclusion directly.

Flan-T5-xxl on the EB-Hard question-answering test set by evidence conditionReasoning across statements: 51.8Reasoning across statements51.8Single oracle statement (this paper): 59.7Single oracle statement (this paper)59.7
The numbers
System or settingtoken-overlap F1 %
Reasoning across statements51.8
Single oracle statement (this paper)59.7

The multihop experiments compare another change to the answering pipeline. With Contriever and the DSP program, GPT-3.5 improves over its retrieve-then-read condition, while remaining below the retrieve-then-read Flan-T5-xxl result. Flan-T5’s own F1 falls under multihop retrieval. The recall analysis and examples help explain how an answer can cover more of the expected wording while scoring worse overall. They also show why a search procedure that gives the reader more opportunities to look for evidence depends on the quality of the queries the reader generates.

What the ablations show

Supplying the conclusion changes the task

The oracle comparison starts with the conclusion of an EntailmentBank explanation. Suppose the gold premises are about Phobos, Mars and the orbits of moons. Giving the reader the concluding statement puts the class of body into the input in direct relation to Phobos. The reader can then name the class. With the premises, it must identify their roles and combine them before expressing the answer. Comparing the same reader under these conditions gives a diagnostic for the cost of moving from explicit support to distributed evidence.

On the EB-Hard question-answering test set, readers as a group do substantially better with the oracle statement than with the gold premises. REALM, FiD and ATLAS perform especially well relative to the other readers in the oracle condition. Flan-T5 has a lower oracle score than those readers but surpasses them in the comparison that gives multiple gold statements. An oracle score therefore tells the reader of the study about how readily a system can answer when the conclusion is explicit. The performance order for combining premises can be different.

The authors conjecture that Flan-T5’s exposure to a mixture of tasks, including chain-of-thought reasoning, may help account for its relative strength with multiple statements. The evaluation compares existing systems, whose training objectives and procedures differ. It leaves the contribution of individual training ingredients open. The performance reversal is the experimentally observed result, while the explanation about the training mixture is the authors’ interpretation.

The language-modeling oracle condition is particularly direct. The final hypothesis furnished as evidence is the statement that the system is supposed to prefer to alternatives. The authors report high performance in this arrangement. Its value is to establish how the scoring procedure acts when given the target itself. The more informative comparison for combining evidence involves the component premises from which that target follows.

Adding gold statements helps some readers more than others

Another comparison increases the amount of gold evidence the reader sees. FiD, ATLAS and Flan-T5 generally improve as necessary statements are added. REALM and kNN-LM show little change in the corresponding question-answering comparison. The pattern gives the authors a reason to inspect the kind of access each reader has to its evidence.

For REALM, a statement offering an appealing span can win on its own retrieval and reader scores. The authors observe that answers in their setting tend to come from the first few statements, where high-importance evidence is placed. In the example about a resident of the Southern Hemisphere, the evidence includes both the person’s location and the season associated with August there. REALM outputs the location phrase. Its answer is related to the question and drawn from a true premise, but it omits the seasonal conclusion made possible by the other evidence.

Flan-T5 can also fail when all of the ingredients are in front of it. In the authors’ example about hearing someone speak, the statements link talking to the production of sound and explain how sound travels through air. The response introduces a microphone. The new object might fit another scenario involving speech, but it has no role in the argument furnished for this question. The error illustrates a reader’s ability to generate beyond the given statements and the difficulty of directing that ability toward the evidence.

These examples also explain why the oracle and multi-premise conditions need separate interpretation. A system can be very effective at finding a good answer phrase once a relevant statement expresses it. Taking an appropriate intermediate fact from each of several statements calls for a different use of the reader. Even a decoder that can attend to all the available evidence may still choose an answer that owes more to a familiar association than to the premises.

Distractors and missing facts exert different pressures

The distractor experiment preserves the gold evidence and adds irrelevant candidates to the reader’s input. On EB-Hard question answering, the authors report a drop of 8.7% for Flan-T5 when those additional statements are present. ATLAS appears less affected in that comparison, but its lower performance prevents the authors from drawing a firm conclusion about relative robustness. The intervention nonetheless demonstrates that irrelevant material can reduce performance even when every necessary premise is still accessible.

Ordinary retrieval from the mixed candidate collection can do more than increase the amount of irrelevant material. It can use up places that would otherwise go to supporting statements. The authors’ polar-bear example shows how a retriever can find a general principle about providing animals with the kind of environment they require while missing the statement that identifies the environment in which polar bears live. The general principle can only answer the question when applied to the missing fact. A result that mentions the warm location of the zoo can seem responsive to the wording while supplying the wrong answer.

In a separate example about orbital motion, the benchmark expects gravity to account for the Moon’s orbit. Retrieving a descriptive statement about moons orbiting planets leaves the cause unstated if the required statement about gravity is absent. The resulting response can characterize the orbit rather than identifying the force. Such examples help explain what the aggregate retrieval score represents. An omitted statement can be decisive even when the selected material usually stays on topic.

The gold-plus-distractors comparison allows the authors to observe interference with evidence held intact. The imperfect-retrieval condition allows both missing premises and irrelevant material in the reader’s input. In sentence ranking, both manipulations generally hurt performance as well. That recurrence matters because answer verbosity cannot explain a failure to choose the correct candidate in a fixed set.

How often complete retrieval coincides with a successful answer

The most direct attribution analysis uses Contriever + Flan-T5 on 340 EntailmentBank samples and assumes the system knows the number of gold statements to return for each. The authors classify selection as imperfect if it misses at least one gold statement. They classify the answer as incorrect when its token-overlap F1 is less than 0.5. The analysis therefore crosses an annotation-based check on the evidence with a threshold on the answer score.

The retriever misses at least one required statement in almost 85% of cases. Within the imperfect-retrieval group, 54 answers meet the correctness criterion, reported as 19%, and 236 fall below it, reported as 81%. With complete retrieval, 17 answers meet the criterion, reported as 34%, and 33 fall below it, reported as 66%. These are conditional counts and rates for the two evidence groups. A complete set is associated with better answers, and a majority of answers in that group still fall below the threshold.

The authors emphasize the prevalence of incomplete retrieval in this analysis. They interpret the improvement from the incomplete to the complete group as evidence that better retrieval has an important role in improving end-to-end performance. A correct response in the incomplete group can arise when the reader brings relevant knowledge of its own or can answer from the available material. A poor response in the complete group shows why evidence coverage alone gives an incomplete account of success.

The comparison groups examples according to what the search actually returned. They may therefore differ in difficulty. A question with easily recognized premises may also be easier to answer. The study’s evidence interventions give a complementary view because they change which statements a reader receives. The conditional counts describe how frequently the two kinds of shortcoming coincide in an existing pipeline.

Human review distinguishes wording from grounding

The authors inspect 50 randomly sampled Flan-T5 responses from the 340 oracle-condition examples. In that sample, they report that 18% of responses are ungrounded in the oracle statement. They also report that 32% receive low F1 despite being judged correct. The first observation concerns the relationship between the answer and the supplied evidence. The second concerns the relationship between the answer wording and the benchmark’s reference.

A variant of a word can suffice to illustrate the scoring problem. In an example about animals threatened by hunting, the answer uses extinct where the reference asks for extinction. The underlying outcome is the same, but the surface form differs. In another oracle example, the intended comparison concerns the temperature of red dwarf stars and the Sun. A response about relative size fails to express the property identified by the supplied statement. A low overlap score can therefore encompass failures with different implications for the reader.

The same distinction helps explain why the oracle score can be below what the apparent simplicity of the task suggests. A reader may recover the answer and express it in a longer form. It may answer a nearby question instead of the one supported by the statement. Human inspection can identify those cases in a way that the aggregate overlap score cannot do by itself. The review also ties the grounding issue to observed answers in a specified sample.

Query decomposition adds a reader-dependent step

Under DSP, the reader helps decide what the retriever looks for next. A good intermediate query can isolate a relation that the original question leaves implicit. A poor intermediate query can point the retriever back at the entire original problem or pursue an incidental term. The effect of the procedure thus depends on intermediate language generation as well as on the retriever’s ability to match a query to a statement.

The authors illustrate this with a question about why flowers depend on bees. A useful route connects bees to pollination and pollination to reproduction. In the GPT-3.5 example, the queries move from what bees eat towards the relationship between bees and flowers. The resulting rationale uses the evidence about pollination to answer. Other printed examples show that a change of query and a written rationale are compatible with a wrong final answer. The intermediate text helps identify the route the system took, while the answer still has to be checked.

Flan-T5-xxl sometimes generated a restatement of the initial question as its subquery. In an example about traits in cheetahs, the program repeats the question about learned and inherited characteristics across its intermediate outputs. The retriever sees little new information with which to change the search. Some final responses also include much of the retrieved evidence. That can raise token recall because the answer words appear somewhere in the response, while the larger amount of unrelated text reduces precision. This is the authors’ explanation for the contrast between Flan-T5-xxl’s relatively high recall in the multihop analysis and its weaker F1 under DSP.

Limitations

Limits the authors identify

The authors study the capabilities of existing pretrained systems and task checkpoints. They leave open how performance would change if each system were fine-tuned specifically on the reasoning benchmarks. Their results concern how the selected readers and retrievers transfer to the study’s tasks under the described setup. This scope matters for interpreting both low scores and differences among systems whose original objectives placed different demands on them.

The authors also point to the mismatch between kNN-LM’s training and question answering. Its memory and prediction procedure were built for language modeling, and the question-answering task is outside that training setting. It also underperforms the other systems in the paper’s language-modeling evaluation. That evaluation takes the form of ranking hypotheses with comparison candidates, so its result characterizes performance on this reasoning test. It leaves ordinary language-modeling performance outside the experiment’s scope.

A further limit is the evidential environment. The authors deliberately use a small collection of statements for each sample in place of the large shared collections typical of earlier retrieval work. This gives them control of which premises and distractors can enter the reader’s input. It also means that the reported retrieval scores apply to selection within those local stores. Corpus-scale search introduces questions about how relevant material is distributed across documents and how easily it can be located in the first place. Those questions are outside the central controlled comparison.

The paper itself discusses limitations of token-overlap F1 and illustrates them with the review of Flan-T5 outputs. F1 can penalize a semantically acceptable expression when it shares little wording with the reference. The same metric can award partial credit when an overlong answer includes some of the desired wording. The authors’ qualitative examples give evidence of both the limitations of the score and genuine failures to use the supplied information. Evaluating Open-Domain Question Answering and Evaluating Correctness and Faithfulness

Limits of what the comparisons can establish

Gold statements identify the evidence used by the benchmark explanation. That evidence is especially useful for checking coverage within the experiment. A reader can sometimes answer with a missing annotated premise by relying on prior knowledge, using an alternative argument or recognizing cues in the question. As a consequence, the gold-coverage check measures the retrieval of the specified evidence. A correct answer by itself gives limited grounds for identifying the reasoning process that produced it.

The oracle condition similarly measures performance under one specific intervention. It supplies the benchmark’s conclusion directly, in a linguistic form that the reader still needs to turn into an answer. The authors treat it as an estimate of upper-bound performance with the need for multi-statement reasoning removed. Interpretation of any gap should account for the change in wording and in how directly the answer is expressed. In sentence ranking, the supplied material can even be the candidate the system is expected to choose. Oracle scores are most informative when read alongside the gold-premise and distractor conditions.

Comparable parameter counts make the baseline comparison easier to interpret, while leaving differences in training objectives, architectures, retrievers and answer formats. The Flan-T5 size comparison narrows those differences by using variants of one family with Contriever. Larger variants score better in that setup. The comparison provides evidence about the available checkpoints and does not isolate parameter count from every other difference in the training of those checkpoints. The paper also describes most experiments as single runs, so the comparisons do not estimate variation across repeated runs.

There are related limits on attributing failures to components. The imperfect-retrieval group is large, and incomplete selection is associated with poorer answers. The contrast between conditional success rates uses different sets of questions, however. It cannot tell how each missing premise would have affected the answer if restored in isolation. The inputs in the exact-budget analysis also give the search stage information a deployed system may lack. The results make the attribution problem measurable under favorable assumptions without establishing a general allocation of all failures between retriever and reader.

The multihop result depends on the chosen DSP program, templates, search component and demonstration settings. In particular, the retrieve-then-read and multihop prompts use different amounts of example material because of context constraints. The observed change thus belongs to the complete procedures under comparison. The qualitative traces give reasons that repeated queries and verbose answers can hurt Flan-T5 under DSP. They leave open how another prompt, search policy or way of using intermediate evidence would perform.

Finally, choosing the right completion, answering a question and providing a valid explanation are distinct evaluation goals. EntailmentBank has an explanation structure that lets the authors manipulate the evidence, yet the main answer metrics score the output answer or the ranking. The system can receive credit for an answer without showing a valid sequence of inferences. Conversely, the human review shows how an answer can express the intended meaning and still receive a low overlap score. The claim supported by these experiments concerns behavior on evidence-controlled tasks, with qualitative checks on how that behavior arises.

What came after

The citing work spans several points in the same question-answering process. Query rewriting addresses the information given to the retriever. It is closely related to the paper’s examples in which a starting question names the object of interest but leaves the crucial intermediate relation implicit. The paper uses multihop query generation to examine one way of making that relation searchable. The later work takes the formulation of the query itself as the research problem. Its connection is to the evidence search stage and to the question of how the request sent to a retriever shapes the material available for answering. Query Rewriting in Retrieval-Augmented Large Language Models

Work on the role of noise in retrieval revisits another variable that the authors manipulate. In the paper, gold evidence can be held fixed while additional statements are introduced. Because those extras resemble ordinary search results, the resulting change in answer quality says something about the composition of the reader’s input. The later work makes noise a central topic in retrieval for question answering and generation. The connection is the need to characterize what a retrieved collection contains as well as which pieces of it directly support the answer. The Power of Noise

Research on knowledge conflicts looks more directly at the reader’s response to competing information. The authors’ oracle review already raises a question about whether a reader follows evidence placed in front of it when its learned associations suggest another answer. A study of conflicting knowledge takes that relationship as its subject. The overlap between the two papers is the problem of determining how much the final answer depends on the supplied context. Distraction and conflict make different demands because an irrelevant statement can divert attention without asserting a competing answer. Adaptive Chameleon or Stubborn Sloth

Work on knowledge-augmented reasoning distillation pairs the reasoning problem with the task of training smaller readers. Distillation uses a teacher system to help train a student system. This shifts attention from comparing existing readers under different evidence conditions to the possibility of influencing the behavior readers acquire during training. The connection to this paper is especially close where it asks whether a reader can make use of newly supplied facts, even when those facts have already been retrieved successfully. Knowledge-Augmented Reasoning Distillation

The study of readiness for real-world materials discovery brings the capability question into a specific application area. The evidence-controlled benchmarks in the retrieval paper ask whether a question can be answered by combining a known set of premises. Materials discovery raises the related question of how the capabilities of large language systems should be assessed in a specialized setting. The citation connects that application to research on what a reader can do with evidence and on the need to check performance under the demands of the target task. Are LLMs Ready for Real-World Materials Discovery?

Retrieval-augmented instruction work also moves the question towards training. Its subject is the use of diverse retrieval-augmented instructions to improve language systems. The earlier evaluation observes the behavior of an instruction-tuned reader presented with different kinds of evidence at test time. The later work places diversity in retrieval-based instruction material at the center of its approach. The link between them concerns how a reader learns to handle information supplied alongside the task. RAG-Instruct

The work on ensembling in binary question answering takes up a distinction between diversity in the systems answering and diversity in the ways a question can be interpreted. This connects to StrategyQA’s binary choices and to the multihop experiment’s attention to how a reader formulates a smaller question. A yes or no output offers little room to see which question the system understood itself to be answering. Studying alternative interpretations makes that upstream choice an explicit part of the comparison. A Binary Problem in Binary QA

Cite

Cite as Parishad BehnamGhader, Santiago Miret and Siva Reddy. 2023. Can Retriever-Augmented Language Models Reason? The Blame Game Between the Retriever and the Language Model. Findings of the Association for Computational Linguistics: EMNLP 2023.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2023.findings-emnlp.1036

@inproceedings{behnamghader2023can,
  title = {{Can Retriever-Augmented Language Models Reason? The Blame Game Between the Retriever and the Language Model}},
  author = {Parishad BehnamGhader, Santiago Miret and Siva Reddy},
  booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2023},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.1036},
  url = {https://doi.org/10.18653/v1/2023.findings-emnlp.1036}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/behnamghader-2023-can-retriever-augmented-language-models/