Files
nexus/wiki/concepts/共识投票-Consensus.md
2026-04-18 12:03:16 +08:00

39 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "共识投票 (Consensus)"
type: concept
tags: [agent-architecture, multi-agent, reliability]
sources: [raw/AI/Multi-Agent System Reliability.md]
last_updated: 2026-04-18
---
## Definition
共识投票是一种多智能体架构模式,通过多个模型独立处理同一任务,然后通过多数票机制选择最常见的答案,从而抵消单个模型的随机噪声和错误。
## How It Works
### 1. Spawn N LLMs
生成 N 个 LLM 实例。N 需要通过尝试和错误在成本与可靠性之间找到平衡。
### 2. Fan Out Work
将完全相同的任务分配给所有模型。
### 3. Fan In Results
选择最常见的答案作为最终输出。
## Mathematical Basis
如果一个模型有 20% 的概率出现幻觉,那么 3 个模型出现完全相同的谎言的概率仅为 0.8%0.2³ = 0.008)。
## Nuances
- 理想情况下应使用不同模型,以降低思维同质化风险
- 确保参与者之间无反馈回路,否则群体思维和从众效应会扭曲结果
- 实验应像盲测一样进行
- 成本较高,本质上是将同一任务交给多个代理
## Best For
事实核查和分类任务(例如"这是垃圾邮件吗?"
## Related Concepts
- [[多智能体系统可靠性]]
- [[复合 SLO]]
- [[群体思维]]
- [[从众效应]]