Best Arm Identification with Unknown Post-Action Context Distribution

Amir Mohammad Abouei, Mohammad Shahverdikondori, Emad Emamjomeh, Negar KiyavasharXiv 2026

TL;DR

Imagine trying to figure out which doctor gets the best patient outcomes, knowing that doctors only affect patients through the specific treatments they prescribe. By observing the intermediate treatments alongside the final health outcomes, you can pool data across doctors to find the best one much faster—even when you start out knowing nothing about their prescribing habits or how well any treatment works. This paper cracks the statistical and computational puzzles required to do this optimally.

What Problem Does This Paper Address?

In standard multi-armed bandits, "Best Arm Identification" (BAI) in the fixed-confidence setting asks: how can we find the single action with the highest expected reward using as few trials as possible, while keeping our error probability below a strict limit $\delta$?

Usually, pulling an arm just gives you a noisy reward. Here, the authors study post-action context (or mediator feedback): you pick an action $X$ (e.g., a doctor), observe an intermediate context $Z$ (the prescribed treatment), and then see the reward $Y$ (the patient's recovery), which depends only on $Z$. Because multiple actions might trigger the same context, you can pool rewards across different arms to learn faster.

Prior BAI work assumed you already knew the transition matrix $\mathcal{A}$—the exact probabilities of each doctor prescribing each treatment. In the real world, you rarely have that luxury. As shown below, this paper tackles the practically relevant frontier where $\mathcal{A}$ is completely unknown, and the context reward means $\boldsymbol{\mu}$ are either known or unknown as well.

Table 1: Different variants of problems with post-action context.

When both $\mathcal{A}$ and $\boldsymbol{\mu}$ are unknown, two headaches emerge. Statistically, you have to simultaneously bound your uncertainty in both categorical transitions and reward averages. Computationally, figuring out which arm is most informative to pull next requires searching over alternative realities where another arm wins—a bilinear coupling of unknowns that makes the optimization landscape stubbornly nonconvex.

Methods

The authors build on the classic Track-and-Stop framework: estimate the environment, compute the optimal sampling proportions $\mathbf{w}^*(t)$ for the arms, track those proportions, and stop when a Generalized Likelihood Ratio (GLR) statistic crosses a confidence threshold.

To make this work without knowing $\mathcal{A}$ or $\boldsymbol{\mu}$, they introduce three key innovations:

  • G-Tracking with Forced Exploration: Because the optimal arm allocation isn't necessarily unique here, standard tracking rules can stumble. The authors use G-tracking—geometrically projecting a line from current empirical pull frequencies through the target allocation to the simplex boundary—paired with occasional random pulls (at $\sqrt{t+1} \in \mathbb{N}$) so every arm is explored.
  • A Joint Stopping Threshold: Naive approaches bound the error in $\mathcal{A}$ and $\boldsymbol{\mu}$ separately at confidence $\delta/2$ and add them together, inflating sample complexity by a factor of 2. By weaving together martingale constructions for categorical and exponential-family variables, the authors derive a single joint concentration inequality that eliminates that factor-of-2 penalty.
  • Closed-Form Convex Relaxation: While computing the exact allocation reduces to convex programs when $\boldsymbol{\mu}$ is known or when there are only $k=2$ contexts, it is nonconvex for $k \ge 3$. The authors design a concave, closed-form lower bound $L$ on the GLR statistic, turning a nasty nonconvex problem into a tractable convex one with provable approximation guarantees.

Datasets

Rather than static datasets, the algorithms are evaluated on synthetic stochastic multi-armed bandit environments with unit-variance Gaussian rewards:

  • Parameterized "Hard" Instances: Synthetic environments parameterized by a gap-shrinking variable $\epsilon$ to test how tight the convex relaxation gets as arms become nearly indistinguishable.
  • Random & Diagnostic Instances: Small synthetic setups (e.g., $n=3$ arms, $k=2$ or $3$ contexts) crafted to isolate regimes where either transition probabilities $\mathcal{A}$ or reward means $\boldsymbol{\mu}$ are the primary bottleneck to learning.

Key Insights and Ideas

  • Standard convexification tricks fail spectacularly for $k \ge 3$: You might hope to handle 3 or more contexts by breaking the alternative parameter space into a finite union of convex sets (which works neatly for $k=2$), or by taking its convex hull. The authors prove both fail: a finite convex decomposition doesn't generally exist for $k \ge 3$, and taking the convex hull can swallow the true instance inside it—driving the transportation cost to zero and rendering the stopping rule completely blind!
  • The relaxation is sharpest right when the problem is hardest: Their closed-form convex relaxation isn't just computationally convenient; in Gaussian instances, as the reward gaps between arms shrink toward zero, the ratio between the true GLR statistic and their relaxation approaches $1$. You lose almost nothing in the exact regime where every sample counts.
  • Bonus upgrade for Reinforcement Learning: Their joint concentration inequality isn't limited to bandits—it directly sharpens existing sample complexity guarantees in RL best-policy identification by stripping away the same factor-of-2 overhead.

Key Results

  • Asymptotic Optimality: With an exact optimization oracle (which is efficiently achievable via convex programs when $\boldsymbol{\mu}$ is known or $k=2$), the algorithm is $\delta$-correct and asymptotically matches the theoretical instance-dependent lower bound as $\delta \to 0$.
  • Tighter Relaxation in Practice: On random instances, the proposed bound $L_i$ typically stays within a factor of 2 of the true numerical GLR value, and converges toward a ratio of 1 on small-gap hard instances—whereas a naive relaxation adapted from prior MDP literature remains stuck a constant factor away.
  • 2x–3x Sample Speedup: Across synthetic benchmarks, all context-aware algorithms beat a sub-Gaussian baseline (GTS-SG) that ignores post-action contexts. With no prior knowledge of $\mathcal{A}$ or $\boldsymbol{\mu}$, the authors' method (GTS-Unknown) stops in less than half the rounds of the naive threshold/relaxation design, requiring roughly 2 to 3 times fewer samples.

Limitations and Future Work

  • Strict Positivity and Boundedness Assumptions: The theoretical guarantees assume a unique best arm, reward means strictly within $(0,1)^k$, and nonzero probabilities for every context under every action ($\min_{i,j} \mathcal{A}_{j,i} > 0$). Furthermore, the algorithm requires an initialization phase that pulls arms until every arm–context pair is observed at least once.
  • Approximation Gap on Easy/General Instances: For $k > 2$ with unknown $\boldsymbol{\mu}$, replacing an exact nonconvex oracle with the convex relaxation achieves asymptotic tightness on small-gap Gaussian instances, though on general instances it is bounded within an instance-dependent factor $\rho(\boldsymbol{\mu}, \mathcal{A})$ of the true optimum rather than matching it universally. Future work is not explicitly discussed in the main text.

Summary updated

Abstract

We study best arm identification (BAI) with post-action context in the fixed-confidence setting. After choosing an action, the learner observes a post-action context together with a reward whose distribution depends only on this context. Incorporating such intermediate information can substantially reduce the sample complexity of identifying the best arm. While Shahverdikondori et al. (2026a) analyzed the case where the distribution of contexts given actions is known, we address the more challenging and practically relevant case where this distribution is unknown. We derive an instance-dependent sample complexity lower bound and propose a Track-and-Stop algorithm that matches it asymptotically with access to an optimization oracle. Our stopping rule uses a new concentration inequality that jointly controls uncertainty in the context distributions and reward means, removing the factor of two incurred by separate concentration bounds. Implementing the algorithm generally requires solving nonconvex optimization problems. We propose a convex relaxation with instance-dependent approximation guarantees, including asymptotic tightness on hard Gaussian instances. Experiments demonstrate that exploiting post-action context reduces the sample complexity relative to baselines that ignore it, even when the context distributions are unknown.
BibTeX
@misc{abouei2026best,
  author = {Amir Mohammad Abouei and Mohammad Shahverdikondori and Emad Emamjomeh and Negar Kiyavash},
  title = {{Best Arm Identification with Unknown Post-Action Context Distribution}},
  year = {2026},
  eprint = {2611.33024},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33024},
}
Figure