Protoformer: Embedding Prototypes for Transformers

Ashkan Farhangi, Ning Sui, Nan Hua, Haiyan Bai, Arthur Huang +1 more
6/25/2022
cs.CLcs.LG

Official code: ashfarhangi/Protoformer (24 stars, GPL-3.0, last commit 2024-10-12).

Abstract

Transformers have been widely applied in text classification. Unfortunately, real-world data contain anomalies and noisy labels that cause challenges for state-of-art Transformers. This paper proposes Protoformer, a novel self-learning framework for Transformers that can leverage problematic samples for text classification. Protoformer features a selection mechanism for embedding samples that allows us to efficiently extract and utilize anomalies prototypes and difficult class prototypes. We demonstrated such capabilities on datasets with diverse textual structures (e.g., Twitter, IMDB, ArXiv). We also applied the framework to several models. The results indicate that Protoformer can improve current Transformers in various empirical settings.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

Code for the "Protoformer: Embedding Prototypes for Transformers" published at PAKDD 2022

244PythonFeb 8, 20222 years agoGPL-3.0

Similar Papers

Cite this paper

@article{farhangi2022protoformer,
  title  = {Protoformer: Embedding Prototypes for Transformers},
  author = {Ashkan Farhangi and Ning Sui and Nan Hua and Haiyan Bai and Arthur Huang and Zhishan Guo},
  year   = {2022},
  eprint = {2206.12710},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.12710}
}

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

Discussion