AI R&D Automation and the Agent Compute Economy: Architecture, Costs, and Governance

    As AI systems shift from content generation to multi-step task execution, R&D workflows, compute supply, and cost structures are changing. This article examines the move from generative AI to agentic AI, outlines a closed-loop architecture for automated AI research, and analyzes token economics, inference capacity, 3D spatial understanding and evaluation challenges, and practical engineering controls. It also covers layered resource pools, task-level budgets, replayable state machines, observability, security, governance, and evaluation metrics for building reliable agent systems.

    AI R&D Automation and the Agent Compute Economy: Architecture, Costs, and Governance

    AI is evolving from a set of standalone application capabilities into part of the computing infrastructure. In the past, models mainly played the role of “generating content”; now, systems are beginning to understand, reason, plan, call tools, and take action. This shift affects not only application forms but also R&D processes, compute supply, and cost structures. Discussions around “AI R&D automation” and “agentic AI” are essentially answering three questions: Can AI participate in research and engineering loops? How much compute do multi-step agents require? How can engineering practices control cost, reliability, and security?

    1. From Generative AI to Agentic AI: A Changing Compute Paradigm

    A typical generative AI call chain is short: a prompt is entered, the model generates a result, and the system returns it. Its compute overhead is mainly concentrated in one or a few model inferences. Agentic AI is different. It usually needs to break a task into multiple steps, reasoning, selecting tools, observing results, and revising plans at each step until the goal is completed. A single task may include source retrieval, code generation, experiment execution, result analysis, failure retries, and human confirmation.

    This means compute is no longer determined only by “how many tokens are generated,” but also by “how many steps are executed, how many tools are called, and how many verification rounds are performed.” Some industry observers have suggested that agentic AI may require about three orders of magnitude more compute than generative AI. This order-of-magnitude estimate is not a precise conclusion for every scenario, but it reveals an important trend: when AI moves from “answering questions” to “completing tasks,” the number of inferences, context length, tool execution, and state management all increase significantly.

    Therefore, the optimization goal for agent systems should not focus only on the cost of a single model call. It should focus on the total cost per completed task. This includes model token consumption, tool call overhead, sandbox execution resources, log storage, evaluation regression, and human review costs. Only by measuring task success rate, step efficiency, and total cost together can a team judge whether an agent is truly usable.

    2. AI R&D Automation: From Assistant Tools to a Research Loop

    The core of AI R&D automation is not simply having a model generate a piece of code or a summary. It is about having AI participate in the closed loop of “propose hypotheses—design experiments—execute validation—analyze results—iterate and improve.” There have already been public discussions about automated AI research. Their common approach is to organize public data sources, experiment records, code repositories, evaluation sets, and domain knowledge into a retrievable and traceable knowledge layer, and then have agents orchestrate research tasks.

    A typical automated research loop can be abstracted into the following pseudocode:

    1. function automated_research_loop(question, budget):
    2. knowledge = retrieve_sources(question)
    3. hypotheses = generate_hypotheses(knowledge)
    4. results = []
    5. for hypothesis in hypotheses:
    6. plan = design_experiment(hypothesis)
    7. if estimate_cost(plan) > budget:
    8. continue
    9. sandbox = create_isolated_environment(plan)
    10. observation = run_experiment(sandbox, plan)
    11. evaluation = evaluate(observation, hypothesis)
    12. record = {
    13. hypothesis: hypothesis,
    14. plan: plan,
    15. observation: observation,
    16. evaluation: evaluation,
    17. cost: estimate_actual_cost(observation)
    18. }
    19. results.append(record)
    20. if evaluation.passed and evaluation.confidence > threshold:
    21. require_human_review(record)
    22. else:
    23. refine_hypothesis(hypothesis, evaluation)
    24. return summarize(results)

    For this loop to work in practice, at least five layers of capability are needed. The first is the data and knowledge layer, used to manage public materials, experiment records, code assets, and evaluation data while preserving versions and permissions. The second is the orchestration layer, responsible for task decomposition, hypothesis generation, experiment planning, tool selection, and human approval gates. The third is the execution layer, which runs experiments through isolated sandboxes, container platforms, batch scheduling, and resource quotas. The fourth is the evaluation layer, covering correctness, robustness, security, and cost regression. The fifth is the governance layer, ensuring that the entire process is traceable, replayable, and auditable.

    The value of AI R&D automation lies in amplifying experiment throughput, not replacing researchers. Researchers still need to define problems, set constraints, and review key conclusions. The system is responsible for making repetitive retrieval, code drafts, experiment orchestration, and result summarization faster and more consistent. Without quality gates, automation will only amplify low-quality experiments. Therefore, “verifiability” must be treated as the first principle.

    3. Token Economy and Inference Capacity: Cost Structure Drives System Design

    The unit token revenue and cost structure of inference services are becoming key variables in agent system design. Competition among model service providers for inference compute supply may look like a contest over resources, but it is essentially competition over throughput, energy efficiency, utilization, and unit task cost. For application teams, it is not enough to assume that “the stronger the model, the better.” Models should be routed according to task difficulty: small models for simple classification, extraction, and formatting tasks; stronger models for complex planning, long-context reasoning, and multi-tool coordination.

    Token consumption in agents has a clear amplification effect. Multiple rounds of reflection increase context; tool results enter the next prompt; failed retries produce repeated inference; long tasks retain historical state. Optimization methods include caching stable knowledge, batching parallel subtasks, summarizing and segmenting long context, setting per-task budgets and maximum steps, applying rate limits and idempotency design to tool calls, and enabling early stopping on failure paths. From an engineering perspective, online inference, offline evaluation, and tool execution should be separated into three resource pools to avoid contention.

    When deploying on cloud infrastructure, teams can build the foundation from general-purpose categories. For example, object storage can hold experiment data and logs, container platforms can host isolated execution environments, message queues can decouple task scheduling, and logging and monitoring services can provide observability. Using Baidu AI Cloud as an example, general capabilities such as object storage, container platforms, message queues, logging, and monitoring can support the layered architecture described above. Specific selection should still be based on a neutral assessment of task throughput, cost budget, and compliance requirements, rather than treating any single type of resource as the only option.

    4. 3D Spatial Understanding and Evaluation Challenges

    Many current visual evaluations still focus on pixel-level tasks on 2D image grids, such as classification, detection, segmentation, or image-text matching. These benchmarks can measure a model’s ability to recognize 2D visual patterns, but they cannot fully cover spatial reasoning, geometric consistency, physical commonsense, and judgments about the consequences of actions in real 3D environments. When AI needs to plan paths, manipulate objects, or understand occlusion relationships in 3D space, 2D pixel reasoning alone is not enough.

    3D spatial understanding further increases compute and evaluation complexity. Systems need to handle multi-view information, depth estimation, scene graphs, physical constraints, and the simulation-to-reality gap. Evaluation should not look only at single-frame outputs, but at task completion after multi-step actions, collision rates, path efficiency, and anomaly recovery. For R&D automation platforms, this means evaluation sets must support scene version management, simulation replay, and failure case attribution. Otherwise, automated iteration can easily overfit to a single benchmark.

    5. Engineering Implementation Recommendations: Layering, Budgets, and Observability

    First, establish layered resource pools. Training, online inference, tool execution sandboxes, and offline evaluation should be managed separately, with quotas, priorities, and queue isolation to ensure stability for critical tasks. Second, establish task-level budgets. Every agent task should have a maximum number of steps, maximum tokens, maximum tool calls, and timeout. When thresholds are exceeded, the system should automatically degrade or hand off to a human. Third, establish a replayable state machine. Every step’s plan, tool inputs and outputs, and evaluation results should be recorded to support failure replay and auditing. Fourth, establish a cost dashboard. In addition to total tokens, teams should track cost per successful task, cost per step, retry rate, and cache hit rate.

    6. Reliability, Security, and Governance

    The more capable agents become of taking action, the more important security boundaries become. Tool calls should follow the principle of least privilege, execution environments should be isolated, sensitive data should be redacted, external inputs should be protected against prompt injection, and model outputs should undergo structural validation and policy checks before entering the execution layer. High-risk actions should have human approval gates. At the governance level, teams should retain the relationships among data sources, model versions, prompt templates, tool versions, and evaluation records so that conclusions are traceable.

    7. Evaluation Metrics and Organizational Processes

    Agents should not be evaluated only by single-turn accuracy. Recommended metrics include task success rate, average number of steps, token consumption per task, number of tool calls, end-to-end latency, failure recovery rate, human intervention rate, security violation rate, and cost regression. At the organizational process level, AI R&D automation should be incorporated into experiment protocol management: how hypotheses are proposed, how experiments are isolated, how results are reviewed, and how failures are archived should all have clear specifications. Only by making tacit experience explicit can automation systems be reused reliably.

    8. Conclusion

    The combination of AI R&D automation and agentic AI is moving AI from a “generation tool” toward a “task execution system.” Rising compute demand, amplified token costs, and 3D spatial evaluation challenges will force teams to move from single-point model tuning to system engineering. A reasonable approach is to use layered architecture to support multi-step tasks, use budgets and routing to control costs, use sandboxes and auditing to ensure security, and use replayable evaluation to ensure quality. On this basis, general-purpose cloud infrastructure can become the foundation for a closed-loop R&D automation system, but real competitiveness still comes from a deep understanding of tasks, data, and engineering constraints.