TL;DR
This paper demonstrates that fine-tuning smaller, cost-effective GPT-3 models (like Ada and Babbage) on a modest dataset of just 300 poems allows them to generate new poetry that faithfully mimics a specific author's style. By structuring the training data with automatically generated summaries and metadata, the authors create a system where users can control the narrative content while the model handles the stylistic execution. Furthermore, they show that fine-tuned LLMs can double as highly accurate style evaluators, outperforming traditional classifiers on small datasets.
What Problem Does This Paper Address?
While modern Large Language Models (LLMs) can easily generate grammatically correct and coherent poetry via zero-shot prompt engineering, the output often feels generic. Standard prompting struggles to capture the unique stylistic fingerprints, emotional nuances, and structural quirks of specific historical authors (e.g., Walt Whitman or Rudyard Kipling).
Additionally, evaluating whether an AI has successfully replicated a literary style is notoriously difficult. Human evaluation is expensive and subjective, while traditional automated text classifiers (like BERT) require massive datasets to achieve high accuracy—a luxury researchers rarely have when dealing with the limited surviving corpora of historical poets.
Methods
The authors developed a two-part workflow covering both poetry generation and automated evaluation:
- Generation via Structured Fine-Tuning: Instead of fine-tuning GPT-3 on raw poem text, the authors structured each training instance as a prompt-completion pair. The prompt contains metadata (Author, Dates, Country, Title, Theme) and a text summary of the poem, while the completion is the body of the poem itself. To scale this process, they used GPT-3.5 (
text-davinci-003) to automatically generate the summaries and themes for the training set. - Classification-Based Evaluation: To evaluate style preservation, the authors adopted a GAN-like approach. They fine-tuned a separate GPT-3 model (Babbage) as a binary classifier tasked with distinguishing between original human-written poems and AI-generated ones. During inference, they utilized a technique called
logit_biasto force the model to output only one of two tokens ("0" for generated, "1" for original), ensuring clear, conclusive classification results.
Datasets
The authors compiled a new benchmark dataset consisting of 2,100 out-of-copyright poems split equally among seven classical authors (300 poems each): Ella Wheeler Wilcox, Rudyard Kipling, Emily Dickinson, Lord Byron, William Wordsworth, Walt Whitman, and Thomas Hardy. Each poem is annotated with a GPT-3.5-generated summary and a primary theme selected from 23 predefined categories.
To ensure a fair evaluation during generation testing, the authors used summaries from two entirely separate authors (William Ernest Henley and Christina Rossetti) as prompts. This forced the fine-tuned models to generate poems in the style of Author A (e.g., Whitman) but about topics typically written about by Author B.
Key Insights and Ideas
- Size Doesn't Always Matter: One of the most surprising findings is that smaller models (Ada and Babbage) perform comparably to—and sometimes better than—the massive, expensive Davinci model for both generation and classification tasks. This suggests that stylistic replication may not require the massive parameter counts needed for broader reasoning tasks.
- Metadata as a Steering Wheel: Including summaries in the fine-tuning prompt solves the "control problem" in creative text generation. It allows a human collaborator to dictate the narrative arc or subject matter while letting the fine-tuned model dictate the aesthetic style.
- LLMs as Sample-Efficient Classifiers: While models like BERT struggle to classify text accurately when trained on small datasets, a fine-tuned GPT-3 model can achieve near-perfect binary classification accuracy with as few as 200 training samples per label.
Key Results
The authors first calibrated their GPT-3 Babbage classifier against distinct text types to prove its reliability, achieving an average baseline accuracy of 99% across various tasks (such as distinguishing Whitman's poetry from a textbook on machine learning).
When evaluating the generated poetry against the original authors:
- Walt Whitman: The best-performing generation model (Curie, fine-tuned for 4 epochs) generated poems that fooled the classifier 38.5% of the time (achieving a classifier accuracy of 61.5%). An accuracy close to 50% indicates that the AI's style is statistically indistinguishable from the original author's.
- Rudyard Kipling: The best model (Babbage, fine-tuned for 4 epochs) fooled the classifier 33% of the time (classifier accuracy of 67%).
An example of a generated poem mimicking Walt Whitman's style based on a summary of Christina Rossetti's "Paradise: In A Dream" highlights the model's ability to blend foreign narrative concepts with Whitman's characteristic free-verse structure:
Limitations and Future Work
The authors acknowledge that their automated evaluation relies on a "black-box" classifier; while the classifier achieves high accuracy, the exact stylistic features it uses to differentiate human from AI text remain unknown. They note that future work must incorporate extensive human evaluation to fully validate these findings.
Additionally, the authors propose exploring how this workflow handles shorter poetic structures, such as haikus, where a text summary might actually be longer than the poem itself. They also suggest splitting a single poet's dataset chronologically to see if an LLM can capture how an author's style evolves over the course of their career (e.g., "Early Whitman" vs. "Late Whitman").
Summary updated