AI-driven NPCs are living lives and planning parties all on their own
Rich open worlds with emergent NPC social structures aren't as far off as we thought.
Keep up to date with the most important stories and the best deals, as picked by the PC Gamer team.
You are now subscribed
Your newsletter sign-up was successful
Want to add more newsletters?
Every Friday
GamesRadar+
Your weekly update on everything you could ever want to know about the games you already love, games we know you're going to love in the near future, and tales from the communities that surround them.
Every Thursday
GTA 6 O'clock
Our special GTA 6 newsletter, with breaking news, insider info, and rumor analysis from the award-winning GTA 6 O'clock experts.
Every Friday
Knowledge
From the creators of Edge: A weekly videogame industry newsletter with analysis from expert writers, guidance from professionals, and insight into what's on the horizon.
Every Thursday
The Setup
Hardware nerds unite, sign up to our free tech newsletter for a weekly digest of the hottest new tech, the latest gadgets on the test bench, and much more.
Every Wednesday
Switch 2 Spotlight
Sign up to our new Switch 2 newsletter, where we bring you the latest talking points on Nintendo's new console each week, bring you up to date on the news, and recommend what games to play.
Every Saturday
The Watchlist
Subscribe for a weekly digest of the movie and TV news that matters, direct to your inbox. From first-look trailers, interviews, reviews and explainers, we've got you covered.
Once a month
SFX
Get sneak previews, exclusive competitions and details of special events each month!
We may soon be entering a world where NPCs don't just run through lines of code, but form complex relationships with other NPCs even when we're away, or seem to, at least.
So far we've been subject to some pretty rudimentary NPC AI systems. Enemies and followers will react to their environment in real-time, making decisions based on your play style and so on, but a recent paper (PDF) by researchers at Stanford University and Google Research describes an impressive "architecture for generative agents" in open world environments.
The paper is titled "Generative Agents: Interactive Simulacra of Human Behavior" and it goes over the clever way they've made NPCs behave in believable, spontaneous ways.
To test the capability of a generative framework they'd designed, the researchers built a little open world similar to "The Sims", as they say, though the graphics are more akin to a Stardew Valley. After adding a sprinkling of personality into the NPCs' seed data, they dropped the little agents into the world and watched them interact in impressively complex ways.
One NPC's given "intent" was to plan a Valentine's party, and plan she did. She ran around inviting her NPC friends, and spent the day before the party decorating the venue with her bestie. That friend, whose backstory included a secret crush on another character, invited her crush to the party.
The social behaviors of spreading the word, decorating, asking each other out, arriving at the party, and interacting with each other at the party, were initiated by the agent architecture.
"The social behaviors of spreading the word, decorating, asking each other out, arriving at the party, and interacting with each other at the party, were initiated by the agent architecture," reads the paper.
Not only does the generative architecture allow the NPCs to "perceive" the environment around them, but also build up a believable understanding of their world with a "comprehensive record of the agent's experiences called the memory stream." By reflecting on their retrieved memories, and planning their actions accordingly, they can form complex relationships and coordinate large groups.
Keep up to date with the most important stories and the best deals, as picked by the PC Gamer team.
Underneath it all, the system uses a large language model—think ChatGPT—to generate the behaviors. As the paper observes, "large language models encode a wide range of human behavior represented in their training data" which can be used to narrate believable actions and conversations. And believability was the specific goal of the researchers; they aren't saying these are literally sentient agents, just characters who frequently seem real. In a sense, the characters speak their reality into existence, and are susceptible to certain errors, like making embellishments.
This is quite the paper!It gave 25 AI agents motivations & memory, and put them in a simulated town.Not only did they engage in complex behavior (including throwing a Valentine’s Day party) but the actions were rated more human than humans roleplaying. https://t.co/G7oJW1S3na pic.twitter.com/d7Gp4sXp4VApril 10, 2023
One of the main ethical concerns the paper notes over such "believable proxies of human behavior" is the potential for people to fall in love with the NPCs. Or as they call it: "forming parasocial relationships with generative agents even when such relationships may not be appropriate."
"Despite being aware that generative agents are computational entities, users may anthropomorphize them or attach human emotions to them," the paper warns.
The way the researchers propose to tackle the issue is by ensuring NPCs "explicitly disclose their nature as computational entities," and for developers to ensure their designs are "value-aligned so that they do not engage in behaviors that would be inappropriate given the context, e.g., to reciprocate confessions of love."
Best SSD for gaming: the best solid state drives around
Best PCIe 4.0 SSD for gaming: the next gen has landed
The best NVMe SSD: this slivers of SSD goodness
Best external hard drives: expand your horizons
Best external SSDs: plug in upgrades for gaming laptops and consoles
Humans will literally pack-bond with anything, whether that be an AI that explicitly discloses its non-humanness, or an inanimate object with a face-like collection of grooves, so those measures may not help. (And believe it or not, this has already been a problem.)
I say bring on the human-AI relationships, but that's a conversation for another day.
If things continue the way they are, it looks like "emergent social dynamics" aren't too far away for game NPCs. One day you'll re-enter a village you ransacked to find mourning mothers holding funerals for their loved ones. You can bet they'll hold on to all those times you shouted "FUS" at their chickens, and they'll even have the capacity to plot revenge for their wronged avian compatriots.
While we wait, you can watch the replay of the simulation demo that accompanies the paper.

Having been obsessed with game mechanics, computers and graphics for three decades, Katie took Game Art and Design up to Masters level at uni and has been writing about digital games, tabletop games and gaming technology for over five years since. She can be found facilitating board game design workshops and optimising everything in her path.

