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:24mlight A Share investment Agent Adversarial Debate Mechanism

From Leeroopedia
Knowledge Sources
Domains AI_Agents, Decision_Making, Finance
Last Updated 2026-10-10 14:00 GMT

Overview

An adversarial reasoning mechanism where bull and bear agents construct opposing investment theses from the same analyst signals, and an LLM acts as a third-party evaluator to resolve the debate with a mixed quantitative-LLM confidence score.

Description

The adversarial debate mechanism addresses the problem of confirmation bias in investment analysis by forcing the construction of opposing viewpoints from the same underlying data. It consists of three phases:

  1. Thesis Construction: Two agents (bull and bear) independently analyze the same set of analyst signals (technical, fundamental, sentiment, valuation). Each agent extracts supporting evidence for its assigned perspective and generates counter-narratives for signals that oppose its thesis. Confidence is averaged across the four signal sources.
  1. LLM Third-Party Evaluation: An LLM receives both perspectives formatted as structured text blocks and independently evaluates the strength of each side's arguments, returning a score from -1 to 1 and reasoning text.
  1. Mixed Confidence Calculation: The final signal is computed as a weighted combination of the quantitative confidence difference (bull confidence minus bear confidence, weighted 70%) and the LLM evaluation score (weighted 30%). This hybrid approach balances data-driven and reasoning-driven assessment.

Usage

Use this principle when:

  • Reducing confirmation bias in investment decisions by requiring opposing viewpoints
  • Combining quantitative confidence scoring with LLM-based qualitative assessment
  • Building multi-agent systems where adversarial reasoning improves decision quality

Theoretical Basis

Mixed Confidence Formula:

Δmixed=0.7⋅(Cbull−Cbear)+0.3⋅SLLM

Where:

  • Cbull = average bullish confidence across analyst signals (0 to 1)
  • Cbear = average bearish confidence across analyst signals (0 to 1)
  • SLLM = LLM evaluation score (-1 to 1)

Signal thresholds:

  • |Δmixed|<0.1 → neutral
  • Δmixed>0 → bullish
  • Δmixed<0 → bearish

Counter-narrative generation: When an analyst signal does not support the agent's perspective, the agent generates an optimistic/pessimistic reframe (e.g., "oversold creates buying opportunity" for bull, "recent rally may be technical correction" for bear) and assigns a baseline confidence of 0.3.

Related Pages

Implemented By

Page Connections

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