Improving Transformer-Kernel Ranking Model Using Conformer and Query Term Independence

Bhaskar Mitra, Sebastian Hofstätter, Hamed Zamani, Nick CraswellSIGIR 2021

Introduction

In modern Information Retrieval (IR), Transformer-based models like BERT have set new benchmarks for accuracy. However, they face two significant hurdles: quadratic computational complexity and the necessity of multi-stage reranking. Standard self-attention mechanisms scale at $O(n^2)$ relative to document length $n$, making the processing of long documents computationally expensive. Consequently, these models are typically restricted to reranking a small subset of documents (e.g., the top 100) retrieved by faster, less accurate systems like BM25.

This research introduces the Conformer-Kernel (CK) model, designed to overcome these limitations. By achieving linear memory growth and incorporating Query Term Independence (QTI), the CK model enables efficient "one-shot" full retrieval from massive collections, bypassing the need for a separate first-stage ranker.

Architecture and Methods

The Conformer-Kernel (CK) model evolves from the Transformer-Kernel (TK) architecture through several key innovations:

Separable Self-Attention

To address the quadratic bottleneck, the authors implement a "separable" self-attention mechanism. By reordering matrix multiplications and applying softmax operations independently, the memory complexity is reduced to $O(n \times d_{key})$. This shift ensures that memory usage grows linearly with document length, allowing the model to ingest significantly longer texts.

The Conformer Layer

The model integrates separable attention with grouped convolutions. While attention mechanisms excel at capturing global dependencies, convolutions are superior at modeling local context. This hybrid approach allows the model to better understand document relevance through both broad thematic links and local word interactions.

Query Term Independence (QTI)

By treating query terms independently, the CK model allows for the precomputation of document scores for every term in the vocabulary. These scores are stored in an inverted index, enabling the system to perform full-collection retrieval in milliseconds during query time.

Comparison of the baseline Transformer-Kernel (TK) architecture and the proposed Conformer-Kernel (CK) variant with QTI.

Hybrid Matching (NDRM3)

The model utilizes the "Duet" framework to combine latent neural matching (semantic understanding) with explicit lexical matching (exact word overlap). This ensures high recall for queries involving specific technical terms or named entities.

Efficiency and Scalability

A primary advantage of the Conformer-Kernel model is its scalability. As shown in the memory usage analysis, the Conformer's memory footprint remains nearly flat as document length increases, whereas standard Transformers quickly reach hardware limits. This efficiency allows the CK model to process up to 4,000 terms per document, a significant improvement over the 512-token limit common in BERT-based architectures.

Memory usage comparison between standard Transformer and Conformer architectures as document length increases.

Experimental Evaluation

The models were rigorously tested on the MS MARCO dataset and the TREC 2020 Deep Learning Track. To enrich document representations, the researchers also utilized the ORCAS dataset, which contains 18 million query-document click pairs.

Key Results

  • Performance Gains: The Conformer-based NDRM1 model achieved a 5.3% improvement in NDCG@10 over the previous state-of-the-art TKL variant.
  • Retrieval Success: In a full-retrieval configuration (NDRM3 + ORCAS), the model reached an NDCG@10 of 0.6249, outperforming most traditional non-neural runs and many computationally intensive Transformer submissions.
  • Training Efficiency: Unlike BERT, which requires expensive pretraining, the CK model is trained from scratch on specific IR tasks yet still outperforms many pretrained neural language models.

Conclusion and Future Work

The Conformer-Kernel model demonstrates that linear complexity and high-quality retrieval are not mutually exclusive. By moving beyond the reranking paradigm, it offers a path toward more efficient and scalable search engines. While it currently trails the most complex multi-stage BERT cascades, its performance as a single-stage retriever is remarkable. Future work may explore boosting these results further by adding a lightweight final reranking stage or refining the integration of latent and lexical matching.

Summary updated

BibTeX
@inproceedings{mitra2021improving,
  author = {Bhaskar Mitra and Sebastian Hofstätter and Hamed Zamani and Nick Craswell},
  title = {{Improving Transformer-Kernel Ranking Model Using Conformer and Query Term Independence}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2021},
  url = {https://openreview.net/forum?id=cIseFJFsqF},
}
Figure