Encoder-Agnostic Adaptation for Conditional Language Generation

Zachary M. Ziegler, Luke Melas-Kyriazi, Sebastian Gehrmann, Alexander M. Rush
8/19/2019
cs.CL
transformer-attention

Official code: harvardnlp/encoder-agnostic-adaptation (80 stars, Python, MIT, last commit 2024-07-25).

Abstract

Large pretrained language models have changed the way researchers approach discriminative natural language understanding tasks, leading to the dominance of approaches that adapt a pretrained model for arbitrary downstream tasks. However it is an open-question how to use similar techniques for language generation.

Show full abstract

Early results in the encoder-agnostic setting have been mostly negative. In this work we explore methods for adapting a pretrained language model to arbitrary conditional input. We observe that pretrained transformer models are sensitive to large parameter changes during tuning. We therefore propose an adaptation that directly injects arbitrary conditioning into self attention, an approach we call pseudo self attention. Through experiments on four diverse conditional text generation tasks we show that this encoder-agnostic technique outperforms strong baselines, produces coherent generations, and is data efficient.

View on arXivView PDF

Code Implementations(1)

MIT

Encoder-Agnostic Adaptation for Conditional Language Generation

8012Python, ShellSep 4, 20192 years agoMIT

Similar Papers

Cite this paper

@article{ziegler2019encoderagnostic,
  title  = {Encoder-Agnostic Adaptation for Conditional Language Generation},
  author = {Zachary M. Ziegler and Luke Melas-Kyriazi and Sebastian Gehrmann and Alexander M. Rush},
  year   = {2019},
  eprint = {1908.06938},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1908.06938}
}

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

Discussion