4 ms·
Have you tried making GPT2 do zero-shot poetry writing? It's not great at it, but it is good enough at it to get something interesting enough if you try a numbe
by drdeca 6y ago
Have you tried making GPT2 do zero-shot poetry writing? It's not great at it, but it is good enough at it to get something interesting enough if you try a number of times.
Go to talktotransformer.com/ and give it the prompt "Here is a poem I wrote:" or "Here is my favorite poem:" .
I'm sure GPT3 would produce much better and more consistent results, but GPT2 will produce something that looks generally like a poem frequently enough, and sometimes it will even be relatively coherent?
Here is one that it produced for me today:
> You say, "Don't lose your pride."
> Here is my rejoinder:
> Well, maybe it is the pride of a diseased soul.
> You are a wanderer, you know not whence,
> O thief, you fool, you rhinoceros
> Caught in the jaws of a viper.
> You may lament your affliction
> For the world will laugh at your tears.
> Pray to a demi-god
> Hail him and say,
> "Ah, Sir, give me thy pity!
> O thou who maintainest as if thou wert a king!
> Here is thy axe, I say; let us
Is it great? No. But it has some level of coherence.
Here is another:
Let me tell you the reason I love poetry. //
All the things of the world I have described, //
If you ask me why I like poetry, //
It would seem quite simple to me. //
When I'm working at the computer in the evening //
I'll get out my books of poems and I'll turn them over, //
Like blades of grass under the hot sun, //
That write with such fineness the kind of green I like. //
But if I'm a bit more tired in the morning, //
I'll fill a little stack of yellow pages with poems, //
That let the air and the dry light of morning run wild. //
You know, the//
This one even rhymes a bit!:
the sword is to slay //
The axe is to smite //
The stick is to break //
The tooth is to bite //
All these are for our earthly security, //
All have their uses, //
Those which can be used //
Must be employed. //
The sword is the instrument of strife //
The axe is the weapon of war //
The stick is the weapon of domestic strife //
The tooth is the instrument of war //
All these be in our hands. //
At the time of our death //
They will be in our hands, //
And then we will weep, //
Though now we sleep. //
—The Remaining Three Questions
(sorry, idk how to format these to make them look right. The leading "> " and the "//" insertions are me trying to format them to make the line separators clear.)
- stared 6y agoNot for poems, but for AI-generated cities (inspired by "Invisible Cities" by Italo Calvino), e.g.: PROMPT: Cities & Lights When you enter the city of Singapore during the night, you see lights: colorful and ubiquitous. Lights on every building, on every fountain, and in every park. GENERATED: Lights shining in a city in which the majority of people are now using mobile phones. Singapore has a bright future as a technology hub, and it 's not too late to make it happen. ... On the other occasions I seeded with ~two sentences of "Invisible cities", and it worked like a charm, no fine-tuning.
- gwern 6y agoYes, it can but GPT-2-1.5b isn't too great at it. What really struck me looking at the examples is that the random GPT-3 poem samples are practically as good as my GPT-2-1.5b finetuned on hundreds of megabytes of poetry at considerable effort & expense: https://www.gwern.net/GPT-2 https://www.gwern.net/GPT-2 That's... both really awesome and dispiriting.