Files
nexus/wiki/concepts/Consensus-Voting-Pattern.md

38 lines
1.2 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 Voting Pattern"
type: concept
tags: []
sources: []
last_updated: 2026-04-25
---
# Consensus Voting Pattern
## 定义
多智能体系统的共识投票模式——将同一任务分配给N个LLM选取出现次数最多的答案作为最终结果。
## 核心公式
若单个模型幻觉概率为 P则N个模型同时幻觉相同谎言的概率为 P^N。
- 示例P=0.220%幻觉率N=3 → 0.2³ = 0.0080.8%
## 核心机制
1. **Spawn N LLMs**N需要通过试验找到成本与可靠性的平衡点
2. **Fan out work**给所有Agent完全相同的任务
3. **Fan in results**:选取最常见的答案
## 关键要求
- Agent之间**无反馈回路**否则群体思维Groupthink和从众效应会扭曲结果
- 理想情况下各Agent使用不同模型降低思维同质化风险
- 实验应像盲测一样进行
## 适用场景
- 事实核查Fact-checking
- 分类任务(如"这是垃圾邮件吗?"
## 缺点
成本高——本质上是将同一任务分配给多个AgentROI需根据任务和失败成本计算。
## 来源
- [[multi-agent-system-reliability]]
- [[Composite SLO]](概率公式类比)