AMPLIFY:Attention-based Mixup for Performance Improvement and Label Smoothing in Transformer

Leixin Yang, Yu Xiang
9/22/2023
cs.LGcs.CL

No confident code implementation found for this paper.

Abstract

Mixup is an effective data augmentation method that generates new augmented samples by aggregating linear combinations of different original samples. However, if there are noises or aberrant features in the original samples, Mixup may propagate them to the augmented samples, leading to over-sensitivity of the model to these outliers . To solve this problem, this paper proposes a new Mixup method called AMPLIFY. This method uses the Attention mechanism of Transformer itself to reduce the influence of noises and aberrant values in the original samples on the prediction results, without increasing additional trainable parameters, and the computational cost is very low, thereby avoiding the problem of high resource consumption in common Mixup methods such as Sentence Mixup . The experimental results show that, under a smaller computational resource cost, AMPLIFY outperforms other Mixup methods in text classification tasks on 7 benchmark datasets, providing new ideas and new ways to further improve the performance of pre-trained models based on the Attention mechanism, such as BERT, ALBERT, RoBERTa, and GPT. Our code can be obtained at https://github.com/kiwi-lilo/AMPLIFY.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{yang2023amplifyattentionbased,
  title  = {AMPLIFY:Attention-based Mixup for Performance Improvement and Label Smoothing in Transformer},
  author = {Leixin Yang and Yu Xiang},
  year   = {2023},
  eprint = {2309.12689},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.12689v3}
}

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

Discussion