We study online inverse linear optimization with a fixed unknown linear utility:
in each round, an environment presents a compact action set, the learner recommends an action from it, and the environment returns an action that maximizes the utility over the same set.
When the utility vector and the actions lie in the $d$-dimensional Euclidean unit ball, we give a randomized algorithm whose regret---the cumulative utility shortfall relative to optimal actions---is $O(\sqrt d)$ in expectation for every time horizon, without knowledge of the horizon.
The dependence on $d$ is optimal up to a constant factor by the known $Ω(\sqrt d)$ lower bound for horizons $T\ge d$.
Our algorithm maintains matrix multiplicative weights on polynomial feature spaces at geometrically spaced scales.
It selects a recommendation distribution by solving a linear program and updates its score matrices by comparing the available actions with the feedback action.
With rational oracle outputs and feedback actions, an implementation computable relative to a linear-optimization oracle preserves the $O(\sqrt d)$ regret bound.
Whether the same rate is attainable with running time polynomial in the dimension, horizon, and input length remains open.