Choose-Your-Own-Adventure AI Dungeon Games
gwern.net
gwern.net
GPT-3 won't be able to generate a good CYOA until it can generate a good non-interactive novel. Today, GPT-3 can generate text, so you could try to use it to generate a whole novel. People have, but the novels it generates aren't worth reading.
"CYOAs" are interactive novels. I run a company, Choice of Games, that publishes hand-written interactive novels. Our novels use hidden state to provide an experience that's longer, richer, and deeper than traditional paper-based CYOA books. (The author of TFA links to one of our blog posts in the footer of this article. https://www.choiceofgames.com/2011/07/by-the-numbers-how-to-... )
Our approach is to pay professional authors to write these interactive novels. (And we have professional editors who read and edit their work.)
Could we use GPT-3 to avoid paying professional authors? No, of course not. Writing an interactive novel with interesting, dramatic choices is harder than writing a non-interactive novel, and GPT-3 can't even do that.
The feature that makes AI Dungeon interesting and unique is its ability to improvise in response to player's actions. Presenting a pre-computed menu of options is what hand-written interactive novels already do; to succeed, it would have to compete with hand-written interactive novels on quality.
In other words, when GPT-3 computes an entire novel, it's indistinguishable to the reader from a (bad) hand-written novel. If AI Dungeon were to auto-generate an interactive novel, particularly in the way Gwern describes here, with the choices already pre-computed and crowdsourced in advance, the result would be indistinguishable from a (bad) hand-written interactive novel.
I think it's possible that if some future generation of GPT could generate a good-enough novel, then it could also generate a good-enough interactive novel, but this thing has gotta learn how to crawl before it can learn how to walk.
While AID's nominal attraction is the ability to react to anything, I think based on the evidence only a small percentage of the users end up using it that way. (It's possible they're all the long term users, in which case they are important, but I still think it's a small proportion of the users.) The vast majority of the users the vast majority of the time will be selecting from a small handful of options that would constitute the vast majority of responses.
To the extent you'd find the resulting CYOA rather unappealing, I'd say the current AID is pretty much unappealing in exactly the same way, for exactly the same reasons, and given that AID hasn't exactly taken the world by storm I imagine this is the majority view. (Though it may have the sort of inner core rabid fanbase that you can still build on as a business.)
Novels are definitely out of reach for these language models. GPT-3 currently has a limit of 2048 tokens. This is short-story territory but definitely not "book" length. I agree in this regard.
> GPT-3 won't be able to generate a good CYOA until it can generate a good non-interactive [story].
I disagree here, however. One of the best things about AI-generated text is that it can generate a multitude of options for story progression. Sure, not all progressions will be good, but the most important thing in CYOA is the _choice_. As long as there are some good options, users can choose which progressions they like best, even if the other options suck.
For example, with this toy example [1], not all the options for the progression of the story are great. But if you pick and choose which progressions you like best, you can arrive at a pretty good ending, such as [2]. -- Albeit this is entirely subjective to what each individual finds entertaining
[1] https://toldby.ai/arK_3OpvpkG
[2] https://toldby.ai/aQAXlq3LNku/end
(the site in the links above is GPT-3 generated CYOA)
I launched this weekend project in August, but it looks like Gwern's post preceded it in June.
There's unfortunately a delicate balance between caching, ranking, and novelty. Caching absolutely helps keeps costs low - no need to regenerate new text for every user. Ranking also helps bring the popular branches to the top. But with naive ranking, the site quickly becomes stale and the same branches always show up. My girlfriend complained that she's bored of the same branches that always appear on the home-page. There needs to be some sort of novelty factor to keep the site fresh. But implementing this would increase costs!
Something like per-user ranking is needed to avoid showing the same branches to the same users over and over, but this is currently beyond my level of time commitment :)
It seems like something that could be trained starting with an existing GPT model and specialized to this task to me, but I'm just brain farting here. And by all means steal this idea if you're so inclined.
When you pair a better, prosier text input-response system with a procedural world model, if the procedural world model is built like existing ones you'll still have to deal with restrictions in the world's content and the valid interactions between constituents. At which point all that fancy AI makes for a more natural parser but doesn't add any richness to the game world, which is the thing we'd like to get at.
If anyone has ideas for how to solve the prose -> world model problem, that could be super fun and rewarding to work on, probably so much so that they wouldn't be sharing them here :(
What makes a world like Westeros different than the Shire isn't just facts like "seasons are really long" but elements of tension, political unrest, and the outlook of the people who inhabit it. To do this effectively, you need to be building simulations of literary works. There's always going to be an art to this, but instead of the manuscript, it's going to be about the parts of the model.
https://en.wikipedia.org/wiki/SHRDLU
Unless you feel you need flowery expressive input as well as output. But do we really need input more sophisticated than that of Zork here?
Especially if the traditional world sim is fairly rich itself (not like, as rich as the most rich that had been made before, but still decent), and the way the GPT part connects to it is good enough.
[0] https://www.projectaon.org/en/Main/Books
It could make a good landing page though - play for 10 steps and then spring the "subscribe to continue your adventure".
For me, on mobile, they open (I assume) inside an iframe or such, which is counter to how standard links work. This made it really frustrating for me to use. The content seems interesting overall, but I gave up due to how links work. Ridiculous, I know.
here's the first 5 minutes of my adventure:
Pick a setting... Apocalyptic
Select a character... Courier
You are Chris, a courier trying to survive in a post apocalyptic world by scavenging among the ruins of what is left. You have a parcel of letters and a small pistol. It's a long and dangerous road from Boston to Charleston, but you're one of the only people who knows the roads well enough to get your parcel of letters there. You set out in the morning and hope to have it in your hands by the time the sun goes down, or else you know you'll never get it there.
You walk down the road and realize that you must be close to the highway. You hold the parcel of letters in your hands and read them.
Dear Chris, It's time for you to get to Charleston. The old man was insistent on this, so you'll be making the trip. You search for a vehicle.
You walk onto the highway and look for a vehicle for yourself. After a time, you see one in the distance, a small hatchback. You check if the small hatchback is operational.
You walk over to the small hatchback and look inside. It looks like it has never been used, and the interior is very clean. You open the door and climb inside. You use the relative position of the rising sun to orient yourself and drive south.
You turn the key and start the small car. It sounds like a lawn mower and comes to life with a burst of smoke. It purrs to life and you back out of the crowded parking lot. You continue driving south.
You drive down the road, glancing at the fuel gauge as you go. It seems to indicate half a tank, which seems unlikely, but you cannot be sure. You continue driving south and look for fuel.
You continue driving south and look for fuel at every station. You come up empty at each one. It is a long and boring drive, and you find yourself staring at the ceiling of the car more and more often. courier Created: Jan 3rd 2022 at 4:20PM Updated: Jan 3rd 2022 at 4:26PM Actions: 14 0 You are Chris, a courier trying to survive in a post apocalyptic world by scavenging among the ruins of what is left. You have a parcel of letters and a small pistol. It's a long and dangerous road from Boston to Charleston, but you're one of the only people who knows the roads well enough to get your parcel of letters there. You set out in the morning and hope to have it in your hands by the time the sun goes down, or else you know you'll never get it there.
You walk down the road and realize that you must be close to the highway.
> You hold the parcel of letters in your hands and read them.
Dear Chris, It's time for you to get to Charleston. The old man was insistent on this, so you'll be making the trip.
> You search for a vehicle.
You walk onto the highway and look for a vehicle for yourself. After a time, you see one in the distance, a small hatchback.
> You check if the small hatchback is operational.
You walk over to the small hatchback and look inside. It looks like it has never been used, and the interior is very clean. You open the door and climb inside.
> You use the relative position of the rising sun to orient yourself and drive south.
You turn the key and start the small car. It sounds like a lawn mower and comes to life with a burst of smoke. It purrs to life and you back out of the crowded parking lot.
> You continue driving south.
You drive down the road, glancing at the fuel gauge as you go. It seems to indicate half a tank, which seems unlikely, but you cannot be sure.
> You continue driving south and look for fuel.
You continue driving south and look for fuel at every station. You come up empty at each one. It is a long and boring drive, and you find yourself staring at the ceiling of the car more and more often. View Adventure Ai Dungeon Logo