Evaluating AI Trading Agents: Why Return Rate Is Not Enough

    This article explains why return rate alone is a misleading metric for evaluating trading AI agents. It introduces the Outcome-Capability Gap, shows how process violations and ranking instability are hidden by similar returns, and proposes a four-layer evaluation framework covering tasks, process, constraints, and results. It also defines capability-oriented process metrics and practical engineering recommendations for building reproducible, auditable agent evaluations.

    1. The Starting Problem: Same Returns, Different Agent Capabilities

    In trading agent evaluation, the return rate is often treated as the only conclusion that matters. It is intuitive and easy to compare, but it compresses a long pipeline of perception, reasoning, tool calls, risk control, and execution feedback into a single scalar.

    A representative case from the original material shows the issue clearly. Two models reached final returns of about 5.765% and 5.738% over a 30-day period, nearly identical. However, one model had a hard-rule pass rate of 0.877, while the other scored only 0.682. If you look only at returns, the two are hard to separate. If you look at the execution process, one agent consistently followed the rules, while the other repeatedly crossed boundaries without triggering severe consequences.

    This is the Outcome-Capability Gap that the evaluation field must confront: final return is the combined product of market movement, strategy behavior, and execution constraints. It cannot prove what capabilities an agent possesses on its own. Similar returns may come from accurate judgment, or from rule violations concealed by randomness. By analogy with driving evaluation, zero accidents does not mean safe driving; running a red light without a collision is still unacceptable driving behavior.

    2. Why a Single Return Metric Becomes Distorted

    2.1 Returns Are Lagging, High-Variance Outcome Variables

    Trading results are heavily affected by market volatility, and randomness is strong over short periods. An agent may amplify returns because of an extreme market move, or may avoid losses by luck due to loose rule enforcement. Treating a high-variance outcome as a capability label causes evaluation conclusions to drift with the sample period.

    2.2 Process Violations Are Masked by Outcomes

    If evaluation records only the net asset curve and not pre-order validation, position constraints, risk-control blocks, or the legality of tool-call parameters, violations are hidden by the fact that “nothing went wrong.” Engineering must distinguish “correct outcome” from “compliant process”; otherwise, the source of failure cannot be located.

    2.3 Unstable Rankings Break Reproducibility

    The original material notes that in the 30-day evaluation, ranking by daily cumulative return produced rank reversals of 21, 19, 19, and 29 times across different tool-use scenarios. After switching to capability-oriented process metrics, reversals dropped to 0, 5, 8, and 2 times. This shows that the sharp swings in return-based rankings do not reflect capability differences but look more like noise. For R&D teams, an evaluation that cannot be reproduced cannot support iteration decisions.

    3. Rebuilding the Evaluation Framework: From a Single Outcome Point to Layered Process

    It is recommended to split agent evaluation into four layers: task layer, process layer, constraint layer, and result layer. The result layer keeps returns, but only as a reference. The layers actually used to compare capability are the process layer and the constraint layer.

    3.1 Task Layer: Define Verifiable Goals

    Evaluation tasks should specify the initial state, available tools, data time window, risk budget, and termination conditions. Every task needs a decidable success criterion, for example, “complete rebalancing within the risk budget with all orders passing pre-checks.”

    3.2 Process Layer: Record Observable Behavior

    You need to fully record the agent’s reasoning summary, tool-call sequence, parameters, return values, retry counts, memory reads and writes, and multi-agent messages. An example structure is shown below:

    1. {
    2. "step_id": 17,
    3. "thought_summary": "Detected volatility spike, reducing position",
    4. "tool_calls": [
    5. {"tool": "market_data", "params": {"window": "5m"}, "status": "ok"},
    6. {"tool": "risk_check", "params": {"max_position": 0.2}, "status": "blocked"}
    7. ],
    8. "memory_ops": {"read": 2, "write": 1},
    9. "rule_flags": ["position_limit"]
    10. }

    3.3 Constraint Layer: Hard-Rule Pass Rate

    Write compliance requirements as machine-checkable rules, such as position limits, per-order size limits, prohibited trading lists, and mandatory risk pre-checks. The rule pass rate should be counted per step, not judged only by whether the final result is a loss. The gap between 0.877 and 0.682 in the original case is exactly the information the constraint layer can reveal but the result layer cannot.

    3.4 Result Layer: Returns as a Supporting Metric Only

    Metrics such as returns, drawdown, and turnover should still be retained, but they should be annotated with confidence intervals and period sensitivity. When reporting conclusions, process metrics must be shown at the same time to avoid the misjudgment that “similar returns mean similar capability.”

    4. Designing Capability-Oriented Process Metrics

    4.1 Tool-Call Quality Score

    Evaluate whether tool selection is appropriate, whether parameters are valid, and whether failure handling is reasonable. It can be computed as “correct calls / total calls” with penalty terms added, such as invalid retries, out-of-scope parameters, and ignored error codes.

    4.2 Memory-Usage Quality Score

    Examine whether the agent read relevant historical constraints, whether it wrote reusable experience, and whether it avoided stale information polluting decisions. This can be characterized jointly by “relevant memory hit rate” and “incorrect memory reference rate.”

    4.3 Rule-Following Stability

    Look not only at the pass rate but also at whether violations concentrate in high-risk steps. If a violation occurs in the pre-order risk-control stage, it should be penalized more strictly than in a low-risk query stage.

    4.4 Multi-Agent Collaboration Consistency

    Measure message traceability, clarity of responsibility boundaries, and conflict-resolution efficiency. Collaboration scenarios had the most rank reversals, showing that returns cannot reflect collaboration quality and that process consistency metrics must be introduced.

    5. Engineering Implementation Recommendations

    1. Build full-chain tracing: assign a trace_id to each evaluation run and link reasoning, tools, memory, and rule checks.
    2. Move rules to the front: make hard constraints an independent validation service that the agent cannot bypass.
    3. Layered reports: show process metrics by default and collapse return metrics into a reference item.
    4. Fix evaluation seeds and data slices: reduce the interference of market randomness on conclusions.
    5. Counterfactual replay: replay violating trades with “what would happen if blocked” to quantify the role of luck.

    6. Conclusion

    The core of trading agent evaluation is not finding out who earned more, but judging who can complete tasks under reproducible, constrainable, and explainable conditions. Similar returns may hide a 20-percentage-point gap in rule pass rate; sharp rank reversals expose the instability of outcome metrics. Shifting the evaluation focus from a single outcome to layered process and constraint validation is what makes agent capability assessment truly serve R&D iteration and risk control.