TreeMix: Compositional Constituency-based Data Augmentation for Natural Language Understanding

Le Zhang, Zichao Yang, Diyi Yang
5/12/2022
cs.CL

Official code: lezhang7/TreeMix (10 stars, Python, MIT, last commit 2023-07-15).

Abstract

Data augmentation is an effective approach to tackle over-fitting. Many previous works have proposed different data augmentations strategies for NLP, such as noise injection, word replacement, back-translation etc.

Show full abstract

Though effective, they missed one important characteristic of language--compositionality, meaning of a complex expression is built from its sub-parts. Motivated by this, we propose a compositional data augmentation approach for natural language understanding called TreeMix. Specifically, TreeMix leverages constituency parsing tree to decompose sentences into constituent sub-structures and the Mixup data augmentation technique to recombine them to generate new sentences. Compared with previous approaches, TreeMix introduces greater diversity to the samples generated and encourages models to learn compositionality of NLP data. Extensive experiments on text classification and SCAN demonstrate that TreeMix outperforms current state-of-the-art data augmentation methods.

View on arXivView PDF

Code Implementations(1)

lezhang7/TreeMixOfficial100%
MIT

[NAACL 2022] TreeMix: Compositional Constituency-based Data Augmentation for Natural Language Understanding

102Python, Jupyter NotebookNov 1, 20213 years agoMIT

Similar Papers

Cite this paper

@article{zhang2022treemix,
  title  = {TreeMix: Compositional Constituency-based Data Augmentation for Natural Language Understanding},
  author = {Le Zhang and Zichao Yang and Diyi Yang},
  year   = {2022},
  eprint = {2205.06153},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.06153}
}

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

Discussion