The rise of intelligent agents has transformed the way companies deploy large-scale language models (LLMs). It is no longer just about answering human queries in chats, but about managing automated flows where each request comes from another system, not from a person. This paradigm shift requires rethinking request scheduling, because the criteria that worked for human traffic are inefficient when most requests share much of their context (KV-cache) and latency per token is no longer the only relevant metric. This is where SMetric, a novel approach that balances cluster load without sacrificing cache reuse, comes in, and has direct implications for any agent-oriented AI architecture.
The Challenge of Planning for Agents
When end users type in a chat, each conversation is usually short and with little thematic overlap. But an AI agent (for example, an assistant that automates a chain of business processes) launches dozens of almost identical requests, varying only a few internal parameters. This generates a high level of KV-cache reuse: up to 80% of the tokens in a real trace can be shared between requests of the same session. Traditional schedulers, designed to maximize that reuse, send all related requests to the same node. The result is a brutal imbalance: some servers are overcrowded while others are underutilized. The cluster's token per second (TPS) throughput suffers.
SMetric's proposal: balance without sacrificing reuse
The team behind SMetric identified two key levers. First, the existence of a global-tier KV store allows context to be shared between nodes, albeit with a latency penalty. Second: in agent sessions, the first request of each session determines a good part of the load balance, because the following sessions will benefit from the intra-session locality. SMetric proposes a "session-centric" scheduler: the first request of each session is directed purely to balance the load (round-robin or similar), while subsequent requests are sent to the same server where the cache has already been calculated. In this way, local reuse is maintained in most requests, saturating a single node is avoided and the demand on the global warehouse is kept at acceptable levels.
Planning Metric: The Session Turn
The most interesting thing is that SMetric uses "session turn" as a metric, which is extracted directly from the user's input data, without the need for additional states. This allows the planner to be lightweight, with no memory of previous states, and horizontally scalable. In a disaggregated inference architecture (separate prefill and decode), SMetric improves prefill TPS by 2% to 34% versus state-of-the-art planners. In configurations with co-localized prefill-decode and global vault, the improvement is 10% to 16%.
Business and technical implications
For companies that are integrating AI agents into their workflows, this advancement is crucial. It is no longer enough to have a powerful LLM; The infrastructure must be managed efficiently. An intelligent planner like SMetric can dramatically reduce compute costs and improve the experience of automated processes. From the perspective of a company that develops AI for enterprises, these optimizations allow us to offer faster and cheaper solutions to customers. For example, in an agent-based customer service system, every second of improvement translates into less latency and higher satisfaction.
Beyond planning: complete infrastructure
To implement solutions of this type, companies need a solid foundation in cloud services and custom software development. It's not just a matter of choosing the right LLM, but of designing the entire architecture. Our experience in AWS and Azure cloud services has taught us that distributed cache management, container orchestration, and load balancing are critical. In addition, cybersecurity cannot be neglected: agents handling sensitive data require protection against unauthorized access and information leaks. A scheduler such as SMetric, relying on a global cache store, must implement granular access controls.
The role of business intelligence
Another angle is performance monitoring. With the adoption of AI agents, traditional metrics like mean response time are no longer enough. Operations teams need business intelligence services tools to visualize cache hit rate, load distribution, and bottlenecks. Power BI, for example, can integrate with inference logs to generate real-time dashboards. Combining an intelligent planner with a BI layer allows companies to dynamically adjust their clusters.
Custom application development for agents
Many organizations opt for bespoke applications that integrate virtual assistants into their business processes. These applications require a robust backend that handles sessions, request queues, and context storage. SMetric fits perfectly into that ecosystem because it offers a balance between efficiency and simplicity. When designing custom software for customers, we have the flexibility to implement custom schedulers that take advantage of cache reuse without penalizing scalability.
AI Agents and Process Automation
The concept of AI agents goes beyond chatbots: it encompasses assistants that perform complex tasks such as data mining, reporting, or API coordination. In these scenarios, each request can trigger a chain of internal requests. A planner that is not designed for this pattern collapses under pressure. SMetric demonstrates that with a "session-centric" approach, efficiency can be doubled without the need for additional hardware. This is especially relevant for SMBs that want to adopt artificial intelligence without incurring exorbitant costs.
Final Thoughts
The research presented in the papers on SMetric is not a laboratory experiment: it is based on real traces of production from an LLM service provider such as BAILIAN. The improvements observed are tangible and replicable. For any engineering team building inference infrastructure, the lesson is clear: plan with agents in mind, not humans. At Q2BSTUDIO, as a company specializing in software and technology development, we understand that operational excellence in AI goes through these low-level optimizations. Whether you need to implement a custom scheduler, migrate your workloads to the cloud, or develop custom applications with built-in AI, we have the technical expertise to make it happen. Because the next frontier of business productivity is in agents, and their performance depends on how we plan them.


