Can Machines Tell Stories? A Comparative Study of Deep Neural Language Models and Metrics
Open Access
- 11 September 2020
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Access
- Vol. 8, 181258-181292
Abstract
Massive textual content has enabled rapid advances in natural language modeling. The use of pre-trained deep neural language models has significantly improved natural language understanding tasks. However, the extent to which these systems can be applied to content generation is unclear. While a few informal studies have claimed that these models can generate ‘high quality’ readable content, there is no prior study on analyzing the generated content from these models based on sampling and fine-tuning hyperparameters. We conduct an in-depth comparison of several language models for open-ended story generation from given prompts. Using a diverse set of automated metrics, we compare the performance of transformer-based generative models – OpenAI’s GPT2 (pre-trained and fine-tuned) and Google’s pretrained Transformer-XL and XLNet to human-written textual references. Studying inter-metric correlation along with metric ranking reveals interesting insights – the high correlation between the readability scores and word usage in the text. A study of the statistical significance and empirical evaluations between the scores (human and machine-generated) at higher sampling hyperparameter combinations (t = {0.75, 1:0}, k = {100, 150, 250}) reveal that the top pre-trained and fine-tuned models generated samples condition well on the prompt with an increased occurrence of unique and difficult words. The GPT2-medium model fine-tuned on the 1024 Byte-pair Encoding (BPE) tokenized version of the dataset along with pre-trained Transformer-XL models generated samples close to human written content on three metrics: prompt-based overlap, coherence, and variation in sentence length. A study of overall model stability and performance shows that fine-tuned GPT2 language models have the least deviation in metric scores from human performance.Keywords
Funding Information
- NSF (DGE 1433817, CCF 1950297)
- U.S. Army Research Office (W911NF-16-1-0422, W911NF-20-1-0254)
This publication has 30 references indexed in Scilit:
- Scaling and Effectiveness of Email Masquerade Attacks2017
- Generating Topical Poetry2016
- Globally Coherent Text Generation with Neural Checklist Models2016
- Deep Reinforcement Learning for Dialogue Generation2016
- Neural Machine Translation of Rare Words with Subword Units2016
- Glove: Global Vectors for Word Representation2014
- An Investigation into the Validity of Some Metrics for Automatically Evaluating Natural Language Generation SystemsComputational Linguistics, 2009
- NLTK2002
- Evaluation metrics for generation2000
- A recalculation of four adult readability formulas.Journal of Educational Psychology, 1958