Manuscript Offprint
arXiv:2610.26103Learning from a Bandit Learner
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Classical inverse bandit methods typically aim to recover true reward parameters. In contrast, this paper proposes inferring a demonstrator's subjective beliefs, specifically, their internal sub-optimality gap estimates. We consider no-regret demonstrators following a randomized policy (e.g. Thompson sampling) and characterize a family of such algorithms for which per-step inversion is possible, allowing gap estimates to be recovered directly from the arm-selection distribution. Our analysis identifies an inherent stability-coverage trade-off. Inversion becomes ill-conditioned as the demonstrator concentrates its probability mass on a single arm, while the number of informative rounds depends on the rate at which its policy converges. We delineate conditions under which inversion is reliable and establish theoretical guarantees on the resulting estimation error. Experiments on simulated data support the analysis and illustrate how these conditions affect gap recovery in practice.
1 INTRODUCTION
Imagine going to the casino with a friend. As they decide to try their luck on the slot machines, you sit back and watch, observing them progressively allocate their coins to the machines. Suppose your friend (the learner) has recently read Bandit Algorithms (Lattimore and Szepesvári, 2020) and can perform a no-regret learning strategy, but you (the observer) do not know exactly which one. Can you infer their belief on the average rewards of the machines?
We study the problem of learning from a learner (Jacq et al., 2019) in the bandit setting, a variation of the Inverse Bandits (IB) problem (Guo et al., 2022; Guha et al., 2024) that we address under different assumptions and observation models. Guo et al. (2022) study a white-box setting in which the observer knows the learner's internal decision mechanism exactly and uses it explicitly to form estimates of the true mean rewards, that are recoverable only up to a constant due to the unidentifiability of inverse problems (Russell, 1998). In contrast, we propose a formulation that relaxes the white-box assumption. Specifically, we assume that the demonstrator belongs to a broad family of randomized, no-regret bandit algorithms, and that the observer has access to the realized action sequence, with neither knowledge of the exact policy that generated it nor of the rewards associated with the played actions. However, we assume that the observer can form an estimate of the demonstrator's sampling probability. Under this structured grey-box assumption we target the learner's internal beliefs about the means, which may not coincide with the true means (Halder et al., 2025). This shift is deliberate: these beliefs govern the behavior of a demonstrator that is still learning and, without additional information, are the only reward-related quantities that can be learned from its actions. Even if the beliefs on the rewards are biased, a second learner can leverage them to construct a better policy for the same task, in the spirit of "better than the demonstrator" approaches (Brown et al., 2020).
We focus on randomized algorithms, which implicitly or explicitly sample arms at each round from a distribution that depends on an internal estimate of the mean rewards and the learner's uncertainty. The most prominent such algorithm is Thompson Sampling (TS) (Thompson, 1933; Russo et al., 2018), which pulls arms according to the probability that their mean reward is larger than all others, what Menet et al. (2025) call Probability of Maximality (PoM). In TS, the sampling probability is implicit via an indirect posterior sampling mechanism, making it difficult to recover the belief parameter in closed form from the sampling distribution.
Our first contribution is a general class of randomized bandit algorithms whose sampling probabilities admit a closed-form relationship with their internal mean estimates. Building on the Linear-Time Independence-based Estimator (LITE) of Menet et al. (2025), in Section 2.2 we introduce v-LITE Sampling (v-LS), which turns the LITE estimator into a sampling rule. Under suitable assumptions, we provide regret bounds for v-LS in Appendix B.
Our second contribution is an inversion method for this class of learners. In Section 4, we show how the demonstrator's sampling probabilities can be inverted to recover its internal gap estimates. We derive inversion-error bounds when the sampling probabilities are available only through estimates, including under batched observations. To move beyond exactly specified v-LS demonstrators, we define a broader family of algorithms whose internal gaps and sampling policies are close to those of a reference v-LS learner. For this family, the reconstruction error is controlled jointly by the sampling-probability estimation error and the mismatch with the reference policy. We support these theoretical results with simulations.
The learner interacts with the environment over a horizon of T rounds. At each round t, the learner selects an action , then the environment samples a reward and reveals it to the learner.
Define , i.e., the number of pulls of arm at time . The optimal arm is defined as .
A learning algorithm is said to be no-regret if its cumulative regret, , grows sub-linearly with the horizon . Classical algorithms known to achieve sub-linear regret include Upper Confidence Bound (UCB) (Auer et al., 2002; Srinivas et al., 2009) and TS (Thompson, 1933; Russo et al., 2018).
Throughout the paper, we use the terms learner and demonstrator interchangeably to refer to the online learning algorithm that sequentially selects actions, observes their rewards, and aims to minimize regret relative to the best arm. The observer, by contrast, has access only to the resulting action trajectory , together with any information permitted by the specified observation protocol, and never observes the corresponding rewards.
2.1 TS and the Probability of Maximality
TS (Thompson, 1933; Agrawal and Goyal, 2013; Russo et al., 2018) is a Bayesian algorithm for sequential decision-making that balances exploration and exploitation through posterior sampling. While being arguably the oldest strategy for bandit play, it has remained popular, e.g., enabling analysis of coding agents (Menet et al., 2026a) or improving robustness of LLM post-training (Menet et al., 2026b). In TS, the learner maintains a posterior distribution over the unknown parameters governing the reward distribution of all arms. At each round , the learner samples from the current posterior and selects the arm
observes the associated reward , and updates the posterior via Bayes rule. In particular, under a Gaussian prior over the rewards, and assuming known noise variance , after selecting arm the update has a closed form . Defining as a diagonal matrix with , the covariance matrix and mean vector are updated as:
where is the standard basis vector for the arm pulled at round . We denote the marginals for each arm as , where and . Importantly, depends solely on the initial prior covariance and the action history, making the sequence of marginal uncertainties perfectly deterministic and observable (Equation (2)). In contrast, depends on the observed rewards (Equation (3)), which is observable to the learner but not to the inverse learner.
The randomized mechanism of Equation (1) was originally designed by Thompson (1933) to approximate the likelihood that one arm's mean reward is larger than those of all other arms, the so called Probability of Maximality (PoM). Indeed, it can be shown that the conditional distribution of the identity of the optimal arm coincides exactly with that of the action chosen by TS:
where denotes all observations up to round .
Ch. 36 (Ex. 36.3) of Lattimore and Szepesvári (2020).
2.2 LITE sampling
Although the TS mechanism already provides samples from the PoM, direct access to it opens up new possibilities such as Entropy Search (Hennig and Schuler, 2012; Menet et al., 2025), Bayes-optimal batch selection (Fromer et al., 2025; Menet et al., 2025), policies for zero-sum two-player games (O'Donoghue and Lattimore, 2021), and scaling up Thompson sampling via fine-tuning of LLMs (Menet et al., 2026c).
Therefore, we introduce a family of algorithms whose sampling probability is directly connected to the PoM.
Definition 2.1 (v-LITE). Let be a strictly increasing and continuously differentiable CDF, and let be given location and scale parameters for each arm . We define the v-LITE estimator of PoM as the probability vector with
where the threshold is the unique constant ensuring normalization, i.e., that .
Given that this approximate PoM can be obtained efficiently via binary search for (Menet et al., 2025), a natural approximation to TS is a randomized algorithm that samples arms directly according to v-LITE.
Definition 2.2 (v-LITE Sampling, v-LS). At round t, v-LS computes according to Definition 2.1, where are the posterior mean and standard deviation of the Gaussian marginals . Then, v-LS selects an action and updates the posterior parameters.
The v-LS family is motivated by two prominent special cases that approximate TS:
• VBOS: Setting recovers variational Bayesian optimistic sampling (VBOS), a popular and theoretically sound no-regret approximation of TS for subgaussian rewards (O'Donoghue and Lattimore, 2021; Tarbouriech et al., 2023; Menet et al., 2026c).
• F-LITE: Setting , where is the standard normal CDF, recovers the F-LITE estimator of Gaussian PoM (Menet et al., 2025). F-LITE is a highly accurate TS approximation derived using extreme value theory, though no-regret guarantees are not established for bandit play under -LS.
v-LS applies under broad distributional assumptions; its no-regret properties are established in Appendix B. Particularly, for subgaussian and , it achieves regret (Tarbouriech et al., 2023). In the correlated Gaussian setting, this improves to (Menet et al., 2026c), where is the maximum information gain (Srinivas et al., 2009) and scales as for an effective dimension . We write LS when referring collectively to v-LS for all admissible choices of .
3 PROBLEM FORMULATION
We consider a randomized no-regret algorithm A as a demonstrator. In each round , A samples conditional on its interaction history .
The observer has access to the complete action trajectory , but not to the corresponding rewards. We assume that the observation protocol permits the construction of estimates of the conditional action distributions , either from the trajectory itself or from additional action-level observations. In Section 4.2.1, we quantify how the estimation error in affects inversion under suitable approximation guarantees.
Access to is behavioral rather than white-box: the observer does not see the realized rewards, the demonstrator's internal beliefs, or the exact mechanism mapping its history to . We initially impose no relationship between the demonstrator's internal reward estimates and its sampling probabilities. The structural assumptions that make inversion possible are introduced in Section 4.
Objective. Our goal is to recover the internal gap estimates that drive the demonstrator's behavior, focusing on the rounds during which it is still actively exploring. Because the observer does not observe rewards, it cannot identify the true optimal arm. We therefore use the empirically most-pulled arm as an observable reference: , where ties are broken arbitrarily. For each and , we define the demonstrator's unobserved internal gap estimate relative to as
where is the demonstrator's internal mean estimate for arm a at time t. These stepwise gaps act as a recentering of the internal estimates around the reference arm .
Once the demonstrator concentrates its play on a single arm, its behavior becomes near-deterministic and therefore contains little information about the magnitude of the remaining gaps: many different internal gap values induce essentially the same near-deterministic behavior. In that regime, continued inversion is neither statistically stable nor necessary for explaining the demonstrator's decisions. To reflect this, we restrict inversion to a set of relevant rounds, , where the demonstrator is still actively exploring, defined as:
Definition 3.1 (Relevant Rounds). For a fixed threshold , a round belongs to the set of relevant rounds if , and , where is the pulled arm and is the reference arm.
This set depends on the demonstrator and the generated trajectory, with more details in Section 4.2 and Appendix A.1. Using the concept of relevant rounds for inversion, we define the trajectory-level inversion error as follows:
Definition 3.2 (Trajectory-Level Inversion Error). The trajectory-level decision-relevant inversion error is defined as the average gap reconstruction error on relevant rounds over the entire time horizon:
where is the reconstructed gap of arm at time t.
This objective can be interpreted as follows. Define the realized relevant coverage as
and the average reconstruction error over relevant rounds as
Hence,
is a coverage-weighted error. Importantly, is determined by the demonstrator and the realized trajectory, not by the observer. Therefore, for a fixed demonstrator, horizon, and threshold, the observer cannot improve by changing which rounds are inverted.
Coverage may decrease as the demonstrator concentrates on , and can vanish in the limiting case. This is consistent with our objective: when , both the true and estimated relative to are identically zero, while gaps involving vanishing-probability actions cannot be stably recovered from behavior.
Related work Our demonstrator-focused metric (6) deliberately departs from standard Inverse Bandits (IB) (Guo et al., 2022), which seek to recover the true underlying means . As shown by Guo et al. (2022), reconstructing suffers an information-theoretic lower bound of:
For standard no-regret demonstrators, where a suboptimal arm is pulled only times, the lower bound decreases only as . Guo et al. (2022) provide nearly matching estimators for parameterized UCB (Auer et al., 2002; Srinivas et al., 2009) and successive-arm-elimination (Even-Dar et al., 2006) demonstrators. Although the logarithmic-regret case remains consistent, achieving a polynomially decreasing estimation error requires deliberately inflated exploration, resulting in regret for some . Our objective is different: rather than recovering the stationary environment means, we reconstruct the demonstrator's evolving internal gap estimates that govern its actions. Consequently, our method does not require modifying the demonstrator to induce additional exploration for true-reward identification. It applies to standard randomized no-regret demonstrators using action-level behavioral observations and permits approximate inversion under policy misspecification (Section 4.2).
4 iLITE: INVERTING LS
We start by illustrating the idea of our method in an idealized setting to build intuition.
4.1 Inversion in an idealized setting
We define v-LS (Definition 2.2) as our reference demonstrator. Under the additional assumptions below, we show that it can be perfectly inverted; we relax these assumptions in subsequent sections.
Assumption 4.1. The demonstrator is exactly v-LS.
Assumption 4.2. At each time t, the observer has full knowledge of the sampling distribution (Equation (4)) of the demonstrator, i.e., .
Assumption 4.3. The observer knows the initial prior covariance , the reward noise variance .
The sampling probability reveals a directly computable scaled and shifted proxy for the mean posterior:
As a result, it holds that
where is the reward variance of arm at time and can be computed, as it only depends on the pulled arms up to time and the prior, see Equation (2). Even if is unknown, it is only used internally by the demonstrator to normalize . As a result, the internal gaps (Equation (5)) w.r.t. the most-pulled arm can be recovered exactly:
In this idealized setting, , i.e., perfect inversion can be performed.
4.2 Approximate iLITE
This perfect inversion relies on two major assumptions: the learner is exactly the reference demonstrator (Assumption 4.1), and its sampling probabilities are known without approximations (Assumption 4.2). In the following subsections, we relax these two assumptions. The proofs of this section are deferred to Appendix C.
4.2.1 PoM estimated
We first retain Assumption 4.1 but relax Assumption 4.2. The observer now has access only to estimates of the v-LS distributions . For , we define the uniform approximation event
Conditioned on this event occurring, we bound the inversion error from Equation (6) in terms of . The result is independent of how is constructed: any observation protocol that ensures yields the corresponding high-probability inversion guarantee.
On , inversion proceeds as in the idealized setting:
where the variances remain computable from the observed action trajectory. We refer to this inversion procedure as iLITE and summarize it in Algorithm 1.
The oracle relevance set from Definition 3.1 depends on the unknown probabilities and is therefore unavailable to the observer. We instead define, for , the corresponding empirical relevance set
On , the true and empirical relevance sets satisfy
Thus, by computing gap estimates on , iLITE covers every oracle-relevant round. This allows us to bound the oracle error without requiring the observer to know .
Restricting inversion to relevant rounds is necessary because is not globally Lipschitz on : for the reference CDFs, diverges as approaches 0 or 1, potentially amplifying small probability errors. We refer to Appendix A.1 for a detailed illustration of this non-Lipschitz behavior.
Therefore, we restrict gap recovery to a domain where is guaranteed to be locally Lipschitz with a finite constant
In particular, if , then, for each , it holds that . On , this implies
In Algorithm 1, we set , so that iLITE computes gap estimates on , which contains on .
Algorithm 1 iLITE
Require: Trajectory , CDF , , ,
1: Empirical best arm
2: for do
3: // Obtain PoM estimates
4: Compute
5: if and then
6: // Compute posterior variances
7: Compute as in Equation (2)
8: and
9:
10: end if
11: end for
12: Return: for all relevant rounds
The following lemma quantifies how an error in the estimated sampling probabilities propagates through the inverse map .
Lemma 4.1. Let . Suppose that is a relevant inversion round. On the event ,
where is the Lipschitz constant of on the truncated domain , defined in Equation (16).
Aggregating the local error over the relevant rounds gives the following trajectory-level guarantee:
Theorem 4.1. Assume that satisfies Assumption 4.1, that for every , and . Then, on , every realized action trajectory satisfies
Here, is the Lipschitz constant of on the truncated domain , defined in Equation (16), is the maximal information gain , and counts the number of exploratory rounds.
This is an information-theoretic quantity defined in Lemma C.5, that only depends on the posterior variances along the trajectory and problem-dependent quantities.
Consequently, if , then Equation (18) holds with probability at least . If holds almost surely, taking expectations gives the following result.
Corollary 4.1. Under the assumptions of Theorem 4.1, if holds almost surely, then
The bound separates two sources of error. The factor captures the amplification of the sampling-probability error by . The remaining terms reflect the demonstrator's learning dynamics: the information-gain contribution vanishes as , while is the fraction of rounds on which the demonstrator selects an arm other than the hindsight reference arm. In particular, scales with the effective dimension of the correlated arm space for degrees of freedom.
To relate to regret, suppose additionally that the bandit instance has a unique optimal arm and define . Let
be the total number of suboptimal pulls. Then . Indeed, if , the two quantities are equal. Otherwise, because is the most-pulled arm, and hence
Therefore, if the demonstrator has expected regret bounded by ,
Thus, for any such that -LS is a no-regret demonstrator satisfying , the remainder vanishes asymptotically.
Batched Bandit Inversion The preceding result is agnostic to how is constructed and requires only the uniform approximation guarantee. One possibility is to fit a parameterized temporal model to the observed actions using maximum likelihood estimation (MLE), or maximum a posteriori (MAP) estimation when a prior on is available. These methods share information across rounds through the assumed temporal model, since a single action does not by itself identify .
A simpler and widely used in practice alternative arises under batched play, where the sampling distribution remains fixed within each batch and can therefore be estimated directly from empirical action frequencies (Kalkanli and Ozgur, 2021). We focus on this setting. We introduce a batched version of v-LS in which the learner updates its posterior, and hence its sampling distribution, only between batches. The same estimation method applies to any randomized batched demonstrator whose sampling distribution remains fixed within each batch.
Suppose that divides , and let denote the number of batches of size . At the beginning of batch , the batched -LS computes a sampling distribution from its current posterior. Conditionally on the history available before the batch, it then samples
and updates its posterior using the n collected rewards only at the end of the batch. Consequently, remains fixed throughout batch b, and the observer obtains n conditionally independent samples from . The sampling probabilities can thus be estimated using the empirical action frequencies
After the batch has been observed, the same estimate can be used as for every round belonging to batch .
Using Hoeffding's inequality together with a union bound, the next result provides an approximation guarantee that holds uniformly over all arms and batches
Lemma 4.2. For any , define
Then
Define the uniform approximation event
Combining Lemma 4.2 with the local stability of the inverse map gives a trajectory-level guarantee.
Theorem 4.2. Let A be exactly batched v-LS, for every , and the Gaussian observation-noise variance be . Let . On the event , every realized action trajectory satisfies
(24)
Here, , is the maximal information gain, is defined as in Equation (16), and . Consequently, by Lemma 4.2, the bound in Equation (24) holds with probability at least .
The bound reveals a trade-off in the batch size . Larger batches provide more samples from each fixed sampling distribution, reducing the estimation error as , up to logarithmic factors. However, delaying posterior updates introduces the explicit factors and in Equation (24). Thus, larger batches improve probability estimation at the cost of less frequent learning updates.
4.2.2 -LS-family
We relax Assumption 4.1 to allow demonstrators that differ from the reference v-LS learner. For every , the inversion error decomposes as
The two terms capture, respectively, inversion error relative to the reference and discrepancy between the internal gaps of the reference and actual demonstrators. To quantify these discrepancies we introduce the following definitions.
Definition 4.1 (Gap mismatch). Let A and the reference LS learner be evaluated on the same realized history . Define
Definition 4.2 (Sampling-policy mismatch). Let denote the sampling distribution of and let denote the sampling distribution of the LS reference, with both policies evaluated conditionally on the same realized history . Define
Since , we always have . Thus, this quantity is well-defined for every .
Definition 4.3 ((ε, )-LS family). An algorithm A belongs to the (ε, )-LS family if, almost surely,
These families are nested in both tolerances. The choices and correspond to exact agreement with the reference sampling policy and internal gaps, respectively, while imposes no policy restriction. The resulting inversion guarantees are informative when both tolerances are small, as shown below.
Conditional on the same realized history, the gap mismatch is zero for any algorithm using the same Gaussian prior and posterior-update rule as the reference learner. This includes TS and other posterior-based acquisition rules such as EI (Jones et al., 1998), ES (Malakar and Knuth, 2011), and MES (Wang and Jegelka, 2017). Consequently, TS belongs to an -LS family, where the smallest admissible measures the discrepancy between its sampling probabilities and their v-LS approximation.
Theorem 4.3. Assume that A belongs to the -LS-family, and . Then, under the same variance and information-gain conditions as for the exact v-LS result, almost surely, it holds that
Here, is the constant defined in Equation (16), evaluated at , is the maximal information gain and .
When only estimates of the demonstrator's sampling distributions are available, this result can be combined with the probability-estimation guarantees of the previous subsection.
5 EXPERIMENTS
We empirically investigate the two sources of inversion error predicted by our analysis: the sampling probability estimation and the reference policy misspecification. Additional experiments are deferred to Appendix D, where we also analyze misspecification of the prior , i.e. we relax Assumption 4.3.
We use Gaussian arms with means , observation variance , independent priors, and 100 simulations.
Batched probability estimation. We use batched -LS to illustrate the conditioning–coverage trade-off under an easily implementable observation protocol. The learner’s posterior and sampling distribution remain fixed within each batch, and we estimate q using empirical action frequencies. Exact-q inversion would recover the internal gaps up to numerical precision. The horizon considered here is T = 20000.
Figure 1 illustrates the two effects predicted by our analysis. Increasing improves conditioning by moving the inverted probabilities away from the boundary, but reduces coverage. Increasing the batch size n improves the frequency estimate, bringing closer to and reducing . The excess coverage between exact and empirical relevance sets measures the resulting relevance-set error. Because n also determines how often the learner updates, differences across batch sizes additionally reflect the effect of delayed feedback.
(a) Conditioning: and

(b) Stability factor
(c) Inversion error on
(d)
Figure 1: Batched -LS for , over 100 trajectories. Here, is the realized uniform error of the within-batch frequency estimator. Panel (a) compares with , and Panel (b) reports the stability factor . Panel (c) shows the conditional and coverage-weighted inversion errors, and , computed on the practical relevance set . Panel (d) reports the excess coverage . Quantities are reported only for trajectories satisfying ; shaded regions in Panels (c)–(d) are pointwise 95% confidence intervals.
End-to-end inversion. Finally, we invert TS, Mailard sampling (MS) (Maillard, 2011; Bian and Jun, 2022), and Boltzmann-Gumbel exploration (BGE) (Cesa-Bianchi et al., 2017) using their exact sampling probabilities at and horizon . For each trajectory, we replay the -LS reference on the same history and retain trajectories satisfying . We also invert a -LS demonstrator through . Because the two LS demonstrators have identical posterior gaps on the same history, the resulting error isolates sampling-policy and inverse-link misspecification.
The middle panel displays the start-learn-converge behavior described by Garivier et al. (2019). Initially, the algorithms distribute pulls across the arms; during learning, alternative pulls remain frequent and the relevance set grows; finally, the algorithms concentrate on . In this last phase, both and approach zero. Thus, vanishing coverage is mainly explained by the algorithm repeatedly selecting its estimated best arm, rather than only by alternative pulls being removed by the relevance threshold. On these best-arm rounds the target gap is zero by definition. Consequently, the conditional error stabilizes once few new relevant rounds are added, while decreases. The -LS curve also shows that using the wrong

TS MS BGE -LS Non-reference pulls Relevant set
Figure 2: End-to-end inversion for , , , and . The panels show conditional inversion error , the fractions of non-reference and relevant rounds, and coverage-weighted error . Here counts pulls of the estimated best, or reference, arm. Solid and dotted curves in the middle panel denote and , respectively. Shading gives pointwise 95% confidence intervals over theorem-valid trajectories.
inverse link produces nonzero but bounded error in this experiment, providing empirical evidence of robustness to moderate misspecification of v. To complement these robustness results, in Appendix D.4 we report empirical estimates of and for each algorithm.
6 CONCLUSION
We introduce an inverse-bandit framework for recovering a demonstrator's internal suboptimality gaps rather than the environment's true rewards. We define the invertible v-LS class, extend it to the -LS family, and provide trajectory-level guarantees under approximate sampling probability estimation, policy misspecification, and batched bandit play.
Our results expose an intrinsic exploration-inversion trade-off. While the demonstrator explores, its sampling probabilities reveal its internal gaps; as its policy concentrates, different gap magnitudes produce nearly identical behavior, making stable inversion impossible. This limitation is inherent to the information contained in the action trajectory and reflected in the coverage , describing the fraction of invertible rounds.
Limitations and future work. Future work includes exploiting temporal continuity between rounds, which could enable probability estimation under weaker observation protocols. We empirically show one possibility in Appendix D.3. Other directions include extending the framework to other structured policies, such as KL-UCB variants (Garivier and Cappé, 2011), and studying its privacy implications. In particular, recovered gaps may reveal sensitive preferences of the users, connecting algorithm inversion to differential privacy (Ou et al., 2024) remains an open question.
ACKNOWLEDGMENTS
C. Vernade is funded by the Deutsche Forschungsgemeinschaft (DFG) under both the project 468806714 of the Emmy Noether Programme and under Germany's Excellence Strategy – EXC number 2064/1 – Project number 390727645. CV also gratefully acknowledges funding from the European Union (ERC, ConSequentIAL, 101165883). Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Research Council. Neither the European Union nor the granting authority can be held responsible for them). CV and M. Petriconi also thank the international Max Planck Research School for Intelligent Systems (IMPRS-IS).
References
Shipra Agrawal and Navin Goyal. Further optimal regret bounds for thompson sampling. In Carlos M. Carvalho and Pradeep Ravikumar, editors, Proceedings of the Sixteenth International Conference on Artificial Intelligence and Statistics, volume 31 of Proceedings of Machine Learning Research, pages 99–107, Scottsdale, Arizona, USA, 29 Apr–01 May 2013. PMLR.
Peter Auer, Nicolò Cesa-Bianchi, and Paul Fischer. Finite-time analysis of the multiarmed bandit problem. Machine Learning, 2002.
Jie Bian and Kwang-Sung Jun. Maillard sampling: Boltzmann exploration done optimally. In International Conference on Artificial Intelligence and Statistics, pages 54–72. PMLR, 2022.
Daniel S Brown, Wonjoon Goo, and Scott Niekum. Better-than-demonstrator imitation learning via automatically-ranked demonstrations. In Conference on robot learning, pages 330–359. PMLR, 2020.
Nicolò Cesa-Bianchi, Claudio Gentile, Gábor Lugosi, and Gergely Neu. Boltzmann exploration done right. Advances in neural information processing systems, 30, 2017.
Eyal Even-Dar, Shie Mannor, and Yishay Mansour. Action elimination and stopping conditions for the multi-armed bandit and reinforcement learning problems. Journal of Machine Learning Research, 7(39):1079–1105, 2006.
Jenna Fromer, Runzhong Wang, Mrunali Manjrekar, Austin Tripp, José Miguel Hernández-Lobato, and Connor W Coley. Batched bayesian optimization by maximizing the probability of including the optimum. Journal of Chemical Information and Modeling, 65(10):4808–4817, 2025.
Aurélien Garivier and Olivier Cappé. The kl-ucb algorithm for bounded stochastic bandits and beyond. In Proceedings of the 24th annual conference on learning theory, pages 359–376. JMLR Workshop and Conference Proceedings, 2011.
Aurélien Garivier, Pierre Ménard, and Gilles Stoltz. Explore first, exploit next: The true shape of regret in bandit problems. Mathematics of Operations Research, 44(2):377–399, 2019.
Robert M Gray. Entropy and information theory. Springer Science & Business Media, 2011.
Etash Kumar Guha, Jim Thannikary James, Krishna Acharya, Vidya Muthukumar, and Ashwin Pananjady. One shot inverse reinforcement learning for stochastic linear bandits. In The 40th Conference on Uncertainty in Artificial Intelligence, 2024.
Wenshuo Guo, Kumar K Agrawal, Aditya Grover, Vidya K Muthukumar, and Ashwin Pananjady. Learning from an exploring demonstrator: Optimal reward estimation for bandits. In International Conference on Artificial Intelligence and Statistics (AIS-TATS), 2022.
Budhaditya Halder, Shubhayan Pan, and Koulik Khamaru. Stable thompson sampling: Valid inference via variance inflation, 2025.
Philipp Hennig and Christian J Schuler. Entropy search for information-efficient global optimization. The Journal of Machine Learning Research, 13(1):1809–1837, 2012.
Alexis Jacq, Matthieu Geist, Ana Paiva, and Olivier Pietquin. Learning from a learner. In Kamalika Chaudhuri and Ruslan Salakhutdinov, editors, Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pages 2990–2999. PMLR, 09–15 Jun 2019.
Donald Jones, Matthias Schonlau, and William Welch. Efficient global optimization of expensive black-box functions. Journal of Global Optimization, 13:455–492, 12 1998.
Cem Kalkanli and Ayfer Ozgur. Batched thompson sampling. Advances in Neural Information Processing Systems, 34:29984–29994, 2021.
Tor Lattimore and Csaba Szepesvári. Bandit Algorithms. Cambridge University Press, 2020.
Antoine Maillard. Fundamental limits of high-dimensional estimation: a stroll between statistical physics, probability and random matrix theory. PhD thesis, Université Paris sciences et lettres, 2021.
Odalric-Ambrym Maillard. APPRENTISSAGE SÉQUENTIEL : Bandits, Statistique et Renforcement. Theses, Université des Sciences et Technolo-gie de Lille - Lille I, October 2011. URL https://theses.hal.science/tel-00845410.
Nabin K Malakar and Kevin H Knuth. Entropy-based search algorithm for experimental design. In AIP Conference Proceedings, volume 1305, pages 157–164. American Institute of Physics, 2011.
Nicolas Menet, Jonas Hübotter, Parnian Kassraie, and Andreas Krause. LITE: Efficiently estimating Gaussian probability of maximality. In International Conference on Artificial Intelligence and Statistics, volume 258, pages 4996–5004. Proceedings of Machine Learning Research, 2025.
Nicolas Menet, Michael Hersche, Andreas Krause, and Abbas Rahimi. A theoretical analysis of test-driven code generation. Advances in Neural Information Processing Systems, 39, 2026a.
Nicolas Menet, Andreas Krause, and Abbas Rahimi. POETS: Uncertainty-aware LLM optimization via compute-efficient policy ensembles. Advances in Neural Information Processing Systems, 39, 2026b.
Nicolas Menet, Aleksandar Terzic, Michael Hersche, Andreas Krause, and Abbas Rahimi. Thompson sampling via fine-tuning of LLMs. In International Conference on Learning Representations, 2026c.
Brendan O'Donoghue and Tor Lattimore. Variational Bayesian optimistic sampling. In Neural Information Processing Systems, 2021.
Tingting Ou, Rachel Cummings, and Marco Avella Medina. Thompson sampling itself is differentially private. In International Conference on Artificial Intelligence and Statistics, pages 1576–1584. PMLR, 2024.
Stuart Russell. Learning agents for uncertain environments. In Proceedings of the eleventh annual conference on Computational learning theory, pages 101–103, 1998.
Daniel J Russo, Benjamin Van Roy, Abbas Kazerouni, Ian Osband, Zheng Wen, et al. A tutorial on thompson sampling. Foundations and Trends® in Machine Learning, 11(1):1–96, 2018.
Niranjan Srinivas, Andreas Krause, Sham M Kakade, and Matthias Seeger. Gaussian process optimization in the bandit setting: No regret and experimental design. arXiv preprint arXiv:0912.3995, 2009.
Jean Tarbouriech, Tor Lattimore, and Brendan O'Donoghue. Probabilistic inference in reinforcement learning done right. Advances in Neural Information Processing Systems, 36:33687–33725, 2023.
William R. Thompson. On the likelihood that one unknown probability exceeds another in view of the evidence of two samples. Biometrika, 25:285–294, 1933.
Zi Wang and Stefanie Jegelka. Max-value entropy search for efficient Bayesian optimization. In Doina Precup and Yee Whye Teh, editors, Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 3627–3635. PMLR, 06–11 Aug 2017.
A APPENDIX
A.1 Stability of inverting v
Because is a valid CDF, it must satisfy as and as . Consequently, cannot be globally Lipschitz on the open interval . More precisely, suppose that is continuously differentiable, with , and that for . By the inverse function theorem, the derivative of the inverse is given by
and therefore as or .
In the context of inverse bandits, the external observer only has access to an empirical estimate of the demonstrator's true sampling probability . While typically concentrates around as the observation horizon grows, the non-Lipschitz nature of the inverse CDF means that even small estimation errors can be severely amplified during inversion. Near the boundary of the probability simplex, an arbitrarily small perturbation of may produce an arbitrarily large perturbation of , as illustrated in Figure 3. The inverse mapping is


Figure 3: Error amplification under inversion for two reference CDFs, (Gaussian) and . The same estimation error is harmless inside the relevant interval but produces unbounded gap errors outside it.
nevertheless well-conditioned on every compact subinterval of . For any margin parameter , define the worst-case slope of within an -neighborhood of the relevant interval:
By the mean value theorem, the inversion error is then bounded linearly by the estimation error:
This Lipschitz-type control motivates restricting the inversion to the set of relevant rounds , on which every arm's sampling probability lies safely in . The cardinality counts the rounds on which the inversion is uniformly well-conditioned. As the demonstrator learns and concentrates its policy on the optimal arm, the sampling probabilities assigned to suboptimal arms decay towards zero, pushing the inversion into the ill-conditioned boundary regime. The restriction to is therefore not an artifact of our analysis, but an intrinsic requirement for any stable approximate inversion procedure.
It suffices to verify the lower bounds . Indeed, since and the probabilities sum to one, these conditions automatically imply . We then restrict in Definition 3.1 otherwise could not be simultaneously satisfied for .
B GENERALIZED LITE SAMPLING
While the main text focuses on the Gaussian reward setting, where the posterior uncertainties are deterministically known to the observer, enabling exact closed-form inversion, extending LITE (Menet et al., 2025) to arbitrary arm distributions is a central secondary contribution of this paper. Many real-world applications rely on reward distributions that are non-Gaussian: click-through rates are Bernoulli, waiting times are Exponential, and clinical outcomes can follow heavy-tailed distributions. To invert demonstrators operating in these settings, we first formalize a generic sampling strategy that is both no-regret and invertible for arbitrary reward posteriors. The key idea is to characterize the tail behavior of the marginal reward posteriors through a reference CDF v.
To this end, let be a continuous, strictly increasing CDF. The conditional tail expectation functional is defined by
Moreover, for , it holds that .
The associated quasi-surprisal is defined by
The quasi-surprisal measures how aggressively the tail of v decays: heavy-tailed distributions yield large values for moderate p, while light-tailed distributions (such as the Gaussian) yield smaller values. When the reference function v is chosen to match the actual marginal tail decay of the posterior , the resulting v-LS policy is guaranteed to be no-regret.
The following proposition makes this precise. It shows that if the posterior’s Cramér rate function dominates the quasi-surprisal induced by v, then the expected cumulative regret is sublinear. The quantity is the adapted quasi-entropy, which bounds the total exploration penalty of the randomized policy.
Definition B.1. The (Cramér) rate function of a random variable is defined as the convex conjugate of the cumulant generating function , i.e.,
Proposition B.1. Let be a sequence of random vectors with marginal (Cramér) rate function satisfying for all . Let be the -LITE estimator at step and . Assume the adapted quasi-entropy is bounded: , and that the cumulative predictive variance is bounded by a sublinear function , i.e., . Then it holds that
Proof of Proposition B.1. The first inequality follows immediately from Lemma C.4:
For the second inequality, we apply the Cauchy-Schwarz inequality first over the arms, then over the time steps:
Taking the expectation over the trajectory and applying Jensen's inequality alongside the assumption on the cumulative variance yields:
In practical deployments, including large-scale A/B tests and federated learning systems, updating the posterior after every observation is often computationally prohibitive or impossible due to delayed feedback pipelines. Batched algorithms address this by freezing the sampling policy over windows of n consecutive rounds and updating only at batch boundaries. The following theorem extends the regret analysis of Proposition B.1 to this batched setting and provides the theoretical foundation for inverting batch-constrained demonstrators.
Theorem B.1 (Batched LS regret). Assume that satisfies the assumptions of Proposition B.1 and that the adapted quasi-entropy is bounded: . If we assume Gaussian reward noise with variance and Gaussian priors, then batched -LS with batch size and horizon satisfies
where and is the maximal information gain over B batches.
Remark B.1. For , we have , and the bound simplifies to . The ratio grows almost linearly in , reflecting the structural penalty of delayed posterior updates. Note that the bound recovers the non-batched rate when .
Proof of Theorem B.1. Since batched v-LS updates its posterior only at batch boundaries, the sampling probabilities and posterior standard deviations remain constant throughout each batch. Let denote the i-th arm pulled in batch b. By Lemma C.4, applied with the posterior at the start of batch b, we have
This is identical in structure to the first inequality in the proof of Proposition B.1. Applying the same double Cauchy–Schwarz argument (first over arms within each batch, then over batches) yields
Under the Gaussian prior and Gaussian noise assumptions, , where is the posterior covariance matrix of the arms pulled in batch under the realized actions. Our batched generalization of the Elliptical Potential Lemma (Lemma C.6) bounds this for any realized action sequence by the maximum information gain over fixed designs , giving
where . Substituting completes the proof.
C PROOFS OF SECTION 4.2
Lemma 4.1. Let . Suppose that is a relevant inversion round. On the event ,
where is the Lipschitz constant of on the truncated domain , defined in Equation (16).
Proof.
Observe that, for
since is Lipschitz, with Lipschitz constant . The same inequality holds for . Combining the inequalities concludes the proof.
Theorem 4.1. Assume that satisfies Assumption 4.1, that for every , and . Then, on , every realized action trajectory satisfies
Here, is the Lipschitz constant of on the truncated domain , defined in Equation (16), is the maximal information gain , and counts the number of exploratory rounds.
Proof. Using the fact that and Lemma 4.1 with , we can write
Using the Cauchy-Schwarz inequality for the first sum, we get:
Note that the last inequality applied Lemma C.5. It remains to bound
First, observe that:
We know that,
This is an information-theoretic quantity defined in Lemma C.5, that only depends on the posterior variances along the trajectory and problem-dependent quantities.
here we should be careful because could be negative. Therefore, denote , hence:
Remark C.1. Since is a most-pulled arm and , . Hence , so .
Where we upper bounded in the first sum, and we use Equation (31) in the second one together with an integral comparison. Plugging this into Equation (30) we get:
where . Finally, observing that (since for ) and , concludes the proof.
Lemma 4.2. For any , define
Then
Proof. Fix an arm and a batch . Conditionally on the history available before batch , define
Because the sampling distribution remains fixed within batch , the variables are conditionally independent Bernoulli random variables with conditional mean . Moreover,
Therefore, Hoeffding's inequality gives, for every x > 0,
Taking expectations over yields
Applying a union bound over the KB arm-batch pairs gives
(38)
Setting
concludes the proof.
□
Theorem 4.2. Let be exactly batched -LS, for every , and the Gaussian observation-noise variance be . Let . On the event , every realized action trajectory satisfies
(24)
Here, , is the maximal information gain, is defined as in Equation (16), and . Consequently, by Lemma 4.2, the bound in Equation (24) holds with probability at least .
Proof. On the event , Lemma 4.1 gives
Using Cauchy-Schwarz inequality we get
Since the posterior is constant within each batch, , with covariance matrix as defined in Lemma C.6 for any sequence of . Lemma C.6 holds for every deterministic batched design and can therefore be applied pathwise to the realized action sequence:
where . Note that, and , hence:
It remains to bound:
since gets updated only at the beginning of each batch, hence it stays constant for n steps (batch size). Here we proceed analogously to the proof of Theorem 4.1. Write
At the beginning of batch b,
the first batches contribute at most , using .
If , we treat batch separately and use
For the remaining batches, the summand is decreasing, so an integral comparison gives
Consequently,
If , the corresponding tail sum is empty and the same upper bound continues to hold.
Plugging Equation (49) and Equation (42) into Equation (39) we get:
Since by Lemma 4.2, the result holds with probability at least .
Theorem 4.3. Assume that A belongs to the -LS-family, and . Then, under the same variance and information-gain conditions as for the exact v-LS result, almost surely, it holds that
Here, is the constant defined in Equation (16), evaluated at , is the maximal information gain and .
Proof.
We first bound . The proof is similar to the one of Theorem 4.1. We apply Lemma 4.1, by observing that and replacing with , hence:
Then, the proof is analogous to the one of Theorem 4.1 and
Then we bound, , here we know by Definition 4.1 that hence:
Combining the bounds concludes the proof.
C.1 Technical Lemmas
Lemma C.1 (Variational form of KL-divergence). Fix two probability distributions and over the measurable space such that is absolutely continuous with respect to ( ). Then
where the supremum is taken over all measurable such that and are well-defined.
Proof. The proof generalizes Theorem 3.2 in Gray (2011) from discrete spaces to arbitrary probability spaces. Since , there exists a Radon-Nikodym derivative , i.e., for a function uniquely defined q-a.e. Now, let be any random variable for which and are well-defined. Then
where is the tilted measure, and we used .
Lemma C.2 (Conditioned KL-divergence). Consider the probability space and an event of non-zero probability, i.e. . Then
Proof. According to the definition of conditional expectation it holds
where we recognize absolute continuity and identify the Radon-Nikodym derivative . Plugging the derivative into the definition of Kullback-Leibler divergence results in the desired expression:
☐
Lemma C.3 (Upper bound on conditional expectation). Let be a random variable on such that the (restricted) cumulant generating function exists. Assume further that , ensuring is well-defined. Then with the Cramer rate function of (see Definition B.1) and its generalized inverse, it holds that
Proof. The proof adapts Lemma 11 of Tarbouriech et al. (2023). We apply Lemma C.1 with and , and restrict the supremum over just the random variables . This gives
Furthermore, since the free parameter is restricted to positive values , the one-sided Cramér transform is strictly monotonically increasing on its strictly positive upper-tail region. Thus, applying the generalized inverse yields
As a final step, we use Lemma C.2, which states that .
Lemma C.4. Let be a random vector with marginal (Cramér) rate function satisfying for all . Define the variational value , the probability of maximality , and let be the -LITE estimator. Then
Proof. First, note that an application of Lemma C.3 gives
By substituting directly into our assumed upper bound on the inverse Cramér transform, we obtain . Plugging this in, we obtain . Finally, we note that , where the last equality follows from the characterization of the v-LITE estimator as the maximizer of over the simplex (Menet et al., 2025).
Lemma C.5 (Restatement of Lemma 4 in Menet et al. (2026c)). Let be a multivariate Gaussian prior over arms, such that the marginal prior variances satisfy for all . Let be a sequence of arm pulls with observations . The independent observation noise is distributed as at each step. Then the maximal information gain upper bounds the aggregated predictive marginal variances at the locations (i.e., ),
where .
Proof. We restate the proof from Menet et al. (2026c). The right-hand side is well-defined because the predictive variances depend only on the observation locations , not on the observed values. Next, note that is a multivariate normal with independent components of variance , thus
Furthermore, one may decompose
using that is Gaussian with variance . Recursively expanding then results in
Finally, by assumption , allowing us to lower bound each summand:
Indeed, the inequality is tight for and holds in-between due to concavity of
We generalize the previous lemma to the case of a batched algorithm.
Lemma C.6 (Batched generalization of Lemma C.5). Let be a multivariate Gaussian prior over arms, with marginal prior variances for every . Split the rounds into batches of size .
Fix a deterministic batched action sequence
Under this fixed design, define
and let
Define the posterior covariance matrix at the beginning of batch b by
Let
be the maximal information gain over B fixed batch designs. Then, for every deterministic design ,
where
Proof. Fix an arbitrary deterministic design . By the chain rule for mutual information,
(54)
The second equality follows because, conditionally on , the vector is Gaussian with covariance
whereas, conditionally on both and , its covariance is .
Since is positive semidefinite,
Moreover, posterior marginal variances do not exceed their corresponding prior variances, and hence
By concavity of on ,
Substituting this inequality into Equation (54) gives
Finally, since
we have
for every fixed design , which proves the result.
D ADDITIONAL EXPERIMENTS
D.1 Role of relevance threshold
Inversion for . We evaluate the effect of estimating the sampling probabilities in three Gaussian bandit environments: with , with , and with
For every trajectory and round, we generate a sequence of 500 auxiliary categorical samples from the exact -LS policy and construct from nested prefixes of size . These samples neither update the learner nor affect its trajectory. We measure the realized uniform estimation error
Following the formulation of Theorem 4.1, inversion is performed on the enlarged practical relevance set , and quantities involving the inverse CDF are reported only for trajectories satisfying . Accordingly, the relevant conditioning constant is .
Figure 4 illustrates the resulting conditioning–coverage trade-off. Increasing m brings closer to , reduces the stability factor , and generally decreases both inversion errors and the enlargement of the relevance set. Missing segments correspond to thresholds for which fewer than ten trajectories satisfy . They become more frequent as K increases because a uniformly accurate estimate of all sampling probabilities becomes harder. All results use T = 2000 and are averaged over 100 independent trajectories.

Figure 4: Conservative non-batched inversion for -LS with (left to right) and . Panel (a) compares the intrinsic inverse-CDF slope with the median effective slope . Panel (b) reports the median stability factor . Panel (c) reports the practical conditional and coverage-weighted inversion errors, and , computed on . Panel (d) reports the excess coverage . Curves are shown only when at least ten of the 100 trajectories satisfy ; shaded regions in Panels (c)-(d) are pointwise 95% confidence intervals.
Inversion for . We repeat the same experiment using -LS trajectories on the three environments above. At every round, the estimates with are constructed from nested prefixes of the same sequence of 500 auxiliary categorical samples. The practical relevance set and recovered gaps are computed using , whereas the exact sampling probabilities are used only to evaluate , construct the oracle set , and verify the exact inversion identity.
Figure 5 shows the stronger sensitivity of near the boundary of the probability simplex. Consequently, and are generally larger than their counterparts, and probability-estimation errors undergo greater amplification. Increasing improves conditioning and reduces both the practical inversion error and the excess coverage. As for -LS, missing low-threshold segments indicate that fewer than ten trajectories satisfy ; this effect is most pronounced for and . Exact-probability inversion recovers the internal -LS gaps up to numerical precision.
D.2 Batched algorithms
Batched -LS. We also evaluate the role of the threshold when the demonstrator updates its sampling policy only at batch boundaries. Within a batch of size n, the sampling distribution is fixed, and the inverse learner estimates it directly from the observed action frequencies:
We consider and use both to determine the practical relevance set and to perform the inversion. The exact frozen policy is used only to compute
and to provide an oracle coverage comparison. Figure 6 reports the resulting conditioning quantities, inversion errors, and coverage. Quantities involving are displayed only when , so missing segments correspond to configurations outside the stability regime of the theoretical guarantee. Increasing the batch size improves the frequency estimate, generally reduces the inversion error, and brings the -based relevance set closer to the exact-q set. All results are averaged over 100 independent trajectories of length .
Batched -LS. Figure 7 repeats the conditioning experiment for batched -LS. The learner updates its posterior only at batch boundaries, while the observer estimates the sampling probabilities using the empirical action frequencies within each batch.

Figure 5: Conservative non-batched inversion for -LS with (left to right) and . Panels (a)–(d) report, respectively, and the median , the median stability factor , the practical inversion errors and on , and the excess coverage . Curves are shown only when at least ten trajectories satisfy ; shaded regions in Panels (c)–(d) are pointwise 95% confidence intervals over the valid trajectories.
D.3 Sliding windows
We also study inversion when the observer has access only to the action trajectory and estimates the current sampling probabilities from a causal sliding window. For window length , we use
Thus, uses the frequencies of arm in the previous actions and does not use the current action. This provides a local, trajectory-based way to reflect temporal dependence and changes in the policy over time. Since the policy is not frozen within a sliding window, the estimate can reflect both finite-window variation and policy drift. Because actions are generated adaptively and the sampling policy may change within each window, we do not claim a theoretical guarantee for the accuracy of this estimator. We evaluate its empirical accuracy in simulation by comparing with the known ; deriving guarantees for this setting is left to future work.
We evaluate all window sizes on the common interval , and report results for over 100 independent trajectories. At each evaluated round, we compute and check the local condition , using . The action-frequency estimate is used for practical relevance and gap inversion; the exact probabilities are used only to evaluate and to compute the oracle coverage curve. In each figure, panel (a) shows the pointwise probability error and the threshold . Panel (b) compares the fraction of trajectories satisfying the local condition at round with the stricter running condition . Panel (c) reports the running conditional inversion error and its coverage-weighted counterpart on locally valid, empirically relevant rounds. Panel (d) compares relevance coverage computed from with oracle coverage computed from , both restricted to locally valid rounds. The pointwise error generally shrinks as the policies settle, while the running condition remains more restrictive because an early large error continues to affect the running maximum. Coverage-weighted error falls as relevant rounds become less frequent. Figures 8–10 show the results for -LS, and Figures 11–13 show those for -LS.
D.4 -LS family
We empirically test Definition 4.3 for some common algorithms: TS, Maillard sampling (MS) (Maillard, 2021; Bian and Jun, 2022), and Boltzmann-Gumbel exploration (BGE) (Cesa-Bianchi et al., 2017) with the -LS and -LS references. For each pair, we evaluate and on matched histories. We also compare -LS and -LS directly. To examine how these quantities change with the number of arms, we consider a Gaussian bandit with mean vector , a bandit with mean vector ,

Figure 6: Batched iLITE-Φ conditioning and inversion results for (left to right), , and batch sizes . Panel (a) compares with , and Panel (b) reports the stability factor . Panel (c) shows the conditional and coverage-weighted inversion errors, and , computed on the practical relevance set . Panel (d) reports the excess coverage . Quantities are reported only for trajectories satisfying ; shaded regions in Panels (c)-(d) are pointwise 95% confidence intervals.

Figure 7: Batched -LS conditioning experiment for (left to right), , and batch sizes . Panel (a) compares with , and Panel (b) reports the stability factor . Panel (c) shows the conditional and coverage-weighted inversion errors, and , computed on the practical relevance set . Panel (d) reports the excess coverage . Quantities are reported only for trajectories satisfying ; shaded regions in Panels (c)-(d) are pointwise 95% confidence intervals.
and a Gaussian bandit with
corresponding to . In all settings, the observation variance is .
Figure 14 separates discrepancies in the internal gap estimates from discrepancies in the resulting sampling policies. Since TS, -LS, and -LS use the same Gaussian posterior update, their same-history gap discrepancies are zero up to numerical precision. In contrast, MS and BGE construct their estimates differently and exhibit a transient gap discrepancy near initialization due to their forced initialization, which becomes larger as K increases but decreases as more observations are collected. The lower panels show that agreement in gap construction does not necessarily imply agreement between sampling policies: TS and the two LS variants remain relatively close, while MS and BGE display larger policy discrepancies, particularly for larger K. The horizontal axis begins at t = K, marking the end of the forced initialization used by MS and BGE. Relative to the -LS reference, the discrepancy of TS also increases with K. These curves describe how the empirical discrepancies evolve over time; the corresponding trajectory-wise maxima are needed to assess the uniform conditions formally.

(b) Validity of
(c) Inversion error on locally valid relevant rounds
(d) Locally valid relevance coverage

Figure 8: Sliding-window inversion for -LS with , , , and , averaged over 100 trajectories. Panels (a)–(d) show pointwise probability error, local and running-uniform validity, inversion error, and empirical versus oracle relevance coverage, respectively.
End-to-end inversion We next evaluate the complete inversion procedure for TS, MS, and BGE at the fixed relevance threshold . Figures 15–17 should be interpreted together with the -LS comparison above. In that comparison, measures the discrepancy between the demonstrator's sampling distribution and that of its -LS reference, whereas measures the discrepancy between their internal gaps when evaluated on the same realized history. The end-to-end experiment shows how these two forms of misspecification affect the gaps recovered by iLITE- .
Figures 15–17 show a clear dependence on the number of arms. For K = 2, the relevance set is comparatively large and MS exhibits the largest conditional and coverage-weighted errors, followed by BGE and TS. The same qualitative ordering persists for K = 4, although the relevant-round fraction and are smaller. For K = 8, non-reference pulls remain frequent throughout the horizon, but very few rounds satisfy the relevance condition at , since the sampling probability is distributed among more arms. Consequently, the coverage-weighted error becomes very small and the conditional-error curves are more irregular.
End-to-end inversion for . Figures 18–20 complement the corresponding -inversion results. For , MS again exhibits the largest conditional and coverage-weighted errors, while TS has the smallest error and BGE and -LS lie between them. The same ordering is broadly preserved for , although the relevance set and are smaller. Compared with inversion using , the inverse produces visibly smaller errors for TS.

(b) Validity of
(c) Inversion error on locally valid relevant rounds
(d) Locally valid relevance coverage

Figure 9: Sliding-window inversion for -LS with K = 4. The remaining settings and panels are the same as in Figure 8.
and BGE in these two environments, showing that the choice of inverse CDF affects how policy misspecification is amplified. Conversely, applying to a -LS demonstrator produces a nonzero error, mirroring the error obtained when -LS is inverted using .
For , both experiments exhibit substantial non-reference play but limited relevance at . Hence, the small coverage-weighted errors primarily reflect the contraction of the relevance set and should not be interpreted as improved inversion. This qualification is especially important for MS under , for which only three trajectories satisfy . More generally, the and results agree qualitatively on the role of .
D.5 Robustness to misspecification
We evaluate the effect of misspecifying the inverse learner's Gaussian prior variance for arms over a horizon of . In each panel in Figures 21 and 22, we multiply the prior variance of one arm by , leaving the other arms correctly specified. The demonstrator retains the correct prior variance , while the inverse learner uses for the perturbed arm. We use the demonstrator's exact sampling probabilities in every inversion, so the observed error isolates prior misspecification rather than probability-estimation error. The dashed black curve is the matched-prior baseline and is zero up to numerical precision. Prior misspecification produces the largest errors during early learning, and these generally decrease as observations accumulate. This is consistent with Equation (2): as an arm's pull count grows, the data-dependent term increasingly dominates the

(b) Validity of
(c) Inversion error on locally valid relevant rounds
(d) Locally valid relevance coverage

Round t
Round t
Figure 10: Sliding-window inversion for -LS with K = 8. The remaining settings and panels are the same as in Figure 8.
prior-variance contribution, reducing the influence of the initial misspecification. The effect is most pronounced when the best arm's prior variance is perturbed, because the best arm enters the gap comparison at every relevant round. Results are averaged over 100 independent trajectories; shaded regions show 95% confidence intervals.

(b) Validity of
(c) Inversion error on locally valid relevant rounds
(d) Locally valid relevance coverage

Round t
Round t
Figure 11: Sliding-window inversion for -LS with , , , and , averaged over 100 trajectories. Panels (a)–(d) show pointwise probability error, local and running-uniform validity, inversion error, and empirical versus oracle relevance coverage, respectively.

(b) Validity of
(c) Inversion error on locally valid relevant rounds
(d) Locally valid relevance coverage

Round t
Round t
Figure 12: Sliding-window inversion for -LS with K = 4. The remaining settings and panels are the same as in Figure 11.

(b) Validity of
(c) Inversion error on locally valid relevant rounds
(d) Locally valid relevance coverage

Figure 13: Sliding-window inversion for -LS with K = 8. The remaining settings and panels are the same as in Figure 11.

(a) -LS reference.
(b) -LS reference.
Figure 14: Same-history discrepancies relative to the -LS reference (left) and the -LS reference (right), for and . The upper panels report the played-arm gap discrepancy , while the lower panels report the maximum sampling-policy discrepancy . For each candidate trajectory, the reference policy is evaluated on the same realized action-reward history using exact sampling probabilities. Curves show the mean over 100 simulations and shaded regions show pointwise 95% confidence intervals. The horizontal axis begins at , marking the end of the forced initialization used by MS and BGE.

Figure 15: Fixed-threshold inversion with for , , and . We invert TS, MS, BGE, and a -LS demonstrator using the exact sampling probabilities. The panels report the conditional inversion error , the non-reference pull fraction and relevant-round fraction , and the coverage-weighted error . Curves are restricted to trajectories satisfying ; shaded regions are pointwise 95% confidence intervals.

TS MS BGE -LS Non-reference pulls Relevant set
Figure 16: Fixed-threshold inversion with for , , and . The panels respectively report , the fractions of non-reference and relevant rounds, and . The blue curve corresponds to a -LS demonstrator inverted using and therefore isolates inverse-CDF misspecification. Exact sampling probabilities are used, and only trajectories satisfying contribute. Shaded regions are pointwise 95% confidence intervals.

TS MS BGE -LS Non-reference pulls Relevant set
Figure 17: Fixed-threshold inversion with for , , and . The three panels show the conditional inversion error, the decomposition into non-reference and relevant rounds, and the coverage-weighted inversion error. The -LS curve illustrates inversion using a misspecified inverse CDF. Results use exact sampling probabilities and are restricted to trajectories satisfying . Shaded regions are pointwise 95% confidence intervals.

TS MS BGE -LS Non-reference pulls Relevant set
Figure 18: Fixed-threshold inversion with for , , and . We invert TS, MS, BGE, and a -LS demonstrator using the exact sampling probabilities. The left panel reports the conditional inversion error . The central panel shows the fraction of non-reference pulls, , together with the relevant-round fraction . The right panel reports the coverage-weighted error . Curves are computed over trajectories satisfying ; shaded regions are pointwise 95% confidence intervals.

TS MS BGE -LS Non-reference pulls Relevant set
Figure 19: Fixed-threshold inversion with for , , and . The panels respectively report the conditional inversion error , the non-reference and relevant-round fractions, and the coverage-weighted error . The blue curve corresponds to a -LS demonstrator inverted using . Exact sampling probabilities are used, and only trajectories satisfying contribute to each curve. Shaded regions are pointwise 95% confidence intervals.

TS MS BGE -LS Non-reference pulls Relevant set
Figure 20: Fixed-threshold inversion with for , , and . The three panels show , the fractions of non-reference and relevant rounds, and . The -LS curve illustrates inversion under inverse-CDF misspecification. Results use exact sampling probabilities and are restricted to trajectories satisfying . For MS, this condition holds for only a small number of trajectories. Shaded regions are pointwise 95% confidence intervals.
Prior variance misspecified for arm a = 1

Prior variance misspecified for arm a = 2
Prior variance misspecified for arm a = 3
Prior variance misspecified for arm a = 4

Round t

Round t
Figure 21: Running conditional inversion error under prior-variance misspecification for -LS. Each panel perturbs the inverse learner's prior variance for the indicated arm; denotes the multiplier in . The dashed curve is the correctly specified prior baseline.
Prior variance misspecified for arm a = 1

Prior variance misspecified for arm a = 2
Prior variance misspecified for arm a = 3
Prior variance misspecified for arm a = 4
Round t
Round t
Figure 22: Running conditional inversion error under prior-variance misspecification for -LS. The setup and conventions are the same as in Figure 21.