Attention-based Contrastive Learning for Winograd Schemas

Tassilo Klein, Moin Nabi
9/10/2021
cs.CL
contrastive-ssl

Official code: SAP-archive/emnlp2021-attention-contrastive-learning (8 stars, Python, Apache-2.0, last commit 2025-03-10).

Abstract

Self-supervised learning has recently attracted considerable attention in the NLP community for its ability to learn discriminative features using a contrastive objective. This paper investigates whether contrastive learning can be extended to Transfomer attention to tackling the Winograd Schema Challenge.

Show full abstract

To this end, we propose a novel self-supervised framework, leveraging a contrastive loss directly at the level of self-attention. Experimental analysis of our attention-based models on multiple datasets demonstrates superior commonsense reasoning capabilities. The proposed approach outperforms all comparable unsupervised approaches while occasionally surpassing supervised ones.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Repository supporting an accepted paper at EMNLP 2021 on attention contrastive learning.

82PythonSep 2, 20211 years agoApache-2.0
aiartificial-intelligenceemnlp2021machine-learningnatural-language-processing+3 more

Similar Papers

Cite this paper

@article{klein2021attentionbased,
  title  = {Attention-based Contrastive Learning for Winograd Schemas},
  author = {Tassilo Klein and Moin Nabi},
  year   = {2021},
  eprint = {2109.05108},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.05108}
}

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

Discussion