Skip to content
Search AI Powered

Latest Stories

Artificial Intelligence Takes A Stab At Writing The Next "Game Of Thrones" Book

Artificial Intelligence Takes A Stab At Writing The Next "Game Of Thrones" Book

A software engineer programmed a recurrent neural network (RNN) to begin writing the upcoming novel in the famous ‘A Song of Ice and Fire’ series. Five chapters of the artificial intelligence-written novel exist thus far.

If there is one thing A Song of Ice and Fire fans know about author George R. R. Martin, it is that he is a notoriously slow and deliberate writer.

Some fans fear with Martin’s “advancing age” — he is only 68, but fans are watching the clock anxiously — and painstaking, laborious writing habits, he will never finish the final two books of the famed series.


With no release date in sight for the next book, already titled The Winds of Winter, anticipation led software engineer Zack Thoutt to seize control by using artificial intelligence to write the next book himself.

“I'm a huge fan of Game of Thrones, the books and the show,” Thoutt, who had just completed a Udacity course on artificial intelligence and deep learning, told Motherboard in an interview.

Thoutt began by adding the 5,376 pages of the five existing Ice and Fire books to the network.

Then, Thoutt started each chapter by providing a prime word to a recurrent neural network (RNN) — a type of computing system inspired by biological neural networks — and afterward gave the RNN an established word count for that chapter. For a bit of context, words can translate into numbers in programming. A prime word relates to when numbers are written in bases — or the numbers used as the basis of a numeration scale. Up to base 26, words are considered prime (as opposed to composite, square or perfect), because all 26 letters in the English alphabet are used.

According to Thoutt, “With a vanilla neural network you take a set of input data, pass it through the network, and get a set of outputs. In order to train these models you need to know what the model should ideally output, which is often called your labels or target variables. The neural network compares the data it outputs with the targets and updates the network learns to better mimic the targets.”

He added, “I had worked with RNNs a bit in that class and thought I’d give working with the books a shot.”

Some logistical issues arose. For example, the RNN would have functioned at a superior level if it had 100 times the content it used — essentially, even more writing from George R. R. Martin. Simpler vocabulary would have also proven more effective to the AI’s storytelling skills.

“Martin is obviously very descriptive in his writing, so those extra adjectives and the fictional locations and titles are just more complications for the network,” Thoutt explained.

The RNN missed some key details, like characters that had previously died, according to Thoutt.

The first five chapters of the AI-written novel — nearly 5,400 pages — are available on GitHub. Chapter one is also posted on Motherboard.

An excerpt of the AI-written novel reads, “Jaime yelped, in the dirt, and came to climb off beside his bedchamber, and we could almost find the tunnel at once, but we’d shut it without battle if she sings, then, and you may storm woods for fire to the west, where we feed the others. The rats come home to their lives!”

Though the segments of the written novel are grammatically near-perfect, only readers and fans can determine whether the story itself would be up to Martin’s high standard.

Predictions, such as Cersei’s death by brother/lover Jaime, a new character called Greenbeard, as well as Daenerys’ demise by Varys’ hand occur in the artificial intelligence version. However, there is no evidence that Martin plans to write any of these scenarios.

Unfortunately, fans of Game of Thrones books will have to wait another two years to find out.

In the meantime, other fan projects are in progress: a website called Inverse is requesting fan theories for the final season of the TV show. From there, the site is working with a firm, Unanimous AI, to determine hivemind predictions of the events to come.

As for George R. R. Martin, who really knows what the contemporary king of murderous literary surprises has in store for fans?

All of that beautiful, disturbing prose comes from his brilliant mind, but it could take some time to have it all in our possession. There is only one certainty: as Tom Petty famously put it, “the waiting is the hardest part.”

More from News

Melania Trump
Mandel Ngan/AFP via Getty Images

Melania Just Held A Bizarre Press Conference To Debunk 'False Smears' Related To Jeffrey Epstein—And Everyone Had The Same Response

First Lady Melania Trump had everyone thinking the same thing after she held a bizarre press conference on Thursday to deny that she had anything but casual ties to Jeffrey Epstein, the late disgraced financier, pedophile, sexual abuser, and sex trafficker.

Mrs. Trump publicly denied any ties to convicted sex offenders Epstein and his procurer Ghislaine Maxwell, saying claims linking her to Epstein are “lies” meant to damage her reputation. She said she met her husband, President Donald Trump at a New York City party in 1998 and did not meet Epstein until 2000, contradicting a witness statement in the Epstein files that alleges Epstein introduced the couple.

Keep ReadingShow less
Sarah McBride; Nancy Mace
Chip Somodevilla/Getty Images; Heather Diehl/Getty Images

Dem Rep. Sarah McBride Perfectly Shames Nancy Mace For Her Transphobic Response To McBride's Condemnation Of Trump

Delaware Democratic Representative Sarah McBride pushed back at South Carolina Republican Representative Nancy Mace after Mace responded with transphobia to McBride's criticism of President Donald Trump's genocidal threat to kill the "whole civilization" of Iran.

Trump has insisted that God supports his war on Iran and declared—before a provisional ceasefire was announced—that "a whole civilization will die tonight, never to be brought back again" ahead of a deadline to bomb Iran’s power plants and bridges that legal scholars and world leaders have said would constitute war crimes.

Keep ReadingShow less
Screenshot of JD Vance
News Nation

JD Vance Dragged After Making Bizarre 'Skydiving' Analogy About His Wife To Explain Iran Ceasefire Deal

Vice President JD Vance had critics raising their eyebrows after he used a bizarre analogy about his wife–Second Lady Usha Vance—going skydiving while attempting to explain the United States' position on Iran's right to enrich uranium.

Vance addressed reporters on the tarmac at Budapest Ferenc Liszt International Airport as he left Hungary, where he had voiced the Trump administration’s support for Prime Minister Viktor Orbán only days before the country’s elections.

Keep ReadingShow less
Screenshots from @mikemancusi's Instagram video
@mikemancusi/Instagram

Comedian Explains How Millennials' Midlife Crises Are Different From Past Generations—And He's Spot On

Don't make promises you cannot keep, unless your goal is to hurt someone.

Millennials know that practically better than anyone. They were fed a long and impassioned series of advice, hyper-focused on the importance of getting a college degree in order to find a good job. They were also force-fed traditionalist ideals of getting married, having kids, and buying a nice house with the money they'd be making from that great job, of course.

Keep ReadingShow less