Advertisement

A Game of Thrones fan used AI to write all of The Winds of Winter (and A Dream of Spring)

Dan Selcke
Dan Selcke

Winter is Coming

Image: Game of Thrones/HBO

Fans of George R.R. Martin’s A Song of Ice and Fire novels have been waiting for the sixth book in the series, The Winds of Winter, for 12 years now. 12. Years. That’s such a long time. It’s a small miracle that anticipation remains so high. Chock it up to the quality of the novels, and the fact that HBO has kept hype alive first with Game of Thrones and then with its prequel series House of the Dragon.

This year, the tech trend everyone has been talking about is AI. Write a prompt or ask a question to a chatbot like ChatGPT, and it can give you a coherent answer, drawing on millions of words of text written by human beings archived on the internet.

That’s how these chatbots work: they look at things people have already written, look at your prompt, and then respond one word at a time, choosing the word most likely to come next. The results can be pretty dazzling, but there are limitations. For instance, we had ChatGPT try and write the first five chapters of The Wind of Winter for us, and while it produced something readable, it was all very vague, didn’t seem to have much knowledge of Martin’s books, and didn’t resemble Martin’s writing style.

AI A Song of Ice and Fire

Developer Liam Swayne did one better: he had ChatGPT write not only the entirety of The Winds of Winter, but also A Dream of Spring, which Martin plans to be the final book in the cycle (I’ll believe that when I see it, but that’s another issue). He shared the results of his project here.

And when I say Swayne had AI write the entirety of The Winds of Winter, I mean it; the AI-penned version of the book runs 683,276 words long, which is actually far longer than even the longest book in Martin’s series: A Dance With Dragons, which tops out near 415 thousand words.

How did Swayne pull this off? He explained his process to IGN:

"First he gave ChatGPT a single prompt to generate an outline for the first chapter of The Winds of Winter. Then, he repeated that over and over to create 45 total chapters. From there, he fed those outlines back into ChatGPT and asked it for more detailed outlines of the same chapters. And finally, he used those extended outlines as prompts to ask ChatGPT to write the chapters themselves, turning every bullet point of the outline into its own scene."

The results are…well, they’re extremely long. But could they serve as an effective replacement for the real thing?

Swayne himself thinks the AI did some things right, like building in a few twists. He enjoyed the bit where Jon Connington turned traitor against Daenerys Targaryen, “a twist I didn’t see coming but served the narrative quite well.”

On the other hand, despite being prompted to, the AI didn’t kill off any important characters, a hallmark of Martin’s writing. In the end, Swayne isn’t really worried that AI could take over the job of a write like Martin anytime soon:

"Large language models can be very scary, but this project makes me more optimistic about the future of writers and AI. This project demonstrates that large language models like ChatGPT can take hundreds of pages of text into account when making a narrative decision, which could help writers quickly fix plot holes. It also shows that AI can only do what has been done many times before. This project has given me confidence that AI won’t be replacing unique literary works any time soon. I believe the AI had trouble writing character deaths specifically because most writers (and consequently, most of the training data) are hesitant to kill off major characters. This is part of what separates George R. R. Martin from other writers: his stories make unconventional, surprising decisions. At this point, AI can only do what is most commonly done, which means it struggles to create stories that aren’t by the books. To my surprise, I’m more confident than before starting this project that writers making creative and unexpected decisions are not replaceable."

For fun, I looked a little deeper into the new books. Long story short, I agree that writers aren’t in much danger…

Game of Thrones
Image: Game of Thrones/HBO

AI A Song of Ice and Fire doesn’t seem to have read A Song of Ice and Fire

Okay, so having read some of these new versions of The Winds of Winter and A Dream of Spring, I have some big issues I haven’t seen mentioned yet, namely that, for as well as ChatGPT has absorbed the names of the characters, it doesn’t seem to have read A Song of Ice and Fire.

By that I mean that nothing in this version of The Winds of Winter seems like it’s following up on the end of A Dance with Dragons. At the end of that book, Tyrion and Jorah were in Meereen about to fight the invading Yunkish armies as part of the Golden Company. But the first chapter of ChatGPT’s The Winds of Winter has them on a boat on the Narrow Sea. Davos Seaworth and Brienne of Tarth are also there, for some reason. There’s a lot of jumping around in space and time.

And the AI isn’t just reluctant to kill off characters, it brings back ones who are already dead…like, really dead. In the middle of AI The Winds of Winter there’s a chapter revolving around Ser Arthur Dayne, a member of the Kingsguard who died at the end of Robert’s Rebellion. He talks with Sansa and contemplates how Jon Snow, “the brooding and honorable Stark bastard,” is actually the son of Rhaegar Targaryen and Lyanna Stark. Ser Gerald Hightower is also around, so apparently the AI doesn’t know they’re supposed to be long dead.

One more example: A Dance With Dragons ends with Stannis Baratheon about to face down the Boltons, but in AI The Winds of Winter, his name is mentioned only once, when Davos thinks of the man “whose cause he had once championed.” So apparently he doesn’t champion it anymore? What happened?

The prose of AI A Song of Ice and Fire

Then there’s the way the chatbot’s text reads. As with our experiment, it doesn’t really recall Martin’s prose. It’s very vague and repetitive, and there’s a lot of it.

For instance, here’s a chunk from a chapter (or chapters; there are no chapter headings in this, so it’s hard to be sure where one chapter ends and another begins) about Daenerys:

"Daenerys Targaryen, the Mother of Dragons, commanded the vanguard of her swelling forces, prepared to embark on a momentous military campaign, expanding her dominion and dispensing justice upon the slaver cities. With her trusted advisors at her side, she convened council, plotting the optimal course of action to achieve her objectives. In the war chamber, anticipation hung in the air, the scent of parchment and ink intermingling with the palpable tension. Daenerys Targaryen, her alabaster skin bathed in the gentle flicker of candlelight, commanded attention as she stood tall, her flowing silver-golden locks cascading like molten metal down her shoulders. The warm glow caressed her countenance, emphasizing the resolve within her violet eyes as she surveyed the sprawling maps upon the grand oak table. Ser Jorah Mormont, his face etched with the marks of battles fought and victories won, leaned forward, his gaze a blend of loyalty and concern. “Your Grace, our forces are primed, eager to heed your call. Yet, we must tread with caution. The slaver cities stand fortified, boasting formidable defenses. What is your strategy?” Daenerys turned her attention to her trusted advisor, her visage unwavering. “Ser Jorah, the time for subtlety has elapsed. We shall unleash the full fury of our dragons upon the slaver cities, instilling fear in the hearts of our foes and sowing chaos amidst their ranks. The power wielded by these magnificent beasts is unmatched, and it is through their fiery might that we shall deliver justice to those who perpetuate the abomination of slavery.” Tyrion Lannister, his eyes ignited with a blend of intellect and mischief, interjected, his voice laced with wit. “Your Grace, while the dragons shall undoubtedly strike fear into the hearts of our enemies, we must not discount the human factor in this war. We should not underestimate the potency of alliances and diplomacy. If we can rally the oppressed and forge a unified front against the slavers, their dominion shall crumble from within.” Daenerys regarded Tyrion with a pensive gaze, a strand of moonlight filtering through the window to grace her countenance with an ethereal luminescence. “You speak truth, Tyrion. Though our dragons possess awe-inspiring might, it is the hearts and minds of the people we must sway. We shall forge alliances with those who share our cause, who yearn for freedom and the eradication of injustice. Together, we shall deliver a blow from which the slavers shall never recover.” Missandei, her dusky complexion aglow in the flickering candlelight, stepped forth, her voice resolute and brimming with unwavering loyalty. “Your Grace, the Unsullied stand prepared to execute your every command. Their discipline and prowess in battle are unrivaled. They shall serve as the bedrock of our ground forces, ensuring our conquest is swift and resolute.” Daenerys nodded, a glimmer of determination crossing her features. “The Unsullied have proven their loyalty time and again. They embody the unyielding spirit of those who have suffered oppression and transcended their circumstances. With their presence beside us, we shall march upon the slaver cities, liberating the enslaved and toppling the shackles of tyranny.” Grey Worm, commander of the Unsullied, his visage a mask of stoicism, spoke with measured resolve. “Your Grace, we shall follow your lead, fighting with unswerving loyalty and surgical precision. Our spears shall be swift and lethal, felling our enemies without mercy.” Daenerys locked gazes with Grey Worm, an unspoken understanding passing between them. “Grey Worm, you and your Unsullied have repeatedly exemplified strength and honor. It is a privilege to have you at my side, and I have faith in your leadership. Together, we shall forge a new world, where freedom reigns and justice prevails.” As the council continued their deliberations, their voices melding with the flickering candlelight and the weight of destiny hanging in the air, Daenerys Targaryen, the Mother of Dragons, readied herself to lead her forces into battle. Her determination was unyielding, her vision resolute. The road ahead would be rife with peril and sacrifice, yet she embraced each challenge that lay in wait, knowing that the fate of nations rested upon her shoulders. Within the war chamber, the dim glow of torches danced upon the countenances of Daenerys Targaryen and her advisors, casting shifting shadows that mirrored the uncertain path they were about to tread. Daenerys, her features bathed in the warm radiance, emanated an unwavering conviction as she addressed her council. “The cities of Yunkai, Astapor, and Meereen stand as fortresses of oppression, their walls erected upon the suffering of the enslaved,” she began, her voice heavy with resolve. “To liberate these cities is to strike at the very heart of the slaver culture. It will not be a simple task, but it is a necessary one.” Ser Jorah Mormont, his visage etched with the lines of earned wisdom from countless battles, stepped forth, meeting Daenerys’ gaze with unwavering loyalty. “Your Grace, the slavers are not ones to yield without a fight. They possess vast riches and formidable armies. We must prepare ourselves for a long and arduous struggle.” Daenerys nodded, her violet eyes gleaming with determination. “Indeed, Ser Jorah. The path before us is treacherous, and we must ready ourselves accordingly. We will need not only the strength of arms but also the hearts and minds of the people. Their support is key in toppling these oppressive regimes.” Tyrion Lannister, his razor-sharp wit matched by his astute intellect, interjected, his voice tinged with measured contemplation. “Your Grace, the slaver cities are not united. They teem with internal rivalries and discontent. We must exploit these divisions, sow seeds of discord, and forge alliances with those who yearn for freedom. By turning their own people against them, we make our conquest all the more viable.” Daenerys regarded Tyrion, a strand of moonlight casting a silvery sheen upon his countenance, as he continued, his words laced with cunning. “We shall send envoys to these cities, offering them a choice: to stand with us in the fight against slavery or face the wrath of our dragons and the fury of the Unsullied. By presenting an alternative, we offer them hope for a brighter future, an opportunity to cast off the chains they have forged for themselves.” Missandei, her presence emanating grace and intelligence, stepped forth, her voice carrying a note of empathy. “Your Grace, the people within these cities have endured immense suffering for far too long. They yearn for liberation and justice. We must demonstrate that our intentions are not that of conquerors but of liberators, freeing them from the chains that have ensnared them for generations.” Daenerys shifted her gaze from one advisor to the next, contemplating their counsel, her countenance a tableau of thoughtful consideration. “Each of you speaks with wisdom. We must approach this with strategy, blending our military might with diplomacy and the power of persuasion. We shall gather information, pinpointing those individuals who may be sympathetic to our cause and exploiting the weaknesses in the very foundations of these slaver societies.” Grey Worm, his stoic presence a testament to the indomitable strength of the Unsullied, advanced, his voice measured and unwavering. “Your Grace, the Unsullied stand ready to fight. We are disciplined, fearless, and devoted to your cause. We shall be the vanguard of your forces, striking at the heart of the slaver cities and inspiring others to rise up alongside us.” Daenerys nodded, a subtle smile gracing her lips. “Grey Worm, you and your Unsullied have time and again proved your mettle. Your loyalty and prowess in battle are unrivaled. It is you who shall lead our ground forces, liberating each city with the unwavering strength of your conviction.” As the council convened, the warm glow of candlelight bathed their faces, lending an air of both solemnity and purpose to their deliberations. Their voices intertwined, weaving a tapestry of strategy and unwavering resolve. In this chamber adorned with ancient tapestries, each depicting the triumphs and tribulations of battles long past, Daenerys Targaryen, resplendent in her regal attire, presided over the gathering. The flickering flames cast dancing shadows upon her countenance, emphasizing the fire that burned within her. Standing steadfast by her side, Ser Jorah Mormont, his weathered visage etched with the marks of countless conflicts, offered his wisdom with measured confidence. “Your Grace,” he began, his voice resonating with the authority earned on the battlefield, “we must analyze the strengths and weaknesses of the slave armies that stand against us. Their discipline is formidable, their numbers great, but they lack the spirit and determination that our forces possess. We can exploit their reliance on fear and oppression, turning it against them by offering the promise of liberation.” Daenerys nodded, the golden light caressing her face, accentuating her unyielding determination. “You speak true, Ser Jorah. We shall never underestimate their forces, but nor shall we underestimate the power of inspiration. The liberation of the Unsullied serves as a testament that hope and freedom can be potent weapons on the battlefield.” Grey Worm, his stoic visage a reflection of the Unsullied’s unwavering discipline, stepped forward, his voice measured and resolute. “Your Grace, I have commanded the Unsullied in countless battles, and I have studied the tactics of the slave armies. Their reliance on sheer numbers can be their downfall. We shall employ strategies of agility and precision, striking swiftly and decisively, targeting their leaders and undermining their resolve.” Daenerys regarded Grey Worm, the gentle glow of candlelight accentuating the determination etched upon his face, as she acknowledged his counsel. “Grey Worm, your expertise and leadership have proven invaluable to our cause. We shall heed your words and harness the formidable skills of the Unsullied to dismantle the slave armies, striking at their core and inspiring those who yearn for freedom to rise alongside us.” Missandei, emanating grace and intellect, stepped forward, her voice resonating with cultural insight and political acumen. “Your Grace, the slaver cities are not mere bastions of power; they are intricate webs of political alliances and internal rivalries. By exploiting these divisions, we can sow seeds of discord and create opportunities for dissent. We must engage with the people, offering them an alternative to the chains that bind them, and form alliances with those who share our vision of a liberated world.” Daenerys nodded, the soft glow of candlelight casting an ethereal aura upon Missandei’s countenance, as she acknowledged the wisdom woven within her advisor’s words. “Missandei, your deep understanding of the cultures and complexities of the cities we seek to conquer will guide our interactions. You will help us navigate the treacherous currents of politics, winning over the hearts and minds of the people.”"

This kind of sounds like the sort of stuff these characters would say, but they just keep repeating it back to each other over and over and over. Also, it’s very hard to imagine Martin describing “a strand of moonlight filtering through the window to grace Daenerys’ countenance with an ethereal luminescence.”

So I don’t think writers are in danger of losing their jobs anytime in the near future. And some pretty powerful writers agree with me:

James Cameron
BEVERLY HILLS, CALIFORNIA – FEBRUARY 15: James Cameron attends the 21st Annual VES Awards at The Beverly Hilton on February 15, 2023 in Beverly Hills, California. (Photo by Leon Bennett/Getty Images)

James Cameron isn’t afraid of AI writers, but is afraid of AI soldiers

James Cameron has often been on the cutting edge of film technology; his Avatar movies are pushing the limits of what special effects can do. That said, he doesn’t see human screenwriters are in much danger from AI, at least not for a while.

“I just don’t personally believe that a disembodied mind that’s just regurgitating what other embodied minds have said — about the life that they’ve had, about love, about lying, about fear, about mortality — and just put it all together into a word salad and then regurgitate it…I don’t believe that’s ever going to have something that’s going to move an audience,” Cameron told CTV News. “You have to be human to write that. I don’t know anyone that’s even thinking about having AI write a screenplay.”

"Let’s wait 20 years, and if an AI wins an Oscar for best screenplay, I think we’ve got to take them seriously."

That said, Cameron is worrying about AI, but he’s more concerned about it eradicating the human race like the robots from his own film Terminator. “You got to follow the money,” he said. “Who’s building these things? They’re either building it to dominate marketing shares, so you’re teaching it greed, or you’re building it for defensive purposes, so you’re teaching it paranoia. I think the weaponization of AI is the biggest danger.”

"I think that we will get into the equivalent of a nuclear arms race with AI, and if we don’t build it, the other guys are for sure going to build it, and so then it’ll escalate…You could imagine an AI in a combat theatre, the whole thing just being fought by the computers at a speed humans can no longer intercede, and you have no ability to deescalate."

“I warned you guys in 1984!” Cameron added. “And you didn’t listen.”

AI death squads may be some ways off. In the meantime, human screenwriters and actors are currently on strike in part because of the threat AI poses to their jobs. One robot menace at a time.

To stay up to date on everything fantasy, science fiction, and WiC, follow our all-encompassing Facebook page and sign up for our exclusive newsletter.

Get HBO, Starz, Showtime and MORE for FREE with a no-risk, 7-day free trial of Amazon Channels

Dan Selcke

Dan Selcke

Dan Selcke is a writer and editor living in Chicago, where he's been writing and podcasting for around 10 years about movies, TV and books, the nerdier the better. He's been published in The A.V. Club and in Metro, in the real-life newspaper with ink and everything. He used to be a lawyer but it didn't work out, although he still likes to argue. When not reading, watching TV or playing videogames, he prefers to be sedentary.