MorphNLI: A Stepwise Approach to Natural Language Inference Using Text Morphing

Vlad Andrei Negru, Robert Vacareanu, Camelia Lemnaru, Mihai Surdeanu, Rodica Potolea
2/13/2025
cs.CLcs.AI

No official code found. Best implementation: vdorastie/MorphNLI (1 star, last commit 2025-04-28).

Abstract

We introduce MorphNLI, a modular step-by-step approach to natural language inference (NLI). When classifying the premise-hypothesis pairs into {entailment, contradiction, neutral}, we use a language model to generate the necessary edits to incrementally transform (i.e., morph) the premise into the hypothesis. Then, using an off-the-shelf NLI model we track how the entailment progresses with these atomic changes, aggregating these intermediate labels into a final output. We demonstrate the advantages of our proposed method particularly in realistic cross-domain settings, where our method always outperforms strong baselines with improvements up to 12.6% (relative). Further, our proposed approach is explainable as the atomic edits can be used to understand the overall NLI label.

View on arXivView PDF

Code Implementations(1)

vdorastie/MorphNLICommunity65%

MorphNLI: A Stepwise Approach to Natural Language Inference Using Text Morphing

10Mar 30, 20251 years ago

Similar Papers

Cite this paper

@article{negru2025morphnli,
  title  = {MorphNLI: A Stepwise Approach to Natural Language Inference Using Text Morphing},
  author = {Vlad Andrei Negru and Robert Vacareanu and Camelia Lemnaru and Mihai Surdeanu and Rodica Potolea},
  year   = {2025},
  eprint = {2502.09567},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.09567v1}
}

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

Discussion