Slide 1

Slide 1 text

Introduction to LLM agents Couger AI

Slide 2

Slide 2 text

Autonomous Agent • Computational systems that sense and act autonomously the complex dynamics in the enviroment, and by doing so realize a set of goals or tasks for which they are designed.

Slide 3

Slide 3 text

What are agents for? • Autonomous agents are recognized as a symbol of AGI. • accomplish tasks through self- directed planning and actions.

Slide 4

Slide 4 text

Challenges and the LLM solution • Enviroment representations. • World knowledge comprehension. • Complexity of human-like decision making. • Appropriate actions/human-like behaviors selection.

Slide 5

Slide 5 text

LLM-driven Agent Architecture

Slide 6

Slide 6 text

Agent Profile • The information for the role of the agent. • age • gender • career • Generation method • Handicrafting • LLM generation • Real-world human simulation

Slide 7

Slide 7 text

Memory • Type • short-term: dynamics that is important for understanding current state and making decisions. • current conversation history • scene description • long-term: information that are important over time. • past decision-making trajectories • presets of behaviors

Slide 8

Slide 8 text

Decision-making • Reasoning • Single-path • Chain of thought • Multi-path • Tree of thoughs • Feedback Planning • Environment feedback • objective in the virtual world • Human feedback • human supervision

Slide 9

Slide 9 text

Action • Action space • Leveraging knowledge • plan • converse • Using external tools • call APIs • search knowledge base

Slide 10

Slide 10 text

Example - Recommendation RecMind

Slide 11

Slide 11 text

Recommendation • Consider both customer information and common information • Decompose tasks and select the best reasoning path • Execute tasks with approprite actions

Slide 12

Slide 12 text

Example - World Simulation Generative Agents

Slide 13

Slide 13 text

World Simulation • Streaming memory

Slide 14

Slide 14 text

• Make the plan • Conversation • Idea spreading 14/33 Emergent Communications

Slide 15

Slide 15 text

Example - Role playing

Slide 16

Slide 16 text

Example - Self emotion simulation • Responses are influenced by self-emotions. 16/33

Slide 17

Slide 17 text

Agents and self-emotion simulation[6] • Creation of schedules based on profiles. • Generation of random events. • Analysis of self-emotions. • Communication with self- emotions. 17/33 [6]Zhang, Q., Naradowsky, J., & Miyao, Y. (2024). Self-Emotion Blended Dialogue Generation in Social Simulation Agents. arXiv preprint arXiv:2408.01633.

Slide 18

Slide 18 text

Analysis • Positive self-emotions lead to more optimistic startegies and negative self-emotions lead to more pessimistic ones. 18/33

Slide 19

Slide 19 text

Self emotion - group discussion • The self-emotion of a member could influence the disussion results of a group. 19/33

Slide 20

Slide 20 text

Analysis • Agent with self-emotion incorporated behaves differently. 20/33

Slide 21

Slide 21 text

Analysis • Agents with negative self-emotions express more personal opinions, leading to more disagreements. • Positive self-emotions lead to quick agreements and focus on details. 21/33

Slide 22

Slide 22 text

A typical workflow in real world • Human supervision can be involved in the interaction loop to improve the performance.

Slide 23

Slide 23 text

Conclusion • LLM agents are good approach to • real-world problem representation and simulation • tasks with complicated procedures and external knowledge • applications that involves self-learning and self-improvement