English

Making Language Models Robust Against Negation

Computation and Language 2025-02-12 v1

Abstract

Negation has been a long-standing challenge for language models. Previous studies have shown that they struggle with negation in many natural language understanding tasks. In this work, we propose a self-supervised method to make language models more robust against negation. We introduce a novel task, Next Sentence Polarity Prediction (NSPP), and a variation of the Next Sentence Prediction (NSP) task. We show that BERT and RoBERTa further pre-trained on our tasks outperform the off-the-shelf versions on nine negation-related benchmarks. Most notably, our pre-training tasks yield between 1.8% and 9.1% improvement on CondaQA, a large question-answering corpus requiring reasoning over negation.

Keywords

Cite

@article{arxiv.2502.07717,
  title  = {Making Language Models Robust Against Negation},
  author = {MohammadHossein Rezaei and Eduardo Blanco},
  journal= {arXiv preprint arXiv:2502.07717},
  year   = {2025}
}

Comments

Accepted to NAACL 2025

R2 v1 2026-06-28T21:40:31.154Z