Contrastive Learning of Sociopragmatic Meaning in Social Media

Chiyu Zhang, Muhammad Abdul-Mageed, Ganesh Jawahar
3/15/2022
cs.CLcs.AI
contrastive-ssl

Official code: UBC-NLP/infodcl (1 star, Python, last commit 2023-07-17).

Abstract

Recent progress in representation and contrastive learning in NLP has not widely considered the class of \textit{sociopragmatic meaning} (i.e., meaning in interaction within different language communities). To bridge this gap, we propose a novel framework for learning task-agnostic representations transferable to a wide range of sociopragmatic tasks (e.g., emotion, hate speech, humor, sarcasm).

Show full abstract

Our framework outperforms other contrastive learning frameworks for both in-domain and out-of-domain data, across both the general and few-shot settings. For example, compared to two popular pre-trained language models, our method obtains an improvement of $11.66$ average $F_1$ on $16$ datasets when fine-tuned on only $20$ training samples per dataset.Our code is available at: https://github.com/UBC-NLP/infodcl

View on arXivView PDF

Code Implementations(1)

UBC-NLP/infodclOfficial100%
10Python, ShellMay 24, 20233 years ago

Similar Papers

Cite this paper

@article{zhang2022contrastive,
  title  = {Contrastive Learning of Sociopragmatic Meaning in Social Media},
  author = {Chiyu Zhang and Muhammad Abdul-Mageed and Ganesh Jawahar},
  year   = {2022},
  eprint = {2203.07648},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.07648}
}

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

Discussion