Making Language Models Robust Against Negation

MohammadHossein Rezaei, Eduardo Blanco
2/11/2025
cs.CL

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{rezaei2025making,
  title  = {Making Language Models Robust Against Negation},
  author = {MohammadHossein Rezaei and Eduardo Blanco},
  year   = {2025},
  eprint = {2502.07717},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.07717v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.07717.svg)](https://codeofpaper.com/paper/2502.07717)

Discussion