Oscar Schwartz – TRANSCRIPT
I have a question: Can a computer write poetry? This is a provocative question. You think about it for a minute, and you suddenly have a bunch of other questions like: What is a computer? What is poetry? What is creativity? But these are questions that people spend their entire lifetime trying to answer, not in a single TED Talk.
So we’re going to have to try a different approach. So up here, we have two poems. One of them is written by a human, and the other one’s written by a computer. I’m going to ask you to tell me which one’s which. You’re not going to have long to read because we haven’t got long to do this speech.
Have a go, start reading Poem 1: Little Fly / Thy summer’s play, / My thoughtless hand / Has brush’d away A I not / A fly like thee? / Or art not thou / A man like me?
Poem 2: We can feel / Activist through your life’s / morning / Pauses to see, pope I hate the / Non all the night to start a great otherwise.
Alright, time’s up. Hands up if you think Poem 1 was written by a human OK, most of you. Hands up if you think Poem 2 was written by a human. Very brave of you, because the first one was written by the human poet William Blake. The second one was written by an algorithm that took all the language from my Facebook feed on one day and then regenerated it algorithmically, according to methods that I’ll describe a little bit later on. But most of you got that right, it’s probably a little bit easy. So let’s try another test.
Again, you haven’t got ages to read this, so just trust your gut Poem 1: A lion roars and a dog barks It is interesting / and fascinating that a bird will fly and not / roar or bark Enthralling stories about animals are in my dreams and I will sing them all if I / am not exhausted or weary.
Poem 2: Oh! kangaroos, sequins, chocolate sodas! / You are really beautiful! Pearls, / harmonicas, jujubes, aspirins! All / the stuff they’ve always talked about.
Alright, time’s up. So if you think the first poem was written by a human, put your hand up OK. And if you think the second poem was written by a human, put your hand up. We have, more or less, a 50/50 split here. It was much harder.
The answer is, the first poem was generated by an algorithm called Racter, that was created back in the 1970s, and the second poem was written by a guy called Frank O’Hara, who happens to be one of my favorite human poets. So what we’ve just done now is a Turing test for poetry. The Turing test was first proposed by this guy, Alan Turing, in 1950, in order to answer the question, can computers think? Alan Turing believed that if a computer was able to have a to have a text-based conversation with a human, with such proficiency such that the human couldn’t tell whether they are talking to a computer or a human, then the computer can be said to have intelligence.
So in 2013, my friend Benjamin Laird and I, we created a Turing test for poetry online. It’s called bot or not, and you can go and play it for yourselves. But basically, it’s the game we just played. You’re presented with a poem, you don’t know whether it was written by a human or a computer and you have to guess. So thousands and thousands of people have taken this test online, so we have results. And what are the results? Well, Turing said that if a computer could fool a human 30 percent of the time that it was a human, then it passes the Turing test for intelligence. We have poems on the bot or not database that have fooled 65 percent of human readers into thinking it was written by a human.
So, I think we have an answer to our question. According to the logic of the Turing test, can a computer write poetry? Well, yes, absolutely it can. But if you’re feeling a little bit uncomfortable with this answer, that’s OK. If you’re having a bunch of gut reactions to it, that’s also okay because this isn’t the end of the story.
Let’s play our third and final test. Again, you’re going to have to read and tell me which you think is human. Poem 1: Red flags the reason for pretty flags / And ribbons And wearing material / Reasons for wearing material / Give pleasure.
Poem 2: A wounded deer leaps highest, / I’ve heard the daffodil I’ve heard the flag to-day / I’ve heard the hunter tell; / ‘Tis but the ecstasy of death, / And then the brake is almost done And sunrise grows so near / sunrise grows so near That we can touch the despair and / frenzied hope of all the ages.
OK, time is up. So hands up if you think Poem 1 was written by a human. Hands up if you think Poem 2 was written by a human. Whoa, that’s a lot more people. So you’d be surprised to find that Poem 1 was written by the very human poet Gertrude Stein. And Poem 2 was generated by an algorithm called RKCP.
Now before we go on, let me describe very quickly and simply, how RKCP works. So RKCP is an algorithm designed by Ray Kurzweil, who’s a director of engineering at Google and a firm believer in artificial intelligence. So, you give RKCP a source text, it analyzes the source text in order to find out how it uses language, and then it regenerates language that emulates that first text. So in the poem we just saw before, Poem 2, the one that you all thought was human, it was fed a bunch of poems by a poet called Emily Dickinson and looked at the way she used language, learned the model, and then it regenerated a model according to that same structure.