English

Boolean-aware Attention for Dense Retrieval

Computation and Language 2025-03-04 v1

Abstract

We present Boolean-aware attention, a novel attention mechanism that dynamically adjusts token focus based on Boolean operators (e.g., and, or, not). Our model employs specialized Boolean experts, each tailored to amplify or suppress attention for operator-specific contexts. A predefined gating mechanism activates the corresponding experts based on the detected Boolean type. Experiments on Boolean retrieval datasets demonstrate that integrating BoolAttn with BERT greatly enhances the model's capability to process Boolean queries.

Keywords

Cite

@article{arxiv.2503.01753,
  title  = {Boolean-aware Attention for Dense Retrieval},
  author = {Quan Mai and Susan Gauch and Douglas Adams},
  journal= {arXiv preprint arXiv:2503.01753},
  year   = {2025}
}
R2 v1 2026-06-28T22:04:58.121Z