跳到正文
论文阅读馆THE RESEARCH LIBRARY 查找论文
← 论文库AI 研究与应用 / 智能体协作与通信导出 ↗

PAPER / 2023

CAMEL:用于“思维”探索大型语言模型社会的交互式代理

CAMEL: Communicative Agents for "Mind" Exploration of Large Language Model Society

Guohao Li · Hasan Abed Al Kader Hammoud · Hani Itani · Dmitrii Khizbullin · Bernard Ghanem

NeurIPS · 2023

30 秒读懂

输入包含人类的初步任务和角色设定。Task Specifier先把初步想法细化为具体任务,再把任务交给分别扮演用户、助手的代理。AI用户负责逐步提出指令,AI助手负责给出回答;对话记录是这一流程的直接产物。这样做改变了任务分解和提示的来源,不意味着回答已经在真实环境中执行。

普通聊天由人不断拆任务、追问和纠偏。CAMEL想把其中一部分指导工作交给模型:人指定任务和角色,由一个代理提出下一步指令,另一个代理回答。它研究的是怎样组织自主对话和生成交互数据,而不是训练出一个已经能可靠执行所有任务的模型。

先说结论

CAMEL把人类不断追问的工作部分转化为代理之间的角色化对话。实验支持这种对话加总结流程的答案更受偏好,不支持把它当成可靠执行或自动验收系统。 (原文:PDF p.1, Introduction;PDF p.4, Section 3.1;PDF p.5, Section 3.2;PDF p.9, experimental setup;PDF p.9, Table 1; Section 5.1;PDF p.9, Section 5.1)

论文为什么要做这件事

普通聊天由人不断拆任务、追问和纠偏。CAMEL想把其中一部分指导工作交给模型:人指定任务和角色,由一个代理提出下一步指令,另一个代理回答。它研究的是怎样组织自主对话和生成交互数据,而不是训练出一个已经能可靠执行所有任务的模型。 (原文:PDF p.1, Introduction)

核心方法到底怎么运转

输入包含人类的初步任务和角色设定。Task Specifier先把初步想法细化为具体任务,再把任务交给分别扮演用户、助手的代理。AI用户负责逐步提出指令,AI助手负责给出回答;对话记录是这一流程的直接产物。这样做改变了任务分解和提示的来源,不意味着回答已经在真实环境中执行。 (原文:PDF p.4, Section 3.1)

提示协议不是硬性正确性保证

Inception Prompting为双方提供角色、任务和交互规则,目的是减少角色互换、助手反问和无效往返等问题。理解这一步的关键是:它依然是写给语言模型的提示,不是能证明任务正确完成的程序约束。不能把提出缓解机制写成这些失效方式已被彻底解决。 (原文:PDF p.5, Section 3.2)

实验怎样检验这个方法

作者把多轮对话经GPT-4总结后的方案,与gpt-3.5-turbo的单次回答比较;AI Society有人类和模型评审,Code仅模型评审。明确这一评价对象,才能理解后面的胜率。 (原文:PDF p.9, experimental setup)

结果说明了什么

Table 1中,GPT-4对AI Society任务给出的CAMEL胜率是73.0%,对Code任务是76.0%;AI Society的人类评审胜率是76.3%。对手是同一任务的gpt-3.5-turbo单次回答。这里的胜率表示在该答案评审协议下更受偏好,不是任务执行成功率,也不是代码单元测试通过率。 (原文:PDF p.9, Table 1; Section 5.1)

这篇论文哪里最强,哪里最危险

作者先用GPT-4把CAMEL多轮对话整理成最终方案,再与单次回答比较;因此,观察到的是整个对话加总结流程的效果,不能只归因于角色设定。人类评价仅覆盖AI Society,Code由模型评审。论文这一比较没有建立对人类多轮追问的效率优势,也不能用代理宣布结束来代替外部验收。 (原文:PDF p.9, Section 5.1)

读完后记住这三件事

先具体化任务,再让用户代理和助手代理交互。提示规则用来缓解对话失控,并非硬性执行保证。论文的答案偏好优势不等于代码运行正确或比人类工作更快。 (原文:PDF p.1, Introduction;PDF p.4, Section 3.1;PDF p.5, Section 3.2;PDF p.9, experimental setup;PDF p.9, Table 1; Section 5.1;PDF p.9, Section 5.1)

代码从哪里读

原始来源入口。本轮已打开官方仓库。它仍在演进,当前版本不等于论文实验版本;没有安装依赖、调用模型或重跑论文结果。

原文证据

将主张放回条件与原文定位中理解。

定义

为什么让模型扮演提问者

原文摘录
CAMEL: Communicative Agents for “Mind” Exploration of Large Language Model Society https://www.camel-ai.org Guohao Li∗ Hasan Abed Al Kader Hammoud* Hani Itani* Dmitrii Khizbullin Bernard Ghanem arXiv:2303.17760v2 [cs.AI] 2 Nov 2023 King Abdullah University of Science and Technology (KAUST) Abstract The rapid advancement of chat-based language models has led to remarkable progress in complex task-solving. However, their success heavily relies on human input to guide the conversation, which can be challenging and time-consuming. This paper explores the potential of building scalable techniques to facilitate au- tonomous cooperation among communicative agents, and provides insight into their “cognitive” processes. To address the challenges of achieving autonomous cooperation, we propose a novel communicative agent framework named role- playing . Our approach involves using inception prompting to guide chat agents toward task completion while maintaining consistency with human intentions. We showcase how role-playing can be used to generate conversational data for studying the behaviors and capabilities of a society of agents, providing a valuable resource for investigating conversational language models. In particular, we conduct com- prehensive studies on instruction-following cooperation in multi-agent settings. Our contributions include introducing a novel communicative agent framework, offering a scalable approach for studying the cooperative behaviors and capabili- ties of multi-agent systems, and open-sourcing our library to support research on communicative agents and beyond: https://github.com/camel-ai/camel. 1 Introduction “What magical trick makes us intelligent? The trick is that there is no trick. The power of intelligence stems from our vast diversity, not from any single, perfect principle.” - Marvin Minsky, The Society of Mind, p. 308 Confronted with the complexities of real-world tasks, solving them often requires multiple steps. The rapid progress of chat-based large-scale language models (LLMs) has yielded remarkable achievements in complex task-solving [82, 84, 116, 89, 5, 10, 122, 13]. Nevertheless, it is worth noting that their success is heavily reliant on human input to guide the conversation in the right direction. This reliance necessitates users to provide relevant and precise prompts based on their intentions and the chat agent’s feedback. This can be challenging, time-consuming, and sometimes impossible. Crafting effective prompts often demands a deep understanding and expertise of a particular domain of knowledge. Consider an individual who lacks trading expertise; they would find it difficult to create suitable prompts for directing a chat agent to develop a trading application. This predicament is raising a crucial question: can we replace human intervention with an autonomous communicative agent capable of steering the conversation toward task completion with minimal human supervision? To tackle this issue, it is crucial to conduct more research exploring the potential, ∗ Equal contribution 37th Conference on Neural Information Processing Systems (NeurIPS 2023).

条件:仅限本地原始PDF的 Introduction;不同表格与实验不合并

指标:普通聊天由人不断拆任务、追问和纠偏。CAMEL想把其中一部分指导工作交给模型:人指定任务和角色,由一个代理提出下一步指令,另一个代理回答。它研究的是怎样组织自主对话和生成交互数据,而不是训练出一个已经能可靠执行所有任务的模型。

原文第 1 页 ↗PDF p.1, Introduction

以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。

方法

从模糊想法到交互任务

原文摘录
Human Input Instruction: Install the necessary Python libraries for sentiment analysis and stock trading. Input: None Idea: Develop a trading bot for the stock market Solution: To install the necessary Python libraries for Task Specifier sentiment analysis and stock trading, we can use pip, the package installer for Python. Here are the libraries we need to install: 1. tweepy - for accessing the Twitter API 2. textblob - for sentiment analysis 3. yfinance - for accessing Yahoo Finance API Specified Task: Develop a trading bot with a To install these libraries, open the command prompt or terminal and enter the following commands: AI User Human User sentiment analysis tool pip install tweepy that can monitor pip install textblob pip install yfinance social media platforms Role Assignment: for positive or negative Next request. comments about a Instruction: Import the necessary libraries in Python. AI Assistant: particular stock, and Input: None Python Programmer execute trades based on Solution: Here's the code to import these libraries: sentiment analysis ``` AI User: results import tweepy from textblob import TextBlob Stock Trader import pandas as pd AI Assistant import numpy as np import yfinance as yf ``` Next request. Role Playing Session Figure 1: CAMEL Role-Playing Framework. Our role-playing setup starts with the human user having an idea they want to implement, e.g. develop a trading bot for the stock market. The roles involved in this task would be an AI assistant agent who is a python programmer and an AI user agent who is a stock trader. The task is made more specific using our task specifier agent, leading to a well-defined task for the assistant to solve. Both AI user and AI assistant are provided with the specified task, after which they collaboratively communicate by chatting with each other in an instruction-following fashion to solve the specified task. Our proposed framework is a novel role-playing approach for studying multiple communicative agents. Specifically, we concentrate on task-oriented role-playing that involves one AI assistant and one AI user. After the multi-agent system receives a preliminary idea and the role assignment from human users, a task-specifier agent will provide a detailed description to make the idea specific. Afterwards, the AI assistant and AI user will cooperate on completing the specified task through multi-turn conversations until the AI user determines the task is done. The AI user is responsible for giving instructions to the AI assistant and directing the conversation toward task completion. On the other hand, the AI assistant is designed to follow the instructions from the AI user and respond with specific solutions. The whole role-playing framework is depicted in Figure 1. Human Input and Task Specifying. The role-playing session will be instantiated from an idea and selected roles by humans. As an example in Figure 1, a human has a preliminary idea to develop a trading bot for the stock market. Humans may or may not have the knowledge about how the idea can be realized. What is needed is only to designate the potential roles that can implement the idea. For instance, a Python Programmer could collaborate with a Stock Trader to realize the idea of developing a trading bot for the stock market. After the idea and roles are determined, the task specifier agent will brainstorm a specific task that the AI Assistant role can help with the AI user role to complete based on the input idea. An example of a specified task in this scenario could be: develop a trading bot with a sentiment analysis tool that can monitor social media platforms for positive or negative comments about a particular stock, and execute trades based on sentiment analysis results. The main motivation for introducing a task specifier is that conversational agents usually require a concrete task prompt for realizing the task which might be challenging or time-consuming for a non-domain expert. Therefore, the task specifier agent serves as an enhanced imagination module for the idea implementation. Please note that, when studying our framework at a large scale for AI society and Code scenarios, we generate roles and ideas automatically by prompting LLMs instead of relying on human inputs. For our generated Math and Science datasets we generated problem topics, subtopics, and problems automatically by prompting LLMs. AI Assistant-User Role Assignment. After the task specification, The AI assistant role and the AI user role will be assigned to the user agent and the assistant agent correspondingly to complete the specified task. In practice, a system message is passed to each agent declaring their role. We refer to the assistant system prompt/message by PA and that of the user by PU . The system messages are passed to the agents before the conversations start. Let F1 and F2 denote two large-scale auto- regressive language models [82]. When the system message is passed to those models respectively, we 4

条件:仅限本地原始PDF的 Section 3.1;不同表格与实验不合并

指标:输入包含人类的初步任务和角色设定。Task Specifier先把初步想法细化为具体任务,再把任务交给分别扮演用户、助手的代理。AI用户负责逐步提出指令,AI助手负责给出回答;对话记录是这一流程的直接产物。这样做改变了任务分解和提示的来源,不意味着回答已经在真实环境中执行。

原文第 4 页 ↗PDF p.4, Section 3.1

以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。

方法

提示协议不是硬性正确性保证

原文摘录
obtain A ← F1PA and U ← F2PU which are referred to as the assistant and user agents respectively. In Figure 1, the AI assistant and the AI user are assigned the roles of a Python Programmer and a Stock Trader at the beginning of the role-playing session respectively. The AI user serves as a task planner, engaging in interactive planning to determine feasible steps for the AI assistant to execute. Meanwhile, the AI assistant acts as a task executor, offering solutions, executing planned steps, and providing responses to the AI user. Conversation Towards Task-Solving. After the role assignment is completed, the AI assistant A and AI user U will collaborate in an instruction-following manner to accomplish the task. In the AI assistant-user scenario, the AI user is responsible for providing instructions, and the assistant is expected to respond with a solution that fulfills the instructions. Formally, we denote the user instruction message obtained at time t by It and the assistant solution by St . The set of conversational messages obtained up until time t is denoted by Equation (1) shown below: Mt = {(I0 , S0 ), ..., (It , St )} = {(Ii , Si )}|ti=0 (1) At the next time step, t + 1, the AI user U takes the historical conversation message set Mt and provides a new instruction It+1 , as shown in Equation (2). The produced instruction message It+1 is then passed, along with message set Mt , to the AI assistant A. The AI assistant will then respond with a solution, denoted by St+1 in Equation (3): It+1 = U(Mt) (2) St + 1 = A(Mt, It + 1) (3) After obtaining the solution St+1 to the instruction It+1 , the message set is updated using Equation (4) to obtain Mt+1 : Mt+1 ← Mt ∪ (It+1 , St+1 ) (4) Note that the formulation above not only models AI-AI communicative scenarios, but it can also be easily extended to model human-AI communication or communication between more than two agents. Specifically, we can use message-passing graphs to model communication between an arbitrary number of agents. In Figure 1, we observe that the AI user initiates the installation and import of essential Python libraries for sentiment analysis and stock trading by instructing the AI assistant through conversations. This example is drawn from our experiments, and the entire conversation is available in the Appendix. Critic-In-The-Loop. To enhance the controllability of the role-playing framework, we introduce a critic agent capable of selecting proposals from or providing feedback to the role-playing agents. This enables tree-search-like decision-making for task-solving. In practice, the critic can be either an AI agent or a human. The detailed implementation and case studies can be found in the Appendix. 3.2 Inception Prompting Since prompt engineering is crucial to our role-playing framework, this section delves deeply into our prompting techniques. Our prompt engineering occurs solely at the beginning of role-playing, for task specification and role assignment. Once the conversation phase commences, the AI assistant and AI user prompt each other automatically in a loop until termination. As such, we refer to our technique as Inception Prompting. Our Inception prompt consists of three prompts: the task specifier prompt PT , the assistant system prompt PA , and the user system prompt PU . As an example, we consider the inception prompt of the AI Society scenario. The templates for these prompts of AI Society role-playing are shown in Figure 2. The task specifier prompt contains information about the roles of the AI assistant and AI user in the role-playing session. Therefore, the task specifier agent can take a preliminary task/idea as input and generate a specific task using imagination. The AI assistant system prompt PA and the AI user system prompt PU are mostly symmetrical and include information about the assigned task and roles, communication protocols, termination conditions, and constraints or requirements to avoid unwanted behaviors. The prompt designs for both roles are crucial to achieve autonomous cooperation between agents. It is non-trivial to engineer prompts that ensure agents act in alignment with our intentions. We take the prompt templates from the AI Society in Figure 2 as an example to explain our key design choices. The prompts used for the Code scenario follow a similar sprint as the AI society scenario, but with some additional engineering related to programming languages. More details in the Appendix. 5

条件:仅限本地原始PDF的 Section 3.2;不同表格与实验不合并

指标:Inception Prompting为双方提供角色、任务和交互规则,目的是减少角色互换、助手反问和无效往返等问题。理解这一步的关键是:它依然是写给语言模型的提示,不是能证明任务正确完成的程序约束。不能把提出缓解机制写成这些失效方式已被彻底解决。

原文第 5 页 ↗PDF p.5, Section 3.2

以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。

方法

实验怎样检验这个方法

原文摘录
solution, presenting a consolidated final solution. Particularly, a GPT4 is used since it possesses a larger token limit which is suitable for summarization. Summarization also makes CAMEL agents’ solution undetectable by its format, allowing for a more fair comparison. Subsequently, this solution is compared with a single-shot solution generated by the gpt-3.5-turbo model for the same task. Sample tasks are provided in the Appendix. Human Evaluation. For this evaluation, we present both the CAMEL summarized agent solution and the gpt-3.5-turbo single-shot solution side-by-side to human participants. The identity behind each solution is not revealed. Participants are then asked to vote on whether one solution is superior to the other or if they are equally good. A total of 453 responses were collected during this evaluation. Note that, human evaluation is only done for AI Society, as assessing code is generally harder for humans (without running the code). GPT4 Evaluation. We engage a GPT4 agent to evaluate the effectiveness of Model 1 (CAMEL Agent solution) versus Model 2 (gpt-3.5-turbo single-shot solution) for each task. More specifically, we prompt GPT4 to score and decide which solution of the two solutions is better. Results. The summarized results of each evaluation are outlined in Table 1 which showcases that the CAMEL solution outperforms gpt-3.5-turbo single-shot solution in both the human evaluation and the GPT4 evaluation by a big margin. It is also worth noting that both human evaluation and GPT4 evaluation are highly aligned. Table 1: Agent Evaluation Results: Results of the evaluations of the CAMEL agent against gpt-3.5-turbo using both human evaluators and GPT4 consistently show that utilizing a multi- agent cooperative approach is more effective than gpt-3.5-turbo’s single shot solution. Dataset Evaluation Type Draw gpt-3.5-turbo Wins CAMEL Agents Win Human Evaluation 13.3% 10.4% 76.3% AI Society GPT4 Evaluation 4.0% 23.0% 73.0% Code GPT4 Evaluation 0.0% 24.0% 76.0% 5.2 GPT4 for ChatBot Evaluation In this section, we progressively fine-tune a LLaMA 7B model on our generated datasets. By progressively incorporating diverse datasets like AI society, code, math, and science, we expect fine-tuned model to demonstrate the ability to develop an increasingly sophisticated understanding of these domains. We initially start by training on AI society dataset, which aims to let the model learn about human interactions and societal dynamics. As additional datasets were introduced, such as code, the model gained knowledge of programming logic and syntax, enabling it to generate coherent and executable code snippets. The inclusion of the math dataset further expanded the model’s capabilities, allowing it to solve complex equations, reason about abstract concepts, and perform precise calculations. Finally, exposure to the science dataset broadened the model’s understanding of scientific theories, empirical observations, and experimental methods. The emergence of model capabilities is measured by evaluating the quality of the model responses, before and after training on the new domain, on a set of questions of varying difficulties from each domain. More precisely, the model is tested on 20 AI Society related tasks, 20 coding tasks, 20 math tasks and 60 science tasks. Those results are highlighted in Table 2 where we see that each time we add a dataset, the model performs better on the incorporated domain. Note that to measure the quality of the models’ responses, we follow the evaluation from Section T, which involves prompting a GPT4 agent to score and decide which solution is better. It is worth noting that an improvement on other domains is also observed in some cases such as when we train on Code we improve on Science. This is because our Code dataset contains problems that solve tasks in particular domains which include scientific domain. Similarly, training on AI Society improves code as AI Society contains the role of a "programmer" and hence coding related conversations. Finally, note that the draws observed in LLaMA-7B vs AI Society in Math reflects equally bad solutions compared to the draws observed in AI Society + Code + Math vs AI Society + Code + Math + Science where the draws are equally good solutions. This progression from AI society to code to math to science highlights the potential of AI models to acquire a versatile and adaptable knowledge base, paralleling the way humans gain expertise in diverse subjects. Sample tasks are provided in the Appendix. 9

条件:仅限本地原始PDF的 experimental setup;不同表格与实验不合并

指标:作者把多轮对话经GPT-4总结后的方案,与gpt-3.5-turbo的单次回答比较;AI Society有人类和模型评审,Code仅模型评审。明确这一评价对象,才能理解后面的胜率。

原文第 9 页 ↗PDF p.9, experimental setup

以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。

结果

评审更喜欢哪个答案

原文摘录
solution, presenting a consolidated final solution. Particularly, a GPT4 is used since it possesses a larger token limit which is suitable for summarization. Summarization also makes CAMEL agents’ solution undetectable by its format, allowing for a more fair comparison. Subsequently, this solution is compared with a single-shot solution generated by the gpt-3.5-turbo model for the same task. Sample tasks are provided in the Appendix. Human Evaluation. For this evaluation, we present both the CAMEL summarized agent solution and the gpt-3.5-turbo single-shot solution side-by-side to human participants. The identity behind each solution is not revealed. Participants are then asked to vote on whether one solution is superior to the other or if they are equally good. A total of 453 responses were collected during this evaluation. Note that, human evaluation is only done for AI Society, as assessing code is generally harder for humans (without running the code). GPT4 Evaluation. We engage a GPT4 agent to evaluate the effectiveness of Model 1 (CAMEL Agent solution) versus Model 2 (gpt-3.5-turbo single-shot solution) for each task. More specifically, we prompt GPT4 to score and decide which solution of the two solutions is better. Results. The summarized results of each evaluation are outlined in Table 1 which showcases that the CAMEL solution outperforms gpt-3.5-turbo single-shot solution in both the human evaluation and the GPT4 evaluation by a big margin. It is also worth noting that both human evaluation and GPT4 evaluation are highly aligned. Table 1: Agent Evaluation Results: Results of the evaluations of the CAMEL agent against gpt-3.5-turbo using both human evaluators and GPT4 consistently show that utilizing a multi- agent cooperative approach is more effective than gpt-3.5-turbo’s single shot solution. Dataset Evaluation Type Draw gpt-3.5-turbo Wins CAMEL Agents Win Human Evaluation 13.3% 10.4% 76.3% AI Society GPT4 Evaluation 4.0% 23.0% 73.0% Code GPT4 Evaluation 0.0% 24.0% 76.0% 5.2 GPT4 for ChatBot Evaluation In this section, we progressively fine-tune a LLaMA 7B model on our generated datasets. By progressively incorporating diverse datasets like AI society, code, math, and science, we expect fine-tuned model to demonstrate the ability to develop an increasingly sophisticated understanding of these domains. We initially start by training on AI society dataset, which aims to let the model learn about human interactions and societal dynamics. As additional datasets were introduced, such as code, the model gained knowledge of programming logic and syntax, enabling it to generate coherent and executable code snippets. The inclusion of the math dataset further expanded the model’s capabilities, allowing it to solve complex equations, reason about abstract concepts, and perform precise calculations. Finally, exposure to the science dataset broadened the model’s understanding of scientific theories, empirical observations, and experimental methods. The emergence of model capabilities is measured by evaluating the quality of the model responses, before and after training on the new domain, on a set of questions of varying difficulties from each domain. More precisely, the model is tested on 20 AI Society related tasks, 20 coding tasks, 20 math tasks and 60 science tasks. Those results are highlighted in Table 2 where we see that each time we add a dataset, the model performs better on the incorporated domain. Note that to measure the quality of the models’ responses, we follow the evaluation from Section T, which involves prompting a GPT4 agent to score and decide which solution is better. It is worth noting that an improvement on other domains is also observed in some cases such as when we train on Code we improve on Science. This is because our Code dataset contains problems that solve tasks in particular domains which include scientific domain. Similarly, training on AI Society improves code as AI Society contains the role of a "programmer" and hence coding related conversations. Finally, note that the draws observed in LLaMA-7B vs AI Society in Math reflects equally bad solutions compared to the draws observed in AI Society + Code + Math vs AI Society + Code + Math + Science where the draws are equally good solutions. This progression from AI society to code to math to science highlights the potential of AI models to acquire a versatile and adaptable knowledge base, paralleling the way humans gain expertise in diverse subjects. Sample tasks are provided in the Appendix. 9

条件:仅限本地原始PDF的 Table 1; Section 5.1;不同表格与实验不合并

指标:Table 1中,GPT-4对AI Society任务给出的CAMEL胜率是73.0%,对Code任务是76.0%;AI Society的人类评审胜率是76.3%。对手是同一任务的gpt-3.5-turbo单次回答。这里的胜率表示在该答案评审协议下更受偏好,不是任务执行成功率,也不是代码单元测试通过率。

原文第 9 页 ↗PDF p.9, Table 1; Section 5.1

以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。

限制

总结器和评价范围限制结论

原文摘录
solution, presenting a consolidated final solution. Particularly, a GPT4 is used since it possesses a larger token limit which is suitable for summarization. Summarization also makes CAMEL agents’ solution undetectable by its format, allowing for a more fair comparison. Subsequently, this solution is compared with a single-shot solution generated by the gpt-3.5-turbo model for the same task. Sample tasks are provided in the Appendix. Human Evaluation. For this evaluation, we present both the CAMEL summarized agent solution and the gpt-3.5-turbo single-shot solution side-by-side to human participants. The identity behind each solution is not revealed. Participants are then asked to vote on whether one solution is superior to the other or if they are equally good. A total of 453 responses were collected during this evaluation. Note that, human evaluation is only done for AI Society, as assessing code is generally harder for humans (without running the code). GPT4 Evaluation. We engage a GPT4 agent to evaluate the effectiveness of Model 1 (CAMEL Agent solution) versus Model 2 (gpt-3.5-turbo single-shot solution) for each task. More specifically, we prompt GPT4 to score and decide which solution of the two solutions is better. Results. The summarized results of each evaluation are outlined in Table 1 which showcases that the CAMEL solution outperforms gpt-3.5-turbo single-shot solution in both the human evaluation and the GPT4 evaluation by a big margin. It is also worth noting that both human evaluation and GPT4 evaluation are highly aligned. Table 1: Agent Evaluation Results: Results of the evaluations of the CAMEL agent against gpt-3.5-turbo using both human evaluators and GPT4 consistently show that utilizing a multi- agent cooperative approach is more effective than gpt-3.5-turbo’s single shot solution. Dataset Evaluation Type Draw gpt-3.5-turbo Wins CAMEL Agents Win Human Evaluation 13.3% 10.4% 76.3% AI Society GPT4 Evaluation 4.0% 23.0% 73.0% Code GPT4 Evaluation 0.0% 24.0% 76.0% 5.2 GPT4 for ChatBot Evaluation In this section, we progressively fine-tune a LLaMA 7B model on our generated datasets. By progressively incorporating diverse datasets like AI society, code, math, and science, we expect fine-tuned model to demonstrate the ability to develop an increasingly sophisticated understanding of these domains. We initially start by training on AI society dataset, which aims to let the model learn about human interactions and societal dynamics. As additional datasets were introduced, such as code, the model gained knowledge of programming logic and syntax, enabling it to generate coherent and executable code snippets. The inclusion of the math dataset further expanded the model’s capabilities, allowing it to solve complex equations, reason about abstract concepts, and perform precise calculations. Finally, exposure to the science dataset broadened the model’s understanding of scientific theories, empirical observations, and experimental methods. The emergence of model capabilities is measured by evaluating the quality of the model responses, before and after training on the new domain, on a set of questions of varying difficulties from each domain. More precisely, the model is tested on 20 AI Society related tasks, 20 coding tasks, 20 math tasks and 60 science tasks. Those results are highlighted in Table 2 where we see that each time we add a dataset, the model performs better on the incorporated domain. Note that to measure the quality of the models’ responses, we follow the evaluation from Section T, which involves prompting a GPT4 agent to score and decide which solution is better. It is worth noting that an improvement on other domains is also observed in some cases such as when we train on Code we improve on Science. This is because our Code dataset contains problems that solve tasks in particular domains which include scientific domain. Similarly, training on AI Society improves code as AI Society contains the role of a "programmer" and hence coding related conversations. Finally, note that the draws observed in LLaMA-7B vs AI Society in Math reflects equally bad solutions compared to the draws observed in AI Society + Code + Math vs AI Society + Code + Math + Science where the draws are equally good solutions. This progression from AI society to code to math to science highlights the potential of AI models to acquire a versatile and adaptable knowledge base, paralleling the way humans gain expertise in diverse subjects. Sample tasks are provided in the Appendix. 9

条件:仅限本地原始PDF的 Section 5.1;不同表格与实验不合并

指标:作者先用GPT-4把CAMEL多轮对话整理成最终方案,再与单次回答比较;因此,观察到的是整个对话加总结流程的效果,不能只归因于角色设定。人类评价仅覆盖AI Society,Code由模型评审。论文这一比较没有建立对人类多轮追问的效率优势,也不能用代理宣布结束来代替外部验收。

原文第 9 页 ↗PDF p.9, Section 5.1

以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。

读完,试着回答

论文研究什么问题?

普通聊天由人不断拆任务、追问和纠偏。CAMEL想把其中一部分指导工作交给模型:人指定任务和角色,由一个代理提出下一步指令,另一个代理回答。它研究的是怎样组织自主对话和生成交互数据,而不是训练出一个已经能可靠执行所有任务的模型。

已有方法缺口在哪里?

把长文本生成或评价当成单步任务,会掩盖中间机制及其失效条件。

输入是什么?

人类提出的初步任务,以及用户代理和助手代理各自的角色设定

机制是什么?

输入包含人类的初步任务和角色设定。Task Specifier先把初步想法细化为具体任务,再把任务交给分别扮演用户、助手的代理。AI用户负责逐步提出指令,AI助手负责给出回答;对话记录是这一流程的直接产物。这样做改变了任务分解和提示的来源,不意味着回答已经在真实环境中执行。

输出是什么?

Table 1中,GPT-4对AI Society任务给出的CAMEL胜率是73.0%,对Code任务是76.0%;AI Society的人类评审胜率是76.3%。对手是同一任务的gpt-3.5-turbo单次回答。这里的胜率表示在该答案评审协议下更受偏好,不是任务执行成功率,也不是代码单元测试通过率。

适用边界是什么?

作者先用GPT-4把CAMEL多轮对话整理成最终方案,再与单次回答比较;因此,观察到的是整个对话加总结流程的效果,不能只归因于角色设定。人类评价仅覆盖AI Society,Code由模型评审。论文这一比较没有建立对人类多轮追问的效率优势,也不能用代理宣布结束来代替外部验收。

还有什么未解决?

更换模型、文本分布或评价者后,主要观察是否仍能成立?

技术附录

问题与已有方法

问题设定

普通聊天由人不断拆任务、追问和纠偏。CAMEL想把其中一部分指导工作交给模型:人指定任务和角色,由一个代理提出下一步指令,另一个代理回答。它研究的是怎样组织自主对话和生成交互数据,而不是训练出一个已经能可靠执行所有任务的模型。 把长文本生成或评价当成单步任务,会掩盖中间机制及其失效条件。

方法与组成

核心思路

输入包含人类的初步任务和角色设定。Task Specifier先把初步想法细化为具体任务,再把任务交给分别扮演用户、助手的代理。AI用户负责逐步提出指令,AI助手负责给出回答;对话记录是这一流程的直接产物。这样做改变了任务分解和提示的来源,不意味着回答已经在真实环境中执行。

主要发现

  • 标题

    评审更喜欢哪个答案

    证据

    Table 1中,GPT-4对AI Society任务给出的CAMEL胜率是73.0%,对Code任务是76.0%;AI Society的人类评审胜率是76.3%。对手是同一任务的gpt-3.5-turbo单次回答。这里的胜率表示在该答案评审协议下更受偏好,不是任务执行成功率,也不是代码单元测试通过率。

    限制

    以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。

    原文定位

    PDF p.9, Table 1; Section 5.1

概念定位

是什么

输入包含人类的初步任务和角色设定。Task Specifier先把初步想法细化为具体任务,再把任务交给分别扮演用户、助手的代理。AI用户负责逐步提出指令,AI助手负责给出回答;对话记录是这一流程的直接产物。这样做改变了任务分解和提示的来源,不意味着回答已经在真实环境中执行。

为什么重要

普通聊天由人不断拆任务、追问和纠偏。CAMEL想把其中一部分指导工作交给模型:人指定任务和角色,由一个代理提出下一步指令,另一个代理回答。它研究的是怎样组织自主对话和生成交互数据,而不是训练出一个已经能可靠执行所有任务的模型。

图表导读

  • PDF 页

    9

    标题

    PDF p.9, Table 1; Section 5.1

    解释

    Table 1中,GPT-4对AI Society任务给出的CAMEL胜率是73.0%,对Code任务是76.0%;AI Society的人类评审胜率是76.3%。对手是同一任务的gpt-3.5-turbo单次回答。这里的胜率表示在该答案评审协议下更受偏好,不是任务执行成功率,也不是代码单元测试通过率。

核心概念

  • 名称

    从模糊想法到交互任务

    解释

    输入包含人类的初步任务和角色设定。Task Specifier先把初步想法细化为具体任务,再把任务交给分别扮演用户、助手的代理。AI用户负责逐步提出指令,AI助手负责给出回答;对话记录是这一流程的直接产物。这样做改变了任务分解和提示的来源,不意味着回答已经在真实环境中执行。

    原文定位

    PDF p.4, Section 3.1

    证据来源

    paper_supported

  • 名称

    提示协议不是硬性正确性保证

    解释

    Inception Prompting为双方提供角色、任务和交互规则,目的是减少角色互换、助手反问和无效往返等问题。理解这一步的关键是:它依然是写给语言模型的提示,不是能证明任务正确完成的程序约束。不能把提出缓解机制写成这些失效方式已被彻底解决。

    原文定位

    PDF p.5, Section 3.2

    证据来源

    paper_supported

章节阅读

  • 页码

    1

    作用

    problem

    关键问题

    为什么让模型扮演提问者

    状态

    read

  • 页码

    4

    作用

    method

    关键问题

    从模糊想法到交互任务

    状态

    read

  • 页码

    5

    作用

    method

    关键问题

    提示协议不是硬性正确性保证

    状态

    read

  • 页码

    9

    作用

    method

    关键问题

    实验怎样检验这个方法

    状态

    read

  • 页码

    9

    作用

    result

    关键问题

    评审更喜欢哪个答案

    状态

    read

  • 页码

    9

    作用

    limitation

    关键问题

    总结器和评价范围限制结论

    状态

    read

批判性阅读

最低充分结论

作者先用GPT-4把CAMEL多轮对话整理成最终方案,再与单次回答比较;因此,观察到的是整个对话加总结流程的效果,不能只归因于角色设定。人类评价仅覆盖AI Society,Code由模型评审。论文这一比较没有建立对人类多轮追问的效率优势,也不能用代理宣布结束来代替外部验收。

继续阅读

相关论文

同一研究空间