Why Adding Steps to AI Agent Benchmarks Fails: The Recursive Environment Scaling (RES) Framework
This article explains why making AI agent benchmarks harder by adding task steps, tools, and complexity often makes results hard to interpret. It describes the Recursive Environment Scaling (RES) framework, which keeps the task goal fixed and increases the complexity of the environment instead. A financial reconciliation case shows how tool calls rose from 3 to 171 under RES, and the article discusses what this approach means for enterprise agent evaluation.
Introduction: Agent Benchmarks Are Being Solved Too Easily
Large language models continue to advance quickly, and AI agents are getting better at tool calling, multi-step planning, and complex task execution. Yet developers face a growing problem: the test sets used to evaluate these agents are becoming easier to “solve.” Traditional static benchmarks no longer reflect how well agents perform in complex production environments.
Researchers often try to make benchmarks harder by adding more. They add task steps, build more intricate execution paths, and introduce more APIs. This approach seems reasonable, but it causes serious confounding in evaluation. It becomes increasingly difficult to determine which capability a test is actually measuring.
The Trap of Traditional Difficulty Scaling: Confounded Variables and Hard Attribution
In software engineering and system architecture, performance tuning works best when only one variable changes at a time. The same principle applies to agent evaluation. If a benchmark changes the logical depth of a task, the number of tools, and the wording of the prompt all at once, then a failed run becomes very hard to explain.
Consider a test in which an agent must score well on an exam that combines mathematical calculation, text extraction, and logical reasoning. If the agent scores very low, we cannot tell whether its reasoning chain broke, whether it misread the natural language, or whether it misunderstood the parameters of a newly added API tool.
This is similar to assessing the stability of a microservice architecture after changing the database connection pool, the network routing rules, and the concurrency threshold of a message queue at the same time. When latency appears, troubleshooting becomes exponentially harder. In evaluation, adding task complexity without control breaks the single-variable principle and makes the benchmark less useful for precise measurement.
A Way Out: The Recursive Environment Scaling (RES) Framework
To address these problems, research teams from several universities proposed a counterintuitive solution: the Recursive Environment Scaling (RES) framework. The core idea of RES is to freeze the task itself and modify the environment in which the task takes place.
In the RES framework, “environment” does not refer to the underlying compute infrastructure that runs the model. It refers to the resources an AI agent can access while performing a task, the paths it uses to retrieve information, and the dependencies between operations. Put simply, it defines what the virtual world where the agent works looks like.
By keeping the final goal of the task unchanged and making the operation path needed to reach that goal more complex, RES can measure how an agent plans and executes under complex dependencies, without adding extra cognitive interference.
Core Mechanism: Fixed Goals and Recursive Environment Layering
RES works by stacking changes recursively rather than rebuilding the environment from scratch. The following pseudocode shows the basic logic:
def recursive_environment_scaling(task, current_env, depth=0):if depth >= MAX_DEPTH or not has_potential(current_env):return current_env# Keep the core goal of the task unchanged and only add intermediate dependency operations at the environment layernew_env = current_env.clone()new_env.add_intermediate_complexity(task.core_goal)# For example, replace direct data reads with multi-step operations such as authentication, join queries, and data export# Verify that the environment change still keeps the task's final goal reachableif validate_environment_reachability(new_env, task.core_goal):# Recurse, building further on the environment that has passed validationreturn recursive_environment_scaling(task, new_env, depth + 1)else:return current_env
Consider a financial reconciliation task as an example. The core goals are fixed: match transactions, identify discrepancies, and produce a reconciliation report. These three goals should stay the same at any difficulty level.
- Original environment: The agent can read all the underlying data directly from three CSV files on the file system. This is a flat, frictionless execution environment.
- First expansion (depth 1): RES removes direct read access. The agent must first run a join query through a specific interface and then trigger an export preparation process before it can see part of the data.
- Second expansion (depth 2): Building on the first expansion, RES adds prerequisite steps such as checking the data archive status and rebuilding indexes.
This recursive mechanism ensures that each round of added complexity builds on an environment that was validated in the previous round. This keeps the test coherent and the environment realistic.
Case Study: From 3 Tool Calls to 171
In a mainstream industry benchmark, a financial reconciliation task coded A01 demonstrates the impact of RES.
In the original environment, a leading large language model needed only 3 tool calls, such as reading files, running comparisons, and generating a report. It completed the task in a very short time and scored 0.98 out of 1.0. This result could easily suggest that the agent had perfect financial processing ability.
After RES was applied, the same task goal and the same underlying model faced a very different situation. Because the data access path became recursively more complex, the model had to perform extensive state exploration, tool composition, and intermediate processing. The number of tool calls on this task rose to 171.
More importantly, within the 50-turn dialogue limit, the model spent all of its budget finding and unlocking data and had no room left to write the final reconciliation report. The final score dropped to zero. This shows the planning limits and context memory decay that current agents face in long, complex environments.
Implications for Enterprise Evaluation Systems
For organizations deploying large language models, RES offers practical engineering guidance. When building agents on enterprise platforms such as Baidu AI Cloud, we typically integrate cloud-native components such as object storage, message queues, and log services. How do we evaluate an agent’s performance when these components are interwoven?
- Separate business logic from system capability: When building internal evaluation sets, separate “business rule complexity” from “system environment complexity.” Keep business rules clear and intuitive, and include real production friction such as authentication, network latency, and asynchronous task callbacks in the environment design.
- Progressive stress testing: Drawing on the recursive idea behind RES, enterprises can build a dynamic evaluation environment generator. Start with a benchmark environment focused on the core business workflow, then gradually add non-core but necessary operational dependencies, such as audit logging and cache breakdown protection, to find the point where the agent’s performance breaks down.
- Fine-grained capability attribution: When an agent performs poorly in production, environment-scaling evaluation can help determine whether the problem is weak model reasoning or poor orchestration of complex API dependency chains. The results can then guide model fine-tuning or prompt optimization.
Conclusion
As AI agent capabilities keep pushing past existing limits, evaluation methods must evolve at the same pace or faster. The Recursive Environment Scaling (RES) framework moves away from the traditional approach of adding complexity to tasks. Instead, it scales the environment. By holding goals constant and recursively layering operational dependencies, RES provides a more precise view of an agent’s actual execution capability. The approach gives academic researchers a more rigorous measurement standard and gives enterprises a direction for building high-fidelity agent evaluation systems that resist benchmark gaming.
