arXiv(opens in a new tab)cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.08735

Optimal and Efficient Online Inverse Optimization

Anupam Gupta, Guru Guruganesh, Honghao Lin, Vahab Mirrokni, Renato Paes Leme, David P. Woodruff

Abstract

In online inverse linear optimization, a learner recommends an action and then observes the choice of an expert who maximizes a fixed, unknown linear objective on Rd\mathbb{R}^d; the goal is to learn to optimize this objective without observing it. Sakaue recently obtained the optimal regret O(d)O(\sqrt{d}) with a randomized algorithm making (dT)O(d)(dT)^{O(d)} linear optimizations per round, and asked whether it can be attained in polynomial time. We answer positively: our deterministic algorithm has regret O(d)O(\sqrt{d}) for every horizon TT and runs in time polynomial in dd and TT. It is a variant of the variable-metric algorithms of Sakaue et al. and Cai et al., in which a metric update is revoked once the query point moves far enough from where the update was made.

1 Introduction

Consider a resident who learns by watching the decisions of an attending physician on a hospital ward. Every patient comes with a handful of possible interventions — this drug or another, operate now or wait — and the attending picks one. The reasoning behind the pick is seldom spelled out: it balances how well a treatment works against what it does to the patient, and how fast recovery comes against what it costs. The resident never sees the criterion the attending uses, only the intervention chosen, one patient at a time. The goal is for the resident's recommendations to become as good as the attending's in the long run: each recommendation falls short of the attending's choice by some amount, measured by the attending's own criterion, and we want the total shortfall over all patients to stay small. This is the problem of online inverse linear optimization.

We represent the attending's criterion by a fixed vector w∗w^*. Each intervention is a vector of dd attributes, and the interventions available for the tt-th patient form a set Xt⊆RdX_t \subseteq \mathbb{R}^d. The resident proposes one, and is then shown the one the attending chose, a maximizer of ⟨w∗,⋅⟩\langle w^*, \cdot \rangle — and nothing more: not the criterion, not what any option is worth, not the size of the mistake. As in [10], this leads to the following problem.

Online inverse linear optimization. Fix a hidden w∗∈Bw^* \in \mathbb{B}. For t=1,2,…t = 1, 2, \ldots:

  1. a compact nonempty action set Xt⊆BX_t \subseteq \mathbb{B} is revealed, chosen adversarially as a function of the history;

  2. the learner recommends an action x^t∈Xt\hat{x}_t \in X_t;

  3. the expert takes xt∈arg⁡max⁡x∈Xt⟨w∗,x⟩x_t \in \arg\max_{x \in X_t} \langle w^*, x \rangle, which the learner then observes.

Here B\mathbb{B} is the unit ball of Rd\mathbb{R}^d and ∥⋅∥\|\cdot\| the Euclidean norm. The learner is charged the cumulative shortfall of its recommendations, in the expert's own currency,

RT:=∑t=1T⟨w∗,xt−x^t⟩≥0,(1)R_{T}:=\sum_{t=1}^{T}\langle w^{*},x_{t}-\hat{x}_{t}\rangle\geq0, \tag{1}

∗^{*}Also with New York University.

†^{\dagger}Also with Carnegie Mellon University.

MethodRegretUniform in TTProperDeterministicPer-round cost
Bärmann et al. [4, 5] (OGD/MWU)O(T)O(\sqrt{T})noyesyesO(τsol+d)O(\tau_{\mathrm{sol}}+d)
Besbes et al. [7, 8] (circumcenter)O(d4ln⁡T)O(d^4\ln T)noyesyesτsol+poly(d,T)\tau_{\mathrm{sol}}+\mathrm{poly}(d,T)
Gollapudi et al. [16] (centroid)O(dln⁡T)O(d\ln T)noyesyesτsol+poly(d,T)\tau_{\mathrm{sol}}+\mathrm{poly}(d,T)
Gollapudi et al. [16] (John ellipsoid)exp⁡(O(dln⁡d))\exp(O(d\ln d))yesyesyesτsol+poly(d,T)\tau_{\mathrm{sol}}+\mathrm{poly}(d,T)
Sakaue et al. [28] (online Newton step)O(dln⁡T)O(d\ln T)noyesyesO(τsol+d2+τproj)O(\tau_{\mathrm{sol}}+d^2+\tau_{\mathrm{proj}})
Sakaue [29] (second-order perceptron)O(dln⁡T)O(d\ln T)noyesyesO(τsol+d2)O(\tau_{\mathrm{sol}}+d^2)
Dewasurendra [13] (multiscale vote)O(d)O(d)yesnoyesTΘ(d)T^{\Theta(d)}
Cai et al. [10] (variable metric)O(d)O(d)yesyesyesO(τsol+d2)O(\tau_{\mathrm{sol}}+d^2)
Sakaue [27] (multiscale matrix weights)O(d)†O(\sqrt{d})^{\dagger}yesnono(dT)O(d)τsol+finite(dT)^{O(d)}\tau_{\mathrm{sol}}+\mathrm{finite}
This paper (revocable variable metric) with skipping (Prop. 3.3)O(d)\mathbf{O}(\sqrt{\mathbf{d}})yesyesyesO(τsol+td2+t2d)O(\tau_{\mathrm{sol}}+td^2+t^2d)
O(d)\mathbf{O}(\sqrt{\mathbf{d}})yesyesyesamort. O(τsol+d2log⁡T)O(\tau_{\mathrm{sol}}+d^2\log T)
Lower bound [28]; [10, Thm. 3.1]Ω(d)\Omega(\sqrt{d})————

Table 1: Regret RTR_{T} of online inverse linear optimization on the unit ball. τsol\tau_{\mathrm{sol}}: one linear optimization over XtX_{t}; τproj\tau_{\mathrm{proj}}: one Mahalanobis projection; †^{\dagger} in expectation.

and never observes a single term of it. A bound is uniform in TT if it does not depend on the horizon; it then bounds the total shortfall ever incurred. A learner is proper if it commits to an objective before it sees the menu: at the start of round tt it holds an estimate w^t≠0\hat{w}_{t} \neq 0 of w∗w^{*} and recommends x^t∈arg⁡max⁡x∈Xt⟨w^t,x⟩\hat{x}_{t} \in \arg\max_{x \in X_{t}} \langle \hat{w}_{t}, x \rangle, at the cost of one linear optimization over XtX_{t}. It is improper if x^t\hat{x}_{t} may be any function of XtX_{t} and the history. A proper learner carries an explicit hypothesis about the attending's criterion, and each of its proposals is the best one under that hypothesis.

This paper is about the dimension. Bounds uniform in TT are now known (Table 1), so the horizon is no longer the obstacle; what remains is how the total shortfall grows with dd, the number of attributes the criterion weighs. There is a floor: an adversary that offers the two actions ±ei\pm e_{i} in round i≤di \leq d and draws the signs of w∗∈{±1/d}dw^{*} \in \{\pm 1/\sqrt{d}\}^{d} at random makes the better action of each round independent of everything seen before, so every learner, even a randomized one, pays d\sqrt{d} in expectation [28, 27]. We ask for a learner that pays only that much and is also proper and efficient, with poly(d,T)\mathrm{poly}(d,T) arithmetic operations per round.

History. The online formulation is due to Bärmann, Pokutta and Schneider [4, 5], who obtained O(T)O(\sqrt{T}) by online gradient descent and multiplicative weights. Besbes, Fonseca and Lobel [7, 8] obtained O(d4ln⁡T)O(d^{4}\ln T) by a circumcenter rule, ProjectedCones. Gollapudi, Guruganesh, Kollias, Manurangsi, Paes Leme and Schneider [16], who studied the same protocol as contextual recommendation, obtained O(dln⁡T)O(d\ln T) by a centroid cutting-plane rule and exp⁡(O(dln⁡d))\exp(O(d\ln d)), uniform in TT, from the John ellipsoid. Sakaue, Tsuchiya, Bao and Oki [28] obtained O(dln⁡T)O(d\ln T) at O(d2)O(d^{2}) per round plus a Mahalanobis projection by an online Newton step, together with the lower bound above, and Sakaue [29] kept O(dln⁡T)O(d\ln T) and removed the projection by a second-order perceptron. Under structural assumptions the regret is finite: Sakaue, Bao and Tsuchiya [26] assume that the gap in value of every action is at least a fixed multiple of its distance to the optimal one, Oki and Sakaue [23] that every XtX_{t} is M-convex, as the bases of a matroid are, and Kitaoka [19] obtains finite regret and finitely many mistakes for the online Newton step on uniformly bounded integer action sets, for w∗w^{*} in the probability simplex and unique optimal actions; that bound carries a factor d2d^{2} and depends on the range of the coordinates. Whether a finite poly(d)(d) bound holds for arbitrary action sets was asked in [16, 23]. Dewasurendra [13] answered it with O(d)O(d), uniform in TT: at every dyadic scale he covers the class of optimality-gap functions, pools the resulting tolerant tests into one weighted vote and plays the action the vote prefers — an improper rule with TΘ(d)T^{\Theta(d)} tests per round.

Cai, Gupta, Gupta, Guruganesh, Jiang, Liaw, Mehta, Paes Leme, Velegkas and Wang [10] obtained O(d)O(d), precisely RegT≤63dR\text{Reg}_T \leq 6\sqrt{3}dR in the game below, with a deterministic proper rule at O(d2)O(d^2) per round: a variable-metric step with a self-normalized rank-one update, analyzed through the trace power tr(H−1/2)\text{tr}(H^{-1/2}). Sakaue [27] then reached the optimal order, E[RT]≤221d\mathbb{E}[R_T] \leq 2^{21}\sqrt{d} for every TT, without knowledge of TT and for arbitrary compact action sets and ties, by matrix multiplicative weights on polynomial feature spaces at geometrically spaced scales. The learner is randomized and improper — it solves a linear program for a distribution over a list of actions and samples from it — and in round tt its finest scale acts on polynomials of degree Θ(t4)\Theta(t^4) in dd variables, with (dT)O(d)(dT)^O(d) linear optimizations over XtX_t in its rational implementation. Sakaue proves that every round terminates, gives no polynomial bound on the running time, and asks whether d\sqrt{d} is attainable in time polynomial in the dimension, the horizon and the input length [27, Section 7]. So far, then, d\sqrt{d} has been reached only by an improper, randomized rule with no polynomial bound, and O(d)O(d) is the best bound known for a proper learner, for a deterministic one, and for an efficient one.

The problem is the online face of an older one — recover an objective from observed optimal decisions — initiated by Burton and Toint [9] for shortest paths and cast in linear-programming form by Ahuja and Orlin [1]; see [11] for a survey. Offline work turns on the choice of loss [17, 6, 21, 31], on noisy [3] or partially specified [25] data, and on statistical rates [15]; applications run from control [2] and routing [32] to offline reinforcement learning [14].

Reduction to a cutting-plane game. As in [10], we work with the following primitive, isolated in [16].

Cutting planes with a strong separation oracle. A point w∗w^* is hidden in a known compact convex body K1⊆RdK_1 \subseteq \mathbb{R}^d; let R:=max⁡w∈K1∥w∥R := \max_{w \in K_1} \|w\|. For t=1,2,…t = 1, 2, \ldots:

  1. the learner queries a point pt∈Rdp_t \in \mathbb{R}^d;

  2. an adversary, having seen ptp_t and the history, returns a unit vector vtv_t subject only to rt:=⟨w∗−pt,vt⟩≥0r_t := \langle w^* - p_t, v_t \rangle \geq 0.

The regret is RegT:=∑t≤Trt\text{Reg}_T := \sum_{t \leq T} r_t, a sum of nonnegative losses; the oracle is strong in that vtv_t may be chosen after seeing ptp_t.

A learner for this game on K1=BK_1 = \mathbb{B} gives a proper learner for online inverse linear optimization: play w^t:=pt\hat{w}_t := p_t (any fixed nonzero vector if pt=0p_t = 0), recommend x^t∈arg⁡max⁡x∈Xt⟨w^t,x⟩\hat{x}_t \in \arg\max_{x \in X_t} \langle \hat{w}_t, x \rangle, and return vt:=δt/∥δt∥v_t := \delta_t / \|\delta_t\| for δt:=xt−x^t\delta_t := x_t - \hat{x}_t, skipping the rounds with δt=0\delta_t = 0, which cost nothing. Optimality of x^t\hat{x}_t and of xtx_t gives ⟨pt,δt⟩≤0≤⟨w∗,δt⟩\langle p_t, \delta_t \rangle \leq 0 \leq \langle w^*, \delta_t \rangle, so rt=⟨w∗−pt,δt⟩/∥δt∥≥0r_t = \langle w^* - p_t, \delta_t \rangle / \|\delta_t\| \geq 0 and the round is legal, and as ∥δt∥≤2\|\delta_t\| \leq 2 the shortfall is ⟨w∗,δt⟩≤⟨w∗−pt,δt⟩=∥δt∥rt≤2rt\langle w^*, \delta_t \rangle \leq \langle w^* - p_t, \delta_t \rangle = \|\delta_t\| r_t \leq 2r_t. Hence RT≤2RegTR_T \leq 2 \text{Reg}_T; the expert need only be, round by round, at least as good as the recommendation under its own criterion.

References (22)