Pure Exploration Beyond Reward Feedback: The Role of Post-Action Context

Mohammad Shahverdikondori, Amir Mohammad Abouei, Alireza Rezaeimoghadam, Negar KiyavashNeurIPS 2026

TL;DR

When running sequential experiments to find the single best option—like testing randomized ad-serving policies or clinical treatments—we often observe an intermediate "middleman" variable after choosing an action, right alongside the final reward. Classic algorithms ignore this extra clue and waste samples pulling only the highest-scoring options. This paper shows how tracking those intermediate post-action contexts directly—sometimes by intentionally choosing terrible-looking actions—dramatically slashes the number of trials needed to find the true winner.

What Problem Does This Paper Address?

Imagine you are testing several randomized ad-serving policies ($X$) to see which yields the highest click-through rate ($Y$) before deploying the winner. You are in a pure exploration (or Best Arm Identification) regime: you don't care about maximizing clicks during the test; you just want to identify the best policy with high confidence ($1-\delta$) using as few trials as possible.

In standard multi-armed bandits, you pick an action $X$ and only observe the reward $Y$. In contextual bandits, you see a context before picking $X$. Here, the authors introduce pure exploration with post-action context: you pick policy $X$, see which specific ad $Z$ actually got displayed, and then observe whether the user clicked ($Y$).

Causal structures for separator vs. non-separator post-action contexts.

The authors study two causal flavors of this setup (assuming the transition probabilities $P(Z|X)$ are known):

  1. Separator context: Once you know which ad $Z$ was shown, the policy $X$ that selected it doesn't matter—the click $Y$ depends only on $Z$.
  2. Non-separator context: $Z$ is helpful (like a short-term blood sugar biomarker in a clinical trial), but the treatment $X$ also directly affects the final clinical outcome $Y$.

Methods

Standard optimal algorithms for pure exploration (like Track-and-Stop) compute an ideal proportion of times to pull each arm and track those frequencies.

In the non-separator case, the authors show that extending classical Track-and-Stop to account for joint $(Z, Y)$ observations is sufficient to hit theoretical sample-complexity limits.

The real magic happens in the separator case. The authors prove that the theoretical lower bound on sample complexity depends only on how often each context $Z$ is observed, regardless of which arm $X$ triggered it. Because you can't pick $Z$ directly, each arm $X$ acts as a probability distribution over contexts, and the space of achievable context frequencies forms a geometric convex hull ($\text{conv}(\mathcal{A})$).

Figure 2: Illustration of G-tracking rule for an instance with k = 3, n = 5. The triangle depicts the two-dimensional simplex, and the green area shows the policy space conv(A).

To exploit this, they introduce Separator Track-and-Stop (STS) featuring a novel sampling rule called Geometric Tracking (G-tracking):

  • At each step $t$, the algorithm estimates the ideal target context frequencies $\mathbf{w}^*(t)$ inside the policy hull $\text{conv}(\mathcal{A})$ using convex optimization (Frank-Wolfe).
  • It draws a line from the actual observed context frequencies $\frac{\mathbf{N}^Z(t)}{t}$ through the target $\mathbf{w}^*(t)$ until it hits the boundary of $\text{conv}(\mathcal{A})$ at a point $\mathbf{p}(t+1)$.
  • It then samples arms according to a distribution that induces $\mathbf{p}(t+1)$, paired with a Generalized Likelihood Ratio (GLR) stopping rule.

Datasets

In the main text, the authors evaluate their method on custom synthetic multi-armed bandit instances (e.g., 3 arms and 3 contexts with unit-variance Gaussian rewards) designed to highlight structural trade-offs. They also note additional experiments in the appendix using more synthetic instances and a semi-synthetic separator benchmark built from a real-world dataset (the specific dataset name is not mentioned in the main paper).

Key Insights and Ideas

  • Bad arms can be great explorers: Suppose Arm 1 and Arm 2 are nearly tied for first place, differing only in how rarely they trigger contexts 2 and 3. Arm 3 has a terrible expected reward, but it triggers contexts 2 and 3 frequently. Standard bandit algorithms shun Arm 3 because its reward is low; STS Hammers Arm 3 because it's the fastest way to learn the values of contexts 2 and 3 and break the tie between Arms 1 and 2!
  • Geometric "all-at-once" balancing: By projecting a ray through the target $\mathbf{w}^*(t)$ to the boundary of the convex hull, G-tracking guarantees that $\mathbf{w}^*(t)$ sits between history and the next step. Every under-explored context simultaneously gets boosted above its target probability, while every over-explored context gets dialed back.
  • Linear bandit reductions leave money on the table: Since expected rewards are linear combinations of context means ($\mathcal{A}_i^\top \boldsymbol{\mu}$), it's tempting to just use a linear bandit algorithm and ignore $Z$. The authors prove via Cauchy–Schwarz that collapsing $Z$ into noise inflates reward variance and yields strictly worse sample-complexity bounds (e.g., a theoretical lower bound factor of ~1054 for linear bandits vs. ~165 with post-action context on a 4-arm toy example).

Key Results

  • Asymptotic Optimality: Both STS (for separator contexts) and the extended Track-and-Stop (for non-separator contexts) are proven $\delta$-correct and asymptotically match the exact instance-dependent sample complexity lower bounds as $\delta \to 0$.
  • Order-of-Magnitude Speedups: On a 3-arm, 3-context separator benchmark ($\delta = 0.01$, 150 runs), STS identifies the best arm in roughly $10^4$ steps, whereas both classical Track-and-Stop (TS) and linear-bandit Lazy Track-and-Stop (LTS) require nearly $10^6$ steps—about a 100x reduction in sample complexity, with zero incorrect recommendations across all runs.

Limitations and Future Work

  • Known Transition Matrix ($\mathcal{A}$): The entire framework assumes the learner knows $P(Z|X)$ beforehand. While natural for engineered randomized policies (like ad slates), it is a strong assumption in domains like medicine. Simply plugging in an empirical estimate $\hat{\mathcal{A}}_t$ fails in general, and an unknown $\mathcal{A}$ makes the core optimization problem non-convex—leaving computationally efficient algorithms for unknown $\mathcal{A}$ as the flagship open problem.
  • Model Constraints: The theoretical guarantees assume a finite set of contexts, a unique best arm, one-parameter exponential family rewards (specifically unit-variance Gaussians), and positivity (every arm has a non-zero probability of triggering every context).

Summary updated

Abstract

We introduce the problem of best arm identification (BAI) with post-action context, a new BAI problem in a stochastic multi-armed bandit environment and the fixed-confidence setting. The problem addresses the scenarios in which the learner receives a \emph{post-action context} in addition to the reward after playing each action. This post-action context provides additional information that can significantly facilitate the decision process. We analyze two different types of the post-action context: (i) \textit{separator}, where the reward depends solely on the context, and (ii) \textit{non-separator}, where the reward depends on both the action and the context. For both cases, we derive instance-dependent lower bounds on the sample complexity and propose algorithms that asymptotically achieve the optimal sample complexity. For the separator setting, we propose a novel sampling rule called \textit{G-tracking}, which uses the geometry of the context space to directly track the contexts rather than the actions. For the non-separator setting, we do so by demonstrating that the Track-and-Stop algorithm can be extended to this setting. Moreover, in both settings, we theoretically and empirically show that algorithms that ignore the post-action context are sub-optimal. Finally, our empirical results showcase the advantage of our approaches compared to the state of the art.
BibTeX
@inproceedings{shahverdikondori2026pure,
  author = {Mohammad Shahverdikondori and Amir Mohammad Abouei and Alireza Rezaeimoghadam and Negar Kiyavash},
  title = {{Pure Exploration Beyond Reward Feedback: The Role of Post-Action Context}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=BtGXDXwVoF},
}
Figure