Document Expansion by Query Prediction
Paper · 2019 · Rodrigo Nogueira, Wei Yang, Jimmy Lin et al.
Summary
A passage can answer a question without using the words a reader would type to find it. That matters for search engines that rely on shared terms to locate promising results. In Document Expansion by Query Prediction, the authors give the search engine more words to work with by adding them to the material it searches. Their method, Doc2query, learns from examples of queries paired with relevant passages. It uses each passage to predict plausible requests for the information inside it. The authors then add those predictions to the searchable text ahead of time, so a user’s query can match either the author’s wording or language that the generator has supplied. The problem sits at the first stage of information retrieval, where a passage must be found before anyone can judge its usefulness.
Doc2query uses an encoder–decoder transformer to turn passages into queries. During training, the authors break the input and target text into tokens and sub-word units, with limits of 400 tokens per input document and 100 per target query. After training, they draw 10 predictions per document using top-k random sampling, which chooses among likely continuations as a query is written. They attach the resulting text without special markers. Anserini builds the searchable collection, BM25 supplies the initial term-based ranking, and BERT can optionally reorder the candidates. The authors release their experiment code and trained components.
The experiments cover user queries in MS MARCO and searches for Wikipedia section paragraphs in TREC-CAR. The paper describes the overall improvement over plain BM25 as approximately 15% on both benchmarks. On the MS MARCO development split, MRR@10, a measure that rewards early relevant hits, rises from 18.4 to 21.5. Combining expansion with BERT gives the best TREC-CAR result the authors knew of and puts the system close to the leaders on MS MARCO. RM3, the query-expansion technique they test, lowers effectiveness on both collections. Expanded BM25 takes 90 ms per query against 50 ms for ordinary BM25 in the authors’ measurements. The expanded search is approximately seven times faster than Single Duet v2, whose MRR@10 is three points higher.
The generated text improves access in two ways. Among predicted words left after common stop words are excluded, 69% occur in the source passage and 31% are absent. Repetition can give selected passage terms greater influence, while absent words can create matches the passage previously lacked. On MS MARCO development queries, keeping only absent words scores 18.8 MRR@10 and keeping only repeated words scores 19.7, compared with 21.5 when both are retained. Expansion also raises Recall@1000 on the same split from 85.3 to 89.3, making more judged-relevant material available for reranking. The generator does its work during collection preparation. A search engine can use the resulting index directly when response time matters, or pass its candidates to a more expensive reranker.
Deep dive: Document Expansion by Query Prediction
Doc2query predicts what people might search for and adds those words to documents before indexing, improving conventional keyword retrieval. · about 38 minutes to read
The problem and its context
What a search engine has to find first
Terms offer convenient points of entry into a collection. If a reader supplies a place name, for example, the search engine can look up which passages contain it. An inverted index organizes this lookup by term. Once the engine has found passages with matching terms, a scoring rule can order them by the strength of the matches. The arrangement is useful on large collections because the engine can identify relevant portions of the index from the query instead of inspecting every passage individually. It also means that the language entered by the reader influences which passages receive consideration in the first place.
A reader commonly starts with the thing they want to know. The author of a relevant passage starts with the material they want to describe. A passage might report observations about a city using its name and descriptions of local conditions, while the reader uses a word for the broader subject. Even with the city name in common, the extra word in the query can give a competing passage more evidence in its favor. Vocabulary mismatch therefore includes a matter of degree. A passage can share enough words with a request to be found in principle and still be pushed so far down the ranking that it is effectively missed.
This difference between finding a passage and presenting it prominently is especially important in question answering. Someone asking a question cares about reaching the information that resolves it. In the setting studied here, the search engine’s immediate job is to identify passages that could supply that information. A candidate list populated by passages with superficial matches gives a later relevance scorer less useful material to work with. An improvement at the beginning of the search can consequently matter even if the visible benefit appears only after the collected candidates have been reordered.
The paper approaches the mismatch as a choice about where the system can introduce additional evidence. One option is to infer the intended subject from the short text entered by the reader and use that inference to revise the query. Another is to infer the kinds of requests that could lead to a passage and make the passage accessible through their vocabulary. The starting material is different in each case. One begins with a reader’s immediate expression of a need. The other begins with a piece of content and can draw on its descriptions, names and relationships to anticipate several different needs.
What earlier retrieval work tried
The authors trace several responses to the era when keyword matching dominated information retrieval. Relevance feedback uses information about useful results to improve the expression of a request. Query expansion adds terms that may help the request reach more of the right material. An initial search can supply the text from which to choose those extra terms. Statistical translation takes a further step towards relating different expressions by treating the connection between query and document terms as something that can be learned. The paper groups these approaches by where they intervene. Each gives the search engine a richer account of what the user might mean.
Latent semantic indexing represents a different earlier effort to move beyond direct word overlap. In the history given by the authors, that line and its successors saw limited uptake. They describe renewed interest in matching different expressions once neural approaches made it possible to represent words in continuous spaces and learn more complicated relevance functions. The appeal is easy to see from the problem itself. Two expressions can be closely related even when they have different written forms, and a learned representation can give a ranking system a way to use that relationship.
Document expansion already had its own history. The paper points to previous efforts to enrich short texts and to work on speech and multilingual retrieval, where the available terms can be noisy. Those cases make the purpose of the operation concrete. If the words associated with a piece of material are incomplete or unreliable, another description may give the search engine additional ways to reach it. The authors also cite a comparison that favored query expansion consistently when the two approaches were tested within the same framework. Changing which side receives the extra words provides a research question. It gives no reason on its own to expect one side to win.
The two approaches also differ in how quickly researchers can try them. A query is assembled during search, so a new way of revising it can be tested against an existing index. With document expansion, the additional words form part of the collection that the search engine has indexed. Altering how those words are produced calls for indexing the revised collection. The authors point to this difference when explaining why document expansion has attracted less attention. An experiment that changes the representation of every document has a preparation cost before its retrieval quality can even be measured.
Where neural relevance scoring fits
A relevance scorer that examines a query and a passage together can make use of their relationship in more detail than a direct term match. The obstacle identified by the paper is how often the scorer would have to run if it handled the whole collection. At the scale the authors are concerned with, evaluating every document against every new request is impractical. The typical arrangement they describe starts with term-based retrieval. A more expensive neural component then evaluates a much smaller set of candidates. Its job is reranking, meaning that it puts the retrieved items in a new order.
This division makes the output of the first stage consequential in its own right. A good candidate may start low in the set and still reach the front if the reranker recognizes its relevance. There must first be a candidate for the reranker to score. If a vocabulary gap keeps a passage outside the pool, better judgment about the items inside the pool cannot compensate for that particular omission. At the same time, a fast initial ranking can be returned directly when the application places a greater premium on response time. That gives first-stage quality practical importance even without a second stage.
Doc2query puts learned processing earlier in this established arrangement. The authors use the contents of the collection to generate new lexical evidence and store that evidence where the fast retrieval stage can use it. Their question is whether the resulting term matches can capture some of the relationships that make neural relevance scoring attractive, while allowing the search engine to avoid paying for query prediction on each request. The relevant innovation is how the expansion is obtained. Earlier document expansion established the idea of making a document searchable through additional terms. Doc2query obtains those terms by learning to write the kinds of queries associated with relevant text.
A predicted request is a useful form for that extra wording because it expresses a relationship between the passage and a reader’s purpose. A general description of a passage might emphasize what it says most often. A request might name an aspect that the passage mentions once but explains well. It can also include a topic word that a reader would naturally supply even when the passage itself moves directly into particulars. The paper’s design puts those potential access terms into the collection at preparation time and lets the existing ranking procedure decide how much they matter for an actual search.
The method, step by step
Turn a successful match into a prediction example
In everyday retrieval, a request is the starting point and a relevant passage is a desired result. In Doc2query training, the passage becomes the starting point. The query associated with it becomes the text the system tries to produce. The reversal is possible because the training dataset already supplies the connection between them. Each pair gives the generator a concrete instance of what someone could be looking for when the accompanying passage is useful. The system learns from those examples across the training collection and later applies that experience to documents for which no future query is yet known.
Relevance supplies a practical training target. A passage about a named subject can be useful to a reader who asks about its location, relationships or other properties. A pair gives the generator one observed way of connecting that subject matter to a request. It leaves room for other equally reasonable formulations, and several may draw on different facts in the same passage. This is why the deployed generator can produce a set of predictions even though the supervised task uses an individual associated query as the target for a training example. The prediction task is to produce plausible routes to the passage.
The word query also has a broader meaning here than a complete question with a question mark. MS MARCO supplies search queries, and TREC-CAR constructs its requests from titles. In either case the output is the sequence of words through which the document could be sought. Doc2query can operate with both target formats because the paired data supplies the desired wording for its collection. The lexical search engine ultimately consumes the words in the generated text. A title-like request can serve that purpose as readily as a grammatical question if its terms give the passage a useful connection to later searches.
How Doc2query prepares and searches a collection
The steps in order.
Represent the input and target as sequences
The authors begin with Moses tokenization, which breaks the written text into units the generator can process. They follow that step with byte pair encoding, or BPE, as described in their cited work on rare words. BPE provides a form of subword tokenization. A sequence can therefore contain pieces of a word as well as units that correspond to whole words. The same preparation is applied to the passage and to its target query, so the generator learns the mapping between sequences expressed using this scheme. Neural Machine Translation of Rare Words with Subword Units
The token counts in the training procedure describe the prepared sequences. The authors cap the document sequence at 400 tokens and the query sequence at 100 tokens to limit memory use. These bounds have different immediate effects. The input cap limits how much passage text the encoder can draw on when working out what the passage is about. The target cap limits the length of the query sequence used for supervision. Because the sequences are segmented, the counts should be read as counts of processing units. A word represented by several pieces takes up more of the limit than a word represented by a single unit.
Those preparation steps belong to query generation. After generation, the paper describes appending the predictions to the original document text and building the usual search index. The experimental intervention is the addition of the predictions. It is helpful to keep that operation distinct from the sequence limits. The cutoff says how much text the generator can condition on. The append operation says how its output is used. Keeping track of which component sees which text is particularly important when considering longer documents, since the ability to index a document and the ability to predict requests about its later material are separate questions.
Train an encoder and a decoder
The generator adopts the base transformer design. The encoder processes the passage and represents it as a sequence whose positions can draw information from other positions through attention. The decoder uses the encoded passage and what it has generated so far to choose continuations for a query. For a request involving a named place or a relationship, the decoder can use the surrounding passage to decide which details belong together and which request forms fit those details. The authors use the established architecture to study a particular input, output and indexing arrangement. Attention Is All You Need
The encoder and decoder each contain 6 layers, with 512 hidden units per layer. Hidden units are the internal values the layers use to represent information about the sequences. The design uses 8 attention heads, allowing attention to operate through several sets of weights within a layer. Its feed-forward layers have 2048 hidden units. These are specifications of the base configuration adopted in the paper. The retrieval comparisons later in the article concern how the output of this generator is used. They do not assign a portion of the ranking improvement to each layer or attention head.
The authors train the generator through OpenNMT on four V100 GPUs. A batch contains 4096 tokens, so training groups text by a quantity of sequence units. Training has a ceiling of 30 epochs, where an epoch is a pass through the training data. The training procedure also includes a stopping rule that can end learning sooner. At this point the system is learning a text transformation. The source supplies what the decoder can attend to, and the paired query gives it the sequence to learn to produce from that source. OpenNMT
The paper specifies the optimization settings instead of introducing a new scoring equation for retrieval. The stated learning rate for Adam is:
learning rate = 10⁻³
The expression on the left names the setting that scales parameter updates. The equals sign assigns the reported value. On the right, 10 is the base and the superscript ⁻³ is the negative exponent. The authors warm up the learning rate during the first 8,000 update steps and use linear decay. The written value is the stated configuration for that schedule. Adam
The paper gives Adam’s coefficient for its running estimate of the gradient as:
β₁ = 0.9
The symbol β₁ names the coefficient for the first moment, the running estimate based on the gradients themselves. The subscript identifies this coefficient, and the equals sign assigns it the value 0.9. The setting controls how much the optimizer carries that estimate forward from preceding updates.
It gives the coefficient for the running estimate based on squared gradients as:
β₂ = 0.998
The symbol β₂ names the coefficient for the second moment. Its subscript distinguishes it from the preceding coefficient. The equals sign assigns the value 0.998, which controls how much of the running estimate of squared gradients carries over between updates.
The reported L2 weight decay is 0.01. Weight decay limits the tendency of weights to grow during training. The authors use a dropout probability of 0.1 in all layers. Dropout temporarily withholds some internal activations during training, reducing reliance on any particular set of them. These settings are part of how the authors fit the query generator. At search time the learned behavior reaches BM25 through the words that the generator has already written. BM25 does not need the training settings or access to the output probabilities.
The authors monitor BLEU on the training and development sets. BLEU evaluates generated text through overlap with reference wording. Here the references are the queries associated with relevant documents. Training ends if the difference between the training and development BLEU scores exceeds four points. The purpose is to detect overfitting, where performance on the examples used for learning begins to pull too far ahead of performance on held-out examples. The check concerns reproduction of query wording. Later retrieval tests determine whether the words produced by the generator help rank relevant material.
Draw several queries from the learned distribution
The trained generator produces each request a token at a time. For the main method, the authors use top-k random sampling. The symbol k names the number of likely next-token options eligible for a draw. Each choice becomes part of the sequence that determines the next set of options. The restriction keeps sampling within the favored continuations at each point while allowing different choices across predictions. The reported count of completed queries, 10 per document, is a separate setting from the size of the next-token shortlist. Hierarchical Neural Story Generation
Drawing several requests gives the system opportunities to emphasize different parts of a passage and to put similar material into different words. Suppose a passage includes both the name of a place and some description of a feature there. One possible request might make the place name prominent. Another might repeatedly mention the feature, or use a broader term for what the feature represents. The retrieval system can benefit from these differences when the extra language overlaps later queries. The passage remains the basis for all the predictions, so variation comes from different ways of asking about the same source.
The decoding procedure matters because changing how a generator chooses its words changes the text delivered to the index even when all the learned weights stay the same. Beam search, the alternative tested by the authors, keeps several promising partial sequences and extends them to obtain full hypotheses. Sampling draws a continuation from the eligible next tokens as a query unfolds. Either procedure can produce multiple queries. Those queries can overlap heavily or address different details, and the ranking consequences depend on the resulting mix of useful and distracting terms. This is why the paper compares the methods after indexing their outputs.
Give BM25 an expanded document
The authors append the predictions directly to the document text. There is no special markup identifying the extra terms as coming from a question or identifying a word as part of the source. The indexing stage sees expanded documents in the same form it already accepts. This makes the generator and search engine easy to connect. The generator produces text, and the search engine builds an index from text. There is no requirement for the index to interpret the sequence of predictions as a structured set of questions with separate weights or answer fields.
BM25 is the term-based ranking rule used with the Anserini search toolkit. The original and expanded collections use this same retrieval rule. The choice of text affects the evidence used by the rule. A word introduced by the generator can make the passage match a term it previously lacked. A word repeated by the generator can affect the strength of a match the original passage already supported. BM25 uses information about term occurrence and document length, so adding a prediction can affect how the whole document is scored. The authors test the combined effect by retrieving against the expanded collection. Okapi at TREC-3
When a live query arrives, Anserini can produce a BM25 ranking directly. An optional BERT stage scores the retrieved passages against the incoming query and reorders them. In this pipeline, the generator’s conditioning text is the document during preparation. The BERT relevance judgment involves the actual request and a candidate during search. These are distinct opportunities to use learned processing. Predicting possible searches helps determine which passages enter consideration. Reranking makes a more detailed decision about what should appear first once those passages have been located. Passage Re-ranking with BERT
The implementation combines OpenNMT for learning and producing the queries, Anserini for building and searching the index, and TensorFlow BERT for the reranking condition. The authors release code to reproduce their experiments and trained components. The interface between stages is central to the paper’s engineering argument. Once prepared, the expanded collection is sufficient to use the predicted words in lexical retrieval. An application that stops at BM25 can make use of them whenever it searches that index. The slower computations of prediction were already done when the documents were prepared.
Experiments and results
MS MARCO supplies search queries and judged passages
MS MARCO contains 8.8M passages in the ranking collection used by the paper. Its passages come from Bing’s top-10 results for 1M queries. This makes the provenance of the candidate material part of the experimental setting. The passages were collected through a search engine, and the experiments ask how well new rankings using that collection place passages judged relevant to held-out requests. The training set offers roughly 500k pairs linking queries with relevant text. On average, a query has one relevant passage in the data.
The development and test splits each contain about 6,900 queries. Public relevance judgments are available for the development split. That is the split used for the paper’s analyses of copied and novel words, decoding and candidate recall. These analyses can compare the ranked results with the available judgments directly. The test setting supplies the leaderboard context described by the authors. The distinction matters when reading scores from the article. A number identified as a development result measures performance on that group of queries and should be understood in that context.
MS MARCO’s official measure in the paper is MRR@10, short for mean reciprocal rank with a cutoff at the top-10 results. For each query, the ranking receives credit according to the reciprocal of the position of its earliest judged-relevant passage within that cutoff. A hit at the very front receives the largest credit, and a query with no judged-relevant result inside the cutoff receives none. The final measure averages across the requests. It is responsive both to failures to return an early relevant result and to differences in where the first such result appears.
This makes MRR@10 a natural way to evaluate a system that tries to find a useful passage quickly. It also bounds what the measure can say about the retrieval pool. A passage outside the evaluation cutoff can still be available to a second-stage scorer, and two systems can get the same reciprocal rank for a query while supplying very different sets of candidates farther down. The paper therefore examines recall at a larger candidate depth as well. That gives it a separate measurement of whether promising material survives initial retrieval.
TREC-CAR gives the system a topic and a section
TREC-CAR constructs the query by combining the title of a Wikipedia article with a heading from one of that article’s sections. The section’s paragraphs supply the relevant material. The collection is made up of English Wikipedia paragraphs with article abstracts excluded. A request thus identifies an aspect of a larger topic, and the system must retrieve the paragraphs that belong under that aspect. This is a different source of training targets from ordinary search queries. The wording frequently has the form of headings, and the generator learns to produce access terms suited to that style of request.
The corpus is released with five pre-defined folds, or partitions of the data. The authors train with the first four, comprising about 3M queries, and validate on the remaining partition, with about 700k queries. For testing they use the evaluation set from TREC-CAR 2017, which contains about 2,250 queries. Those roles matter for interpreting the size of the experiment. The queries used to teach the association between paragraphs and section language are part of the training folds. The final test concerns retrieval for the separate set used in the evaluation exercise.
The study reports MAP on this collection. MAP means mean average precision. For a given query, average precision takes account of the precision reached at ranks containing relevant items, with credit tied to how many of the relevant items the system finds and where they appear. The mean is taken across queries. This is appropriate when a section supplies multiple relevant paragraphs and an early result may cover only part of the desired material. MRR@10 and MAP consequently answer different questions. The former emphasizes the first successful hit in a short list, while the latter is sensitive to how relevant paragraphs are distributed through a ranking.
The collections give Doc2query two related tests of its premise. In one, the learned transformation connects a passage to language from search queries. In the other, it connects an encyclopedia paragraph to language that identifies its topical place within an article. A gain in both settings would show that the preparation strategy can work with these different sources of supervision and these different evaluations. The score scales and relevance conventions remain specific to each benchmark. They provide no common numerical scale on which to compare the difficulty of the two retrieval tasks directly.
Compare changes to the index, the query and the final ordering
The plain BM25 baseline indexes the original text in Anserini. The expansion condition adds the generated queries, rebuilds the index using that collection and applies BM25. The paper uses the top-1000 passages in its ranking evaluation setup. At that depth, initial retrieval supplies a substantial pool to consider, while the MS MARCO effectiveness metric still emphasizes the front of the final list. The basic comparison between ordinary and expanded BM25 asks whether changing the indexed text alone can yield a better ranking with the same search machinery.
A further comparison adds BERT after each version of initial retrieval. BERT is used as a reranker following the same cited passage-ranking approach in both conditions, with TPUs used for reranking. The comparison asks whether starting from expanded retrieval still helps when the system also has a more powerful way to order the candidates. In a pipeline with both stages, an earlier change can improve the supply of candidates while a later change improves their ordering. Evaluating ordinary and expanded retrieval with the same kind of reranker tests the practical value of combining these changes.
RM3 supplies the query-side comparison. It applies feedback from an initial search to expand the request for retrieval. The authors test RM3 against the original documents and against the collection that already has Doc2query expansion. The first test asks how query expansion fares from the ordinary BM25 starting point. The second asks whether it provides an additional benefit when the index already contains predicted access language. Because the initial results supply feedback, this kind of query expansion is sensitive to the evidence the first search retrieves. UMass at TREC 2004
Each comparison gives a different meaning to the word improvement. Expanded BM25 is an improvement to the ranking available directly from first-stage search if it places useful passages higher. Expansion followed by BERT improves the full pipeline if the final ranking is stronger than the one BERT produces after ordinary retrieval. RM3 might help as a substitute for document expansion or as a further change to it. The experimental results distinguish those possibilities by testing the relevant combinations on each collection.
The expanded collection improves direct retrieval
The authors report an improvement of approximately 15% over BM25 for document expansion alone on both benchmarks. On MS MARCO development queries the individual comparison is 18.4 MRR@10 with original documents and 21.5 with the expanded collection. The result shows that the expansion can improve what the engine returns directly from its lexical index. At that operating point, the predictions have already been incorporated into the indexed representation, and the search procedure can use them in the same way as other document words.
Original and expanded BM25 on MS MARCO development, MRR@10
Indexing predicted query text improves early placement of relevant passages.
The numbers
| System or setting | MRR@10 |
|---|---|
| BM25 on original passages | 18.4 |
| BM25 with Doc2query (this paper) | 21.5 |
The authors also find that adding Doc2query before BERT gives a better result than using BERT after ordinary BM25 retrieval. The best-known TREC-CAR result reported by the authors comes from that combined condition. On MS MARCO they place the combined system near the leading leaderboard submissions. These results answer a separate question from the direct BM25 comparison. They indicate that the expanded index can supply a benefit that the later reranking stage can use, even though the reranker itself already makes a more detailed judgment of relevance.
RM3 lowers effectiveness in both benchmarks when added to ordinary retrieval and when applied in combination with Doc2query. The direction is consistent across the conditions the paper tests. A query-side feedback step can introduce terms that change which passages rank highly, just as document expansion can change matches through the indexed text. In this experiment their effects differ. Predicting requests from the source passages helps the ranking, while revising the request using RM3 hurts it. The controlled comparison establishes that result for the particular expansion procedures used.
More relevant passages enter the reranker’s pool
The paper measures candidate coverage with Recall@1000 on the MS MARCO development set. Recall here concerns how much of the judged-relevant material is present among the first 1000 candidates. It gives credit for a relevant passage anywhere inside that pool, including at positions too low to earn credit under MRR@10. With original text the reported Recall@1000 is 85.3. With Doc2query expansion it is 89.3. This is evidence that the expanded index makes more relevant material available before the final ordering stage.
Candidate coverage on MS MARCO development, Recall@1000
Doc2query brings more judged-relevant material into the pool available for reranking.
The numbers
| System or setting | Recall@1000 |
|---|---|
| BM25 on original passages | 85.3 |
| BM25 with Doc2query (this paper) | 89.3 |
A relevant passage added low in the candidate pool can influence this recall measure immediately. It will influence MRR@10 only if it reaches the front of the final ranking and changes the position of the earliest relevant result. The authors interpret the stronger combined result as evidence that BERT can make use of the improved pool and promote correct hits. The recall result supplies a concrete link between preparation and reranking. Altered matches change which passages reach the later scorer, and that scorer has an opportunity to put newly available material where a reader is likely to see it.
The aggregate measures also help explain why the success of expansion and the success of reranking should be examined together. If the first stage supplies better candidates and the second stage cannot identify them, the potential benefit of better coverage may stay largely invisible in an early-rank metric. If the second stage is strong but ordinary retrieval misses a useful document, that strength cannot be brought to bear on the missed item. The outcome in the paper supports a useful combination of coverage and ordering on the tested tasks.
Search latency for different ways of serving results
The reported retrieval time for ordinary BM25 is 50 ms per query, compared with 90 ms for BM25 over the expanded documents. These are times for the search path that returns the BM25 results. Query predictions are already in the index. The measurements show that an expanded index can have a higher online cost even after the generator’s computation has been moved out of the search path. The comparison therefore gives an observed cost of searching the changed collection along with the observed effectiveness gain.
Reported MS MARCO search and reranking latency per query
Expanded BM25 takes longer than ordinary BM25 and returns results much sooner than Single Duet v2.
The numbers
| System or setting | ms per query |
|---|---|
| BM25 | 50 |
| BM25 with Doc2query (this paper) | 90 |
| Single Duet v2 | 600 |
The authors compare their expanded BM25 operating point with Single Duet v2, a neural reranking baseline associated with MS MARCO. Their measurement for Duet v2 is 600 ms per query. They characterize expanded BM25 as approximately seven times faster, with Duet v2 ahead by three points of MRR@10. This pairs an effectiveness difference with a timing difference. It gives a reader a way to understand why the authors regard the direct output of the expanded index as an operating point worth evaluating by itself.
The time comparison is also a reason to keep the paper’s strongest rankings and its fast retrieval result attached to their respective conditions. The highest effectiveness claim concerns expansion with BERT after candidate retrieval. The much faster comparison with Duet v2 concerns expansion with BM25 used as the final ranking. A system can prepare the same sort of expanded collection and choose whether to add a later scorer. The authors’ argument for latency-sensitive search depends on having a useful ranking available before that choice adds further computation.
What the ablations show
Repeating source language has measurable value
The authors inspect the queries generated for MS MARCO and observe familiar names and terms from their source material. Among the copied examples they mention Washington DC, River and chromosome. A term such as a place name may already index the passage successfully. If the generator repeatedly uses it in plausible queries, the name contributes more occurrences to the version of the passage that BM25 searches. The generation process can therefore influence the strength of existing matches as well as create new ones. The authors describe the first effect as term reweighting.
The predictions also contain words absent from the corresponding source. The examples include weather and relationship. Such terms can express what the reader seeks at a different level of description from the passage. A passage may contain observations relevant to weather while using more specific language about conditions. A word about a relationship can express the nature of a request even when a passage states the underlying connection in its own way. The paper uses these examples to suggest a role for synonyms and other related expressions. Its numerical classification uses the observable condition of whether a predicted word occurs in the document.
Stop words, common words excluded from this analysis, make up 51% of the predicted query words. The authors assess the copied and new categories on the remainder. Of the words considered after the exclusion, 69% match something in the source text and 31% are absent. The denominator matters because common grammatical words can recur in both a passage and a request without revealing much about the substantive terms selected by the generator. The reported proportions describe predictions after that filtering. They measure how frequently generated words fall into each category, independently of how much each one helps a search.
The authors then test what happens when the two classes are used in isolation. They expand MS MARCO documents with only words missing from the original text and obtain 18.8 MRR@10 on development queries using BM25. Original documents give 18.4 on the same split. Keeping only words that already occur in the document gives 19.7. The expansion with both classes scores 21.5. The comparison gives a useful order to the evidence. Repetition alone helps, absent vocabulary alone helps, and the expansion that lets both contribute obtains the strongest ranking of the tested variants.
The copied-only experiment is especially revealing about the shape of the intervention. The available vocabulary for any given passage can remain familiar while the balance among its terms changes. Imagine a passage that names several entities while explaining something chiefly about one of them. Its predicted questions can repeatedly select that entity, which makes the added text resemble a decision about emphasis. The experiment shows that counts changed in this way can help in aggregate. It leaves the generator’s judgment about the importance of any individual term open to inspection.
The new-only experiment isolates the other route by which a predicted query can affect matching. When a word was previously absent, adding it gives the index a way to record an association that was unavailable from the original text alone. The smaller effectiveness gain for this variant on the development split is compatible with new terms being decisive for some searches and beside the point for many others. The combined result supports the authors’ account of complementary effects. It does not require every successful search to use both effects at once.
Decoding affects the searchable result
The appendix compares beam search and top-k random sampling on the MS MARCO development set, varying the number of generated hypotheses that get appended. The authors evaluate each setup through retrieval after expansion, so the comparison includes the effect of the generated terms on the index and on ranking. Sampling performs slightly better throughout the tested output counts. That conclusion has a specific object. The sampled output was a slightly stronger expansion for these retrieval experiments, whatever an independent assessment of the fluency or plausibility of the individual queries might find.
The difference can be understood by thinking about what a collection of queries is meant to supply. Several high-scoring formulations might express almost the same request, reinforcing a particularly plausible reading of the passage. A sample can draw other plausible continuations and give more attention to different details. Either concentration or variety can prove helpful, depending on the passage and the searches it will face. The observed advantage of sampling is consistent with the useful variations outweighing the extra distractions in this experiment. The study compares downstream outcomes of the decoding procedures and does not directly count the kinds of variation responsible.
The strongest retrieval effectiveness in the appendix occurs when 10 predicted queries are appended. The authors suggest that very short expansions miss some useful alternatives and that longer ones begin to introduce noise and reduce the influence of the original words. That explanation fits the role of document text in term-based ranking. Extra terms create opportunities for good matches and for accidental ones, and further text can change the weight of existing evidence. The measured peak is the result of a comparison on the MS MARCO development set. The explanation in terms of variety and noise is the authors’ interpretation of that pattern.
The decoding study also shows why the paper uses downstream search to judge the generation settings. BLEU provides a signal during training about whether a generated query resembles its reference. A ranking metric asks whether the prepared collection helps with actual requests in the retrieval evaluation. Those objectives can come apart. A prediction may repeat reference-like wording and contribute little new to the index. A less obvious wording may supply an access term a particular search needs. The comparison of decoding procedures puts the choice in the context where that difference matters.
Feedback and document expansion change different evidence
The RM3 comparison helps locate the Doc2query effect. Once a search has retrieved an initial set, RM3 draws on that set to revise the request. If early matches reflect a secondary meaning of a term, the added words can strengthen that reading of the query. That is one way feedback could hurt a precise search. Here the evidence is the decline under RM3 on both benchmarks and on both versions of the collection. The authors suggest the precision-oriented character of the tasks as a likely explanation. They also argue that the text of a document supplies a richer basis for expansion than a shorter query.
The tests give that interpretation some structure. Doc2query predicts requests from passages before it encounters the search being evaluated. RM3 adapts a particular request using material the search engine has already found. Their sources of evidence and the scope of their changes differ. The resulting comparison says that these implementations perform differently on the same tasks. Since the document generator and the feedback technique use different inputs and selection procedures, the comparison leaves open which of those differences is most important to their relative effectiveness.
Candidate recall adds another view of the mechanism. It examines the effect of expansion at a stage where subsequent reordering has yet to matter. The improvement on MS MARCO development queries confirms that useful candidates reach the pool more often under expansion. It complements the word-removal experiment, where the question is which kinds of generated language improve the ranking. Together these analyses connect the method to observable changes in indexed evidence and to observable changes in candidate availability. They leave individual search histories open, including whether a recovered passage owed its appearance to a newly added term, repeated wording or several matches acting together.
Limitations
Limits the authors identify
The authors emphasize the recurring cost of changing expanded documents. Since the extra text goes into the indexed collection, a change to the expansion technique calls for reindexing. A query modification can be tried with the stored collection already in place. This is a practical limit even when expansion is effective at serving time. Selecting a generation procedure for a large collection means paying preparation costs before seeing how its output performs in the search engine. Once the index is built, repeated searches can use the result of that preparation.
The authors also qualify the comparison with the leading MS MARCO entries. The highest leaderboard entries they refer to lack descriptions that would support a detailed system comparison. The published position gives an indication of relative effectiveness at that point. It gives no basis for attributing differences in rank to particular choices by the teams ahead of Doc2query. The TREC-CAR best-known claim is likewise tied to the results the authors had available at the time of the paper.
In their appendix the authors mark their explanation for the best expansion size as conjectural. The retrieval comparison establishes that effectiveness peaks at the reported setting in that experiment. The explanation invokes the need for enough variety and the possibility of accumulating irrelevant language. Each could be investigated more directly through features of the predictions, particular kinds of query and changes to the relative influence of the source words. The observed peak supports a limited claim about expansion size on the development queries evaluated.
The paper also frames the promise of moving expensive work earlier in terms of particular operating scenarios. Search that values response time can use the expanded BM25 ranking on its own. The best effectiveness in the paper requires another scoring stage. The tradeoff is therefore a choice between measured combinations of cost and ranking quality. A system with a different latency budget or a greater penalty for missed passages could make a different choice using the same general architecture.
Boundaries of the data and supervision
The study uses passages in MS MARCO and paragraphs in TREC-CAR. The different sources of requests within those collections broaden the test beyond one particular query format. Generalization to very long documents or collections whose readers ask for different kinds of information remains open. A long source may contain several topics competing for attention, while the generator sees an input capped at 400 tokens. A prediction from that input can draw only on the text available to it. The experiments supply no coverage measurement for information omitted from a document’s generation input.
Relevant pairs are another condition of the demonstrated method. MS MARCO supplies search queries associated with relevant text. TREC-CAR supplies a construction in which article and section titles identify relevant paragraphs. Each gives a considerable amount of supervision in the format the generator needs. The evidence concerns what can be learned with those associations. Collections where useful query–passage pairs are scarce present a different learning problem, and transfer to those collections would require evidence about how the generator behaves when the relationship between passages and future requests changes.
The judgments determine what the reported metrics count as a success. In MS MARCO, the paper reports an average of one relevant passage per query, and MRR@10 puts emphasis on returning an early hit. TREC-CAR uses a paragraph’s relationship to a Wikipedia section to define relevance and evaluates average precision. A query can benefit from a new match under either setup. Tasks where users seek a broad range of relevant items, or where several distinct interpretations of a query are equally legitimate, could place different demands on added text. The tested feedback result and the authors’ account of precision belong within the stated relevance conditions.
What can be inferred from generated words and candidate recall
The paper evaluates the generated questions through their contribution to finding judged-relevant documents. The score is an aggregate measure of search effectiveness. Individual questions can vary in how well the source supports them. As soon as a generated term enters the index, it can provide evidence of a match even if the relationship it implies is weak. The experiments offer examples of added words and measure the relevance of retrieved passages, but they do not test every predicted question against what the associated passage can substantiate. A system that answers from the retrieved material would have a further task of determining what the passage actually supports.
The copied and absent classes also cover a variety of linguistic effects. A word counted as absent may express an already present idea in a more familiar way, name a closely related subject or introduce a misleading association. A copied word can be exceptionally informative for some requests and incidental for others. The controlled experiment groups all of those instances by surface occurrence. Its strength is that it shows a contribution from retaining each group. Estimating which kinds of synonym, related term or repeated name produce the benefit would call for a finer account of how particular queries match particular passages.
The improved Recall@1000 on MS MARCO development queries gives direct evidence of greater coverage of judged relevance. It does not apportion the final gain among all the possible effects of expansion. An expanded index can change the ordering of material already in the original pool as well as admit passages that were missing. The reported recall concerns membership at a specified depth. Final MRR@10 concerns the position of the first relevant hit near the front. Observing both improvements supports an explanation in which candidate coverage helps, while leaving the size of its contribution to the final ranking unresolved.
The comparison with RM3 raises a similar issue of scope. The paper can establish that RM3 hurts in the tested conditions. The proposed reasons, such as the orientation toward precise results or the richer signal on the document side, are explanatory hypotheses. The experiment does not hold the process for inferring terms constant while moving it from documents to queries. It tests a learned document expansion procedure and a particular feedback procedure. Earlier comparisons summarized by the authors sometimes favored query expansion, which is consistent with outcomes depending on the retrieval setting and how the extra terms are obtained.
What the timing comparison covers
The search times put ordinary BM25, expanded BM25 and a neural reranker into perspective for the reported setup. A full cost comparison would also account for training, generating queries throughout the collection and building the expanded index. The paper gives training settings and identifies the equipment used there, while the reported latency comparison concerns responding to queries. It does not put numerical values on preparation time, storage overhead or the cost of replacing expansions when a collection changes. Those quantities would matter to an evaluation of total cost, especially for a collection updated frequently.
The relative timings are also measurements of particular implementations. The authors mention the use of TPUs for BERT reranking, and the reported comparison with Duet v2 is their own measurement. How a service organizes its retrieval and scoring work can change the observed timings. The architectural claim has a firmer scope. It is possible to let neural query prediction affect rankings through indexed text, while offering a path in which prediction does not run during search. The exact performance and cost of that path are empirical properties of the implementation and collection being served.
What came after
Expansion on the document and query sides
The closest named continuation is From doc2query to docTTTTTquery. Its title explicitly takes Doc2query as the starting point for a subsequent method. That connection places it directly in the document-preparation line opened by the paper. The title identifies the continuation and leaves its particular changes unspecified. Doc2query’s own results establish what the original generator, its expansions and the lexical search pipeline achieved together. The continuation is a separate work in that line.
SPLADE takes up sparse lexical expansion for first-stage ranking. SPLADE v2 continues the sparse lexical expansion direction in information retrieval. Their stated focus is closely related to where Doc2query intervenes. A first-stage ranker needs a representation it can use across a collection. Doc2query makes that representation richer by supplying predicted language to the index. Sparse lexical expansion carries forward the broader concern with using additional lexical evidence at the stage where candidates are first found. The citing works’ titles establish that shared focus without specifying a shared method for producing the evidence.
Query2doc approaches vocabulary enrichment through query expansion using large-scale language generation. Its subject brings the other side of the original paper’s design choice back into focus. A query-side method acts on a particular request. Doc2query’s predicted words are prepared from the collection, ready for use across many requests. The later work is a citing example of how generation can also be brought to bear on the immediate language of a search. That connection is distinct from the original paper’s comparison against RM3, which establishes a result for one kind of query feedback.
Synthetic questions as resources for retrieval
PAQ centers a resource on questions that people might plausibly ask. The link to Doc2query is the attempt to represent information needs before a particular user expresses them. Doc2query gives those anticipations a concrete role inside a document index. PAQ puts the questions themselves at the center of the later work. Both concerns make the quality and coverage of plausible requests important, while the title of the later work leaves the relationship between its questions and a document’s indexed text unspecified.
Zero-shot Neural Passage Retrieval connects synthetic question generation to retrieval targeted at a domain. That stated aim gives generated requests a role in addressing a condition outside Doc2query’s core experiments, which train from paired examples supplied for the benchmarks. A domain-targeted effort asks what generated questions can contribute when retrieval moves to another collection or setting. The title supplies the connection between domain targeting, synthetic questions and passage retrieval. It leaves the detailed adaptation and evaluation procedure to the later paper.
GPL uses generative pseudo-labeling in work on unsupervised adaptation of dense retrieval. A pseudo-label supplies a supervision signal generated for training. This gives the generative step a different stated purpose from supplying words directly to BM25. The connection to Doc2query is that generated material can help a retrieval system exploit relationships that are otherwise difficult to obtain from the existing representation. In GPL, the stated problem puts that contribution in adaptation. In Doc2query, the documented contribution is the searchable expansion itself.
Candidate retrieval, reranking and evaluation
Two citing works emphasize different positions in the retrieval pipeline. ColBERT addresses efficient and effective passage search through contextualized late interaction over BERT. Document Ranking with a Pretrained Sequence-to-Sequence Approach places sequence-to-sequence processing in the ranking problem. These titles identify different uses of learned text processing in retrieval. Doc2query uses it to anticipate the language through which a document might be found. Passage matching and document ranking put their emphasis on evaluating the relationship that will determine which results the system presents.
RocketQAv2 explicitly makes joint training for dense retrieval and passage reranking its subject. The connection is to the dependence between those stages. Doc2query shows what can happen when a stronger candidate set is supplied to a reranker. A joint training approach addresses their relationship during learning. The title identifies that shift in emphasis, while the earlier paper gives a measured example of why the quality of the pool matters to the result of a multistage search.
BEIR takes up heterogeneous evaluation for zero-shot retrieval. This brings attention to an open question raised by the original evaluation. Doc2query demonstrates that available query–passage supervision can support effective expansion on specific benchmarks, and that its effect can be measured under different query and relevance conventions. A heterogeneous benchmark makes variation across retrieval settings the subject of evaluation. The connection is to the scope of the demonstrated effect. The original experiments establish what predicted access language can contribute on the tested collections, while the later evaluation direction asks how retrieval behavior travels across tasks.
Institutions
Fields, topics and concepts
Shelves 5The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksArts and Humanities · 17,959 worksLanguage and Linguistics · 17,789 worksInformation Systems · 1,888 works
Topics 1Research subjects and languages the work is about.Information retrieval & search · 561 works
Cite
Cite as Rodrigo Nogueira, Wei Yang, Jimmy Lin and Kyunghyun Cho. 2019. Document Expansion by Query Prediction. arXiv:1904.08375.
@misc{nogueira2019document,
title = {{Document Expansion by Query Prediction}},
author = {Rodrigo Nogueira, Wei Yang, Jimmy Lin and Kyunghyun Cho},
year = {2019},
eprint = {1904.08375},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1904.08375}
}References
- authorpersonNasreen Abdul-Jaleel, personJames Allan, personW. Bruce Croft, personFernando Diaz, personLeah Larkey, personXiaoyan Li, personDonald Metzler, personMark D. Smucker, personTrevor Strohman, personHoward Turtle, and personCourtney Wade. year2004. UMass at TREC 2004: Novelty and HARD. In booktitle Proceedings of the Thirteenth Text REtrieval Conference (TREC 2004). addressGaithersburg, Maryland. our card
- authorpersonPayal Bajaj, personDaniel Campos, personNick Craswell, personLi Deng, personJianfeng Gao, personXiaodong Liu, personRangan Majumder, personAndrew McNamara, personBhaskar Mitra, personTri Nguyen, personMir Rosenberg, personXia Song, personAlina Stoica, personSaurabh Tiwary, and personTong Wang. year2016. MS MARCO: A Human Generated MAchine Reading COmprehension Dataset. journal arXiv:1611.09268 (year2016). our card
- authorpersonAdam Berger and personJohn Lafferty. year1999. Information Retrieval as Statistical Translation. In booktitle Proceedings of the 22nd Annual International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR 1999). pages222–229. OpenAlex ↗ · Scholar ↗
- authorpersonBodo Billerbeck and personJustin Zobel. year2005. Document Expansion versus Query Expansion for Ad-hoc Retrieval. In booktitle Proceedings of the 10th Australasian Document Computing Symposium. pages34–41. OpenAlex ↗ · Scholar ↗
- authorpersonScott Deerwester, personSusan T. Dumais, personGeorge W. Furnas, personThomas K. Landauer, and personRichard Harshman. year1990. Indexing by Latent Semantic Analysis. journal Journal of the Association for Information Science volume41, number6 (year1990), pages391–407. OpenAlex ↗ · Scholar ↗
- authorpersonJacob Devlin, personMing-Wei Chang, personKenton Lee, and personKristina Toutanova. year2018. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. journal arXiv:1810.04805 (year2018). our card
- authorpersonLaura Dietz, personManisha Verma, personFilip Radlinski, and personNick Craswell. year2017. TREC Complex Answer Retrieval Overview. In booktitle Proceedings of the Twenty-Sixth Text REtrieval Conference (TREC 2017). OpenAlex ↗ · Scholar ↗
- authorpersonMiles Efron, personPeter Organisciak, and personKatrina Fenlon. year2012. Improving Retrieval of Short Texts Through Document Expansion. In booktitle Proceedings of the 35th international ACM SIGIR conference on Research and development in information retrieval (SIGIR 2012). pages911–920. OpenAlex ↗ · Scholar ↗
- authorpersonAngela Fan, personMike Lewis, and personYann Dauphin. year2018. Hierarchical Neural Story Generation. journal arXiv:1805.04833 (year2018). our card
- authorpersonDiederik P. Kingma and personJimmy Ba. year2014. Adam: A Method for Stochastic Optimization. journal arXiv:1412.6980 (year2014). our card
- authorpersonGuillaume Klein, personYoon Kim, personYuntian Deng, personJean Senellart, and personAlexander M. Rush. year2017. OpenNMT: Open-Source Toolkit for Neural Machine Translation. In booktitle Proc. ACL. https://doi.org/10.18653/v1/P17-4012 our card
- authorpersonSean MacAvaney, personAndrew Yates, and personKai Hui. year2017. Contextualized PACRR for complex answer retrieval. In booktitle Proceedings of TREC. OpenAlex ↗ · Scholar ↗
- authorpersonBhaskar Mitra and personNick Craswell. year2019a. An Introduction to Neural Information Retrieval. journal Foundations and Trends in Information Retrieval volume13, number1 (year2019), pages1–126. OpenAlex ↗ · Scholar ↗
- authorpersonBhaskar Mitra and personNick Craswell. year2019b. An Updated Duet Model for Passage Re-ranking. journal arXiv:1903.07666 (year2019). OpenAlex ↗ · Scholar ↗
- authorpersonRodrigo Nogueira and personKyunghyun Cho. year2019. Passage Re-ranking with BERT. journal arXiv:1901.04085 (year2019). our card
- authorpersonKezban Dilek Onal, personYe Zhang, personIsmail Sengor Altingovde, personMd Mustafizur Rahman, personPinar Karagoz, personAlex Braylan, personBrandon Dang, personHeng-Lu Chang, personHenna Kim, personQuinten Mcnamara, personAaron Angert, personEdward Banner, personVivek Khetan, personTyler Mcdonnell, personAn Thanh Nguyen, personDan Xu, personByron C. Wallace, personMaarten Rijke, and personMatthew Lease. year2018. Neural Information Retrieval: At the End of the Early Years. journal Information Retrieval volume21, number2-3 (dateJune year2018), pages111–182. 1386-4564 OpenAlex ↗ · Scholar ↗
- authorpersonJeremy Pickens, personMatthew Cooper, and personGene Golovchinsky. year2010. Reverted Indexing for Feedback and Expansion. In booktitle Proceedings of the 19th ACM International Conference on Information and Knowledge Management (CIKM 2010). pages1049–1058. OpenAlex ↗ · Scholar ↗
- authorpersonStephen E. Robertson, personSteve Walker, personSusan Jones, personMicheline Hancock-Beaulieu, and personMike Gatford. year1994. Okapi at TREC-3. In booktitle Proceedings of the 3rd Text REtrieval Conference (TREC-3). addressGaithersburg, Maryland, pages109–126. our card
- authorpersonJoseph John Rocchio. year1971. Relevance Feedback in Information Retrieval. In booktitle The SMART Retrieval System—Experiments in Automatic Document Processing, editorpersonGerard Salton (Ed.). publisherPrentice-Hall, addressEnglewood Cliffs, New Jersey, pages313–323. OpenAlex ↗ · Scholar ↗
- authorpersonRico Sennrich, personBarry Haddow, and personAlexandra Birch. year2015. Neural Machine Translation of Rare Words with Subword Units. journal arXiv:1508.07909 (year2015). our card
- authorpersonAmit Singhal and personFernando Pereira. year1999. Document Expansion for Speech Retrieval. In booktitle Proceedings of the 22nd Annual International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR 1999). pages34–41. OpenAlex ↗ · Scholar ↗
- authorpersonTao Tao, personXuanhui Wang, personQiaozhu Mei, and personChengXiang Zhai. year2006. Language Model Information Retrieval with Document Expansion. In booktitle Proceedings of the main conference on Human Language Technology Conference of the North American Chapter of the Association of Computational Linguistics. pages407–414. OpenAlex ↗ · Scholar ↗
- authorpersonAshish Vaswani, personNoam Shazeer, personNiki Parmar, personJakob Uszkoreit, personLlion Jones, personAidan N. Gomez, personŁukasz Kaiser, and personIllia Polosukhin. year2017. Attention Is All You Need. In booktitle Advances in Neural Information Processing Systems. pages5998–6008. our card
- authorpersonEllen M. Voorhees. year1994. Query Expansion Using Lexical-Semantic Relations. In booktitle Proceedings of the 17th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR 1994). pages61–69. OpenAlex ↗ · Scholar ↗
- authorpersonJinxi Xu and personW. Bruce Croft. year2000. Improving the Effectiveness of Information Retrieval with Local Context Analysis. journal ACM Transactions on Information Systems volume18, number1 (year2000), pages79–112. OpenAlex ↗ · Scholar ↗
- authorpersonPeilin Yang, personHui Fang, and personJimmy Lin. year2017. Anserini: Enabling the Use of Lucene for Information Retrieval Research. In booktitle Proceedings of the 40th International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR 2017). pages1253–1256. OpenAlex ↗ · Scholar ↗
- authorpersonPeilin Yang, personHui Fang, and personJimmy Lin. year2018. Anserini: Reproducible Ranking Baselines Using Lucene. journal Journal of Data and Information Quality volume10, number4 (year2018), pagesArticle 16. OpenAlex ↗ · Scholar ↗
This page in Markdown https://md.research.elamur.ai/free/en/papers/nogueira-2019-document-expansion-query-prediction/