Multi-Agent Trading Systems: Engineering Pitfalls and Practical Limits

    This article examines why multi-agent architectures built on large language models often fail when moved from research demos into live trading. It breaks down the typical four-role, one-way pipeline, outlines the scheduling, risk-filtering, and execution layers required for production, and summarizes four structural problems observed in a month of live testing: weak predictive power, debate-driven noise amplification, uncontrollable latency, and inverted cost-to-return. It concludes with suitable use cases, an engineering optimization checklist, and a clear distinction between generating plausible narratives and making accurate predictions.

    1. Background: Why Multi-Role Collaboration Entered Trading Systems

    Connecting large language models (LLMs) to investment research workflows has become a popular direction over the past two years. One typical approach is the multi-agent architecture: split the functions of an investment research team into several roles, let multiple agents handle information collection and analysis across different dimensions, and then produce trading signals through a chain of aggregation, debate, decision-making, and risk control. These open-source frameworks usually organize information flow as a directed acyclic graph (DAG), with data passed in one direction. The structure is clear and easy to extend, so developers quickly adopted it for experiments.

    The core conclusion from this practice is not complicated, but it is worth repeating: these frameworks excel at generating a decision narrative that looks reasonable, but they are nearly useless at predicting short-term prices. The rest of this article abstracts the lessons from this experience into a reusable engineering analysis framework.

    2. Architecture Breakdown: Four Role Types and One-Way Information Flow

    A typical multi-agent trading framework contains four role types:

    • Analyst agents: responsible for fundamental, technical, sentiment, and news research respectively, each producing a report for its own dimension;
    • Researcher agents: aggregate the multiple reports, argue the long and short cases, and give a directional recommendation;
    • Trader agent: converts the recommendation into a concrete instruction (direction, quantity, confidence);
    • Risk control agent: reviews whether the instruction crosses any limits and outputs either approval or rejection.

    Information flows one way along “analysis → research → trading → risk control”, forming a directed acyclic graph. The advantage of this design is clear separation of responsibilities and pluggability. The drawback is equally obvious: noise from upstream is amplified level by level downstream, and no stage in the chain is responsible for the validity of the prediction itself.

    The typical way to invoke such a pipeline is usually minimal:

    1. # Pseudocode: illustrates the call shape only, not any specific product API
    2. signal = run_pipeline(symbol="600XXX", trade_date="2024-01-02")
    3. # signal -> {"action": "BUY", "quantity": 200, "confidence": 0.58}

    Three lines of code return an “action + quantity + confidence”, and this low barrier is exactly why it is easily misused in live trading.

    3. Three Layers Required for Live Deployment

    What the open-source framework delivers is “decision generation”, not a “tradeable system”. To connect real capital, at least three layers must be added:

    1. Scheduling layer: scheduled triggering, task orchestration, failure retries, and idempotency control (can be implemented with a general-purpose task scheduling component);
    2. Risk filtering layer: insert hard rules between agent output and order placement, for example, reject directly when confidence is below 0.6, and force a position reduction when a single stock’s position exceeds 15%;
    3. Execution layer: connect to the order channel of a broker or exchange, and handle rejected orders, partial fills, cancellations, and fill report synchronization.

    Example:

    1. def gate(signal, portfolio):
    2. if signal.confidence < 0.60:
    3. return None
    4. if portfolio.position_ratio(signal.symbol) > 0.15:
    5. signal.quantity = portfolio.max_allowed(signal.symbol)
    6. return signal

    4. Four Core Problems Exposed in Live Testing

    In about a month of live observation (several hundred signals, roughly three-quarters actually executed), four structural problems emerged:

    • Lack of predictive power: LLMs have no stable ability to predict short-term price direction, and both win rate and profit-loss ratio were unsatisfactory (observed win rate around 40%, profit-loss ratio below 1). The essence is “narrative fitting” rather than “signal discovery”;
    • Debate amplifies noise: multiple rounds of long-short debate keep making the model search for reasons to support the existing narrative, so views become more confident but less stable;
    • Uncontrollable latency: a single pipeline run takes on the order of tens of seconds, by which time the market has already moved, eating away the timeliness of the signal;
    • Inverted cost and return: invocation costs accumulated to the level of hundreds of dollars, corresponding to negative returns, with very high cost per unit of information.

    5. Applicability Boundaries: A Research Assistant, Not a Trading Engine

    Based on the characteristics above, there are three reasonable positioning options:

    • Research assistance: generate candidate asset pools, draft research outlines, and summarize key points from financial reports and news;
    • Low-frequency strategies: holding periods measured in weeks, reducing sensitivity to timeliness;
    • Combined with traditional factors: allow order placement only when the model’s direction agrees with mature factors such as momentum, using “dual confirmation” to filter out isolated narratives.

    6. Engineering Optimization Checklist

    • Set timeout protection and a fallback path across the entire pipeline; abandon the current signal on timeout;
    • Raise the confidence threshold to above 0.65; better to trade less than to trade carelessly;
    • Keep debate rounds to no more than 2 to suppress noise amplification;
    • Strictly prohibit high-frequency triggering, with a daily or weekly cycle as the minimum decision interval;
    • Establish a cost budget and circuit breaker: stop when the daily invocation cost exceeds the budget;
    • Persist all signals and fills to a database for attribution; general-purpose cloud logging services, monitoring and alerting, and object storage can be used for record-keeping and review.

    7. Core Value and Risk Awareness

    The real value of this architecture lies in using role checks and balances to simulate a team collaboration process, making the decision process explainable and auditable. But one must be clear-headed: what it outputs is a “reasonable narrative”, not a “precise prediction”. Treating a narrative as a prediction is the root cause of most failures. If a team wants to build such a system on a cloud platform such as Baidu AI Cloud, the recommendation is to position it as an auxiliary layer for research and risk control, leave prediction to quantitative factors that have been rigorously backtested, and leave execution to mature trading channels. That is the sound engineering trade-off.