Papers
Topics
Authors
Recent
Search
2000 character limit reached

Inverse Batched Contextual Bandit (IBCB)

Updated 29 March 2026
  • IBCB is a framework that infers evolving decision-maker beliefs and rewards from a single offline log of context–action pairs, capturing non-stationary policy evolution.
  • It employs Bayesian techniques with both parametric (linear–Gaussian) and nonparametric (Gaussian Process) models to reconstruct dynamic belief trajectories.
  • Empirical evaluations demonstrate its effectiveness over traditional IRL benchmarks, especially in applications like clinical audits and policy transparency.

The Inverse Batched Contextual Bandit (IBCB) framework addresses the problem of inferring the evolving behavioral mechanisms of decision-makers from a single offline log of contextual bandit interactions. Unlike classical imitation learning or inverse reinforcement learning (IRL), which presuppose that observed behavior emanates from a stationary expert, IBCB targets settings—such as recommender systems and clinical practice audits—where the agent's policy and internal knowledge exhibit non-stationary evolution over time. By leveraging batched logs of context–action pairs, IBCB seeks to reconstruct both the underlying reward function and the trajectory of belief states that best explain the observed policy evolution, enabling interpretable and temporally resolved insight into strategy adaptation (Hüyük et al., 2021).

1. Problem Setting and Formalization

The IBCB problem is instantiated as follows. Let XX denote the context space and AA the finite action space. At each timestep t=1,,Tt=1,\dots,T, a decision-maker observes a context xtXx_t\in X and selects an action atAa_t\in A, possibly based on context–action feature vectors xt[a]Rkx_t[a]\in\mathbb{R}^k. The environment is parameterized by ρenvP\rho_\mathrm{env}\in P, such that given (xt,at)(x_t,a_t), the reward rtr_t is sampled as rtRρenv(xt,at)r_t\sim \mathcal{R}_{\rho_\mathrm{env}(x_t,a_t)}, where AA0 is a known reward distribution family (e.g., Gaussian with mean AA1 and fixed variance AA2).

The learner does not observe rewards or the current belief state. At each AA3, the agent maintains a belief AA4 (e.g., a posterior over reward parameters) and selects actions according to

AA5

where AA6 is the greedy or soft-optimal policy for a given AA7.

After action selection and (unobserved) reward, the belief updates as AA8. In the offline (batched) inverse setting, access is limited to a single log AA9, with the aim to infer both t=1,,Tt=1,\dots,T0 and the most likely belief trajectory t=1,,Tt=1,\dots,T1 that explains the observed actions, assuming a prior over t=1,,Tt=1,\dots,T2 and initial t=1,,Tt=1,\dots,T3 (Hüyük et al., 2021).

2. Principled Modeling of Policy Evolution

To capture non-stationarity in policy adaptation, IBCB posits that the agent's internal beliefs (and therefore policies) evolve over time. Two modeling paradigms are introduced:

A. Parametric (Bayesian) model:

The agent's beliefs comprise a family t=1,,Tt=1,\dots,T4 over t=1,,Tt=1,\dots,T5, with t=1,,Tt=1,\dots,T6. Bayesian updates for linear–Gaussian reward models are employed: \begin{align*} \mu_{t+1} &= \Sigma_{t+1}\left( \Sigma_t{-1}\mu_t + \frac{1}{\sigma2}r_t x_t[a_t] \right), \ \Sigma_{t+1} &= \left(\Sigma_t{-1} + \frac{1}{\sigma2}x_t[a_t]x_t[a_t]{\top}\right){-1}. \end{align*} Action probabilities under a sampled t=1,,Tt=1,\dots,T7 are soft-optimal: t=1,,Tt=1,\dots,T8

B. Nonparametric (Gaussian Process) model:

Belief trajectories t=1,,Tt=1,\dots,T9 are governed by a Gaussian process prior,

xtXx_t\in X0

with Brownian increments enforcing temporal smoothness. At each xtXx_t\in X1, xtXx_t\in X2 and xtXx_t\in X3.

Both frameworks describe the likelihood of the progression of hidden states and observed actions, facilitating inference over both reward parameters and behavioral trajectories.

3. Algorithms: Bayesian Inference in IBCB

IBCB employs Bayesian inference strategies via Gibbs-style samplers to contend with latent variables (rewards, beliefs, parameters):

A. Parametric Bayesian ICB:

An expectation–maximization (EM) procedure iterates between:

  • E-step: Drawing samples xtXx_t\in X4 from the posterior conditional on current parameters. Lemma 1 provides an exact sampler for xtXx_t\in X5 given xtXx_t\in X6 under the linear–Gaussian model; Metropolis–Hastings is used to sample xtXx_t\in X7.
  • M-step: Maximizing expected log-joint likelihood xtXx_t\in X8 for updates to xtXx_t\in X9.

B. Nonparametric Bayesian ICB:

A Gibbs sampler alternates:

  1. Sampling atAa_t\in A0 from the GP posterior (Lemma 2).
  2. Sampling atAa_t\in A1 for each atAa_t\in A2 via Metropolis–Hastings.

Samples of atAa_t\in A3 constitute the inferred non-stationary preference (belief) trajectories (Hüyük et al., 2021).

4. Theoretical Properties

IBCB algorithms leverage two key conditional Gaussian lemmas:

  • For fixed parameters, rewards atAa_t\in A4 are conditionally Gaussian.
  • Under a GP prior on beliefs, atAa_t\in A5 conditional on parameters is also Gaussian.

These closed-form relations enable efficient exact sampling steps within the inference algorithms. Complete consistency and convergence rates are not established and are noted as future work directions. The framework is agnostic to the form of the exploration/exploitation algorithm used by the observed agent, provided it conforms to the structured bandit model above.

5. Empirical Evaluation

Evaluation of IBCB spans both real-world and synthetic agent environments:

  • Data Sources:
    • Historical U.S. OPTN registry logs for liver transplants, with contextual features per patient and selected/transplanted actions.
    • Semi-synthetic datasets in which actions are generated by simulated bandit agents (stationary, Thompson-sampling, optimistic, greedy, step-change, linear drift, and regressing behaviors).
  • Benchmarks:
    • Standard Bayesian IRL (B-IRL; assumes stationarity)
    • atAa_t\in A6-fold IRL (interval-wise estimation)
    • CP-IRL (change-point segmentation)
    • I-SPI (inverse soft-policy improvement)
    • T-REX (rank-based IRL)
  • Metrics:
    • Belief-error: atAa_t\in A7
    • Reward-error: atAa_t\in A8
    • Action-matching: KL divergence between true and estimated atAa_t\in A9
  • Key Findings:
    • Bayesian ICB achieves leading belief- and reward-recovery accuracy when the agent's evolution is well-approximated by Bayesian updating (stationary, Thompson-sampling, optimistic, or greedy agents).
    • The nonparametric GP ICB excels in settings with more general and nonlinear behavioral drift (stepping, linear, regressing).
    • Benchmarks that segment time or assume stationarity underperform due to their inability to share information across timesteps.
    • Real-world interpretability: In OPTN liver allocation, the inferred NB-ICB time series mirrors major policy interventions, e.g., shifts in the weight of INR/creatinine post-2002 MELD-score adoption and after exception point caps in 2015.

6. Significance and Implications

IBCB generalizes the classical IRL and non-contextual inverse bandit paradigms by:

  • Permitting inference solely from a single offline interaction log, with no active or online experimentation.
  • Recovering the full trajectory of belief or reward priorities, elucidating non-stationary policy adaptation.
  • Achieving data efficiency via time-coupled priors, improving generalization even with limited data per epoch.
  • Producing interpretable, temporally resolved weights suitable for high-stakes audit and policy analysis applications.

A plausible implication is that IBCB can support forensic auditing and policy transparency in complex environments where decision strategies evolve dynamically and only historical data are available. This includes, for example, the auditing of medical decision policies as they adapt to changing guidelines and evidence, where direct reward observations and online intervention are infeasible.

Unlike classical IRL, which presupposes stationary experts and often relies on access to expert trajectories with known reward outcomes, IBCB operates under the constraint of bandit feedback—contexts and actions only—while accounting for non-stationary behavioral evolution. Furthermore, IBCB's joint inference of both global reward parameters and the non-stationary trajectory of beliefs is analytically distinct from myopic, piecewise, or purely stationary approaches (e.g., B-IRL, xt[a]Rkx_t[a]\in\mathbb{R}^k0-fold IRL). The explicit modeling and recovery of evolving preferences, especially using joint Bayesian inference with parametric or nonparametric priors, distinguishes IBCB conceptually and methodologically from prior offline IRL and inverse bandit approaches (Hüyük et al., 2021).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Inverse Batched Contextual Bandit (IBCB).