Artificial Intelligence is writing the new book of Game of Thrones

H-FARM Consultancy team

H-FARM
H-FARM Consultancy
2 min readNov 13, 2017

--

As you may know, Game Of Thrones season 8 will air in 2019, two years after the previous one, and of course, this has made a lot of fans very annoyed.

The famous show is based on the novel series A Song Of Ice And Fire, which is currently without an end. George R.R. Martin is currently working on the 6th book, Winds Of Winter, still unfinished. This is why GoT producers and screenwriters decided to continue the story by themselves.

A Recurrent Neural Network is writing the book

Tired of waiting for the book, IT engineer Zack Thoutt decided to start training a recurrent neural network to predict the events of the unfinished novel.

Neural networks are a type of machine learning algorithm that are inspired by the human brain’s ability to learn from past experiences. A recurrent neural network is a specific subclass, which works best when it comes to processing long sequences of data, such as books.

One of the tricks used by Thoutt is to start every chapter using a specific word, usually the name of one character, in order to simulate Martins’ narrative style.

Here’s the first sentence that Artificial Intelligence wrote:

“I feared Master Sansa, Ser,” Ser Jaime reminded her. “She Baratheon is one of the crossing. The second sons of your onion concubine.”

Beware (possible) spoilers

Of course, it’s not perfect, but recurrent neural networks proved their ability in learning the foundations of the English language and the narrative structures used by George R.R. Martin. It forecasts that Jaime Lannister will kill Cersei Lannister, his sister-lover. This seems to confirm some of the fans’ theories, and it’s impressive.

While waiting for the next season of GoT, you could read the first chapters written by Artificial Intelligence, available on Zack Thoutt’s GitHub.

--

--