Evaluating AI Agents: Why Return Rate Is Not Enough
When evaluating LLM-based agents in financial trading environments, return rate is the most commonly cited metric, yet two nearly identical returns can hide very different decision quality. This article explains the outcome-capability gap, why single-metric evaluation distorts results, and how process-oriented scoring across rule compliance, tool-call quality, memory usage, multi-agent collaboration, and traceability produces far more stable rankings. It includes a practical layered scoring design, sample code, and common pitfalls to avoid.
Evaluating AI Agents: Why Return Rate Is Not Enough
1. Where the Problem Starts: Two Almost Identical Return Numbers
When you place LLM-based agents in a financial trading environment for evaluation, the metric most likely to be treated as the conclusion is the return rate. It is intuitive, comparable, and seemingly objective: whoever earns more is stronger. But when two agents record returns of 5.738% and 5.765%, a sharper question emerges—behind these nearly overlapping numbers, are the decision paths equally reliable?
The answer from the original material is no. One agent had a hard-rule pass rate of 0.877, while the other managed only 0.682, a gap of nearly 20 percentage points. In other words, the returns were close, but one was achieved under strict rule compliance, while the other repeatedly crossed preset boundaries and simply happened to avoid heavy penalties because the market did not punish the violations.
This is the outcome-capability gap that the evaluation field needs to confront: final profit and loss is a result coupled from both market volatility and agent behavior, and it is not sufficient on its own to infer what capabilities an agent possesses.
2. Why a Single Return Rate Is an “Information Compressor”
The problem with the return rate is not that it is wrong, but that it compresses a complex, multi-turn, multi-constraint, multi-tool interaction process into a single scalar. Compression inevitably loses information, and the part that gets lost is often exactly what matters for judging capability.
An analogy helps: you cannot evaluate a driver only by “whether there were accidents.” Some drivers run ten red lights without being hit; their record shows zero accidents, but that does not prove they are skilled. What you actually need to observe is whether they slow down in advance, whether they check the intersection, and whether they follow right-of-way rules. Financial agents work the same way: a lucky profitable violation and a compliant decision based on sufficient evidence may be completely equivalent in terms of return rate.
From an engineering perspective, single-metric evaluation introduces at least three types of distortion:
- Randomness misread as capability: market paths are extremely noisy, and over short periods the variance in returns is large enough to drown out strategy differences.
- Violations masked by outcomes: behaviors such as breaching position limits, placing orders beyond authorization, or skipping risk-control checks will not show up in profit and loss as long as they do not trigger extreme market conditions.
- Non-reproducibility: rerunning the same strategy over a different time window can reverse the conclusion, leaving the evaluation with no reference value.
3. Ranking Reversals: Stability Matters More Than Rank
The original material provides a persuasive set of observations: over an evaluation period of roughly thirty days, if agents are ranked only by daily cumulative return, the ranking reversed 21 times across different tool-use scenarios, 19 times in the persistent-memory scenario, 19 times in the rule-following scenario, and as many as 29 times in the multi-agent collaboration scenario.
What these numbers mean is that today’s first place may drop to third tomorrow; the leaderboard swings violently and has almost no stability. Once you switch to metrics designed around “capability,” such as tool-call quality scores and memory-usage quality scores, the number of reversals plummets to 0, 5, 8, and 2.
The conclusion is clear: the ranking stability of process-oriented metrics is naturally superior to that of outcome-oriented metrics. If an evaluation system cannot even keep its rankings stable, its conclusion about the “strongest model” has no engineering meaning.
4. Breaking “Process” into Measurable Dimensions
To score by process, you first need to break the process into dimensions that can be observed and asserted. Below is a layered design that can be implemented directly.
1. Constraint and Rule-Following Layer
This is the hardest layer, and a dual-track approach of “one-vote veto plus pass rate” is recommended. Hard constraints include per-trade and total position limits, a whitelist of prohibited trading instruments, price-limit and liquidity restrictions, and mandatory calls to the risk-control verification interface.
# Example: how to compute the hard-rule pass ratedef rule_pass_rate(trace):checks = [c for step in trace.steps for c in step.hard_checks]if not checks:return 0.0passed = sum(1 for c in checks if c.passed)return passed / len(checks)# Example: a severe violation invalidates the episode outright,# preventing "violated rules but made money" from being masked by a high scoredef is_valid_episode(trace, fatal_policy):return not any(v in trace.violations for v in fatal_policy)
2. Tool-Call Quality Layer
Do not look only at “whether the right tool was called”; also look at call timing, parameter completeness, retry and fallback strategies after failures, and whether the returned results are faithfully referenced. A common anti-pattern: the agent obtains market data but never references it in its reasoning, which shows the call was merely formal.
3. Memory-Usage Quality Layer
For persistent-memory scenarios, evaluate whether writes are deduplicated, whether retrieval hits relevant history, and whether “one-off noise gets remembered and repeatedly cited” contamination occurs. Three sub-metrics can characterize this: memory hit rate, stale-memory reference rate, and write redundancy.
4. Multi-Agent Collaboration Layer
Focus on whether task decomposition is reasonable, whether information is passed faithfully between agents, whether duplicate work or responsibility vacuums appear, and whether conflict resolution is traceable. The collaboration scenario had the highest number of reversals (29), which is exactly why it most needs a stable process metric as a safeguard.
5. Reasoning and Decision Traceability Layer
Require every decision step to map to an “evidence–hypothesis–action” triple. Actions lacking supporting evidence should lose points even if they are profitable.
5. Scoring System Design: Giving Process Scores and Outcome Scores Their Proper Place
The recommended structure is a three-stage “threshold + weighting + stability check.”
- Threshold: if the hard-rule pass rate falls below a threshold (for example, 0.80), the agent is judged unqualified and does not enter the ranking.
- Weighting: composite score = process score × α + risk-adjusted return × β, where the process score is a weighted combination of the five layers above, and α should be set significantly higher than β.
- Stability check: repeat the evaluation with rolling windows, count ranking reversals and confidence intervals, and label conclusions whose reversal count exceeds the limit as “not significant.”
composite score = 0.6 * process quality score + 0.25 * risk-adjusted return + 0.15 * consistency scoreprocess quality score = 0.35*rule following + 0.25*tool calling + 0.15*memory usage+ 0.15*collaboration quality + 0.10*traceabilityconsistency score = 1 - normalize(ranking reversal count)
On the engineering side, this kind of evaluation usually requires a replayable environment: fix market data and messages by timestamp, have a scheduling service drive multi-turn interactions, have logging services and a monitoring/alerting system collect complete traces, and then have object storage archive the intermediate artifacts of each round to ensure conclusions are reproducible and auditable. If the evaluation scales up, a container platform can elastically spin up parallel sandboxes, and a message queue can decouple data collection from the scoring pipeline.
6. Common Pitfalls
- Substituting long-period returns for process evaluation: a longer period reduces noise but cannot eliminate the structural problem of “violations going unpunished.”
- Reporting only averages and not distributions: two samples with similar means may have vastly different tail risk, so report the median, the worst 5% percentile, and the maximum drawdown together.
- Ignoring prompts and random seeds: the same agent should have bounded process scores across different random seeds; otherwise the evaluation is not trustworthy.
- Treating process scores as a permanent medal: process metrics must evolve along with rule versions, and baselines must be rerun after rule updates.
7. Conclusion
The return rate answers “how much was earned this time,” while process metrics answer “what did it earn by, and can it earn again next time.” When two numbers are nearly identical, the truly informative differences hide in rule pass rate, tool-call quality, memory-usage quality, and ranking stability. Shifting the evaluation focus from outcomes to process does not deny the meaning of returns; it makes returns trustworthy again—only when an agent is proven to be “reliably doing the right thing” is its report card worth accepting.
