TL;DR
Neural language models can generate grammatically coherent stories but often lack common sense reasoning, leading to nonsensical narratives. This paper introduces a multi-task learning approach that fine-tunes pre-trained language models with auxiliary common sense tasks, significantly improving story generation quality and achieving state-of-the-art perplexity on a challenging dataset.
What Problem Does This Paper Address?
Modern neural language models, like GPT-2, excel at producing text that is stylistically and grammatically consistent. However, they frequently falter when it comes to common sense reasoning (CSR). This means they can generate sentences that are logically impossible or contradict basic world knowledge, such as describing a "sunny summer night." The authors argue that simply minimizing next-token prediction error (perplexity) is insufficient for generating truly sensible and compelling stories. They aim to bridge this gap by explicitly training models to incorporate common sense knowledge into their story generation process.
Methods
The core of this paper is a two-stage fine-tuning pipeline designed to imbue pre-trained language models with better common sense reasoning capabilities.
- Intermediate Fine-Tuning: The first stage involves adapting a pre-trained GPT-2 model to the domain of stories. This is achieved by fine-tuning it on BookCorpus, a large dataset of books, using a standard language modeling objective. This step helps the model learn the nuances of narrative structure and style.
- Multi-Task Fine-Tuning: The second stage is where the common sense grounding happens. The model is further fine-tuned on the target WritingPrompts dataset (for story generation) alongside auxiliary common sense tasks. The novel aspect here is the auxiliary task of perplexity ranking. Instead of training a separate classifier for CSR, the model is trained to assign higher probability (lower perplexity) to sensible text completions compared to spurious, nonsensical ones. This is done using datasets like SWAG and a custom synthetic dataset. This approach directly biases the model towards generating text that aligns with common sense.
Datasets
- WritingPrompts: Used for the primary task of story generation. It consists of prompts and corresponding stories.
- BookCorpus: Used for domain adaptation, fine-tuning the model on a large collection of books to better understand narrative.
- SWAG (Situations With Adversarial Generations): A dataset of multiple-choice questions designed to test common sense reasoning. The authors use it for perplexity ranking.
- Synthetic Dataset: A custom dataset created by the authors, consisting of pairs of human-written text and text generated by a neural network. This is used to train the model to prefer human-like, sensible text over generated text.
- Story Cloze: Used for evaluating the model's common sense reasoning on an in-domain dataset for story completion.
Key Insights and Ideas
- Common Sense is Crucial for Storytelling: The paper strongly emphasizes that grammatical correctness alone is not enough for good story generation. Common sense reasoning is a critical missing piece that leads to more believable and engaging narratives.
- Perplexity Ranking as a CSR Objective: The authors propose a clever and parameter-efficient way to incorporate CSR into generative models. By training the model to rank sensible text higher than nonsensical text using perplexity, they directly influence its generation process without needing complex architectural changes or additional classifiers.
- Transfer Learning and Multi-Tasking Synergy: The combination of intermediate domain adaptation (on BookCorpus) and multi-task fine-tuning (with CSR tasks) proves highly effective. This two-stage approach builds upon the strengths of pre-trained models and further refines them for the specific task of sensible story generation.
- Human Text as a Proxy for Sensibility: The synthetic dataset, composed of human-written text versus model-generated text, leverages the assumption that human text is generally more sensible. This provides a practical way to train the model to favor human-like reasoning.
Key Results
- Improved Perplexity: The proposed model, GPT2 → BC → WP + SWAG + SYNTH, achieves state-of-the-art perplexity on the WritingPrompts dataset, outperforming previous methods like the Fusion Model.
- Enhanced Common Sense Reasoning: The model shows significant improvements in common sense reasoning, as measured by performance on the SWAG and Story Cloze validation sets. Notably, the multi-tasking approach boosts SWAG performance by over 25% and Story Cloze by about 5%.
- Better Prompt Adherence: The model also demonstrates improved prompt ranking accuracy, indicating it can better generate stories that align with given prompts.
- Qualitative Improvements: The paper includes sample stories (Tables 2, 4, 5, 6, 7) that showcase more coherent and sensible narratives compared to models without the CSR training.
Limitations and Future Work
- Short-Term Common Sense: The authors acknowledge that their reliance on datasets like SWAG primarily captures short-term common sense. They suggest that achieving long-term story-level coherence might require more advanced methods.
- Future Work: The paper leaves the investigation of long-term story-level coherence as a future research direction.
Summary updated