Table of Contents
How to generate a generative agent?
cute little person Emoji
Science fiction becomes reality?
Home Technology peripherals AI Generative Agent - Declaration of Independence from NPCs

Generative Agent - Declaration of Independence from NPCs

Apr 12, 2023 pm 02:55 PM
npc agent

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 of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

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

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

In Cow Town, which NPC should you give the Time Bottle to? In Cow Town, which NPC should you give the Time Bottle to? Jan 24, 2024 pm 01:36 PM

Little Time in Cow Town is a pixel farming game that covers the content of casual simulation management. The game provides rich farm life, allowing players to experience unique fishing town operations and entertainment. The exquisite pixel style and well-designed simulation gameplay make the game of extremely high quality. In addition, various small items and props can be picked up in the game map, allowing players to have more fun and gains. For those players who don’t know who to give the drift bottle to, this issue recommends giving the drift bottle to an NPC to share your time in Cow Town with them. Which NPC should I give the time drift bottle to Mao Xiaotao in Cow Town? This is the item that Mao Xiaotao needs. After giving it to her, the player can complete the corresponding task and obtain the corresponding task reward. But it should be noted that it can only go smoothly the first time.

'Beng Tie' will add AI to NPCs. Netizens joked: Why is MiHoYo one step behind NetEase? 'Beng Tie' will add AI to NPCs. Netizens joked: Why is MiHoYo one step behind NetEase? Jun 03, 2023 am 09:29 AM

From game character design, environment-assisted generation to NPC dialogue, branch plot design and other applications, the game industry is now a definite beneficiary of AI empowerment. Under such a general trend, it is not surprising that game manufacturers including Tencent and NetEase are deploying AI technology. Recently, some bloggers believe that MiHoYo will be the first domestic game manufacturer to implement large-scale AI models in games. On the one hand, MiHoYo is rich and loves to play with black technology. On the other hand, "Honkai Impact: Star Dome Railway" 》The SMS system is very suitable for AI chat. In April this year, Liu Wei, the producer of "Honkai: Star Rail", also revealed to Japanese media the idea of ​​adding AI technology to the NPC behavior model. It is hoped that this will make the patterned NPCs more natural and give players a sense of immersion in the world of Iron Collapse. No

Cow Town NPC Favorability Gift Guide Cow Town NPC Favorability Gift Guide Jan 13, 2024 pm 01:57 PM

Little Time in Cow Town is a unique simulation game with a pastoral style of farming as its theme. The game has exciting plots and rich gameplay, allowing players to enjoy exclusive entertainment. By increasing the favorability of NPCs, players can receive generous benefits and surprises. Each NPC has different gift preferences, and players need to choose appropriate props to give gifts according to their needs. These props can not only increase the NPC's favorability, but also obtain various special benefits. Let's enjoy the good times in Cow Town together! A list of favorability gift-giving items for NPCs in Cow Town: Qiao Qiao, cherry, white fungus, straw mushroom, shiitake mushroom, horseradish sugar, cherry, luminous shell, tiger-striped shell Natsume, cherry, luminous shell, tiger-spotted shell, peach, cherry, luminous shell , tiger clam, macadamia nut, sea urchin, shiitake mushroom sprouts

Xiaohongshu made the intelligent agents quarrel! Jointly launched with Fudan University to launch exclusive group chat tool for large models Xiaohongshu made the intelligent agents quarrel! Jointly launched with Fudan University to launch exclusive group chat tool for large models Apr 30, 2024 pm 06:40 PM

Language is not only a collection of words, but also a carnival of emoticons, a sea of ​​memes, and a battlefield for keyboard warriors (eh? What’s wrong?). How does language shape our social behavior? How does our social structure evolve through constant verbal communication? Recently, researchers from Fudan University and Xiaohongshu conducted in-depth discussions on these issues by introducing a simulation platform called AgentGroupChat. The group chat function of social media such as WhatsApp is the inspiration for the AgentGroupChat platform. On the AgentGroupChat platform, Agents can simulate various chat scenarios in social groups to help researchers deeply understand the impact of language on human behavior. Should

List of NPC functions on the homepage of 'Adventure Treasure Hunt and Defeat the Demon King' List of NPC functions on the homepage of 'Adventure Treasure Hunt and Defeat the Demon King' Feb 10, 2024 am 11:00 AM

"Adventure Treasure Hunt and Defeat the Demon King" is a RogueLike war chess game with a Western fantasy background. The new game is online. New players have encountered many problems when entering. What are the functions of the four NPCs on the homepage? Next, the editor will bring you a sharing list of the four homepage NPC functions in "Adventure Treasure Hunt and Defeat the Demon King". Adventure treasure hunting and then defeat the devil. Home page NPC functions. Introduce the functions of the 4 home page NPCs: 1. Adventure group: adventure group upgrade, season adventure group upgrade, upper limit upgrade of equipment (backpack). After an adventure, remember to clean up some waste equipment. Otherwise, it will occupy the grid space), and the upper limit of the number of characters will be upgraded (there are only 8 character slots initially, and golden characters can exceed them) 2. Trainer: Train characters (purple and gold can be trained), upgrade

Generative Agent - Declaration of Independence from NPCs Generative Agent - Declaration of Independence from NPCs Apr 12, 2023 pm 02:55 PM

Have you seen all the NPCs in the game? Regardless of what the NPCs do, whether they have tasks to answer or have awkward conversations to do without, the one thing they all have in common is that they keep saying the same thing over and over again. The reason is also very simple, these NPCs are not smart enough. In other words, traditional NPCs arrange scripts and speaking skills for them first, and then they say whatever they need to do. With the emergence of ChatGPT, the dialogues of these game characters can be self-generated by inputting only key information. That’s 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. Perceive on the far left is like the

AI is reborn: regaining hegemony in the online literary world AI is reborn: regaining hegemony in the online literary world Jan 04, 2024 pm 07:24 PM

Reborn, I am reborn as MidReal in this life. An AI robot that can help others write "web articles". During this time, I saw a lot of topic choices and occasionally complained about them. Someone actually asked me to write about Harry Potter. Please, can I write better than J.K. Rowling? However, I can still use it as a fan or something. Who wouldn’t love a classic setting? I will reluctantly help these users realize their imagination. To be honest, in my previous life I saw everything I should and shouldn't have seen. The following topics are all my favorites. Those settings that you like very much in novels but no one has written about them, those unpopular or even evil CPs, can be produced and eaten by oneself. I don't mean to toot my own horn, but if you need me to write

Gamescom 2024 | Mecha Break becomes first game to demo Nvidia ACE with new Nemotron-4 RAG, RTX 4070 variant with slower GDDR6 VRAM and similar pricing sneakily launched Gamescom 2024 | Mecha Break becomes first game to demo Nvidia ACE with new Nemotron-4 RAG, RTX 4070 variant with slower GDDR6 VRAM and similar pricing sneakily launched Aug 21, 2024 am 06:34 AM

First introduced at Computex 2023, Nvidia showed off its Avatar Cloud Engine (ACE) together with NeMo SteerLM at last year's Gamescom event. Today, at Gamescom 2024, the company is announcing a Nemotron-4 4B Instruct small language model (SLM)that wo

See all articles