Skip to main content
QUICK REVIEW

[Paper Review] Co-BERT: A Context-Aware BERT Retrieval Model Incorporating Local and Query-specific Context

Xiaoyang Chen, Kai Hui|arXiv (Cornell University)|Apr 17, 2021
Topic ModelingComputer Science42 references9 citations
TL;DR

Co-BERT proposes a context-aware BERT-based re-ranking model that enhances relevance scoring by jointly modeling local ranking context (cross-document interactions) and query-specific context (via pseudo relevance feedback). By calibrating query-document representations using prototype documents and jointly scoring document groups, Co-BERT achieves state-of-the-art performance, improving nDCG@20 by 14.7% and MAP@1K by 13.9% over BERT-Base on the GOV2 dataset.

ABSTRACT

BERT-based text ranking models have dramatically advanced the state-of-the-art in ad-hoc retrieval, wherein most models tend to consider individual query-document pairs independently. In the mean time, the importance and usefulness to consider the cross-documents interactions and the query-specific characteristics in a ranking model have been repeatedly confirmed, mostly in the context of learning to rank. The BERT-based ranking model, however, has not been able to fully incorporate these two types of ranking context, thereby ignoring the inter-document relationships from the ranking and the differences among queries. To mitigate this gap, in this work, an end-to-end transformer-based ranking model, named Co-BERT, has been proposed to exploit several BERT architectures to calibrate the query-document representations using pseudo relevance feedback before modeling the relevance of a group of documents jointly. Extensive experiments on two standard test collections confirm the effectiveness of the proposed model in improving the performance of text re-ranking over strong fine-tuned BERT-Base baselines. We plan to make our implementation open source to enable further comparisons.

Motivation & Objective

  • Address the limitation of BERT-based models that treat query-document pairs in isolation, ignoring inter-document relationships and query-specific characteristics.
  • Integrate both local ranking context (cross-document interactions) and query-specific context (via pseudo relevance feedback) into a single BERT-based ranking framework.
  • Develop an end-to-end trainable model that improves re-ranking performance beyond strong fine-tuned BERT-Base baselines.
  • Minimize computational overhead while effectively incorporating contextual information into the BERT architecture.
  • Enable broader applicability by planning open-source release and future extension to other models like DPR and ColBERT.

Proposed method

  • Use pseudo relevance feedback (PRF) to generate prototype documents per query, which are used to calibrate query-document interaction representations.
  • Construct training batches with overlapping documents to preserve local ranking context across adjacent groups.
  • Apply a groupwise scorer based on multi-head self-attention to model relevance scores jointly across a batch of documents.
  • Feed batches of documents and queries into BERT in a sequence-aware manner, with the PRF-calibrated representations as input.
  • Train the model end-to-end using standard ranking losses (e.g., pairwise or listwise), with batch order and overlap tuned for performance.
  • Utilize a stack of dense layers on top of BERT’s CLS representation to predict final relevance scores for each document in a group.

Experimental results

Research questions

  • RQ1Can incorporating local ranking context (cross-document interactions) into a BERT-based re-ranker improve retrieval performance?
  • RQ2Can query-specific context, modeled via pseudo relevance feedback, enhance the representational capacity of BERT for ad-hoc retrieval?
  • RQ3Is it feasible to jointly model both local and query-specific context within a single BERT-based architecture without excessive computational cost?
  • RQ4How does the order and structure of training batches (with overlaps) affect model convergence and performance?
  • RQ5Can Co-BERT outperform existing BERT-based and non-BERT neural IR models in terms of both effectiveness and efficiency?

Key findings

  • Co-BERT improves nDCG@20 by 14.7% and MAP@1K by 13.9% over BERT-Base (MS Marco) on the GOV2 dataset, demonstrating significant gains.
  • On Robust04, Co-BERT achieves a 2.0% improvement in nDCG@20 and a 6.6% improvement in MAP@1K over the same BERT-Base baseline.
  • The model outperforms the recently proposed BERT-QE model by a wide margin on GOV2, while performing competitively on Robust04 with substantially lower computational overhead.
  • Using a batch size of 64 yields optimal performance on both datasets, indicating a balance between model stability and hardware constraints.
  • Configurations with fewer than four prototype documents (e.g., m=3) lead to significant performance drops, especially on Robust04, highlighting the importance of sufficient PRF calibration.
  • Non-zero overlap between batches (o > 0) improves performance on shallow pools, particularly on GOV2, suggesting that document continuity aids learning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.