search
HomeTechnology peripheralsAIGenerative Agent - Declaration of Independence from NPCs

Have you seen all the NPCs in the game?

No matter what the NPC does, whether they have tasks to take, or those who don’t have tasks to chat with, their common characteristic is that they keep repeating those few sentences over and over again.

The reason is also very simple, these NPCs are not smart enough.

In other words, traditional NPCs arrange the script for them first, arrange the speaking skills, and say what words they need to go to.

With the emergence of ChatGPT, the dialogues of these game characters can be self-generated by inputting only key information.

This is what researchers at Stanford and Google are doing - using artificial intelligence to create generative agents.

How to generate a generative agent?

The mechanism of this thing is actually very simple and can be summarized simply with a picture.

Generative Agent - Declaration of Independence from NPCs

The leftmost Perceive is like the initial input, and the agent begins to receive various types of information.

The big frame in the middle is the most important part. It reveals how the generative agent "generates" content and spontaneously reaches the last step of "Act" .

The main feature of the generative agent is that it has a Memory Stream, which is a memory stream.

Just like the traditional NPCs mentioned above, their actions and words are prescribed and there is no room for free play.

And if you want to play freely, you must have your own "library". This "library" contains the things that AI records and thinks about in daily life. Only in this way can we further "Act".

AI must learn.

The steps of retrieving memory, planning, and reflection are the steps in which AI processes memory. AI can not only remember what happened every day, but also reflect on these events and make plans for each day.

At the same time, they will also remember the new feedback caused by the AI's behavior and treat it as new material to continue a new round of processing.

Generative Agent - Declaration of Independence from NPCs

Observation is each character’s observation of the surrounding environment, people and things, Reflection is the observation of these Thinking about phenomena.

The characters then generate plans based on these contents.

In the beginning, they made a rough plan themselves, and then slowly refined it. First make an hourly plan, and then make a short-term plan of 5-15 minutes.

Moreover, the characters will also modify their plans according to changes in the surrounding environment. Completely imitating human behavior, who doesn't crazily revise their plans from day to day?

In this way, we see the charm of generative agents.

Generative Agent - Declaration of Independence from NPCs

We can see that the complete generative agent (including three parts: observation, thinking, and planning) The performance is much better than the architecture lacking either or both.

cute little person Emoji

In the scenario designed by Google and Stanford researchers, there are a total of 25 little AI people living in this in a map.

Generative Agent - Declaration of Independence from NPCs

The researchers set up a total of 25 characters, and set basic basics such as name and occupation for each character. information.

For example, John Lin is a drugstore clerk who is very helpful. He's always thinking about how to make it easier for his customers to get their medications.

In terms of life, John lives with his wife Mei Lin, who is a university professor. Their son Eddy Lin is studying music theory.

At the same time, the initial relationship network between the characters was also established, such as John’s relationship with his neighbor, his views on the neighbor, and his relationship with his colleagues in the pharmacy, and what he usually likes to talk about. etc.

Generative Agent - Declaration of Independence from NPCs

Each character has such a preset text, which initially outlines the character framework and triggers subsequent interactions. .

The rest is up to the AI ​​itself.

The behavior of each character will be represented by emoji and will be summarized in one sentence in the system. For example, if someone is writing a diary, he will use

Generative Agent - Declaration of Independence from NPCs

to express it.

One day, Isabella and Tom met. They chatted about the campaign.

You must know that characters can communicate with each other using complete and clear natural language. And each character can sense other nearby characters and decide whether to pass by or start a conversation based on their respective personalities and character relationships.

Generative Agent - Declaration of Independence from NPCs

Isabella: "I'm still thinking about who I should vote for. But I talked to Sam Moore about running. What do you think of him?"

Tom: "To be honest, I don't like Sam very much. I think he is a bit out of touch with our community and will not work to maximize our interests. Consider it."

And for experimental purposes, researchers can also intervene. However, this intervention differs from traditional input scripts. Instead, it exerts a little force on the direction of some branches, and the rest is left to the AI ​​itself.

As for daily life, each character will have its own "routine", and this "routine" is preset.

The following is a day in the life of pharmacy boy John Lin. As for what new things will happen every day, that is the most interesting part.

Generative Agent - Declaration of Independence from NPCs

Finally, let’s take a look at some interesting interactions between AIs on Valentine’s Day.

Generative Agent - Declaration of Independence from NPCs

On Valentine's Day, the researchers gave each of the two characters Isabella and Maria a preset message telling them Isabella is going to throw a party and tell Maria that she likes Klaus.

Then, the two characters began to play on their own.

Isabella wanders around the map and invites people to her party when she sees them.

Generative Agent - Declaration of Independence from NPCs

This includes Maria. Maria would definitely not miss this opportunity to get along with Klaus, so she found Klaus and invited him to go to Isabella's party.

#Isabella didn’t sit around after inviting everyone. She went to the coffee shop to decorate the venue and invited Maria to help.

Generative Agent - Declaration of Independence from NPCs

The above picture shows the relationship between these AIs and the interactions caused by the party.

Then a group of people AI happily started the party at five o'clock in the afternoon.

The picture below details how the party was spontaneously guided by AI. Involves memory retrieval, reflection from observations of the environment, and decision-making.

Generative Agent - Declaration of Independence from NPCs

The left side is the environmental content observed by Isabella, such as idle refrigerators, beds, shelves, desks, wardrobes, etc. Wait, and then make decisions about decorations, invitations, party design, etc. based on the environment and the intention of hosting the party.

In this way, the whole process seems very full.

Science fiction becomes reality?

The above scenes seem simple and fun, but the more they develop, the more they can show different powers.

Pete said on Twitter that this result can be applied in many ways in the future.

Generative Agent - Declaration of Independence from NPCs

For example, if it is applied in the VR world, with this kind of generative agent acting as an NPC, it must be like in Westworld Envisioned scenarios are no longer out of reach.

"In Western World, every NPC has its own thoughts, personality, plans, and interpersonal relationships. Even more things are generated independently."

And this thing made by researchers from Google and Stanford is a mini Q version of Westworld.

References:

https://twitter.com/nonmayorpete/status/1645355225157615616 https://www.reddit.com/r/MachineLearning/comments/ 12hluz1/r_generative_agents_interactive_simulacra_of/

The above is the detailed content of Generative Agent - Declaration of Independence from NPCs. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:51CTO.COM. If there is any infringement, please contact admin@php.cn delete
Tesla's Robovan Was The Hidden Gem In 2024's Robotaxi TeaserTesla's Robovan Was The Hidden Gem In 2024's Robotaxi TeaserApr 22, 2025 am 11:48 AM

Since 2008, I've championed the shared-ride van—initially dubbed the "robotjitney," later the "vansit"—as the future of urban transportation. I foresee these vehicles as the 21st century's next-generation transit solution, surpas

Sam's Club Bets On AI To Eliminate Receipt Checks And Enhance RetailSam's Club Bets On AI To Eliminate Receipt Checks And Enhance RetailApr 22, 2025 am 11:29 AM

Revolutionizing the Checkout Experience Sam's Club's innovative "Just Go" system builds on its existing AI-powered "Scan & Go" technology, allowing members to scan purchases via the Sam's Club app during their shopping trip.

Nvidia's AI Omniverse Expands At GTC 2025Nvidia's AI Omniverse Expands At GTC 2025Apr 22, 2025 am 11:28 AM

Nvidia's Enhanced Predictability and New Product Lineup at GTC 2025 Nvidia, a key player in AI infrastructure, is focusing on increased predictability for its clients. This involves consistent product delivery, meeting performance expectations, and

Exploring the Capabilities of Google's Gemma 2 ModelsExploring the Capabilities of Google's Gemma 2 ModelsApr 22, 2025 am 11:26 AM

Google's Gemma 2: A Powerful, Efficient Language Model Google's Gemma family of language models, celebrated for efficiency and performance, has expanded with the arrival of Gemma 2. This latest release comprises two models: a 27-billion parameter ver

The Next Wave of GenAI: Perspectives with Dr. Kirk Borne - Analytics VidhyaThe Next Wave of GenAI: Perspectives with Dr. Kirk Borne - Analytics VidhyaApr 22, 2025 am 11:21 AM

This Leading with Data episode features Dr. Kirk Borne, a leading data scientist, astrophysicist, and TEDx speaker. A renowned expert in big data, AI, and machine learning, Dr. Borne offers invaluable insights into the current state and future traje

AI For Runners And Athletes: We're Making Excellent ProgressAI For Runners And Athletes: We're Making Excellent ProgressApr 22, 2025 am 11:12 AM

There were some very insightful perspectives in this speech—background information about engineering that showed us why artificial intelligence is so good at supporting people’s physical exercise. I will outline a core idea from each contributor’s perspective to demonstrate three design aspects that are an important part of our exploration of the application of artificial intelligence in sports. Edge devices and raw personal data This idea about artificial intelligence actually contains two components—one related to where we place large language models and the other is related to the differences between our human language and the language that our vital signs “express” when measured in real time. Alexander Amini knows a lot about running and tennis, but he still

Jamie Engstrom On Technology, Talent And Transformation At CaterpillarJamie Engstrom On Technology, Talent And Transformation At CaterpillarApr 22, 2025 am 11:10 AM

Caterpillar's Chief Information Officer and Senior Vice President of IT, Jamie Engstrom, leads a global team of over 2,200 IT professionals across 28 countries. With 26 years at Caterpillar, including four and a half years in her current role, Engst

New Google Photos Update Makes Any Photo Pop With Ultra HDR QualityNew Google Photos Update Makes Any Photo Pop With Ultra HDR QualityApr 22, 2025 am 11:09 AM

Google Photos' New Ultra HDR Tool: A Quick Guide Enhance your photos with Google Photos' new Ultra HDR tool, transforming standard images into vibrant, high-dynamic-range masterpieces. Ideal for social media, this tool boosts the impact of any photo,

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.