Making Language Models Robust Against Negation

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Rezaei, MohammadHossein, Blanco, Eduardo
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866929710445887488
author Rezaei, MohammadHossein
Blanco, Eduardo
author_facet Rezaei, MohammadHossein
Blanco, Eduardo
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2502_07717
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Making Language Models Robust Against Negation
Rezaei, MohammadHossein
Blanco, Eduardo
Computation and Language
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.
title Making Language Models Robust Against Negation
topic Computation and Language
url https://arxiv.org/abs/2502.07717