A CPU-Centric Perspective on Agentic AI

Ritik Raj, Hong Wang, Tushar KrishnaarXiv 2025 · DOI

Introduction

The current trajectory of AI development is heavily focused on GPU acceleration for Large Language Model (LLM) inference. However, the rise of Agentic AI—systems where LLMs act as autonomous agents calling external tools—is shifting the performance bottleneck back to the CPU. While the LLM "thinks" on the GPU, the actual work of searching the web, running code, or querying databases happens on the CPU. This paper demonstrates that for many agentic tasks, the CPU is now the primary driver of latency and energy consumption.

Taxonomy of Agentic AI

To analyze these systems, we propose a taxonomy based on three fundamental architectural axes:

  • Orchestrator: Is the logic managed by the LLM itself (LLM-orchestrated) or by a host-based script like LangChain (Host-orchestrated)?
  • Path: Is the sequence of actions predetermined (Static Path) or decided dynamically by the model (Dynamic Path)?
  • Flow: Does the task involve a single tool call (Single Step) or an iterative, multi-step loop (Multi Step)?
Taxonomy of Agentic AI architectures across orchestrator, path, and flow axes.

Profiling the CPU Bottleneck

We profiled five diverse workloads—Haystack RAG, Toolformer, ChemCrow, LangChain, and SWE-Agent—using state-of-the-art hardware (Intel Emerald Rapids CPU and NVIDIA B200 GPU). Our profiling revealed that the "orchestration tax" and tool execution are massive overheads.

In Retrieval-Augmented Generation (RAG) workloads, document retrieval (ENNS) can account for up to 90.6% of total latency. Furthermore, at large batch sizes, the CPU is no longer a low-power component; its dynamic energy consumption can reach 44% of the total system energy. We also observed that simply increasing batch sizes leads to throughput saturation due to CPU-side overheads like cache-line contention and OS scheduling "stragglers," which prevent the GPU from being fed efficiently.

Runtime breakdown for various agentic benchmarks, highlighting the substantial time spent on CPU-bound tool execution compared to GPU-bound LLM inference.

Proposed Optimizations

To address these challenges, we introduce two novel scheduling techniques:

  • CGAM (CPU and GPU-Aware Micro-batching): This technique implements a batching cap to prevent CPU saturation and uses micro-batching to finish the first set of requests faster, reducing P50 latency.
  • MAWS (Mixed Agentic Workload Scheduling): For environments with a mix of CPU-heavy and LLM-heavy tasks, MAWS adaptively switches between multi-processing and multi-threading to maximize resource utilization without over-subscribing CPU cores.

Key Results

Our optimizations yielded significant performance gains across various benchmarks:

  • Latency Speedup: CGAM achieved up to a 2.11× reduction in P50 latency for LangChain and a 1.94× reduction for Haystack RAG.
  • Energy Efficiency: CGAM reduced CPU dynamic energy consumption by approximately 1.5×.
  • Heterogeneous Performance: For mixed workloads, the MAWS scheduler provided a 1.41× speedup in P50 latency.
  • Optimal Batching: The study identified that for many agentic workloads, a batch size of 64 is the "sweet spot" before CPU synchronization overheads begin to diminish returns.

Conclusion

As we move toward more complex, multi-step Agentic AI, the CPU is becoming the primary system bottleneck. By optimizing the interaction between CPU-bound tools and GPU-bound inference through techniques like CGAM and MAWS, we can significantly enhance the scalability and efficiency of agentic systems. Future research will explore these bottlenecks across a wider range of hardware architectures and potentially investigate hardware-level solutions like CXL-based memory sharing.

Summary updated

BibTeX
@misc{raj2025cpu,
  author = {Ritik Raj and Hong Wang and Tushar Krishna},
  title = {{A CPU-Centric Perspective on Agentic AI}},
  year = {2025},
  eprint = {2511.00739},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.00739},
}
Figure