arXiv:2610.33334cs.GTOct 2026

Manuscript Offprint

arXiv:2610.33334

Joint Service Depth and Priority Design in Queueing Systems

Adam N. Elmachtoub, Yash Kanoria, Jonathan Y. Tan

Adam N. Elmachtoub

Department of Industrial Engineering and Operations Research and Data Science Institute, Columbia University, New York, NY 10027, adam@ieor.columbia.edu

Yash Kanoria

Graduate School of Business, Columbia University, New York, NY 10027, ykanoria@columbia.edu

Jonathan Y. Tan

Department of Industrial Engineering and Operations Research, Columbia University, New York, NY 10027, jyt2123@columbia.edu

In many service systems, including data centers serving AI jobs, the server can choose the amount of processing effort, which we call the service depth. Deeper reasoning can improve output quality, but it also consumes computing resources for longer and increases congestion. The realized processing time depends on the chosen service depth, but remains random because AI models are probabilistic and tasks vary in complexity. Motivated by these applications, we study the joint design of service depth and priority in a single-server queue with customers who differ in delay sensitivities, under a welfare-maximization objective. The decision maker determines, for each customer type, both a service priority and a service depth, where service times are exponentially distributed with means equal to the chosen service depths.

We consider a setting with two types of customers and a setting with a continuum of types of customers. In the setting with two types, we characterize the optimal joint service depth and priority assignment. We find that, in the centralized setting, counterintuitively, the decision maker's optimal policy prioritizes the patient type if a sufficiently large fraction of customers are patient. In the decentralized setting, the optimal incentive compatible price menu never prioritizes the patient type. Consequently, there can be a welfare gap between the centralized decision maker's optimal control policy and the optimal decentralized pricing mechanism. In the setting with a continuum of types, we show that the centralized optimum is achieved by a service depth assignment that allocates weakly smaller service depth and gives priority to more delay-sensitive customers. As a result, the optimal allocation can be implemented by an incentive compatible pricing menu under strategic customers with private delay sensitivities. We then calibrate an agentic AI service system using published coding-agent trials from DeepSWE and numerically examine priority inversion, the value of joint design, and the welfare gain from personalization.

Key words: queueing system; service value; priority; strategic customer; pricing

1. Introduction

Many modern service systems decide not only which customer to serve next, but also how much service to provide for each job. Completion is not governed by a fixed service requirement; instead, the provider has discretion over how much time, attention, or computation to devote to processing the job. In such systems, service effort is both value-producing and capacity-consuming: a deeper diagnosis, a more careful customization, or a longer computational search generates greater value for the customer, but it also occupies the service capacity and delays other customers (Deshmukh and Jain 1977, Anand et al. 2011). We refer to this controllable processing effort as the service depth. Service depth directly enters customers' utility, so it can also affect customers' strategic behavior and contract choices.

AI-agent service systems provide a contemporary motivation for this problem. With the rapid growth of Large Language Models (LLMs) and Generative AI (GenAI), AI agents can now act as domain experts in specialized fields and be applied in many Internet service systems, ranging from customer support to software development (Huang et al. 2024, Sapkota et al. 2025). These systems offer a new form of operational flexibility. Unlike human service providers, whose skills, availability, and task assignments are usually difficult and costly to adjust, it is possible for AI-agent service systems to adjust the service depth (reasoning effort) and switch between different types of tasks at lower cost, enabling service systems to respond differently to changing task requirements.

However, AI agents introduce several important operational challenges. LLM requests are heterogeneous and difficult to predict in advance, making it difficult for centralized planning and control (Mitzenmacher and Shahout 2025). In addition, the quality of LLM output is highly dependent on the processing time, introducing a trade-off between the service quality and the congestion of the system: faster responses may reduce waiting times and operating costs, whereas deeper reasoning requires longer processing time but yields higher accuracy and better service outcomes (Wei et al. 2022, Snell et al. 2025).

Classical priority rules rank jobs using fixed primitives, such as delay costs and service requirements, which may be suboptimal when service depth is endogenous. This motivates a joint design problem that has received comparatively little attention:

How can we develop efficient policies to control the service depth and priority in service systems?

We investigate this question through a stylized queueing and mechanism design model. Specifically, we model the system as a preemptive queue in which both service depth and service priority are controllable variables. Customers arrive to a single-server queue according to a Poisson process and differ in their delay sensitivities, represented by the delay cost they experience. For each customer type, the decision maker determines the service depth to provide and the priority with which its jobs are served. Service depth assignments are type-dependent and do not depend on the current state of the queue. Conditional on a chosen service depth x, the realized service time is exponentially distributed with mean x, and the service value generated is V(x)V(x). A larger service depth generates a greater service value, but also increases workload and delays other customers. Thus, service depth captures the server's ability to adjust processing effort, while preemption captures scheduling flexibility. This framework isolates the key operational primitives that arise in AI-agent services and many other service systems: heterogeneous demand, flexible service allocation, and endogenous service depth.

Throughout the paper, the objective is to maximize long-term average social welfare, defined as service value net of delay costs. We study two informational regimes. In the centralized benchmark, the decision maker observes each customer's type and directly assigns service depth and priority. In the decentralized setting, the delay sensitivity of a customer is private information. The provider then offers a menu of service depth, priority, price options, and customers choose the options that maximize their expected surplus from the menu. Therefore, we focus on finding the optimal menu that satisfies the incentive compatibility and individual rationality constraints.