Sentence Bottleneck Autoencoders from Transformer Language Models

Ivan Montero, Nikolaos Pappas, Noah A. Smith
8/31/2021
cs.CL
transformer-attention

Official code: ivanmontero/autobot (17 stars, Python, last commit 2022-03-14).

Abstract

Representation learning for text via pretraining a language model on a large corpus has become a standard starting point for building NLP systems. This approach stands in contrast to autoencoders, also trained on raw text, but with the objective of learning to encode each input as a vector that allows full reconstruction.

Show full abstract

Autoencoders are attractive because of their latent space structure and generative properties. We therefore explore the construction of a sentence-level autoencoder from a pretrained, frozen transformer language model. We adapt the masked language modeling objective as a generative, denoising one, while only training a sentence bottleneck and a single-layer modified transformer decoder. We demonstrate that the sentence representations discovered by our model achieve better quality than previous methods that extract representations from pretrained transformers on text similarity tasks, style transfer (an example of controlled generation), and single-sentence classification tasks in the GLUE benchmark, while using fewer parameters than large pretrained models.

View on arXivView PDF

Code Implementations(1)

Implementation of the paper 'Sentence Bottleneck Autoencoders from Transformer Language Models'

172Python, Jupyter NotebookAug 31, 20214 years ago

Similar Papers

Cite this paper

@article{montero2021sentence,
  title  = {Sentence Bottleneck Autoencoders from Transformer Language Models},
  author = {Ivan Montero and Nikolaos Pappas and Noah A. Smith},
  year   = {2021},
  eprint = {2109.00055},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.00055}
}

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

Discussion