Wednesday, May 18, 2016

Discover the strange, beautiful poetry of a real-life robot raised on romance novels.

It was only a matter of time before artificial intelligence entered its adolescent emo phase. Thanks to Google, that time is now.

<br>

Move over, Romeo; there's a new romantic master in town.

But unlike that creepily obsessive Shakespearean suitor, this saccharine paramour scrawls its sweet nothings across computer screens instead of scrolls of parchment. Here's a sampling of its lovely lyrical language:

this was the only way. it was the only way. it was her turn to blink. it was hard to tell. it was time to move on. he had to do it again. they all looked at each other. they all turned to look back. they both turned to face him. they both turned and walked away.

Image (altered) via rabiem22/Flickr.

It sounds like the sparse, pseudo-profound writing of a potentially-talented-if-undeniably-angsty teenager. Except for the part where it was actually written by a robot.

Or, well, artificial intelligence if we're being technical since it doesn't have a body. Yet.

But the surprising wordsmith behind this — and many other accidental found poems — is Google Brain, an artificial intelligence system that's spent the last few years undergoing some pretty crazy deep machine learning programs. It's the same AI that controls video recommendations on YouTube as well as the speech recognition software on the Android phone.

It was only a matter of time before it entered its adolescent emo phase, just like those of us with non-artificial intelligence.

“i want to talk to you.” “i want to be with you.” “i don't want to be with you.” i don't want to be with you. she didn't want to be with him.

And how exactly did this robo-mantic learn such a way with words? The same way anyone else does: by reading a lot.

According to Quartz, Google researchers shared a scientific paper titled "Generating Sentences from a Continuous Space" at the International Conference on Learning Representations in May. The paper detailed the team's efforts to train their AI to parse the linguistic connections between sentences using something called recurrent neural network language models, or RNNLMs, which mimic human brain behaviors.

he was silent for a long moment. he was silent for a moment. it was quiet for a moment. it was dark and cold. there was a pause. it was my turn.

Researchers provided the AI with the text of approximately 12,000 ebooks, including 2,865 romance novels and about 1,500 fantasy novels.

And the romance novel influence is pre-tty clear.

The somewhat-sentient software attempted to identify patterns and relationships between the words and phrases of some 80 million sentences. They then challenged the machine by providing it with two separate sentences and instructing it to create a series of new sentences that would get from point A to point B.

For example, they told the AI to start with the sentence "Amazing, isn't it?" and gradually connect it to the sentence "I couldn't do it." And here's what they got:

amazing, isn't it? so, what is it? it hurts, isn't it? why would you do that? “you can do it.” “i can do it.” i can't do it. “i can do it.” “don't do it.&rquo; “i can do it.” i couldn't do it.

While not intentionally created as poems, per se, a lot of the resulting text blocks read like cool, abstract poetry.

It's nothing revolutionary — although I do appreciate the e.e. cummings touch of writing in lowercase letters. But it's fascinating nonetheless and gives lots of room for the reader to project their own meaning onto it.

Like this one, which I clearly interpreted as the troubling confession of a heartbroken mall Easter bunny coming to terms with bisexuality (or possibly polyamory?):

there is no one else in the world. there is no one else in sight. they were the only ones who mattered. they were the only ones left. he had to be with me. she had to be with him. i had to do this. i wanted to kill him. i started to cry. i turned to him.

Of course, the results weren't always as eerily esoteric as that.

The scientific paper details the researchers' attempts to write the right algorithm to instruct their AI accordingly. One of the major steps they realized was the need to give it some limitations — because without any other parameters, "Connect these two sentences! Go!" didn't go as well as they hoped…

with a variety of pots strewn scattered across the vast expanse of the high ceiling, a vase of colorful flowers adorned the tops of the rose petals littered the floor and the littered the floor.

To be fair, that's basically like handing a dictionary to a child and telling them to make a sentence. Which is why the researchers got nonsense like this, too:

he had been unable to conceal the fact that there was a logical explanation for his inability to alter the fact that they were supposed to be on the other side of the house.

You can spot some semblance of logic here — why word B would follow word A and so on. Unfortunately, these examples, ya know, don't make sense.

Eventually, the researchers figured out that a more gradual transition was required to get the Google Brain to produce anything resembling a natural sentence progression.

The resulting algorithm is what gives this accidental Google poetry its hypnotic repetitions of anaphora and diacope and other cool poetic terms. Again, it's not intentionally employing these clever literary devices.

But it's certainly cool that it does!

i don't like it, he said. i waited for what had happened. it was almost thirty years ago. it was over thirty years ago. that was six years ago. he had died two years ago. ten, thirty years ago. “it's all right here.” “everything is all right here.” “it's all right here.” it's all right there. we are all right here. come here in five minutes.

While this Google Brain poetry opens up a lot of cool philosophical questions about language and more, it's probably not something we need to worry about too much. For now, anyway.

no. he said. “no,” he said. “no,” i said. “i know,” she said. “thank you,” she said. “come with me,” she said. “talk to me,” she said. “don't worry about it,” she said.

Google's AI research has come a long way since just last year when it threatened researchers with physical violence. (Oops!) It's certainly doing better than Microsoft's failed genocidal robot Twitter teen.

And frankly, if we are going to train machines to think and act like humans, it's probably better that we wean them on romance novels than, I don't know, "The Terminator" or something.

i'm fine. you're right. “all right.” you're right. okay, fine. “okay, fine.” yes, right here. no, not right now. “no, not right now.” “talk to me right now.” please talk to me right now. i'll talk to you right now. “i'll talk to you right now.” “you need to talk to me now.” “but you need to talk to me now.”.

But, for now, it's pretty unlikely this algorithmic lyricist actually understands its own words. It's mostly just an excellent mimic, feeling out how to make sense of different contexts and common phrases. Slowly piecing together the pieces of a much bigger puzzle as it goes along.

Which, when you think about it, sounds pretty human after all.

<br>

No comments:

Post a Comment