arXiv · 2312.17649
Investigating the Effects of Sparse Attention on Cross-Encoders
Abstract
Cross-encoders are effective passage and document re-rankers but less efficient than other neural or classic retrieval models. A few previous studies have applied windowed self-attention to make cross-encoders more efficient. However, these studies did not investigate the potential and limits of different attention patterns or window sizes. We close this gap and systematically analyze how token interactions can be reduced without harming the re-ranking effectiveness. Experimenting with asymmetric attention and different window sizes, we find that the query tokens do not need to attend to the passage or document tokens for effective re-ranking and that very small window sizes suffice. In our experiments, even windows of 4 tokens still yield effectiveness on par with previous cross-encoders while reducing the memory requirements by at least 22% / 59% and being 1% / 43% faster at inference time for passages / documents.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Ferdinand Schlatt, Maik Fröbe, Matthias Hagen. 2023-12-29. Investigating the Effects of Sparse Attention on Cross-Encoders. https://doi.org/10.1007/978-3-031-56027-9_11
Cite the original work for its findings. Save a collection to share your selection of sources.