arXiv:2610.26103cs.LGOct 2026

Manuscript Offprint

arXiv:2610.26103

Learning from a Bandit Learner

Michela Petriconi, Nicolas Menet, Claire Vernade

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.

References (28)