---
title: "QUADRo — paper by Campese et al. (2023)"
description: "QUADRo tests how well a system can answer new questions by finding and ranking existing question–answer pairs in a large open-domain…"
canonical: "https://research.elamur.ai/free/en/papers/campese-2023-quadro-dataset-models-question-answer/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/campese-2023-quadro-dataset-models-question-answer/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2023](https://md.research.elamur.ai/free/en/papers/2023/) / QUADRo: Dataset and Models for QUestion-Answer Database Retrieval

# QUADRo: Dataset and Models for QUestion-Answer Database Retrieval

Paper · 2023 · Stefano Campese, Ivano Lauriola and Alessandro Moschitti

**Authors:** [Stefano Campese](https://md.research.elamur.ai/free/en/authors/stefano-campese/), [Ivano Lauriola](https://md.research.elamur.ai/free/en/authors/ivano-lauriola/) and [Alessandro Moschitti](https://md.research.elamur.ai/free/en/authors/alessandro-moschitti/) · **Year:** 2023 · **Venue:** Findings of the Association for Computational Linguistics: EMNLP 2023 · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Findings of the Association for Computational Linguistics: EMNLP 2023 · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2023.findings-emnlp.1042/)
- [PDF](https://aclanthology.org/2023.findings-emnlp.1042.pdf)
- [DOI 10.18653/v1/2023.findings-emnlp.1042](https://doi.org/10.18653/v1/2023.findings-emnlp.1042)

## Summary

A system can sometimes answer a new question by finding an answer that someone has already given. The challenge is recognizing when that answer still applies. Familiar wording can hide a change in what the user is asking, and differently worded questions can call for the same response. QUADRo studies this form of [question answering](https://md.research.elamur.ai/free/en/concepts/question-answering/) by searching a database of stored questions and answers. A search component produces a shortlist of pairs, and an answer selector reviews the shortlist and returns the answer attached to the highest-ranked candidate.

The paper supplies both the collection to search and the judgments needed to develop the search and selection components. The database contains approximately 6.3M English question–answer pairs. To build a separate benchmark, the authors sampled 15,211 questions from the database, removed those questions from it, and searched for nearby pairs. They aimed to collect 30 candidates per query and obtained 443,000 annotated examples. Annotators saw the original question, the retrieved question, and its stored answer. The label records whether the questions are equivalent, with the answer helping the annotator decide whether the intended meaning and expected response agree. In a manual review of 200 annotations, the authors report that showing the answer brought annotation accuracy to 94%.

The results distinguish finding a usable candidate from putting it first. With the original search configuration used to gather the annotated candidates, 75.4% of queries had a positive match among the 30 retrieved pairs. The search component alone put a positive pair first for 42.6% of queries, and the initial answer selector brought that figure to 46.6%. In separate experiments on the held-out ranking test set, training on the new annotations improved selection. The strongest tested configuration put the incoming question next to the candidate answer and then included the stored question. It reached 50.8 precision at rank one on that test set.

A separate evaluation judged the correctness of answers to fresh questions from Quora, Natural Questions, and TriviaQA. QUADRo tied Falcon on Quora at 58.0% accuracy. Web search with answer extraction led on Natural Questions at 56.0%, and Falcon led on TriviaQA at 40.6%. Across these samples, QUADRo answered more accurately when its components could examine stored answers as well as stored questions. Its performance still depended on the collection containing a response that could be reused. The experiments show how much a database search can gain from better supervision and answer-aware ranking, and where those gains run into the limits of the stored material.

## Deep dive: QUADRo: Dataset and Models for QUestion-Answer Database Retrieval

QUADRo tests how well a system can answer new questions by finding and ranking existing question–answer pairs in a large open-domain database. · about 36 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Finding an answer that is already written

A question–answer database offers a different starting point from a collection of documents. A document search can lead a reader to a page that discusses the right subject, after which someone or something must identify an answer in it. A question–answer database has already associated pieces of answer text with questions they are supposed to address. A new query can therefore be answered by finding an existing pair and reusing its response. Search still matters, but each search result already contains a possible answer in a form that can be returned directly.

For this approach to work, the system needs a collection that covers the things people ask, a way to find plausible matches quickly, and a way to select a response from those matches. These needs are related. A large collection creates more opportunities to answer an uncommon question, while giving the search engine more plausible but irrelevant material to distinguish. A good search stage can bring the right response into reach. If it also brings back several almost-correct responses, the selector has to distinguish the candidate that satisfies the query from those that merely discuss the same subject. The collection and the components that search it solve different parts of the problem.

The paper calls this approach database question answering, or DBQA. It contrasts it with the open-book and closed-book approaches discussed in its introduction. An open-book system looks up material in an external collection and reads what it finds to select an answer. The search may cover a general document collection or the web. A closed-book system produces an answer from information acquired in training, without consulting a collection at the time of the question. The paper gives T5 as an example of the sequence-to-sequence approach used for closed-book answering. [T5](https://md.research.elamur.ai/free/en/papers/raffel-2019-exploring-limits-transfer-learning-unified/)

DBQA moves the work of finding or composing a candidate answer to the point when that pair enters the collection. At question time, the system can work with candidate answers that are already written. The authors cite fast inference and the ability to add knowledge by inserting new entries as attractions of this design. A new entry can be made available without retraining the components that compare and rank text. Whether those components will retrieve it for an unfamiliar phrasing is a separate question, which is precisely the kind of behavior the new benchmark is intended to measure.

#### Why detecting duplicate questions gets only partway there

The closest established task is duplicate question detection. It asks whether two questions express the same request. The paper places it within [semantic similarity](https://md.research.elamur.ai/free/en/concepts/semantic-similarity/), the study of how closely texts agree in meaning. Its account of earlier work traces a move from manually chosen lexical, syntactic, and heuristic features to methods based on translations or topics, and then to representations learned from text. Some methods embed each question independently. Others take the questions together, allowing words in either one to influence how the other is represented. The paper cites tBERT as an example of this joint approach.

Duplicate detection offers a natural starting point for searching a question collection. If two people ask the same thing, there is reason to expect that a sound answer to one will also serve the other. The transfer depends on the stored answer actually being sound and on the interpretation of the new query. A short question may leave a referent, a purpose, or the desired scope implicit. The stored response can help a reader determine what the earlier question meant. It can also reveal that two similar-looking questions concern different objects or that the response covers only part of what the new user needs.

The authors describe earlier database systems for FAQs and community forums, where the collection can be shaped around a service or topic. WEKOS combined clustering, word representations, and heuristics to identify equivalent questions in a collection drawn from Yahoo Answers. Other work combined BM25, which scores lexical matches, with a pretrained text encoder for retrieval and ranking. The paper also describes using generated paraphrases of questions or answers to provide more training material for FAQ tasks where examples were scarce. These approaches make sense when a collection has well-defined boundaries and the questions users ask are reasonably well represented within them. [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/)

RePAQ is the paper’s main example of this architecture applied at open-domain scale. Its PAQ collection contained 65M automatically generated question–answer pairs. A neural search component found candidates, and a ranker sorted them. QUADRo’s authors describe RePAQ as demonstrating competitive accuracy and efficiency, while identifying two problems for their purposes. RePAQ had no dedicated annotated question-ranking resource on which to train its components, and an estimated 18% of the pairs in its collection were incorrect. The paper also describes earlier work that used BM25 and dense retrieval in sequence for efficiency. It singles out an unresolved issue across these systems. Training focused on question similarity, leaving the practical contribution of stored answer text underexplored.

#### Why the authors collected judgments over ranked candidates

The available datasets covered different pieces of the task. QuoraQP supplied 404,290 labeled question pairs, with a judgment about whether each pair expressed the same meaning. A later extension attached answers to the second question using material from the original Quora threads. CQADup-Stack supplied relationships between questions from StackExchange communities, with annotated answers for a small portion of the pairs. WikiAnswers grouped questions that its users treated as paraphrases, while the paper notes that the associated answers could be long paragraphs. The SemEval community question-answering resource included judgments suitable for some reranking work, with a limited number of queries and data from specific domains.

A binary label on a pair helps train a classifier. When the task is to return an answer, the practical decision concerns a whole list. Each incoming query has several plausible candidates, and a system has to put a usable one above its competitors. It also encounters queries for which every candidate is wrong. A collection of isolated pairs gives less direct access to these cases. It may establish whether a method recognizes equivalent questions in the examples it was given, while leaving open how that method behaves when the strongest alternatives come from searching a real collection.

QUADRo’s authors therefore begin annotation with a search. Each sampled query gets a set of neighbors drawn from the same database. Some are positive matches, some discuss the right subject while seeking a different answer, and a candidate set can contain no positives. The labels support comparisons among rankings over these sets. They also let the authors compare the role of the answer at different stages. A person can read it as context when deciding on the label, an encoder can use it to build a search representation, and a selector can inspect it immediately before deciding what response to return. Each use raises a different empirical question.

### The method, step by step

#### Build the collection that supplies answers

The source database and the annotated benchmark serve different purposes. The source database is the inventory from which the system can answer. A record contains a stored question and an associated answer. The benchmark contains incoming questions and labels on records that were retrieved for them. A positive benchmark label is specific to an incoming question. The same record can be useful for one query and unsuitable for another. Keeping the distinction clear matters throughout the experiments, since the database’s millions of records are far more extensive than the portion for which the authors collected query-specific judgments.

The authors built the database from several public sources. For datasets that already associated questions with correct answer text, they extracted those questions and the corresponding answer spans. These sources included GooAQ, WQA, and CovidQA, along with WikiAnswer and HotpotQA. There can be multiple records for a single stored question, so the database statistics distinguish question–answer pairs from unique questions. The reported totals are 6.3M pairs and 5.7M unique questions. [HotpotQA](https://md.research.elamur.ai/free/en/papers/yang-2018-hotpotqa-dataset-diverse-explainable-multi/)

QuoraQP required an additional process because its core data consisted of question pairs for duplicate detection. Some questions had answers chosen from the original threads through a heuristic based on the rank of user contributions. To find answers for others, the authors searched a 2020 CommonCrawl snapshot with BM25. For each question they took the 200 highest-ranked documents, split the results into sentences, and used a sentence selector to choose a passage as the candidate response. A filter based on the selector’s score kept the top 10% of the resulting pairs. In a manual check of 200 randomly sampled answers from this automatically assembled subset, the authors report 93.0% accuracy.

The authors also filtered material from ELI5. Its questions came from Reddit, and the responses already reflected a ranking based on user votes. QUADRo added a relevance filter by keeping the 50% of question–answer pairs with the highest sentence-selector scores. The authors estimate 84.3% accuracy after manual annotation. The two checks establish the quality the authors observed in particular subsets. A selector trains on examples that present real stored responses, including some that may be unhelpful or incorrect, so the quality of those responses matters both as a property of the inventory and as a condition of the annotation task. [ELI5](https://md.research.elamur.ai/free/en/papers/fan-2019-eli5-long-form-question-answering/)

The decision about which sources to include also reflects when the database was used. The authors intended to draw benchmark candidates from it, so noise in the database would carry into the work of annotating those candidates. They considered adding PAQ, which would have expanded the range of questions. They cite its reported 82% correctness and the sometimes unnatural wording of its generated questions as reasons to favor the smaller collection. There is a distinction between this choice and the use of PAQ material during pretraining. A text pair can help an encoder learn a broad relationship between texts without also becoming a record whose answer the deployed system can serve.

#### Search first and read the shortlisted pairs together

An incoming question passes through two scoring stages. The search stage gives the database records a similarity score and retains the strongest candidates. The selection stage reads the incoming question together with each candidate and gives the candidate a new score. This second stage can weigh how well the stored answer addresses the incoming question and use the stored question to clarify what that answer was intended to resolve.

How QUADRo answers an incoming question The steps in order.

The search component is a bi-encoder, meaning it encodes the incoming query and the candidate record in separate branches. The branches share their parameters. Each produces a vector, also called an embedding, that represents its input for comparison. Encoding the records independently of the query makes it possible to prepare their vectors before a new query arrives. The authors draw on neural [information retrieval](https://md.research.elamur.ai/free/en/topics/information-retrieval/) for this design and use the sentence-embedding architecture associated with Sentence-BERT. [Dense Passage Retrieval](https://md.research.elamur.ai/free/en/papers/karpukhin-2020-dense-passage-retrieval-open-domain/) and [Sentence-BERT](https://md.research.elamur.ai/free/en/papers/reimers-2019-sentence-bert-sentence-embeddings-siamese/)

In the answer-aware search configuration, the query branch receives the input sequence `[CLS] t [EOS]`. The candidate branch receives `[CLS] qᵢ [SEP] aᵢ [EOS]`. Here `t` is the incoming question, `qᵢ` the question in a particular database record, and `aᵢ` its stored answer. `[CLS]` marks the beginning of the input in the paper’s notation, `[SEP]` separates fields, and `[EOS]` marks the end. The candidate vector can capture a relationship between its question and answer because those fields are encoded together. The query vector is produced on its own, and the query and candidate come into contact through the similarity calculation. Both branches use a [Transformer](https://md.research.elamur.ai/free/en/concepts/transformer/).

The paper describes the encoder as a mapping from text to a vector.

```
δ : Σ* → ℝᵈ
```

The function `δ` is the encoder. `Σ` is the alphabet used in the formal description, and the star in `Σ*` denotes the set of finite strings over that alphabet. The arrow points from the input set to the output space. `ℝ` denotes the real numbers, and `d` is the number of real-valued coordinates in each vector. The function can be applied to a question, an answer, or the encoded combination of a question and an answer.

The search score is the cosine similarity between the query vector and a candidate vector.

```
(δ(t)ᵀ δ(qᵢ, aᵢ)) / (‖δ(t)‖ ‖δ(qᵢ, aᵢ)‖)
```

Here `δ(t)` is the query embedding and `δ(qᵢ, aᵢ)` is the embedding of the encoded candidate pair. The subscript `i` identifies the candidate. `ᵀ` takes the transpose, so the product in the numerator is the dot product of the two vectors. Each pair of double bars denotes the Euclidean norm, or length, of the vector inside it. The denominator multiplies those lengths. Dividing by that product makes the comparison depend on how closely the directions of the vectors align. The search engine uses the resulting scores to return the `k` most similar records, where `k` is the shortlist size.

At this point, all the search engine has done for a particular query and record is compare the two resulting embeddings. The second stage can give the comparison more attention. It is a cross-encoder, which places the query, the answer, and the stored question in one input and represents them jointly. Words in the answer can now be interpreted in light of the specific query. This is the opportunity to discover, for instance, that a response about the right kind of device gives instructions for the wrong version. It also costs more, since the selector has to evaluate each candidate anew for each query.

The paper represents the returned candidate set as follows.

```
R = {(qᵢ, aᵢ) : i = 1, …, k}
```

`R` is the set of shortlisted records. Each parenthesized element contains the stored question `qᵢ` and its answer `aᵢ`, and the braces enclose the collection of those elements. After the colon, `i` runs from `1` through `k`, the number of returned records. With `Q` denoting the set of questions, the selector is a function of a question and a member of `R`.

```
r : Q × R → ℝ
```

`r` is the answer selector’s scoring function. `Q × R` represents the possible combinations of an incoming question and a retrieved record. Since that record has a question and an answer, the scorer takes the three pieces of text as one input. The arrow indicates that each combination receives a real-valued score from `ℝ`. In the answer-aware layout described for the main pipeline, the input is `[CLS] t [SEP] aᵢ [SEP] qᵢ [EOS]`. The separators distinguish the three fields.

The record to return is determined by the maximum of those scores.

```
arg maxᵢ₌₁,…,ₖ r(t, qᵢ, aᵢ)
```

`arg max` returns the index at which the score is greatest. The subscript limits the search to the indices of the `k` shortlisted records. `r(t, qᵢ, aᵢ)` gives the score for the incoming question `t` with stored question `qᵢ` and answer `aᵢ`. The output to the user is the answer `aᵢ` attached to the winning index. The selector does not have to draft an answer. Its decision is whether one of the pieces of text already on its shortlist is the best response to serve.

#### Use an initial search engine to collect difficult examples

The authors needed candidates before they could collect labels or train on them. They therefore used an initial Sentence-RoBERTa-base retriever trained on QuoraQP with an answer-aware input. It used the incoming question in one branch and the stored question plus answer in the other. The initialization is important because it gives the annotation process a concrete way to find plausible alternatives. A randomly selected question from an open-domain collection will frequently be irrelevant in an obvious way. A candidate found by a search engine is more likely to share vocabulary, an entity, or a subject with the query, while still being an incorrect response. Such a candidate is a hard negative.

The authors randomly sampled 15,211 questions, removed the selected questions from the source database, and used them as queries. Removing them avoids the straightforward case where a search engine simply rediscovers the sampled question in the inventory. The authors chose `k = 30` for annotation after preliminary experiments and with a fixed annotation budget. A deeper list yields more chances to find a positive for a given query. Annotating shallower lists allows the same budget to cover more distinct queries. The chosen depth gives both an appreciable search list and broad query coverage within the annotated resource.

This collection procedure also determines what the benchmark can say about retrieval. The originally retrieved records have labels. A different retriever can be scored cleanly when it reorders those same records, because the label on every item it ranks is known. If it performs a new search over the entire database, it may find records whose relevance to that query has never been judged. A held-out comparison over the fixed candidate lists therefore measures a slightly different ability from the open-domain experiment in which the system searches the full collection and people judge the returned answers.

#### Label equivalence with the answer in view

The crowdsourcing task showed annotators an incoming query, a retrieved question, and the answer associated with the retrieved question. Annotators had to decide whether both questions had the same intent and could be answered in the same way. The answer was available to guide interpretation, but the annotators were told that it could contain mistakes. The output was a single positive or negative judgment on the triplet. The protocol did not ask the worker to give separate labels to the paraphrase relationship and the factual quality of the response.

A training example in the paper concerns two ways of asking about cats living alongside dogs. The stored response describes how the animals can become accustomed to each other, which fits the intent of both formulations. A negative example changes the direction of a relationship. One question asks who killed Brutus, while the other asks whom Brutus killed. The names and central verb match, but the people who would answer those questions occupy different roles. The accompanying response about Brutus’s participation in a conspiracy does not make the queries equivalent. These are examples of what the judgments are intended to capture beyond word overlap.

The authors recruited workers through Amazon Mechanical Turk. Their stated filters included a record of approved tasks, with a minimum approval rate of 95% and at least 100 approved tasks for the workers described. Each annotation task contained 7 triplets, including 2 controls. The positive control was designed to be straightforward, and the negative control could be constructed by drawing unrelated questions at random. Missing either control invalidated the task. If a worker failed more than 10% of assigned tasks, the authors discarded that worker’s judgments and barred them from further annotation. The paper reports paying 0.15$ per annotation task. [Linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/)

Two workers judged each triplet independently. When their labels differed, a third worker supplied the deciding judgment. This yields a final label by majority vote, while the first pair of judgments supplies a way to measure agreement on the task. The authors also ran a separate check on what answer exposure changes. That distinction matters because agreement addresses whether workers tend to make the same decision, whereas the separate manual review concerns how often their decisions matched what the reviewers considered correct.

#### Train the two stages for their different jobs

For retrieval, the authors continued pretraining from a public Sentence-RoBERTa-base checkpoint. Their material included paraphrases, question–answer examples, titles paired with document abstracts, and other pairs they treated as semantically related. They report roughly 180M positive pairs and roughly 17.5M existing hard negatives, with hard negatives available from a subset of the contributing datasets. Using such a mixture gives the encoder practice representing relationships between texts whose forms differ, such as a question and a response or a short heading and a longer description. [MS MARCO](https://md.research.elamur.ai/free/en/papers/bajaj-2016-ms-marco-human-generated/), S2ORC, and [SPECTER](https://md.research.elamur.ai/free/en/papers/cohan-2020-specter-document-level-representation-learning/)

The retriever’s continued pretraining used MultipleNegativeRanking loss and cosine similarity. The loss trains the encoder to give the intended matches stronger scores relative to competing texts. The reported pretraining settings include an AdamW optimizer, a batch size of 384, a maximum length of 256 tokens, and a learning rate of `2e −5`. The batch size is the number of examples processed together for a training update, the length limits the size of the input sequence, and the learning rate controls the size of parameter updates. The authors then adapted the encoder on QuoraQP with the expanded answer material, before [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) it on the new ranking data.

The two retrieval layouts differ in what the candidate vector represents. In QQ, the query branch reads the incoming question and the other branch reads only the stored question. QQA keeps the query branch the same but gives the candidate branch both the stored question and its answer. The score in either case is based on cosine similarity. Because the incoming question is encoded in the same way in this comparison, the main question is how adding answer text to the representation of each record changes the subsequent ranking.

For the answer selector, the authors started from an Electra-base checkpoint trained on ASNQ for sentence selection. Its input had a question, a candidate answer, and extra context related to that answer. They adapted this checkpoint on QuoraQP and then on the new dataset. The prior task supplies an interpretation for the third field. A stored question can provide context for an answer the selector is judging, or the answer can provide context for the comparison between the two questions. The authors tried both arrangements to see whether the order and role of the fields affect the outcome.

In the selector comparisons, QQ presents the query and stored question, while QA presents the query and stored answer. QQA uses the query, stored question, and answer in that order. QAQ puts the answer immediately after the query and the stored question last. For the cross-encoder, these are changes to a single input sequence. This differs from the retrieval version of QQA, where the candidate fields share an input but the incoming query is encoded independently. The same letter shorthand therefore identifies which text is present and its order, while the architecture determines which texts can interact inside the encoder.

The authors selected training settings by grid search on the development split. That split was also used to stop training if validation loss deteriorated for 2 consecutive epochs. For retrieval they varied the learning rate, batch size, and maximum sequence length, with length options of 128 and 256 tokens. The selector’s grid varied the learning rate and batch size, with its length fixed at 256 tokens. The held-out ranking test split was used for the main reported comparison of the fine-tuned components. The authors identify the public project as `amazon-science/question-ranking` and say they are making the dataset and trained checkpoints available.

### Experiments and results

#### How the benchmark is divided and scored

The benchmark is partitioned by incoming question. The paper’s split table lists 11,711 queries for training, 1500 for development, and 2000 for testing. It reports `30 ±0` candidates per query in both development and test. The training split has `28.9 ±10.3` candidates per query in the same table, so the target depth of 30 should not be read as a guarantee about every training list. The mean number of positive pairs in the test split is reported as 4.7, while the mean number of negative pairs is 25.3. For the dataset as a whole, the authors report 5.8 positives out of 30 on average.

The evaluation uses several views of success. Precision at rank one, abbreviated P@1, asks whether the first result is positive according to the benchmark labels. It corresponds to the immediate decision made by a system that returns the answer attached to the highest-ranked record. Mean average precision, or MAP, uses the positions of positive items through the ranking. Average precision for a query rewards putting its positives early and tracks performance across relevant items, and MAP summarizes this across queries. Mean reciprocal rank, or MRR, instead emphasizes the position of the first positive. An early first match helps MRR regardless of where the remaining positives appear.

Hit rate at a specified cutoff asks whether at least one positive is available within that part of the list. If the list gets deeper, a query that already had a match remains a hit, and another query can become a hit when its first positive appears. This makes hit rate useful for examining what a reranker has available to work with. A high hit rate deep in the list can coexist with modest first-result accuracy, since moving the useful candidate to the first position is another decision. In the open-domain comparison, the paper uses manually judged answer accuracy. The judgment there is about the actual response returned for the query, so it has a different basis from the benchmark’s equivalence labels.

#### How much the original search exposes

The first experiment examines the configuration that generated the annotation candidates. Because it finds the original 30 records and those records have been judged, the authors can follow the performance of its ranking as the depth increases. For the same annotated lists they can also see how an initial answer selector changes the order. The retrieval-only Hit@1 is 42.6%, and the result after reranking is 46.6%. These are results on the questions sampled and removed from the database in the candidate-collection experiment. The separate held-out ranking table reports its own scores for a specific test split.

At the full depth of 30, the search stage has exposed a positive pair for 75.4% of the sampled queries. Reranking the same records can improve where their positive matches appear. Once the full shortlist is in view, changing its order cannot create an additional match. The difference between first-position performance and coverage at depth therefore identifies queries for which the system had something useful available but failed to put it first, while the coverage result itself still leaves a group for which no annotated positive had been retrieved.

A ranker powerful enough to compare the text jointly could in principle be applied to every database entry. The paper treats this as infeasible with a collection of 6.3M records, because the joint encoding depends on the query. The first experiment establishes why the two-stage design deserves to be evaluated as a pipeline. The search stage makes the cost of joint comparison manageable and shapes the set of answers the ranker can possibly serve. The ranker, in turn, determines whether the item the search engine scores highest is actually the most useful of the candidates.

#### How fine-tuning changes the held-out ranking

The dedicated ranking experiment scores different encoders over the 30 judged candidates per query on the proposed dataset’s test split. The baselines include the original candidate retriever, which had not been trained on the new annotations, and two publicly available RoBERTa cross-encoders trained on QuoraQP. The authors compare these with their fine-tuned Sentence-RoBERTa retrieval variants and Electra selector variants. Applying all of them to the previously retrieved lists lets the comparison use the same candidate labels across runs.

First-result precision on the QUADRo ranking test split The Electra selector with the answer next to the query puts a positive candidate first most often.

**The numbers**

| System or setting | P@1 |
| --- | --- |
| Initial Sentence-RoBERTa QQA | 39.1 |
| Fine-tuned Sentence-RoBERTa QQ | 43.4 |
| Fine-tuned Sentence-RoBERTa QQA | 48.4 |
| Electra QA | 37.1 |
| Electra QQ | 50.0 |
| Electra QQA | 49.3 |
| Electra QAQ (this paper) | 50.8 |
| QuoraQP RoBERTa base | 43.5 |
| QuoraQP RoBERTa large | 45.6 |

The best configuration in the table, Electra QAQ, also led on the metrics that reward finding positives beyond the top position. The paper gives it `48.4 ±0.1` MAP and `60.2 ±0.1` MRR, alongside `50.8 ±0.2` P@1. Its QQ counterpart recorded `47.7 ±0.3` MAP and `59.5 ±0.2` MRR. Electra QQA reached `47.63 ±0.1` MAP and `59.2 ±0.1` MRR. The leading position of QAQ thus extends to the early ranking more generally. The QQ and QQA results sit much closer together, and their ordering shows that the presence of an answer is only one part of the input design.

Among the retrieval encoders, the fine-tuned answer-aware variant recorded `45.6 ±0.4` MAP and `58.3 ±0.4` MRR on the test split. The question-only variant scored 41.6 MAP and 52.9 MRR, and the initial retriever scored 39.1 MAP and 50.4 MRR. The fine-tuned answer-aware retriever leads the other retrieval variants on all the reported ranking measures. The original search engine remains especially important for interpreting these results, since its shortlist is the material all the fine-tuned encoders are comparing. This test shows whether those encoders reorder that material better.

The QuoraQP cross-encoders provide a comparison with training aimed at duplicate detection. The base version scored 41.8 MAP and 54.4 MRR, and the large version reached 43.5 MAP and 56.0 MRR. Their labels and training source are useful to QUADRo as a starting point, but their performance on the fixed candidate sets trails the strongest systems fine-tuned on the target resource. The paper also reports an Electra QA result of `40.4 ±0.2` MAP and `49.5 ±0.3` MRR. Given only a query and an answer, this variant has less direct information about the relationship that the benchmark’s annotators were asked to judge.

#### How the complete systems answer fresh questions

The open-domain experiment uses different questions and a different ground for judging success. There are 200 Quora questions, 200 Natural Questions queries, and 150 TriviaQA questions. The paper says the chosen questions were absent from both its database and its training set. The authors manually judged the returned responses. This evaluates the full path from a new query to a surfaced answer, including whether the original search finds the right candidate at all. [Natural Questions](https://md.research.elamur.ai/free/en/papers/kwiatkowski-2019-natural-questions-benchmark-question-answering/) and TriviaQA

The main QUADRo configuration uses the fine-tuned Sentence-RoBERTa QQA retriever and Electra-base QAQ selector. The WebQA baseline uses Bing to find documents and a sentence selector to choose a response from retrieved text. The authors chose a depth of 500 candidates for the selection steps in these pipelines after preliminary testing. The candidate in QUADRo comes from a stored pair, while the candidate in WebQA is a sentence found through document search. The other baselines are Falcon 7B and Vicuna 7B v1.5. They generated responses without external grounding, using a shared prompt that asked for a concise, properly formatted answer and included example responses.

Answer accuracy on the fresh Quora question sample QUADRo ties Falcon and leads the web-based and Vicuna baselines on this sample.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| WebQA | 35.0 |
| Falcon 7B | 58.0 |
| Vicuna 7B v1.5 | 25.0 |
| QUADRo (this paper) | 58.0 |

The authors attribute QUADRo’s Quora performance in part to the kinds of queries in this sample. When a question leaves context implicit, a search for relevant web documents can be difficult. A database of earlier questions can yield a similarly framed request whose stored response still applies. The comparison with Falcon shows that, on this sample, a generative system could answer as accurately under the chosen prompt. Vicuna’s accuracy was substantially lower under the same evaluation. The reported outcomes therefore distinguish these particular baselines rather than showing a uniform result for all systems that generate answers.

For Natural Questions, WebQA scored 56.0% answer accuracy. QUADRo scored 50.5%, and Falcon and Vicuna each scored 40.0%. The authors relate WebQA’s advantage to the construction of Natural Questions. The relevant Wikipedia page is associated with the question, which makes it plausible that a strong web search can lead the selector to useful text. This differs from the task of finding an earlier question whose response happens to supply the same information. QUADRo’s result measures how often that second route worked on the sample, even though the original query itself had been withheld from the database.

On TriviaQA, Falcon scored 40.6%, QUADRo 29.3%, WebQA 27.0%, and Vicuna 21.0%. The paper describes TriviaQA questions as relatively complex and specific, with evidence documents collected for their answers. QUADRo’s score shows that reusing responses from its collection sometimes works even with this style of question. The scores also show a clear advantage for Falcon in this comparison. Across the three samples, the leading approach varies with the source of the questions. Each sample gives a different test of whether the most promising place to seek an answer is a stored pair, a web document, or information acquired during training.

#### What the timing measurements cover

The authors also measured QUADRo’s request latency on an Nvidia A100 GPU with a Sentence-RoBERTa base retriever, embeddings of size 768, and an Electra-base reranker. With a database of approximately 6.3M pairs, retrieving and reranking 50 pairs took 140ms. Retrieving and reranking 500 took approximately 0.53s. The timing curves were averaged over 200 executions. In this experiment, the authors report approximately 77ms for retrieval and observe that increasing the number of returned pairs mainly increases the time spent ranking them. The selector has more query–candidate combinations to encode, while the earlier search still examines the same collection.

A separate timing experiment fixes the shortlist at 500 and varies the size of the database. Under those conditions, retrieval time rises with database size. Together the experiments distinguish two ways to spend more time on a request. Increasing the inventory can make useful responses available for a wider range of queries and increases the work of searching it. Increasing the depth gives the selector more chances to find a useful response among records the search engine already has available, with additional joint scoring work. The timings describe those tradeoffs for the tested QUADRo configuration and hardware.

### What the ablations show

#### The answer helps in different ways at different stages

The paper studies answer exposure first as an annotation choice. The separate manual evaluation covered 200 annotations. When annotators saw the answer, the authors report a relative error reduction of up to 45%, with annotation accuracy reaching 94%. The answer makes a particularly revealing difference when the question pair is difficult to interpret in isolation. A stored answer can tell the annotator which sense of an ambiguous phrase was intended or show that a broader response addresses what both queries were trying to establish. That help is possible even though the final annotation is still a single equivalence judgment.

One example from the annotated data uses the expression “bully pulpit.” One question concerns where the expression comes from, while the other seeks the meaning of the expression or the person associated with it. Their wording points in different directions. The stored response explains the phrase through Theodore Roosevelt and the presidency, so it supplies information that can address both requests. The paper treats the positive label as appropriate in this instance. The example illustrates how seeing what a candidate answer actually says can resolve a judgment that would be uncertain from the questions alone.

For the retrieval encoder, the held-out QQ and QQA comparisons address the representational value of the answer. The query vector is formed the same way in both settings. When the candidate vector includes answer text, the encoded record has more to represent than the wording of the stored question. It can reflect names, explanations, or relationships made explicit in the response. Fine-tuned QQA leads QQ on P@1, MAP, and MRR. Within the fixed candidate lists, the additional text improves both the chance that the first item is positive and the broader arrangement of positive candidates. The experiment does not require assuming that every response clarifies its question. The improvement describes the aggregate effect of the input choice.

The selector comparison gives a more qualified result. Electra can jointly read the two questions in QQ, and that setting already performs well. Adding the answer in the final position, as in QQA, lowers P@1 relative to QQ. Moving it immediately after the query, as in QAQ, produces the highest P@1 of the Electra variants. The authors suggest that the earlier question–answer–context training helps explain the order effect. Putting the answer next to the query resembles the arrangement the checkpoint learned for sentence selection. The comparison establishes that order mattered for this checkpoint and these inputs, while the explanation through prior training is the authors’ interpretation.

Electra QA addresses the complementary question of whether the answer can do the work on its own. This variant uses the incoming query and the candidate answer while omitting the stored question. Its position in the held-out ranking results shows that the original question contributes information to the decision. The training target is particularly relevant to this result. If the benchmark rewards agreement between the questions, a scorer that cannot see one of them is missing part of the evidence used to make the label. In an actual answer selection task the answer can be independently useful, which is one reason the paper evaluates the final responses separately from the benchmark labels.

#### Removing components from the full pipeline

The end-to-end ablations use the same fresh question samples as the system comparison. The authors vary how QUADRo is trained, how it searches, whether it reranks, and whether it uses answers when representing candidates and judging relevance. The answer selector in the variants that retain it is applied to the top 500 candidates. All the rows are scored by the correctness of the answer that ultimately reaches the user. This makes it possible to ask whether improvements on the ranking benchmark translate into a better response after a new search of the database.

Answer accuracy of QUADRo variants on the fresh Natural Questions sample The complete pipeline leads the variants, with the weakest accuracy when BM25 replaces neural search.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| QUADRo (this paper) | 50.5 |
| Without QUADRo fine-tuning | 47.0 |
| BM25 in place of neural search | 37.5 |
| Without the answer selector | 40.0 |
| Question-only relevance | 45.0 |

Leaving out fine-tuning on the new annotation resource gave accuracies of 53.0% on Quora, 47.0% on Natural Questions, and 28.0% on TriviaQA. The corresponding full-system accuracies were higher on each sample. The strongest evidence from this ablation is the direction of the comparison across the three sources. The size of the effect is visibly smaller on TriviaQA. The authors suggest that the specificity of those questions may make training on a general open-domain resource less helpful. The ablation establishes the observed gain for this pipeline, while the explanation for variation across question sources remains an interpretation.

Replacing the neural search component with BM25 gave 39.0% accuracy on Quora, 37.5% on Natural Questions, and 29.3% on TriviaQA. The Quora and Natural Questions scores show the importance of the initial candidate search for these samples. If lexical retrieval produces a list whose best answers are missing, the selector has no way to repair that omission. The authors connect this comparison to the ability of learned embeddings to recognize relationships between short texts whose exact words differ. The TriviaQA row ties the complete pipeline, so the comparison supplies evidence for the advantage on the other samples and a case where it did not appear.

Removing the answer selector and using the neural search component’s ordering gave 51.5% on Quora, 40.0% on Natural Questions, and 19.0% on TriviaQA. Each score is below the corresponding full-pipeline result. That pattern shows that the selector contributes even after a deeper search than the one used to collect annotations. It has a chance to promote a response that the independent query and candidate vectors did not put first. The final accuracy scores capture the combined outcome. They do not show how many individual queries were rescued by reranking or whether the selector also displaced some answers that the retriever had ranked correctly.

The question-only relevance variant changes both stages to use question similarity without including answer text in the relevance calculation. It returns the answer attached to the selected question, but it does not use that answer as evidence when choosing the record. Its accuracies are 50.0% on Quora, 45.0% on Natural Questions, and 25.3% on TriviaQA. Each is below the complete system. This is stronger evidence for the value of answers in the actual response decision than the small separation among the answer-aware and question-only cross-encoders on the equivalence benchmark. Since the variant changes retrieval and selection together, it measures their combined dependence on the response text.

#### Comparing architecture choices on their own terms

The paper reports two preliminary architecture comparisons. For answer selection, it compares Electra and RoBERTa cross-encoders using the same QAQ layout and the same pretraining procedure described for that comparison. RoBERTa QAQ recorded `47.5 ±0.3` P@1, `46.5 ±0.2` MAP, and `57.7 ±0.1` MRR on the reranking test set. Electra QAQ scored higher on all three. Here the layout is held constant, so the comparison supports the choice of Electra for the selector in the rest of the experiments.

The preliminary retriever comparison uses a semantic similarity benchmark. Sentence-RoBERTa achieved 85.4 Pearson correlation and 85.1 Spearman correlation. Sentence-Electra recorded 74.8 and 75.1 respectively, and Sentence-DeBERTa-V3 recorded 76.4 and 77.3. Pearson correlation concerns agreement in the relationship between the numerical scores, and Spearman correlation concerns agreement in their ordering. The two metrics favor Sentence-RoBERTa in that similarity experiment. It was a basis for choosing a retriever architecture, whereas the QUADRo ranking and answer-accuracy experiments measure what the chosen architecture did in the database system. [SemEval semantic textual similarity](https://md.research.elamur.ai/free/en/papers/cer-2017-semeval-2017-task-1-semantic/) and [DeBERTaV3](https://md.research.elamur.ai/free/en/papers/he-2021-debertav3-improving-deberta-using-electra/)

### Limitations

#### Limits identified by the authors

Coverage is the limitation the authors emphasize first. QUADRo can only return an answer that is already stored. Enlarging the collection can address some gaps, and an external resource such as PAQ could make more records available. Some questions are sufficiently infrequent or specific that a reusable response may still be absent. The retrieval and selection experiments address how to find and order existing answers. A failure due to a missing answer has to be addressed at the level of the collection. A low position for an answer already present has a different cause.

The authors also identify the need to refresh the contents. Some questions have answers that change over time. A stored response can fit the wording and original meaning of the query while giving information that has become stale. The ability to add material without retraining makes updates possible, but keeping the answers current requires decisions about when a response should be revised or replaced. The paper evaluates an assembled inventory and its use in the reported experiments. It gives no measurement of accuracy as the contents age or of how a refresh process would affect the results.

A further stated concern is domain shift, meaning a change in the kind of input the system receives compared with its training material. The retriever has seen several sources and training tasks, and the end-to-end comparison uses fresh questions. The authors nonetheless say they cannot quantify the size of a drop under domain shift. The test samples establish some transfer between the data used to build the system and the particular queries selected for evaluation. They do not establish what would happen in every new domain or with populations whose questions differ substantially in form or purpose.

The authors also observed that annotators could give more weight to the relationship between the questions than to whether the stored answer actually satisfies the new query. The instructions addressed both intent and shared answers, and answer text helps people make the judgment. Yet one binary decision cannot express all the ways those considerations can diverge. The authors regard this as a possible source of skew for systems trained on the full triplet. The weaker open-domain scores of the question-only variant show why discarding the answer would lose useful information even with this imperfection in the training labels.

#### What the setup leaves unresolved

A benchmark label and a usable response can come apart when one question asks for more than the other. In an example the authors flag as a labeling error, the new query asks for the name of a boat’s rear, and the stored question asks for the names of both ends. The stored response includes the answer the query needs. Treating strict equivalence as the task can yield a negative judgment even though the response is adequate for the narrower request. This is a directional relationship. The answer to the broader question works for the narrower one because of what it contains. A response that supplied only the name of the rear would leave the broader question partly unanswered.

A second annotation example shows the opposite error. In that instance the input query concerns a remote control, while the stored question and response concern a remote keypad. Their surface similarity was enough to produce a positive label, even though the instructions did not fit the device in the query. Together these examples show why the benchmark includes hard cases and why its positive labels are imperfect proxies for end-to-end correctness. They also show why agreement alone cannot settle the matter. Annotators can agree about a wording relationship while missing a distinction that determines whether the answer is useful.

The annotation report gives 78% raw agreement between the initial annotators and a Cohen’s kappa of 0.875. Raw agreement is the fraction of cases given the same label, while kappa adjusts for agreement expected by chance. These values cannot describe the same ordinary paired calculation, since this chance correction cannot raise kappa above the raw agreement in that calculation. The paper gives no explanation that reconciles them. It also reports no agreement measurement across all annotators, since the third worker was brought in for disagreements only. The separate review of 200 annotations supplies evidence on the benefit of showing answer text, with the scope of that manual check.

The reported 75.4% answerability has a specific denominator and search condition. It concerns the sampled questions and the presence of a positive label among their collected candidates. Some queries without a positive could have a suitable response elsewhere in the database, outside the initial top 30. Other queries could have no suitable response anywhere in the inventory. The experiment does not resolve those two cases. It follows that this figure serves as a ceiling for rearranging the original labeled lists, while a fresh search or a broader candidate pool may lead to a different set of answerable queries.

Candidate sampling also gives the benchmark a particular distribution of negatives. They are mostly cases that one answer-aware retriever thought worth bringing forward. This is a strength for measuring performance against plausible distractors of that kind. Alternatives found by other retrieval methods can have different failure patterns, and judgments on the original list do not extend to unexamined records. The test split therefore supports a controlled comparison on the query and candidate lists that were collected. The fresh-query experiment provides separate evidence about full search behavior, with manual judgments of only the resulting responses.

The open-domain comparison uses 200 Quora questions, 200 Natural Questions queries, and 150 TriviaQA questions. Those sample sizes and the source of the questions matter when interpreting the different winners. The paper reports accuracy under a particular commercial web search setup, candidate depth, database, and generation prompt. It supplies point estimates for those sampled questions. Small score separations in the comparison do not by themselves establish how consistently the systems would rank on a new sample of questions. The authors describe the generative comparison as zero-shot, and the actual prompt included worked examples of the requested response format. The scores belong to that prompting setup without external grounding.

Finally, the architecture is evaluated mainly on the task of choosing the best available candidate or judging a returned response. The paper raises abstention as a future problem because some queries have no positive candidate. A selector that can sort plausible answers has not necessarily learned when the best one is still too weak to serve. Hit rate and manual accuracy give evidence about candidate availability and answer correctness. They do not measure a policy that declines to answer, calibrates confidence, or decides when another source should be consulted. These problems become especially important when incomplete database coverage is a feature of the deployment instead of an occasional error.

### What came after

Later work building on QUADRo is undocumented in the available record. The paper itself identifies two open directions. One is to improve how a system selects a correct response when the search has already placed it somewhere in the shortlist. The other is to recognize queries for which that shortlist contains no usable answer. These directions follow from different results in the paper. The gap between first-result success and deeper hit rate shows room for better selection, and the queries with no positive candidate make abstention a separate decision.

## Cite

Cite as Stefano Campese, Ivano Lauriola and Alessandro Moschitti. 2023. QUADRo: Dataset and Models for QUestion-Answer Database Retrieval. 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.1042](https://doi.org/10.18653/v1/2023.findings-emnlp.1042)

```bibtex
@inproceedings{campese2023quadro,
  title = {{QUADRo: Dataset and Models for QUestion-Answer Database Retrieval}},
  author = {Stefano Campese, Ivano Lauriola and Alessandro Moschitti},
  booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2023},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.1042},
  url = {https://doi.org/10.18653/v1/2023.findings-emnlp.1042}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
