<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Long Document Re-ranking with Modular Re-ranker</title></titleStmt>
			<publicationStmt>
				<publisher>ACM</publisher>
				<date>07/06/2022</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10479198</idno>
					<idno type="doi">10.1145/3477495.3531860</idno>
					
					<author>Luyu Gao</author><author>Jamie Callan</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Long document re-ranking has been a challenging problem for neural re-rankers based on deep language models like BERT. Early work breaks the documents into short passage-like chunks. These chunks are independently mapped to scalar scores or latent vectors, which are then pooled into a final relevance score. These encode-and-pool methods however inevitably introduce an information bottleneck: the low dimension representations. In this paper, we propose instead to model full query-to-document interaction, leveraging the attention operation and modular Transformer re-ranker framework. First, document chunks are encoded independently with an encoder module. An interaction module then encodes the query and performs joint attention from the query to all document chunk representations. We demonstrate that the model can use this new degree of freedom to aggregate important information from the entire document. Our experiments show that this design produces effective re-ranking on two classical IR collections Robust04 and ClueWeb09, and a large-scale supervised collection MS-MARCO document ranking.CCS CONCEPTS• Information systems]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><p>Despite their success, Transformer LMs have pre-set input length limits, typically 512, due to complexity considerations <ref type="bibr">[4,</ref><ref type="bibr">15,</ref><ref type="bibr">23]</ref>. As a result, re-ranking long documents beyond this length has been a challenging problem. Prior research designed techniques to accommodate the neural LM. For example, some attempts to strategically limit the input length, which however prohibits full interaction among all query and document tokens. Others have turned to more efficient Transformers that use lower complexity but also lower capacity sparse self-attention. In this paper, we present an alternative method, re-ranking documents with a modular reranker and a new form of attention operation, query to document cross attention.</p><p>Modular re-rankers such as MORES <ref type="bibr">[7]</ref> provide an alternative framework to common re-rankers. With MORES, query and document are independently encoded. A Transformer Interaction Module then makes relevance estimates using light-weight query-todocument attention. In this paper, we introduce a modification to this framework, MORES+, for long document re-ranking. We break a candidate document into passage-like chunks and encode them separately using identical Transformer encoders. A joint query-toall-chunk attention then models interaction between query and the full document. The model can flexibly control the attention weights to pick up important information. This design roughly resembles the human reading comprehension process: after browsing the article and the question, the reader will refer back to the relevant pieces in the original article to come up with answers.</p><p>We present experiments with classical few-shot document IR datasets, ClueWeb09 and Robust04, as well as a recent large-scale dataset, MS-MARCO document ranking. We found that the MORES+ re-ranker produces better ranking quality on detailed natural language queries where interaction between query and document is more sophisticated.</p><p>The rest of the paper is organized as follows. Section 2 provides a background on document re-ranking methods with Transformers. Section 3 describes the MORES modular re-ranker and how we generalize it to MORES+ for document re-ranking. Section 4 presents experimental results with MORES+.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">BACKGROUND</head><p>The revolution in pre-trained Transformer language models <ref type="bibr">[4,</ref><ref type="bibr">17]</ref> had a large impact on IR <ref type="bibr">[3]</ref>. Encoder-only LMs like BERT <ref type="bibr">[4]</ref> are the current state-of-the-art for text re-ranking. They can a) generate contextualized representations <ref type="bibr">[17]</ref> to help enhance the language understanding capability of the re-rankers and b) perform deep interactions between query and document <ref type="bibr">[3]</ref>. Other forms of pretrained LMs also exist. Encoder-decoder LMs are pre-trained on sequence-to-sequence tasks and have previously been used in IR for tasks like document expansion <ref type="bibr">[12,</ref><ref type="bibr">18]</ref>.</p><p>Despite their advantages, Transformer LM re-rankers cannot be naively used for long document ranking since most pre-trained LMs have a maximum input length constraint of 512. Prior research circumvented this by splitting documents into passage-like short text chunks. The passages are first separately judged and passage-level results are further pooled to generate the final prediction. Scorepooling systems simply take max/sum/first of the chunk scores <ref type="bibr">[3]</ref>. These systems are typically named after their underlying LM and pooling method. For example, BERT-maxp <ref type="bibr">[3]</ref> refers to a BERTbased system with max pooling. A generalization is representation aggregation systems like PARADE <ref type="bibr">[13]</ref>. They take the low dimension CLS vector representations from each passage and learn an additional aggregation model to combine these representations. The aggregation model can any neural model, e.g. a Transformer in PARADE-Transformer <ref type="bibr">[13]</ref>. These pooling systems make it possible to apply deep LMs to document re-ranking. However, they prohibit direct query and full document interaction. The interactions always happen at the passage level and the passage scores or low dimension representations are bottlenecks in the model.</p><p>Alternatively, some research has explored the use of long-text Transformers <ref type="bibr">[2]</ref> that use sparse attention patterns <ref type="bibr">[10]</ref>. Sparse attention comes with the cost of lower capacity than vanilla attention <ref type="bibr">[2]</ref>.</p><p>A third class of approaches tries to first select the important short chunk of document, the "key block", and feed it into a vanilla Transformer <ref type="bibr">[11,</ref><ref type="bibr">14]</ref>. These models' success depends on a) the quality of the selected block, and more importantly b) the assumption that a smaller key block exists to represent the full long document.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">METHODOLOGIES</head><p>In this section, we first give some preliminaries on deep re-rankers based on the Transformer LM. We then briefly discuss the MORES modular re-ranker and how we generalize it for document reranking.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Preliminaries</head><p>Recent state-of-the-art systems in text re-ranking are based on encoder-only pre-trained Transformer LMs. They cast re-ranking as a sequence pair relation prediction task. Query, document, and a special CLS token are concatenated and fed into the Transformer LM. Query and document go through a series of Transformer layers together, interact, and produce contextualized representations &#119867; . &#119867; = LM(concatenate(CLS; query; document))</p><p>A final score is computed as a dot product between the representation of the CLS vector &#119867; &#119888;&#119897;&#119904; and a projection vector v proj .</p><p>Effectively, the Transformer model here serves as a deep non-convex similarity function between query and document. These models, however, have two disadvantages: 1) the aforementioned LM input length constraint, which is typically 512, and, 2) query and document are entangled in a black-box fashion. The former means these models do not natively support long documents. The latter makes it hard to design an easy fix. In this paper, we instead turn to modular re-rankers <ref type="bibr">[7]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Modular Re-ranker</head><p>The Modular Transformer-based re-ranker, or in short MORES, was introduced by Gao et al. <ref type="bibr">[7]</ref>. In MORES, query (prepended with a CLS) and candidate documents are first separately encoded by two Transformer encoders.</p><p>&#119867; q = Encoder qry (query)</p><p>These representations &#119867; q and &#119867; d remain independent until they are fed into an Interaction Module (IM).</p><p>The IM is a third Transformer that performs self-attention over the query representation &#119867; q . In addition, query-to-document cross attention is performed in each layer. Given an intermediate query representation representation &#119902;, the cross-attention generates &#119902; &#8242; .</p><p>This operation interacts query and document and is of complexity linear to query/document length. The final CLS vector is projected to generate a relevance prediction score.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3">Modular Long Document Re-ranker</head><p>The flexible design of MORES allows us to further modify the modules to support long documents. Given a long document that does not fit into a typical LM re-ranker, we first break it into chunks, document &#8594; {&#119888; 1 , .., &#119888; &#119899; }, and encode each chunk independently.</p><p>We modify the Interaction Module to take all or the chunks' representations at once,</p><p>where a single joint query-to-all-chunk cross attention operation is performed over concatenated all chunks.</p><p>This joint attention allows flexible query-document token-level interaction: the query can freely attend to segments in the entire document without chunk boundary limitation. This operation is a generalization of the cross-attention operation in Equation <ref type="formula">6</ref>. Since the full document is only being attended to here, this operation remains a complexity linear to document length. We call this new design MORES+, indicating a modification over MORES to support long document re-ranking.</p><p>For familiar readers, we note this design shares a similar spirit with Fusion-in-Decoder <ref type="bibr">[9]</ref> which uses sequence-to-sequence model to combine multiple retrieved contexts for question answering.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.4">Complexity and Efficiency Considerations</head><p>Here we compare the time complexities of score-pooling systems, representation aggregation systems, and MORES+. We use BERTmaxp <ref type="bibr">[3]</ref> and PARADE-Transformer <ref type="bibr">[13]</ref> as concrete examples. We consider a long document of length &#119863;, a query of length &#119876;, and a chunk size &#119862; for all systems. This gives us O (&#119863;/&#119862;) chunks. We Query Dependent Query Independent Total BERT-maxp <ref type="table">1</ref>: Complexity analysis of attention operations in score-pooling system BERT-maxp, representation aggregation system PARADE-Transformer and our proposed MORES+. This considers a length &#119863; document, a length &#119876; query, and length &#119862; chunks.</p><p>focus our analysis here on the (self and cross) attention operations' cost of the Transformers. Note that the other major cost factor is the feed-forward network, which is point-wist and remains a cost linear to input length across all systems.</p><p>With both score pooling systems (BERT-maxp) and representation aggregation systems (PARADE-Transformer), each document chunk is concatenated with the query and separately fed into a Transformer. Self attention costs O ((&#119862; + &#119876;) 2 ) each. A total of</p><p>The aggregator in score aggregation systems has an extra cost. In PARADE-Transformer, self-attention costs O (&#119863; 2 /&#119862; 2 ) for latent vectors from O (&#119863;/&#119862;) chunks.</p><p>In MORES+, each of the documents is encoded independently to the query. Self attention costs O (&#119862; 2 ) for each chunk, a total of O (&#119862;&#119863;). Query encoding costs O (&#119876; 2 ). Finally, the interaction module performs cross attention from a length &#119876; query to O (&#119863;/&#119862;) of the length &#119862; chunks, or equivalently &#119863; document tokens. This costs O (&#119876;&#119863;) time.</p><p>Note that similar to MORES, MORES+ encodes documents independent to the query. These query independent representations can therefore be pre-computed offline. In comparison, both BERTmaxp and PARADE-Transformer start from the concatenated query and document chunks. They, therefore, do not permit any precomputation. In Table <ref type="table">1</ref>, we record the complexities of all three systems. Note that a common situation is that a document is a few times longer than a chunk and a chunk is much longer than a query, i.e. &#119863; &gt; &#119862; &gt;&gt; &#119876;. With pre-computation, it is possible to move a costly O (&#119862;&#119863;) term offline. On the other hand, when everything is run online, MORES+ has complexity similar to compared systems.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.5">Initialization</head><p>Encoder-only LMs like BERT <ref type="bibr">[4]</ref> and RoBERTa <ref type="bibr">[15]</ref> do not perform cross attention and therefore do not contain weights that can initialize the interaction module. In the original MORES paper, the authors propose to borrow self-attention weights but also found the approach to be non-optimal <ref type="bibr">[7]</ref>. Observing the emergence of pretrained sequence-to-sequence encoder-decoder LMs <ref type="bibr">[12,</ref><ref type="bibr">18]</ref>, we propose to instead initialize using their weights. In particular, we initialize with BART <ref type="bibr">[12]</ref>, using its encoder for our document encoder module and its decoder for our interaction module. The decoderto-encoder weights are used as MORES+'s query-to-document attention weights. To accommodate this new initialization scheme, we reduce the query encoder module down to a single embedding layer and have queries encoded jointly in the interaction process. In other words, the flows of computation in BART are preserved.   </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">EXPERIMENT SETUP 4.1 Datasets</head><p>We first verify the effectiveness of MORES+ systems on classical few-shot IR datasets. We use Robust04 and Clueweb09 and report nDCG@20, following Dai and Callan <ref type="bibr">[3]</ref>. We consider two versions of queries: short keyword queries (title) and natural language query (description). An example provided by Dai and Callan <ref type="bibr">[3]</ref> is shown in Table <ref type="table">2</ref>.</p><p>We also adopt the MS-MARCO document ranking dataset <ref type="bibr">[1]</ref>. MS-MARCO document ranking is a recent popular large-scale supervised dataset constructed from Bing with substantially more training queries. Its leaderboard has received submissions from a variety of production-ready systems. Participants are given Train/Dev sets judgments and the submissions are evaluated based on the hidden Eval set performance. MS-MARCO helps demonstrate MORES+'s ability to handle contemporary real-world web search tasks. Queries in MS-MARCO document ranking are of natural language form. We report the official metric MRR@100 on Dev and Eval (leaderboard) query sets.</p><p>We show the three datasets' statistics in Table <ref type="table">3</ref>. Note that all three have documents on average longer than the typical LM input length of 512. They help us test the effectiveness of long document re-rankers.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">Implementations</head><p>Our MORES+ models are implemented based on BART code in the Huggingface transformer library <ref type="bibr">[20]</ref>. The document encoder and interaction module both have 12 layers. We set each input chunk size to 512, similar to the maximum input sequence length of BART during pre-training <ref type="bibr">[12]</ref>. We use a maximum of 3 chunks on Robust04 and MS-MARCO and a maximum of 6 chunks on ClueWeb09, preserving up to &#8764; 1.5k tokens and &#8764; 3k tokens in each input respectively. The models are trained with localized contrastive estimation (LCE) loss <ref type="bibr">[8]</ref>. Following previous work <ref type="bibr">[10,</ref><ref type="bibr">13]</ref>, we first pre-train MORES+ on MS-MARCO passage ranking data to warm up the model. <ref type="foot">3</ref>We use the commonly adopted Indri initial rankings released by Dai and Callan <ref type="bibr">[3]</ref> on Robust04 and Clueweb09. Since one of our major baselines, the previous state-of-the-art system PARADE uses a different set of BM25+RM3 initial rankings on Robust04, we also use MORES+ to re-rank BM25+RM3 initial rankings on Robust04 released by Yang et al. <ref type="bibr">[22]</ref>. We perform 5-fold cross-validation on Robust04 and ClueWeb09 as described in Dai and Callan <ref type="bibr">[3]</ref>.</p><p>On MS-MARCO, we follow top leaderboard systems and use a dense initial stage retriever. Our dense retriever is fine-tuned from a pre-trained coCondenser <ref type="bibr">[6]</ref>. It combines a special dense pre-training architecture Condenser <ref type="bibr">[5]</ref> and contrastive learning to pre-train a tailored model for dense retrieval. It allows us to perform a simple low-cost fine-tuning. For the leaderboard submission, we ensemble 4 models that are trained with different initialization.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3">Baseline Systems</head><p>On the classical few-shot IR datasets, we compare with score pooling systems BERT-firstP/maxP/sumP <ref type="bibr">[3]</ref>, and latent representation aggregation system PARADE-CNN/Transformer <ref type="bibr">[13]</ref>. We also consider long-text Transformers. QDS-Transformer <ref type="bibr">[10]</ref> uses a special attention pattern for ranking. A few universal long-text Transformer baselines, Sparse-Transformer, Longformer, and Transformer-XH are also taken from <ref type="bibr">[10]</ref>. A recent method BeST <ref type="bibr">[11]</ref> that uses query-based key-block selection is also considered. We also borrow some earlier classical baseline systems from Dai and Callan <ref type="bibr">[3]</ref> including SDM, RankSVM and Coor-Ascent as well as pre-BERT neural models DRMM and Conv-KNRM. Due to the high training cost of these long-text models, we directly copy previously reported numbers.</p><p>On MS-MARCO, we report the performance of the current top leaderboard systems, as shown in Table <ref type="table">5</ref>. Many of them are or are based on real-world production-ready systems <ref type="bibr">[21,</ref><ref type="bibr">24]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">EXPERIMENT RESULTS</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1">Classical Few-shot IR</head><p>Table <ref type="table">4</ref> shows the performance of the baseline systems and MORES+ on Robust04 and ClueWeb09. We see that MORES+ achieves the new state-of-the-art in ranking effectiveness.</p><p>On Title queries, many neural re-rankers, despite being of higher capacity, do not show a clear advantage over lighter classical systems. Recall that these Title queries are typically of one or a few words, which are simple but ambiguous. As argued by Dai and Callan <ref type="bibr">[3]</ref>, they typically require less of the language understanding that neural models excel at. Similarly, these keyword-like queries do not require sophisticated query document interaction. In our experiments, we see on Robust04, the best PARADE systems, which pool passage latent vectors into global relevance scores, have similar performance to MORES+ <ref type="foot">4</ref> .</p><p>On the other hand, when moving over to Description queries that are written in natural language, neural models start to show  <ref type="bibr">[22]</ref> instead of Indri initial rankings <ref type="bibr">[3]</ref>.</p><p>their advantages on language understanding. In particular, models that are based on pre-trained LMs have a clear performance margin over classical systems. Meanwhile, the direct interaction between the query and the full long document also proves to be of decent utility. We see that on both Robust04 and ClueWeb09 Description queries, MORES+ has a clear advantage over all previous methods, including score-pooling systems and latent representation pooling systems. As many search engines/portals are taking up more user-friendly natural language form queries, we believe the improvements brought by MORES+ will have further future impacts.</p><p>We also see that MORES+ can outperform sparse Transformer based models. Both sparse Transformer re-rankers and MORES+ attempt to preserve granular query-document interaction. Sparse Transformers re-rankers do so by making the self-attention pattern sparse, effectively lowering its cost at the cost of capacity. As discussed by Li et al. <ref type="bibr">[13]</ref>, these unique patterns of sparse attention are not optimal for re-ranking. In comparison, MORES+ uses another form of query-to-document attention which shows better effectiveness here. On the other hand, sparse Transformers are more efficient than other models. Note that, as discussed in subsection 3.4, modular re-rankers support document representation pre-computations, which can substantially speed up re-ranking by tens of times. We focus on effectiveness impacts in this paper and leave the exploration of efficiency to future work.</p><p>In addition, MORES+ also outperforms the key block method BeST. We can conceptually think of the cross attention operation in MORES+ as a soft information selection process. It can freely attend to useful pieces in the document, by assigning higher attention weights. This soft process does not put hard constraints nor require the pieces to be contiguous. In other words, MORES+ can more flexibly select "key information" beyond "key block".</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2">Large-scale Supervised IR</head><p>In Table <ref type="table">5</ref>, we show performance on the MS-MARCO document ranking dataset. We see that, at the time when this paper is written, MORES+ achieves 2nd best performance on the Eval set and the best on the Dev set. Early work <ref type="bibr">[8]</ref> on the MS-MARCO document ranking has shown that a) it requires stronger initial retrievers than BM25, but b) stronger retriever rankings are harder to re-rank. This means, for our discussion, it is important to verify the re-ranker's improvement when paired with a strong retriever. Here we see that MORES+ can successfully re-rank candidates produced by one of the state-of-the-art dense retrievers, achieving competitive results.</p><p>When making further comparisons with other runs, we would like to remind our readers that other leaderboard systems are typically heavily engineered systems that combine various techniques. In comparison, ours is a simple two-stage system with a pair of dense retrievers and a modular re-ranker. In the last row of Table <ref type="table">5</ref>, we show Dev set performance of the MORES+ system without ensemble. It can still achieve competitive results and outperform several top leaderboard systems.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.3">Ablation: Number of Input Chunks</head><p>In this section, we consider an ablation study where we input smaller numbers of chunks to MORES+. Ideally, as the number of chunks increases, a good model should be able to pick up more information and generate better final relevance judgments. It should not be confused by extra noise in the input if the added chunks are not relevant. On the other hand, even with less sufficient information, the model should not fail catastrophically but retain a certain level of performance. In practice, reducing the number of input chunks can help lower the total computation amount. It helps lower search latency when search volume increases.</p><p>In Figure <ref type="figure">1</ref>, we plot number of input chunks versus nDCG@20 on Robust04 and ClueWeb09 using description queries. Note here a special case is the single chunk situation, where MORES+ reduces to the original MORES system. This corresponds to the left-most data point in each plot. Here, MORES+ shows monotonic improvements with respect to the number of input chunks while remaining decently effective with a lower number of chunks.  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6">CONCLUSION</head><p>In this paper, we present MORES+, a new approach for re-ranking long documents. It deviates from previous long document systems that rely on an encoder-only Transformer and is based on a modular re-ranker framework, MORES. We introduce a granular tokenlevel query document interaction method using query to document chunk cross attention. We use this method to augment the original MORES framework for long document re-ranking.</p><p>Our experiments demonstrate the effectiveness of MORES+ on both classical IR datasets with few training examples and contemporary large-scale supervised datasets. We found MORES+'s new form of token-level interaction is especially beneficial for natural language queries. It achieves a new state-of-the-art on Robost04 and ClueWeb09 using Description queries, with large improvements over baselines. On MS-MARCO document ranking, MORES+ also shows competitive performance, with second-best Eval and best Dev set performance.</p><p>We believe MORES+ opens new possibilities in document reranking using modular re-rankers. Broadly, it reminds people that instead of sticking with the original Transformer encoder architecture used in models like BERT, document ranking can also be solved with innovations in architecture. On the other hand, MORES+ shows competitive performance to real-world systems. Future work can explore the possibility of using MORES+ in real search tasks.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_0"><p>Training details are available in our open-source code.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="4" xml:id="foot_1"><p>PARADE results should be compared with MORES+ RM3 entries, the BM25+RM3 results which use the same initial retriever.</p></note>
		</body>
		</text>
</TEI>
