GENIUS: Sketch-based Language Model Pre-training via Extreme and Selective Masking for Text Generation and Augmentation

Biyang Guo, Yeyun Gong, Yelong Shen, Songqiao Han, Hailiang Huang +2 more
11/18/2022
26 citations
cs.CL

Official code: beyondguo/genius (179 stars, Python, last commit 2022-12-09). 1 more implementation below.

Abstract

We introduce GENIUS: a conditional text generation model using sketches as input, which can fill in the missing contexts for a given sketch (key information consisting of textual spans, phrases, or words, concatenated by mask tokens). GENIUS is pre-trained on a large-scale textual corpus with a novel reconstruction from sketch objective using an extreme and selective masking strategy, enabling it to generate diverse and high-quality texts given sketches.

Show full abstract

Comparison with other competitive conditional language models (CLMs) reveals the superiority of GENIUS's text generation quality. We further show that GENIUS can be used as a strong and ready-to-use data augmentation tool for various natural language processing (NLP) tasks. Most existing textual data augmentation methods are either too conservative, by making small changes to the original text, or too aggressive, by creating entirely new samples. With GENIUS, we propose GeniusAug, which first extracts the target-aware sketches from the original training set and then generates new samples based on the sketches. Empirical experiments on 6 text classification datasets show that GeniusAug significantly improves the models' performance in both in-distribution (ID) and out-of-distribution (OOD) settings. We also demonstrate the effectiveness of GeniusAug on named entity recognition (NER) and machine reading comprehension (MRC) tasks. (Code and models are publicly available at https://github.com/microsoft/SCGLab and https://github.com/beyondguo/genius)

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
beyondguo/geniusOfficial179Python–2022-12-09
microsoft/SCGLabOfficial16PythonMIT2023-06-12
beyondguo/geniusOfficial100%

💡GENIUS – generating text using sketches! A strong text generation & data augmentation tool.

17915Python, Jupyter NotebookNov 4, 20223 years ago
conditional-text-generationdata-augmentationkeywords-to-textnamed-entities-recognitionsketch-to-text+3 more
microsoft/SCGLabOfficial100%
MIT
160Python, ShellNov 23, 20223 years agoMIT

Similar Papers

Cite this paper

@article{guo2022genius,
  title  = {GENIUS: Sketch-based Language Model Pre-training via Extreme and Selective Masking for Text Generation and Augmentation},
  author = {Biyang Guo and Yeyun Gong and Yelong Shen and Songqiao Han and Hailiang Huang and Nan Duan and Weizhu Chen},
  year   = {2022},
  eprint = {2211.10330},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.10330}
}

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

Discussion