{"componentChunkName":"component---src-templates-post-template-js","path":"/posts/generative-agents","result":{"data":{"markdownRemark":{"id":"8eeabfda-d7f9-53b4-b860-59058e52f5a1","html":"<p>「<a href=\"https://arxiv.org/abs/2304.03442\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Generative Agents: Interactive Simulacra of Human Behavior</a>」を読んだメモです。</p>\n<h2 id=\"3-generative-agent-behavior-and-interaction\" style=\"position:relative;\"><a href=\"#3-generative-agent-behavior-and-interaction\" aria-label=\"3 generative agent behavior and interaction permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>3 GENERATIVE AGENT BEHAVIOR AND INTERACTION</h2>\n<h3 id=\"31-agent-avatar-and-communication\" style=\"position:relative;\"><a href=\"#31-agent-avatar-and-communication\" aria-label=\"31 agent avatar and communication permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>3.1 Agent Avatar and Communication</h3>\n<p>動作などが自然過ぎて、そのようにプログラムされているのでは？と思ってしまった。</p>\n<p>実装のプログラムが見てみたい。\n少なくとも、LangChainで動かしてみようと思う。</p>\n<h2 id=\"4-generative-agent-architecture\" style=\"position:relative;\"><a href=\"#4-generative-agent-architecture\" aria-label=\"4 generative agent architecture permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>4 GENERATIVE AGENT ARCHITECTURE</h2>\n<h3 id=\"41-memory-and-retrieval\" style=\"position:relative;\"><a href=\"#41-memory-and-retrieval\" aria-label=\"41 memory and retrieval permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>4.1 Memory and Retrieval</h3>\n<p>Memoryの重要性が想像以上に熱く語られていた。\nMemoryにあらゆる知覚を記録するというのは面白い。</p>\n<p>MemoryへのRetrieveでは以下の3つの要素を使うとのこと。</p>\n<ul>\n<li>最新性</li>\n<li>重要性 (LLMがつけたスコア)</li>\n<li>関連性 (埋め込みのコサイン類似度)</li>\n</ul>\n<p>LangChainがMemoryを大事だと考えてるという話が少し分かってきた気がする。\nチャットボットだとMemoryはふつうに動けばいい程度の機能だけど、ゲームとかで動かすAgentだとすごく大事で複雑な実装になりそうなんだなと思った。</p>\n<h3 id=\"42-reflection\" style=\"position:relative;\"><a href=\"#42-reflection\" aria-label=\"42 reflection permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>4.2 Reflection</h3>\n<p>記憶の整理って完全に睡眠みたいなイメージ。</p>\n<h3 id=\"43-planning-and-reacting\" style=\"position:relative;\"><a href=\"#43-planning-and-reacting\" aria-label=\"43 planning and reacting permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>4.3 Planning and Reacting</h3>\n<p>Planを立ててからActionというのも大事そう。</p>\n<h2 id=\"5-sandbox-environment-implementation\" style=\"position:relative;\"><a href=\"#5-sandbox-environment-implementation\" aria-label=\"5 sandbox environment implementation permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>5 SANDBOX ENVIRONMENT IMPLEMENTATION</h2>\n<p>サンドボックス環境はPhaserで作られているとのこと。\nPhaserさわってみてもいいかも。</p>\n<h3 id=\"51-from-structured-world-environments-to-natural-language-and-back-again\" style=\"position:relative;\"><a href=\"#51-from-structured-world-environments-to-natural-language-and-back-again\" aria-label=\"51 from structured world environments to natural language and back again permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>5.1 From Structured World Environments to Natural Language, And Back Again</h3>\n<p>サンドボックス環境が木構造というのは面白い。</p>\n<p>image-to-textみたいなものと組み合わせたりしたらどうなんだろう。\nただ、その方針ではAgentがものを処理したりするのが大変そうな気もする。</p>\n<p>というかサンドボックス環境の実装めっちゃ大変そう。すごすぎる。</p>\n<p>しかもエージェントが空間の認識をキャプチャとして持っている模様。\n記憶させてるかんじが面白い。</p>\n<h3 id=\"61-evaluation-procedure\" style=\"position:relative;\"><a href=\"#61-evaluation-procedure\" aria-label=\"61 evaluation procedure permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>6.1 Evaluation Procedure</h3>\n<p>面接みたいなかたちで評価するのは面白い。\n質問内容を見ていると、たしかにどう答えるのか気になる。</p>\n<p>人間がエージェントの行動を見続けたのは大変そう。</p>\n<h3 id=\"65-results\" style=\"position:relative;\"><a href=\"#65-results\" aria-label=\"65 results permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>6.5 Results</h3>\n<p>Refrectionがないとうまく回答できないとか面白い。</p>\n<h3 id=\"72-boundaries-and-errors\" style=\"position:relative;\"><a href=\"#72-boundaries-and-errors\" aria-label=\"72 boundaries and errors permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>7.2 Boundaries and Errors</h3>\n<p>何人か昼からバーでの飲むようになっちゃったということ？面白い。\nLLMがそういう知識をもってたのか？？</p>\n<h3 id=\"83-ethics-and-societal-impact\" style=\"position:relative;\"><a href=\"#83-ethics-and-societal-impact\" aria-label=\"83 ethics and societal impact permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>8.3 Ethics and Societal Impact</h3>\n<p>倫理は難しいだろうなと思った。\n自分の考えとしては、人は確実にエージェントに感情を持つと思うので。</p>\n<h2 id=\"感想\" style=\"position:relative;\"><a href=\"#%E6%84%9F%E6%83%B3\" aria-label=\"感想 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>感想</h2>\n<p>気になっていた論文なので、読めてよかった。\n同じようなことをしてみたいが、とくかく実装が大変そうすぎる。\nただ、LangChainの実装例を動かすくらいはやりたい。</p>\n<p>引き続き、少しずつでも論文を読むようにしたい。</p>","fields":{"slug":"/posts/generative-agents","tagSlugs":["/tag/llm/"],"autoRecommendPosts":["a-survey-of-agents","llm-based-agents-survey","llm-patterns","voyager"]},"frontmatter":{"date":"2023-08-02T13:07:53.194Z","description":"「Generative Agents: Interactive Simulacra of Human Behavior」を読んだメモです。","tags":["llm"],"title":"「Generative Agents: Interactive Simulacra of Human Behavior」を読んだメモ","socialImage":null,"recommendPosts":null}}},"pageContext":{"slug":"/posts/generative-agents"}},"staticQueryHashes":["251939775","3942705351","401334301"]}