arXiv Science⌕ Search

arXiv subjects

Chen-An Lin

Publications and source records attributed to Chen-An Lin.

2 recordsLinked to original sources

Congestion-Aware Adaptive Routing for LLM Classification

Organizations use large language models (LLMs) to classify jobs that differ in uncertainty and the cost of errors. Querying additional models may improve accuracy, but it also incurs fees and increases congestion at shared servers. We study congestion-aware adaptive routing (CAAR) policies that adapt model selection and stopping decisions to observed outputs while accounting for the steady-state congestion they generate. The objective is to minimize the long-run average cost of misclassification penalties, query fees, and holding costs. We can represent CAAR policies as a mixture of decision trees, and derive exact holding costs for first-come-first-served servers with exponential service times and processor-sharing servers with general service times. We formulate a convex optimization problem with unique optimal model loads. Congestion prices capture the marginal system-wide holding costs of additional queries and guide routing and stopping decisions through a Bayesian dynamic program. We characterize optimal stopping decisions and identify models whose information does not justify their cost. A column-generation algorithm computes optimal CAAR policies and provides an explicit optimality-gap bound. We also bound the additional cost of limiting cascade depth relative to full-depth CAAR. Finally, under a common query-depth limit, cascades with a predetermined model order can be arbitrarily more costly than optimal CAAR, even when the order is randomized and stopping decisions adapt to observed outputs. Numerical experiments distinguish the benefits of adaptive model selection and congestion-aware design.

math.OC↗

Dynamic Service Recommendation with Congestion-Dependent Joining: Near-Optimal and Constant-Factor Approximation Algorithms

Modern service platforms often show customers real-time congestion information, such as anticipated waiting times, before they decide whether to use a service. This creates an intertemporal tradeoff: directing a customer to a service may generate immediate value, but the resulting congestion can make that service less attractive to future customers. We study this tradeoff in a finite-horizon problem in which a platform recommends one of multiple services, each represented by a queue, and customers' joining probabilities decrease with congestion. We show that optimal recommendations generally depend on the joint congestion state and cannot be reduced to indices that depend only on each service's own state. Hence, exact dynamic programming suffers from a curse of dimensionality. We develop approximation algorithms that retain progressively less of this joint state. First, we construct a quasi-polynomial-time approximation scheme that achieves a $(1-ε)$-approximation for any $ε>0$. It rounds the model primitives and truncates the relevant queue lengths to compress the joint state into a histogram over service types, and our coupling arguments bound the resulting revenue loss. Second, under general monotone joining and service capacities, we study policies that retain only per-service information. A greedy policy, which uses only each service's current queue length, is a tight $1/2$-approximation, as it ignores the congestion externality that a customer imposes on later customers. An LP-guided algorithm that plans each service's queue-length distribution over the horizon accounts for this externality and achieves a $(1-1/e)$-approximation. Finally, monotone joining is what makes the problem tractable: with nonempty initial queues, both constant-factor guarantees hold under monotonicity, whereas without it the problem is NP-hard to approximate within any constant factor.

math.OC↗