Inverse Linear Bandits via Linear Programs
Ziqing Song, Lin F. Yang, Ruosong Wang
NeurIPS 2026
Abstract. Inverse reinforcement learning (IRL) is a well-established paradigm for circumventing the need for explicit reward. In this paper, we study the problem of estimating the reward function from a single sequence of actions (i.e., a demonstration) of a stochastic linear bandit algorithm. Our main result is a unified approach for inverse linear bandits, based on the idea of formulating a linear program by tightly characterizing the confidence intervals of pulled actions. We show that the estimation error of our algorithms matches the information-theoretic lower bound, up to polynomial factors in and , where is the dimensionality of the feature space and is the length of the demonstration. Compared to prior approaches, our approach (i) gives a unified reward estimator that works when the demonstrator employs LinUCB or Phased Elimination, two popular algorithms for stochastic linear bandits, while existing estimator only works for Phased Elimination; (ii) does not require access to hyperparameters or internal states of the demonstrator algorithm as required by prior work; and (iii) works for general action sets, while existing estimator requires assumptions on the density and geometry of the action set. We further demonstrate the practicality of our new approach by validating our new algorithms on synthetic data and demonstrations constructed from real-world datasets, where our estimators significantly outperform existing ones.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:49 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper studies the IRL problem for linear bandits from a single run of either lin-UCB or phased elimination. The main contribution is a linear programming formulation and the analysis of this algorithm. The reviewers were uniformly positive, and the paper makes significant advances over prior work on this problem. The rebuttal was thorough and effective.
Final justification
This is a clean contribution with a punchy message.
- Final justification
- This is a clean contribution with a punchy message.
Read meta-review
Meta-review
This paper studies the IRL problem for linear bandits from a single run of either lin-UCB or phased elimination. The main contribution is a linear programming formulation and the analysis of this algorithm. The reviewers were uniformly positive, and the paper makes significant advances over prior work on this problem. The rebuttal was thorough and effective.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies inverse linear bandits where the estimator is provided a sequence of actions chosen by a online learner and aims to estimate the reward parameter. The learner may adopt either phase elimination or LinUCB algorithms. The paper proposed to use linear programing to estimate the parameter and it proves that the reward estimation error is upper bounded by for each action , where is the feature vector and is the Gram matrix. The paper also provides an lower bound to illustrate the order-optimality of their methods.
Strengths and weaknesses
Strengths:
- The theoretical results are solid and the presentation of the paper is also clear and easy to follow.
- The paper also provides empirical results that validate the theoretical findings.
Weaknesses:
- While the inverse RL problem is important, the scope of this work is limited. It only studies linear bandits with two standard algorithms. Other algorithms and problem setting remains unknown, for example, multi-armed bandits, contextual bandits, and Thomson-sampling-based demonstrator. It would be better to see some discussions on those variations.
Questions
-
I have a feeling that the proposed method relies on well-behaved demonstrator. I am wondering if the hyperparameter chosen by the demonstrator would affect the estimator. For example, in the phase elimination algorithm, we may choose the phase length to be , where could be any integer such as 2, 3, etc. In LinUCB, could be any number that scales in the order . The estimator can still work with these variants?
-
I think one of the motivations of this studying this problem is to obtain an estimated reward for downstream tasks. It would be better to see some discussions on this problem. For example, using the estimated reward, we can obtain a policy with a "small" sub-optimal gap.
Limitations
Yes.
Final justification
I will keep my score 4. The authors have addressed my concerns that the inverse algorithm does not heavily depend on demonstrators' hyperparameter and more importantly, they show that the learned reward can be used for downstream task. I think adding this discussion into the paper would make it more solid.
Formatting concerns
No
3 comments
Response to Reviewer J9qX (2/2)
Downstream decision quality
We agree that the downstream use of the recovered reward should be stated explicitly.
Let
If
then
This is the general covariance-adaptive guarantee for unrestricted plug-in optimization over . Without an additional global-coverage condition, the two action-dependent covariance norms in this statement cannot in general be replaced by a function of only and . For the two demonstrators considered in our paper, however, their forward selected-action certificates allow us to extract an observed action with an explicit suboptimality guarantee.
For Phased Elimination, let denote the last phase reached by round . We may choose any action played in this phase. In particular, the implementable choice
requires no knowledge of the phase boundaries and is necessarily an action from the last phase. On the Phased Elimination confidence event, every action selected in phase satisfies
The phase-length calculation used in Algorithm 4 gives
for an absolute constant . Since and , this implies
Therefore, with the standard choice and , with probability at least ,
For LinUCB, define the observable confidence widths
and choose
On the simultaneous LinUCB confidence event, optimism and confidence for the selected action imply, for every ,
Applying this inequality at and using the monotonicity of the standard confidence sequence gives
Moreover, the elliptical-potential lemma and give
Since the minimum is no larger than the average,
Consequently,
With the standard choice , we have , and hence
Neither demonstrator-specific bound contains , because both are derived directly from the forward algorithm's selected-action certificate under , rather than from the inverse LP interval involving the approximate value . We will add the general plug-in statement and these two explicit downstream guarantees to the revision.
Thanks for the detailed response. I have no further questions and will keep my score.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 4/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper tackles IRL in the bandit setting from trajectories of the learners as it learns. This is unlike most recent works in IRL that assume access to expert demonstration where the expert carries out a soft-optimal policy. The authors
- show a lower bound on estimator error under specific contextual bandit allocation algos,
- propose an estimator that matches the lower bound,
- perform some validating numerics.
Strengths and weaknesses
Strengths:
- IRL from non soft-optimal expert demos is understudied (non studied?) and realistically interesting. One would indeed want when faced with a learning system to understand the reward the agent is facing.
- Presentation is clear, math appears sound.
Weaknesses:
- Results are quite algorithm specific. It'd be good to isolate the minimal conditions that enable them (or discuss why not doing it) and verify them under specific algos.
Questions
Are there minimal conditions that can be instantiated across the bandit algos you study that would enable your results?
Limitations
yes.
Formatting concerns
None
1 comment
We sincerely thank the reviewer for the positive assessment and helpful suggestion.
Common structural conditions
We agree that it is useful to isolate the common conditions underlying the two algorithms.
The first structural condition is that, for each round , the observed action history yields a function
depending only on the observed actions, such that
Given , this becomes
which is exactly the type of constraint used by our LP.
For Phased Elimination, is obtained from the elimination accuracy of the current phase. For LinUCB, it is obtained from the optimism-based confidence width. Algorithm 6 combines widths that dominate both certificates.
The second condition is that the covariance matrix generated by the observed actions concentrates appropriately. In our analysis, this takes the form of a comparison between the empirical covariance matrix and the corresponding expected or ideal covariance matrix. Such a comparison allows an error bound expressed through
to be related to the expected-covariance quantity
appearing in the information-theoretic lower bound.
Thus, for another forward algorithm, our method should extend if:
- its observed action history directly yields a usable one-sided selected-action reward certificate; and
- the covariance matrix of its trajectory satisfies an appropriate concentration or comparison property.
We view these as sufficient structural conditions used by our present proofs, rather than a complete necessary-and-sufficient characterization. In particular, no-regret alone implies neither condition. Explore-Then-Commit illustrates the issue: its exploration schedule is fixed in advance, and its later actions reveal essentially only which action is empirically preferred, not the quantitative reward or confidence information required by an inverse estimator. Hence one cannot expect an action-only inverse algorithm to handle every no-regret demonstrator. Some algorithm-dependent behavioral certificate beyond no-regret is indispensable. We will add this clarification to the revision.
- Rating
- 4/6
- Confidence
- 2/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
A linear bandit is a bandit where the learner plays actions from a set , and receives rewards for some noise term . An inverse linear bandit is a learning problem where, given the actions played by a linear bandit algorithm , the goal is to predict the that the linear bandit algorithm was attempting to maximize. This work proposes a set of linear programs that can be used to solve the inverse problem when the linear bandit algorithm being run was either LinUCB or Phased Estimation. The algorithm proposed in its most general form (Algorithm 6) does not need to know which was run and does not need to know the hyperparameters being used.
The key idea is to linearly relate the quality of the action taken at an iteration and the maximum reward, and find a feasible reward satisfying all the linear relationships. The authors additionally prove a lower bound matching their upper bounds up to a dependence on the dimension, and run experiments comparing their algorithm to prior work.
Strengths and weaknesses
Strengths:
- The algorithms proposed are agnostic to the hyperparameters of the bandit algorithms being run, which prior work was unable to do and seems necessary for any reasonable inverse algorithm, so this is a useful gap in the literature to be filled.
- The main idea of the algorithms is quite simple. The quality of the decision made at every iteration by Phased Estimation or LinUCB can be linearly related to the maximum reward, and so inverse learning can be written as a linear program. I did not check the appendix in detail, but the proofs look correct to me.
Weaknesses:
- The clarity of the paper can be improved in a few places. For example, the writing should be clearer as to what a successful estimate of looks like when solving inverse linear bandits on line 165, or when the phrase `estimation error' is used on line 262, it is not clear what this means. The paper should be clearer that the goal is to find such that for any action , the value is small as a function of . Prior work like Guha et al. work to minimize instead, so it important this is written up front. Similarly, quantities like and are not defined in the main body or instantiated in most theorems. It would also be helpful if a definition of a norm weighted by a matrix was given.
- The inverse algorithms proposed all require the demonstrator to be running a specific algorithm, namely LinUCB or Phased Estimation. Of course, a general no-regret demonstrator can only reveal which action was optimal (for example when the demonstrator is already perfect and plays the optimal action repeatedly), which is why knowledge of the algorithm is necessary for reconstructing the reward of suboptimal actions. But needing the demonstrator to be running one of two specific procedures seems rather restrictive to me.
- Moreover, the gap between the upper and lower bounds is large in its dependence on the dimension (especially the for LinUCB), and I think larger than prior work (see question 2 below). The results of the paper would have been more significant had the authors either fully understood this limited setting, gave an algorithm that can reconstruct the reward for a broad class of demonstrator algorithms, or at the very least generalized their intuition to describe a procedure in which a corresponding LP could be created given an arbitrary linear bandit demonstrator algorithm.
Very minor typos:
- There is a on line 285.
- Figure 3 in the appendix does not label the lines, so it is not clear which corresponds to the modified or which is the ordinary algorithm (though from context, it seems the better one is the modified one).
Questions
- How robust are the algorithms to demonstrator mistakes? The algorithm finds a theta that makes the inner product with the played action fall in increasingly smaller and smaller intervals. If the demonstrator was to follow Phased Estimation but make one mistake right at the end, are there any guarantees we can prove the algorithm has? Or could the LP not have any feasible solutions? I imagine reward learning from human experts to run have this issue. This seems like a symptom of over fitting to the demonstrator algorithms.
- How do the given bounds compare to prior work? In particular, how does the dependence on the dimension compare with Guha et al. when run on Phased Elimination? From my reading, they seem to get a better and optimal dependence. Can you translate your bounds in terms of ?
- In the experiments in Section 7, how does the paper's main proposed algorithm, algorithm 6, compare with algorithms 3, 4, and Guha et al. on phased estimation? This seems important to have in the plots. It would be useful to see if making the inverse algorithm work for two bandit algorithms simultaneously worsens, keeps the same, or perhaps improves the quality of the reconstruction.
- The lower bound given in Theorem 4.1 applies even when the inverse algorithm is shown the rewards received. Is it correct to say that the lower bound really is just the uncertainty the learner themselves have about the true reward? Can you show a separation between learning and inverse learning? That is, do you expect the problem of predicting to be strictly harder when only shown the actions of a demonstrator and not the reward received?
Limitations
yes
Final justification
I was initially concerned that the paper is too overfit just two algorithms to be useful. This is a concern that remains, but the authors have promised to add a description of how to build an LP to invert any algorithm, which makes the work interesting enough. The authors have also elaborated that Guha et al.'s results are not in fact stronger. These two points address my main concerns and therefore I have raised my score, albeit at a low confidence, since this line of work lies outside my usual area of expertise.
Formatting concerns
N/A
3 comments
Response to Reviewer haXu (1/2)
We sincerely thank the reviewer for the careful reading and constructive feedback. We will correct the typo and add a clear legend distinguishing the standard and modified versions of Algorithm 3.
Estimation objective and notation
We apologize that the estimation objective was not stated clearly enough. Our main theoretical metric is the action-wise reward prediction error
For a positive semidefinite matrix , we define
Thus, measures how well the demonstrator’s trajectory covers the direction .
We will also define and explicitly. They are the confidence parameters used by the two demonstrators.
How to construct an LP for another demonstrator
The reason for the large polynomial dependence is structural: the final estimation error is obtained as the product of two error sources, and each source already carries dimension-dependent factors that are difficult to remove. Moreover, several key steps in the analysis rely on inequalities derived from the elliptical potential lemma which inherently contributes a factor of . These factors multiply rather than add. Therefore, the large polynomial dependence is structural to our present proof, and substantially improving it would require new techniques rather than a simple retuning of the LP.
We agree that the paper should also explain more clearly how the LP construction may extend beyond LinUCB and Phased Elimination.
The key structural property is the following. For each round , there should exist a function
depending only on the observed action history, such that it provides a one-sided lower bound on the true reward of the selected action:
Given an approximate optimum value , this becomes
This is exactly the type of inequality used by our LP.
For Phased Elimination, comes from the phase index. For LinUCB, optimism gives a lower bound of the form , so is the confidence-width term. Algorithm 6 is possible because it uses a width that dominates both structures.
For another forward algorithm, the corresponding procedure is therefore:
- derive from the observed action history a selected-action certificate of the above form;
- use these certificates as linear constraints;
- establish an appropriate concentration or comparison result for the covariance matrix generated by the trajectory.
The first property makes the LP constraints valid. The covariance concentration result then allows the empirical-covariance error guarantee to be related to the expected-covariance benchmark appearing in our lower bound.
Thus, for any forward algorithm whose action history directly yields inequalities of the form
and whose covariance matrix also concentrates appropriately, our inequality-based approach should extend naturally.
However, one cannot expect a single inverse algorithm to work for every no-regret demonstrator. Explore-Then-Commit illustrates this directly: its exploration actions are fixed in advance, while its commitment stage reveals essentially only the identity of an empirically preferred action, rather than the reward magnitudes or confidence information needed to construct the inequalities above. Thus, sublinear regret for Explore-Then-Commit does not imply that its observed actions contain information useful for inverse estimation.
Demonstrator mistakes
Suppose an unknown set , , contains all certificate violations, so that for ,
Enumerate all with , delete the constraints in , solve the corresponding LP, and choose the solution with the smallest . Since is feasible, . Let
For every ,
Restricting to only decreases the sums in the original proof. Moreover, at most indices are removed and , hence
Thus the original rate changes only by the constant when . The enumeration requires LPs. This covers finitely many local certificate violations, but not an intervention that invalidates an unbounded number of subsequent certificates.
Response to Reviewer haXu (2/2)
Comparison with Guha et al.
Guha et al. study under a restrictive action-set assumption: at every sufficiently late phase and in each of prescribed directions, suitably placed near-optimal actions must exist and form a well-conditioned design. Generic finite, sparse, lower-dimensional, or irregular action sets need not satisfy this.
The relative Euclidean objective is also not invariant to a redundant feature representation. Start with any action set satisfying the conditions of Guha et al. Append two coordinates, both equal to , to every action:
If a unit-norm convention is required, all augmented actions can be divided by the same constant; this does not change the argument below. Consider the two parameters
where is any sufficiently small constant. For every augmented action,
More generally, the last two coordinates enter every action reward only through their sum. Therefore, the direction is completely unobservable. In particular, the two instances above induce exactly the same reward distribution for every action, have the same optimal action, and have the same exact optimal value . Nevertheless,
Since the complete observations have the same distribution, every estimator satisfies
The lower bound is a positive constant independent of , so no estimator can provide a relative Euclidean error guarantee that vanishes with on this augmented representation. Guha et al. obtain a relative Euclidean guarantee only under their stronger density, smoothness, full-dimensional conditioning, and Phased-Elimination-specific assumptions, while our method applies to general action sets, uses all observed actions, does not require demonstrator internal states, and also covers LinUCB.
Additional evaluation of Algorithm 6
We have added 100-trial experiments on Phased Elimination trajectories for with both - and -action sets. In every trial, Guha et al. and Algorithms 3, 4, and 6 receive exactly the same trajectory and problem instance.
The following table reports mean relative Euclidean error the two-sided 95% confidence-interval half-width.
| ord | phase | mean | Guha et al. | Alg. 3 (modified) | Alg. 4 | Alg. 6 |
|---|---|---|---|---|---|---|
| 1 | 6 | 11,641,693 | ||||
| 1 | 8 | 159,913,047 | ||||
| 2 | 6 | 9,508,429 | ||||
| 2 | 8 | 151,166,435 |
Across all tested phases, Algorithms 4 and 6 are extremely close: the ratio between their mean errors remains close to . Thus, making the inverse estimator simultaneously compatible with LinUCB and Phased Elimination incurs little additional empirical cost.
Is action-only inverse learning strictly harder?
Let and denote the optimal local-minimax errors when rewards are respectively observed or hidden. For , our results give
Thus action-only inverse learning differs from reward-observed learning by at most for our structured demonstrators.
In general, we do expect action-only inverse learning to be strictly harder for some demonstrators or instance classes. However, our current lower bound does not establish such a strict separation. It continues to hold when rewards are observed, so it should be interpreted as a universal covariance-based statistical benchmark rather than a separation theorem between action-only and reward-observed estimation.
Whether there is an unavoidable additional gap caused solely by hiding rewards within these structured demonstrator classes remains an interesting open question.
Thank you for your response. I feel all my concerns were adequately addressed, and will therefore raise my score.
The direct comparison to Guha et al. and the highlighting that their setting is more limited was helpful to me. Thank you for your additional experimental results. While the LPs given only work on specific algorithms, it is rather nice that a simple procedure can be used as a heuristic to design an LP for other classes of demonstrator algorithms. Finally, I agree that finding the additional hardness caused by hiding rewards (if it exists) is a very interesting open question.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Response to Reviewer J9qX (1/2)
We sincerely thank the reviewer for the positive evaluation and constructive questions.
Dependence on demonstrator hyperparameters
Our estimator does not require access to the exact hyperparameters of the demonstrator. The relevant requirement is that changing these hyperparameters preserves the same observable selected-action certificate up to a global multiplicative constant.
For Phased Elimination, this statement can be made more explicit. In the version in our paper, the target accuracy in phase ℓ is
and the number of pulls allocated to an action is proportional to
Suppose instead that the demonstrator uses any fixed geometric factor k>1, so that
The confidence interval and elimination threshold are then changed from order 2−ℓ to order k−ℓ. To preserve the usual Phased Elimination regret guarantee, the phase sample size is changed correspondingly from order 4ℓ to order k2ℓ:
Consequently, if round t lies in phase ℓ, the same phase-length calculation as in Lemma B.3 gives
for a constant ck depending only on the fixed k. Rearranging and using ℓ≤L yields
This is exactly the relation used to justify the observable width in Algorithm 4. Therefore the unchanged constraint
remains valid; the dependence on k and the changed confidence constants are absorbed into the optimized global variable C. The same conclusion holds for Algorithm 6 because it contains this Phased-Elimination width as one of the two terms in its maximum. Multiplying every phase length by another fixed constant only changes ck. Thus neither Algorithm 4 nor Algorithm 6 needs to be modified. This claim presumes that the demonstrator also rescales the confidence intervals and sample counts consistently; changing the phase schedule without doing so need not preserve the forward regret guarantee.
For LinUCB, the exact confidence coefficient is likewise unnecessary. Suppose that the demonstrator uses the confidence width
and that there exists a trajectory-independent constant c such that
where βt is the standard-order coefficient used in our analysis. Then the additional factor c is absorbed into C, and the same guarantee holds up to constant factors.
Therefore, the fixed hyperparameter changes described by the reviewer do not invalidate the estimator. They affect only the optimized value of C and the constants in the error bound.
More generally, for another forward algorithm, our approach should extend when its observed action history directly yields inequalities of the form
and when the covariance matrix generated by its trajectory concentrates appropriately. The latter condition is needed to relate the empirical-covariance guarantee produced by the LP to the corresponding expected-covariance benchmark.
The current theorem does not cover arbitrary hyperparameter schedules that change the order of the phase lengths or confidence widths. In that case, a new observable certificate and a new covariance analysis would be required.
Multi-armed bandits are a direct special case of our linear formulation. Extending the method to contextual bandits with changing action sets would require the inverse learner to observe the contexts or feasible action sets, and to derive a context-dependent selected-action certificate. The resulting adaptive design matrix would also require a problem-specific analysis. We leave this extension for future work. Thompson Sampling is not directly covered because its randomized action sequence does not directly expose the deterministic one-sided selected-action certificate required by our present LP.