Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:ANative Lab EvoAgentX Multi Agent Debate

From Leeroopedia
Knowledge Sources
Domains Debate, Agents, NLP
Last Updated 2026-10-21 00:00 GMT

Overview

Technique for improving answer quality through structured debate where multiple LLM agents argue over rounds and converge on a final answer via judge or self-consistency.

Description

Multi-Agent Debate is a framework where multiple LLM agents (debaters) with distinct personas independently generate arguments for a problem, then iteratively refine their arguments by viewing previous rounds' transcripts. After a fixed number of rounds, a consensus is reached either via an LLM judge (which evaluates all arguments and selects a winner) or self-consistency voting (which ensembles final answers). Optional TF-IDF-based pruning filters low-quality candidates before consensus.

Usage

Use this principle when answer quality benefits from multiple perspectives and adversarial refinement:

  • Complex reasoning: Math, logic, or multi-step problems where a single agent may err
  • Factual accuracy: Questions where cross-checking across agents improves correctness
  • Configurable depth: Adjust `num_agents` and `num_rounds` based on problem complexity
  • Group mode: Replace individual debaters with workflow graphs for more complex reasoning per agent

Theoretical Basis

The debate follows a round-robin with transcript sharing:

# Abstract algorithm (not real implementation)
agents = [create_agent(persona) for persona in personas]
transcript = []
for round in range(num_rounds):
    for agent in agents:
        visible = filter_transcript(transcript, round, mode="prev")
        argument = agent.generate(problem, visible, persona)
        transcript.append(argument)
if judge_mode == "llm_judge":
    result = judge.evaluate(problem, transcript)
elif judge_mode == "self_consistency":
    result = vote([agent.final_answer for agent in agents])

Key properties:

  • Persona diversity: Each debater has a distinct persona for perspective diversity
  • Transcript modes: "prev" (see n-1 rounds) or "all" (see all previous rounds)
  • Judge modes: LLM judge (structured rationale + winner) or self-consistency voting
  • Pruning: TF-IDF quality + diversity pruning to filter candidates
  • Group graphs: Replace agents with workflow graphs for complex per-position reasoning

Related Pages

Implemented By

Uses Heuristic

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment