Language Models for Lexical Inference in Context

Martin Schmitt, Hinrich Schütze
2/10/2021
cs.CLcs.AI

Official code: mnschmit/lm-lexical-inference (5 stars, Python, MIT, last commit 2021-09-08).

Abstract

Lexical inference in context (LIiC) is the task of recognizing textual entailment between two very similar sentences, i.e., sentences that only differ in one expression. It can therefore be seen as a variant of the natural language inference task that is focused on lexical semantics.

Show full abstract

We formulate and evaluate the first approaches based on pretrained language models (LMs) for this task: (i) a few-shot NLI classifier, (ii) a relation induction approach based on handcrafted patterns expressing the semantics of lexical inference, and (iii) a variant of (ii) with patterns that were automatically extracted from a corpus. All our approaches outperform the previous state of the art, showing the potential of pretrained LMs for LIiC. In an extensive analysis, we investigate factors of success and failure of our three approaches.

View on arXivView PDF

Code Implementations(1)

MIT

This repository contains the code for the EACL 2021 long paper "Language Models for Lexical Inference in Context".

52PythonJan 15, 20215 years agoMIT

Similar Papers

Cite this paper

@article{schmitt2021language,
  title  = {Language Models for Lexical Inference in Context},
  author = {Martin Schmitt and Hinrich Schütze},
  year   = {2021},
  eprint = {2102.05331},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.05331}
}

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

Discussion