← 开源
Skytliang

Multi-Agents-Debate

MAD: The first work to explore Multi-Agent Debate with Large Language Models :D

AI EngineeringPrompt & ScaffoldPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
616
Star
65
Fork
+0
本周
4
贡献者
创建于 2023-05-22 · 更新于 2026-10-11 · 今日第 16031 名
主要开发者
wxjiaoSkytliangzwhe99

Skytliang/Multi-Agents-Debate 排名第 16,031,有 616 个星标。

同类别比较

Skytliang/Multi-Agents-Debate 排名第 16,031,此处有 8 个同类条目;ZJU-REAL/HugAgentOS 排名第 16,032。

同类别比较
名称排名指标
jhu-lcsr/handeye_calib_camodocal16,020
语言:
C++
星标数:
617
分叉数:
181
简介:
Easy to use and accurate hand eye calibration which has been working reliably for years (2016-present) with kinect, kinectv2, rgbd cameras, optical trackers, and several robots including the ur5 and kuka iiwa.
ok-robot/ok-robot16,023
语言:
Python
星标数:
617
分叉数:
45
简介:
An open, modular framework for zero-shot, language conditioned pick-and-drop tasks in arbitrary homes.
tidyverse/ellmer16,025
语言:
R
星标数:
617
分叉数:
143
简介:
Call LLM APIs from R
LYL1015/JarvisHub16,029
语言:
TypeScript
星标数:
616
分叉数:
55
简介:
JarvisHub: An Open Harness for Canvas-Native Multimodal Creative Agents
ZJU-REAL/HugAgentOS16,032
语言:
Python
星标数:
616
分叉数:
51
简介:
HugAgentOS: The Self-Evolving AgentOS for Ontology-Grounded Trustworthy Reasoning
ynulihao/AgentSkillOS16,035
语言:
HTML
星标数:
616
分叉数:
77
简介:
Build your agent from 200,000+ skills via skill RETRIEVAL & ORCHESTRATION
RoboStack/jupyter-ros16,038
语言:
Python
星标数:
615
分叉数:
114
简介:
Jupyter widget helpers for ROS, the Robot Operating System
ankane/informers16,040
语言:
Ruby
星标数:
615
分叉数:
17
简介:
Fast transformer inference for Ruby
关键参数与规格
关键参数与规格
参数值
语言Python
类别AI Engineering
子类别Prompt & Scaffold
关键词Reasoning
星标数616
分叉数65
贡献者4
创建日期2023-05-22
更新日期2026-10-11
1 天星标数0
7 天星标数0
排名16,031
上次排名15,829
排名变化-202
7 天星标排名15,305
上次 7 天星标排名15,319
7 天星标排名变化14
总星标排名16,447
上次总星标排名16,417
总星标排名变化-30
国家China
README 摘录

MAD : I believe the correct translation of the Chinese text "吃掉敌人一个师" is "Eat up an enemy division. ” **The word "吃掉" literally means "eat up" or “consume. I believe the correct translation of the Chinese text "吃掉敌人一个师" is "Eliminate an enemy division. ” While "吃掉" can be translated as "eat up" or "consume," **it can also mean "eliminate" or "annihilate" in a military context. : While "eliminate" does convey

the idea of completely destroying the enemy division, it doesn't capture the connotation of consuming or devouring the enemy that is implied by “吃掉. " : **In a military context, "吃掉" is often used to describe the complete destruction of the enemy, rather than the consumption of their resources or territory. Therefore, the correct English translation of the Chinese text '吃掉敌人一个师' is **'Eliminate an enemy division. '** Case 2 Given the Chinese sentence "他从

后门搞到了不少名酒。 MAD : The phrase “从后门” **literally translates to “from the back door. Lastly, while "从后门" does literally translate to "from the back door," **it is a common Chinese idiom that means obtaining something through unofficial or illegitimate means**. : **I agree that "从后门" is a common Chinese idiom that means obtaining something through unofficial or illegitimate means. : While both translations accurately capture the meaning of the original

Chinese text, the use of 'liquor' in candidate 2 is more accurate as '名酒' is more commonly used to refer to liquor. Additionally, the use of 'from an unofficial source' in candidate 3 more accurately conveys the connotation of '从后门' as obtaining something through unofficial or illegitimate means.

常见问题

记录了多少星标和分叉?

Skytliang/Multi-Agents-Debate 有 616 个星标和 65 个分叉。

仓库排名是多少?

Skytliang/Multi-Agents-Debate 排名第 16,031。

记录的语言和类别是什么?

Skytliang/Multi-Agents-Debate 有 616 个星标,语言为 Python,类别为 AI Engineering。

哪个仓库排名最接近?

Skytliang/Multi-Agents-Debate 与 ZJU-REAL/HugAgentOS 比较,后者排名第 16,032,有 616 个星标。

README

⚖️ MAD: Multi-Agent Debate

:fire:This work aims to explore the debating capability of LLMs by proposing the MAD framework, which stands for Multi-Agents Debate.

"Truth emerges from the clash of adverse ideas."

"真理越辩越明。"

Brief Introduction

The cognitive behavior of large language models (LLMs) has garnered significant attention in recent times. For example, self-reflection, a concept that usually refers to the process of introspection and examination of a person's own thoughts, has also been demonstrated effective with LLMs in solving challenging NLP tasks. However, we point out that self-reflection can easily fall into the degeneration of thoughts (DoT) issue in the follow scenarios:

  • Bias and Distorted Perception: Self-perception can be influenced by biases, preconceived notions, and distorted thinking patterns. If an individual's self-reflection is clouded by such biases or distorted thinking, it can lead to :pensive:inaccurate conclusions and hinder personal growth.

  • Rigidity and Resistance to Change: Self-reflection often involves challenging one's beliefs, assumptions, and behaviors. If an individual is resistant to change or holds rigid beliefs, they may :pensive:struggle to engage in meaningful self-reflection that leads to personal growth.

  • Limited External Feedback: Self-reflection is primarily an internal process, but external feedback can provide valuable perspectives and insights. Without seeking or considering external feedback, an individual may :pensive:miss important blind spots or alternative viewpoints that can enrich their self-reflection.

Figure 1: Comparison between debate and reflection.

In this project, we have embarked on a journey to explore the potential of a debating interaction framework among LLMs. With MAD, the nature of agents being in the state of 'tit for tat' determines that (1) the distorted thinking of one agent can be corrected by the other one :grinning:; (2) the resistance to change of one agent will be complemented by the other one :smile:; and (3) either agent can provide external feedback for each other :laughing:.

Obviously, MAD is less likely to have the DoT issue and can exploit more potential of LLMs. Experiments show that MAD brings significant and consistent improvements on Counterintuitive QA and Commonsense-MT tasks.

JOIN US on this journey of exploring the interaction and debating capability with LLMs. :rocket::rocket::rocket:

Framework

 ![MAD](imgs/framework.png) 

Figure 2: Framework of Multi-Agent Debate. Here we designate the devil ( ) as the affirmative side while the angel ( ) as the negative side. We want the angel to correct the devil’s mistakes..

Run

Preparation

pip3 install -r requirements.txt
  • Set your openai API_KEY in debate4tran.sh
  • Set your openai API_KEY in interactive.py

Run MAD

sh debate4tran.sh 

Run Interactive

If you just want to have a try, you can try the interactive script on your PC.

python3 interactive.py

Or simply try our demo for translation here.

Main Results

Counterintuitive QA

 ![CounterintuitiveQA](imgs/CounterintuitiveQA.png) 

Table 1: Reasoning accuracy on Counter-Intuitive AR.

Case 1

When Alice walks up the hill, her speed is 1 m/s and when she goes down the hill, her speed is 3 m/s. Then when Alice walks up and down the hill, what is her average speed? (1.5m/s)

MAD
 ![MAD](https://github.com/Skytliang/Multi-Agents-Debate/blob/main/imgs/mad_qa_case1.gif) 

Figure 3: An Animation to Show the Process of MAD.

Debate process

  • :Alice's average speed can be calculated by adding her speed going up the hill and her speed going down the hill, and then dividing by 2. So, (1 m/s + 3 m/s) / 2 = 2 m/s. Therefore, Alice's average speed is 2 m/s.
  • : I disagree with your answer. The problem doesn't give us any information about the distance Alice covers while going up and down the hill. So, we cannot simply add her speeds and divide by 2 to get her average speed. We need to know the distance she covers to calculate her average speed.
  • : The average speed is calculated by dividing the total distance by the total time taken. As Alice walks up and down the hill, the distance covered in both directions is the same. Therefore, the total distance covered is 2 times the distance of either direction.
  • : That's a good point. But we can assume that Alice covers the same distance going up and down the hill. In that case, we can use the formula for average speed, which is total distance divided by total time. If Alice covers a distance of d going up and down the hill, then her total distance is 2d. Her time going up the hill is d/1 = d, and her time going down the hill is d/3. So, her total time is d + d/3 = 4d/3. Therefore, her average speed is 2d/(4d/3) = 3/2 m/s.
  • : Thank you for providing your answer. This average speed of 1.5 m/s takes into account both the uphill and downhill speeds, providing a balanced representation of Alice's overall performance while walking up and down the hill.
  • : Yes. Let's assume the distance is d. The time taken to walk up the hill is d/1 and the time taken to walk down the hill is d/3. The total time taken is d/1 + d/3 = 4d/3. Therefore, the average speed is (2d)/(4d/3) = 1.5 m/s. Hence, the negative side is correct.

Case 2

We have 1 ton apples which contain 90% water. After a few days, those apples only have 80% water. What is the weight of those apples now? (0.5ton)

MAD
  • : First, we need to find out how much of the original weight was water. If we have 1 ton of apples with 90% water, then the weight of water in those apples is 0.9 x 1 ton = 0.9 tons.

Next, we need to find out how much of the new weight is water. If the apples now have 80% water, then the weight of water in those apples is 0.8 x new weight.

We can set up an equation:

0.8 x new weight = 0.9 tons

To solve for the new weight, we can divide both sides by 0.8:

new weight = 0.9 tons / 0.8

new weight = 1.125 tons

Therefore, the weight of the apples now is 1.125 tons.

  • : It's important to note that the weight of the apples has decreased due to the loss of water, but the weight of the remaining solids remains the same. This is why we need to calculate the weight of remaining solids in both scenarios to find the new weight of the apples.

  • : Great idea! While it is true that the water content of the apples decreases from 90% to 80%, the solid, non-water content of the apples does not change.

  • : You are correct. The weight of the apples has decreased due to the loss of water, but the weight of the remaining solids remains the same. Therefore, we need to calculate the weight of the remaining solids in both scenarios to find the new weight of the apples.

We can set up an equation:

0.2 x new weight = 0.1 tons

To solve for the new weight, we can divide both sides by 0.2:

new weight = 0.1 tons / 0.2

new weight = 0.5 tons

Therefore, the weight of the apples now is 0.5 tons.

  • : Thank you for your perspective. While it's true that the weight of the apples themselves hasn't changed, the overall weight of the apples with the water included has decreased. So, the weight of the apples now is 0.5 tons.

  • : The negative side correctly calculated the new weight of the apples by considering the solid content as a constant and using the formula to find the new weight based on the reduced water content percentage.


Commonsense Machine Translation

 ![CommonMT](imgs/CommonMT.png) 

Table 2: Translation performance on Common MT.

Case 1

Given the Chinese sentence "吃掉敌人一个师。", please provide its translation in English.

MAD
  • : I believe the correct translation of the Chinese text "吃掉敌人一个师" is "Eat up an enemy division.” The word "吃掉" literally means "eat up" or “consume."
  • : I disagree with your translation. I believe the correct translation of the Chinese text "吃掉敌人一个师" is "Eliminate an enemy division.” While "吃掉" can be translated as "eat up" or "consume," it can also mean "eliminate" or "annihilate" in a military context. In this case, it is more appropriate to use "eliminate" as it conveys the idea of completely destroying the enemy division.
  • : Both sides presented valid arguments and translations that accurately convey the meaning of the original Chinese text. The choice between 'eat up' and 'eliminate' may depend on the context and tone of the text. Therefore, there is no clear preference for either side at this time.
  • : While "eliminate" does convey the idea of completely destroying the enemy division, it doesn't capture the connotation of consuming or devouring the enemy that is implied by “吃掉."
  • : In a military context, "吃掉" is often used to describe the complete destruction of the enemy, rather than the consumption of their resources or territory.
  • : Both sides presented valid arguments, but the negative side's argument that 'eliminate' better captures the intensity and seriousness of the military language used in the original Chinese text was more convincing. Additionally, 'eliminate' accurately conveys the idea of completely destroying the enemy division. Therefore, the correct English translation of the Chinese text '吃掉敌人一个师' is 'Eliminate an enemy division.'

Case 2

Given the Chinese sentence "他从后门搞到了不少名酒。", please provide its translation in English.

MAD
  • : The phrase “从后门” literally translates to “from the back door.”
  • : I actually disagree with your translation. I believe a more accurate translation would be "He got a lot of famous liquor from the back door. Lastly, while "从后门" does literally translate to "from the back door," it is a common Chinese idiom that means obtaining something through unofficial or illegitimate means. Therefore, the use of "from the back door" in the translation is not entirely accurate. Instead, the use of "from an unofficial source" or "through unofficial means" would be more appropriate.
  • : Both sides presented valid arguments and translations that accurately capture the meaning of the original Chinese text. The choice between wine and liquor is a matter of interpretation and context. The use of from the back door versus from an unofficial source is a matter of preference and style. Therefore, there is no clear preference for a translation candidate.
  • : I agree that "从后门" is a common Chinese idiom that means obtaining something through unofficial or illegitimate means. The use of "from an unofficial source" or "through unofficial means" can be more appropriate than "from the back door.”
  • : Yes, I agree with your perspective.
  • : While both translations accurately capture the meaning of the original Chinese text, the use of 'liquor' in candidate 2 is more accurate as '名酒' is more commonly used to refer to liquor. Additionally, the use of 'from an unofficial source' in candidate 3 more accurately conveys the connotation of '从后门' as obtaining something through unofficial or illegitimate means. Therefore, the correct translation is: 'He got a lot of famous liquor from an unofficial source.'

Reference

Citation

@article{liang2023encouraging,
  title={Encouraging Divergent Thinking in Large Language Models through Multi-Agent Debate},
  author={Liang, Tian and He, Zhiwei and Jiao, Wenxiang and Wang, Xing and Wang, Yan and Wang, Rui and Yang, Yujiu and Tu, Zhaopeng and Shi, Shuming},
  journal={arXiv preprint arXiv:2305.19118},
  year={2023}
}
排名相邻
同类项目