Relation-based Counterfactual Data Augmentation and Contrastive Learning for Robustifying Natural Language Inference Models

Heerin Yang, Sseung-won Hwang, Jungmin So
10/28/2024
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Although pre-trained language models show good performance on various natural language processing tasks, they often rely on non-causal features and patterns to determine the outcome. For natural language inference tasks, previous results have shown that even a model trained on a large number of data fails to perform well on counterfactually revised data, indicating that the model is not robustly learning the semantics of the classes. In this paper, we propose a method in which we use token-based and sentence-based augmentation methods to generate counterfactual sentence pairs that belong to each class, and apply contrastive learning to help the model learn the difference between sentence pairs of different classes with similar contexts. Evaluation results with counterfactually-revised dataset and general NLI datasets show that the proposed method can improve the performance and robustness of the NLI model.

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{yang2024relationbased,
  title  = {Relation-based Counterfactual Data Augmentation and Contrastive Learning for Robustifying Natural Language Inference Models},
  author = {Heerin Yang and Sseung-won Hwang and Jungmin So},
  year   = {2024},
  eprint = {2410.20710},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.20710v1}
}

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/2410.20710.svg)](https://codeofpaper.com/paper/2410.20710)

Discussion