NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

NevIR: Negation in Neural Information Retrieval

Orion Weller, Dawn J. Lawrie, Benjamin Van Durme · DOI

NevIR: Negation in Neural Information Retrieval

Introduction

Neural Information Retrieval (IR) models have fundamentally changed how we search for information, yet they possess a critical "Achilles' heel": negation. Despite their sophistication, many state-of-the-art models are surprisingly "negation-blind." This failure isn't merely academic; it has real-world consequences. For instance, search engines have been known to provide dangerous medical advice by misinterpreting "what not to do" as a list of recommendations.

The core of the problem lies in training data. Modern neural IR models are often trained on datasets where negation is infrequent. Consequently, these models learn to treat negation words like "not" or "except" as "stop words" or noise, focusing instead on high-frequency keywords. To address this, we introduce NevIR, a benchmark designed to quantify and analyze this failure.

The NevIR Benchmark

NevIR consists of 2,556 document pairs that differ only by a crucial negation (e.g., "it was replaced by..." vs. "it was replaced by... except in..."). These pairs were derived from CondaQA and refined through crowdsourcing to create natural language queries.

To ensure models aren't simply guessing or relying on document-side biases, we employ a pairwise accuracy metric. For a given pair of documents (one negated, one not), a model must correctly rank the relevant document higher for both the positive query and the negated query. This prevents models from "cheating" by simply preferring one document style over another regardless of the query's intent.

The pairwise accuracy metric requires a model to correctly rank documents for both positive and negated queries to prevent "cheating" via document-style preference.

Architectural Performance

Our evaluation across four major IR architectures reveals that internal structure significantly impacts a model's ability to process negation:

  • Bi-Encoders (e.g., DPR): These models performed the worst, often scoring between 6.8% and 11.1%—well below the 25% random baseline. Compressing a document into a single vector appears to drown out the subtle signal of a negation word.
  • Late Interaction (e.g., ColBERT): While more sophisticated, ColBERT v1 scored only 19.7%. The "MaxSim" operator, which aligns query tokens to the most similar document tokens, was found to systematically ignore negation words.
  • Cross-Encoders (e.g., MonoT5): These are the only models that significantly outperform the random baseline. By processing the query and document simultaneously, they can leverage deep attention to see how negation modifies surrounding text. MonoT5-3B achieved 50.6% accuracy.
  • Sparse Models (e.g., SPLADE): These rely on bag-of-words representations and generally struggle with the semantic nuances of negation.

Key Insights

  • Architecture is Destiny: Cross-encoders' ability to perform joint attention is vital for capturing the relationship between negation and its context.
  • NLI Training Helps: Models pre-trained on Natural Language Inference (NLI) tasks—which require identifying contradictions—performed better on NevIR, suggesting that logical reasoning capabilities transfer to IR.
  • The Training Gap: Fine-tuning on the NevIR training set dramatically improved performance (e.g., MonoT5-base jumped from 34.9% to ~70%), indicating that models can learn negation if exposed to it during training.

Conclusion and Future Work

While Cross-Encoders show promise, a massive gap remains between the best models (50.6%) and human performance (100%). NevIR currently serves as a "precision" benchmark for ranking; future research must scale these findings to the retrieval phase involving millions of documents. Furthermore, improving negation logic without sacrificing general retrieval performance on standard benchmarks like MSMarco remains an open challenge.

Summary updated

BibTeX
@inproceedings{weller2024nevir,
  author = {Orion Weller and Dawn J. Lawrie and Benjamin Van Durme},
  title = {{NevIR: Negation in Neural Information Retrieval}},
  booktitle = {EACL},
  year = {2024},
  url = {https://openreview.net/forum?id=MYaGU1azwb},
}
Figure