Abstract
In this paper, we propose a joint architecture that captures language, rhyme and meter for sonnet modelling. We assess the quality of generated poems using crowd and expert judgements. The stress and rhyme models perform very well, as generated poems are largely indistinguishable from human-written poems. Expert evaluation, however, reveals that a vanilla language model captures meter implicitly, and that machine-generated poems still underperform in terms of readability and emotion. Our research shows the importance expert evaluation for poetry generation, and that future research should look beyond rhyme/meter and focus on poetic language.
Introduction
Writing poetry is a complex "constrained" language modeling task. A poet must balance semantic meaning with rigid structural rules: meter (the rhythmic beat) and rhyme (phonetic matching). Historically, poetry generation systems relied on heavy-handed engineering like rule-based templates or pronunciation dictionaries. Deep-speare moves away from these "crutches" by building an end-to-end neural model that learns these aesthetic forms directly from a corpus of sonnets.
Joint Architecture
The researchers proposed a joint architecture consisting of three specialized components trained via multi-task learning:
- Language Model (LM): A Bi-LSTM encoder-decoder with an attention mechanism. It includes a "selective mechanism" that acts as a gate to filter out less useful context from preceding lines, helping the model maintain thematic consistency.
- Pentameter Model: This component learns to map character sequences to iambic pentameter. It uses a monotonic attention mechanism, forcing the model to scan through the line linearly to predict the 10-stress pattern characteristic of sonnets.
- Rhyme Model: Unlike previous work that used rhyming dictionaries, this model learns rhyme unsupervised. It uses a margin-based loss to learn that sentence-ending word pairs in a quatrain should have high cosine similarity in a shared character-level embedding space.
To ensure the poem satisfies these constraints, the model generates lines backwards. It picks the rhyming word at the end of the line first and then works its way to the beginning, ensuring the language and pentameter models satisfy the constraints based on that anchor word.
Key Insights and Results
The model was trained on a curated dataset of 2,685 sonnets (SONNET) and pre-trained on a larger 34-million-word background corpus to capture general English nuances.
Evaluation revealed a significant divide in how AI art is perceived. Crowd workers (laypersons) were easily fooled by the model's near-perfect rhyme and meter, identifying human-written poems correctly only 53.2% of the time—essentially a coin flip. Expert evaluation, however, revealed a "readability gap."
On a scale of 1–5, an expert rated Deep-speare's meter (4.1) and rhyme (4.4) higher than actual human poets (3.8 and 4.1, respectively). However, the model lagged significantly in readability (2.7 vs 4.8) and emotion (2.9 vs 4.3). Surprisingly, the study also found that a vanilla language model captures a significant amount of meter implicitly, suggesting rhythmic patterns are deeply embedded in word distributions.
Conclusion
While Deep-speare has effectively "solved" the formal structure of the sonnet, the substance remains elusive. The model often produces "word salad" that sounds poetic but lacks a coherent narrative or emotional arc. Future work should move beyond surface constraints to focus on poetic language: metaphor, imagery, and the readability that allows a poem to resonate with a human reader.
Summary updated