arXiv:2609.05895cs.LGSep 2026

Manuscript Offprint

arXiv:2609.05895

A First-Order Learning Algorithm for Online Resource Allocation with Constant Regret

Menglong Li, Jiawei Zhang

Abstract

We study a finite-horizon online resource allocation problem with initial resource capacities proportional to the horizon. In each period, a request type is observed and one action is chosen from a finite menu. Each action earns a reward and consumes a vector of resources. The arrival types are independent and identically distributed, but their probabilities are unknown. We present a primal first-order learning policy that, in each period, performs one gradient ascent update of the action coordinates associated with the current request type. The policy achieves O(1)O(1) expected additive regret relative to the hindsight optimum, with a bound independent of the horizon TT. It does not solve any linear program, and the regret bound does not require a nondegeneracy assumption on the fluid linear program.

1 Introduction

We study a finite-horizon online resource allocation problem. There are multiple resources with fixed initial capacities. In each period, one request arrives, its type is observed, and the decision maker chooses one action from a finite type-dependent menu. An action earns a reward and consumes a vector of resources; rejection earns no reward and consumes no resources. Decisions are immediate and irrevocable, and the capacity constraints must hold on every sample path. The arrivals are independent and identically distributed over a finite set of types, but their probabilities are unknown.

We consider proportional scaling, under which the initial capacities grow proportionally with the horizon. We present a primal first-order learning policy for this problem. Its expected additive regret, defined as the expected reward of the hindsight optimum that observes the full arrival sequence minus the expected reward of the policy, is bounded by a constant independent of TT. The policy learns the arrival probabilities from the observed requests and uses one gradient ascent update of the action coordinates associated with the current request type in every period, without solving the fluid linear program. The result does not require a nondegeneracy assumption on the fluid linear program.

The model includes quantity-based network revenue management (Gallego and van Ryzin, 1997), online stochastic matching (Feldman et al., 2009), and online order fulfillment (Acimovic and Graves, 2015; Jasin and Sinha, 2015) as special cases.

For quantity-based network revenue management, the classical static bid-price control has O(T)O(\sqrt{T}) loss under proportional scaling (Talluri and van Ryzin, 1998). By re-optimizing once, Reiman

*Department of Decision Analytics and Operations, College of Business, City University of Hong Kong, Hong Kong. †Department of Technology, Operations, and Statistics, Leonard N. Stern School of Business, New York University, New York, New York 10012.

and Wang (2008) obtained o(T)o(\sqrt{T}) loss. Jasin and Kumar (2012) then established O(1)O(1) loss for a re-solving policy under a nondegeneracy assumption. Their condition is stated on the primal side: the same optimal basis of the fluid linear program must remain optimal under sufficiently small perturbations of capacities and expected demand. More generally, nondegeneracy in this literature can be imposed on either the primal or the dual solution. Dual nondegeneracy requires uniqueness and stability of the optimal dual solution. These conditions rule out, among other cases, solutions at which several optimal bases meet or the optimal dual solution is not isolated.

Nondegeneracy may not hold in many resource allocation problems. Ties, redundant resources, and binding constraints with nonunique shadow prices can all lead to degeneracy, and a small change in capacity or demand can change the optimal basis. Therefore, it is useful to obtain regret bounds that do not deteriorate as a problem approaches degeneracy; see Bumpensanti and Wang (2020), Bray (2025), and Jiang et al. (2025b) for discussions of this issue.

Two approaches have obtained constant regret without nondegeneracy. Bumpensanti and Wang (2020) developed an infrequent re-solving policy for quantity-based network revenue management that solves the fluid linear program at O(log⁡log⁡T)O(\log \log T) epochs. Vera and Banerjee (2021) proposed the Bayes Selector and proved O(1)O(1) regret for a broad class of finite-type online allocation problems that includes online packing and online matching. A fluid implementation of their policy solves a fluid linear program in each period.

Solving a large fluid linear program repeatedly can be costly in time-sensitive applications. Recent work has sought to reduce the number of fluid LP solves. He et al. (2025) study essentially the same multi-action allocation model as ours. Their policy solves the fluid linear program once at the beginning and then updates the dual prices in each period based on resource consumption. They prove an O(1)O(1) regret bound under a general position gap condition equivalent to nondegeneracy. Gupta (2024) similarly avoids periodic re-solving in a multiway matching model and obtains bounded regret under a general position gap, including an O(1)O(1) result for the cases that cover network revenue management. Both He et al. (2025) and Gupta (2024) solve the fluid linear program once at the beginning, which requires knowledge of the arrival distribution. Li et al. (2024) allow the arrival probabilities to be unknown. They obtain O(1)O(1) regret with O(log⁡log⁡T)O(\log \log T) fluid linear program solves using the observed arrivals. Their bound does not require nondegeneracy.

Therefore, the constant-regret policies described above still require solving the fluid linear program, either repeatedly or at least once. We ask whether this optimization step can be eliminated altogether. In particular, we consider a policy based only on first-order updates. First-order methods replace LP solves with gradient updates. In our policy, only the action coordinates associated with the current request type are updated, which can substantially reduce the computational effort when the number of actions for each type is small relative to the total number of type-action pairs. Projected subgradient and mirror-descent policies achieve O(T)O(\sqrt{T}) regret under general input distributions (Li et al., 2023; Balseiro et al., 2023b; Jiang et al., 2025a). Ma et al. (2025) develop a fast adaptive dual-gradient algorithm that performs one online-gradient update per period and achieves O(log⁡2T)O(\log^2 T) regret. Their analysis relies on local second-order growth and smoothness conditions, together with a nondegeneracy condition that includes strong complementarity and local stability of the binding and nonbinding resource constraints as the remaining-average resource vector changes. Gao et al. (2026) introduce separate first-order procedures for learning and decision making and establish an O(T1/3)O(T^{1/3}) regret bound under quadratic growth of the population dual objective and uniqueness of its minimizer. For the finite-support case, they establish an O(log⁡T)O(\log T) bound when the population dual optimal solution is unique, rather than an O(1)O(1) bound.

Our contributions are as follows.

(i) We develop a primal first-order learning policy for finite-action online resource allocation. In every period, after observing the current request type, the policy performs one gradient ascent update of the corresponding action coordinates for a relaxation of the fluid problem that penalizes resource overuse. It rescales the solution from the preceding period to account for the new estimate of the arrival probabilities and uses the updated solution to select an action. The update requires only matrix-vector operations and Euclidean projections onto simplexes.

(ii) Under independent and identically distributed arrivals with unknown probabilities, the policy achieves O(1)O(1) expected additive regret relative to the exact hindsight optimum. We first prove the result for a fixed penalty parameter whose prescribed choice depends on the minimum arrival probability. We then show that the penalty parameter can be chosen from the observed arrivals without knowing this probability. In contrast, the policy of He et al. (2025) solves the fluid linear program at the beginning of the horizon and requires knowledge of the arrival probabilities. Moreover, our result does not assume that the fluid linear program is nondegenerate and allows action ties and changes of optimal basis. Our analysis compares entire optimal solution sets after changes in capacity and demand; it does not require an optimal basis or an optimal dual solution to remain unchanged.

(iii) We show that, with high probability, the one-period loss is bounded by a constant multiple of the squared distance from the current solution to the optimal solution set of the penalized problem in that period. We further prove that updating only the action coordinates associated with the current request type in each period is sufficient to keep the total expected loss bounded independently of TT, even though the penalized problem changes over time.

The notation O(1)O(1) refers only to the dependence on the horizon. For a fixed problem, there is a constant CC such that the regret is at most CC for every TT; the constant may depend on the penalty parameter, the numbers of resources, types, and actions, the rewards and resource-consumption vectors, and the minimum arrival probability. It is not dimension-free. In fact, Zhang (2026a) constructs finite-type network revenue management problems for which every online policy has regret exponential in the number of resources at a suitably chosen horizon. Thus, in the worst case, our bound can also be exponential in the number of resources.

The rest of the paper is organized as follows. Section 2 formulates the model and defines the hindsight benchmark. Section 3 presents the first-order policy and states the main results. Section 4 establishes the optimization and sensitivity results used in the regret analysis. Section 5 proves the regret bound. Section 6 summarizes the results and discusses extensions to other arrival models and continuous reward distributions. The appendices contain the proofs omitted from Sections 4 and 5 and the analysis of the policy with an adaptive penalty parameter.

References (30)