A Systematic Characterization of Sampling Algorithms for Open-ended Language Generation

09/15/2020
by   Moin Nadeem, et al.
10

This work studies the widely adopted ancestral sampling algorithms for auto-regressive language models, which is not widely studied in the literature. We use the quality-diversity (Q-D) trade-off to investigate three popular sampling algorithms (top-k, nucleus and tempered sampling). We focus on the task of open-ended language generation. We first show that the existing sampling algorithms have similar performance. After carefully inspecting the transformations defined by different sampling algorithms, we identify three key properties that are shared among them: entropy reduction, order preservation, and slope preservation. To validate the importance of the identified properties, we design two sets of new sampling algorithms: one set in which each algorithm satisfies all three properties, and one set in which each algorithm violates at least one of the properties. We compare their performance with existing sampling algorithms, and find that violating the identified properties could lead to drastic performance degradation, as measured by the Q-D trade-off. On the other hand, we find that the set of sampling algorithms that satisfies these properties performs on par with the existing sampling algorithms. Our data and code are available at https://github.com/moinnadeem/characterizing-sampling-algorithms

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/12/2022

AdaVAE: Exploring Adaptive GPT-2s in Variational Auto-Encoders for Language Modeling

Variational Auto-Encoder (VAE) has become the de-facto learning paradigm...
research
07/09/2019

Procedural Content Generation through Quality Diversity

Quality-diversity (QD) algorithms search for a set of good solutions whi...
research
06/04/2022

CVNets: High Performance Library for Computer Vision

We introduce CVNets, a high-performance open-source library for training...
research
09/02/2022

Exploiting Pretrained Biochemical Language Models for Targeted Drug Design

Motivation: The development of novel compounds targeting proteins of int...
research
06/30/2023

Comparative study of subset selection methods for rapid prototyping of 3D object detection algorithms

Object detection in 3D is a crucial aspect in the context of autonomous ...
research
04/04/2023

VNE: An Effective Method for Improving Deep Representation by Manipulating Eigenvalue Distribution

Since the introduction of deep learning, a wide scope of representation ...
research
06/24/2020

Reinforced Data Sampling for Model Diversificatio

With the rising number of machine learning competitions, the world has w...

Please sign up or login with your details

Forgot password? Click here to reset