alphaFeedback

WorksEconomics, Econometrics and Finance

Regret-based Characterization, Information Limits, and the Sample Complexity of Auditing Adaptive Policies

AI contributions
Not recorded for this paper
View details

Abstract

A policy can earn its performance by where it locates on average or by reacting to information. For any Markov policy ππ in a finite-horizon MDP, let νν be its open-loop marginal, which plays ππ's average action distribution at each step. We show that J(π)−J(ν)J(π)-J(ν) equals ∑ttrCov(Qtν,πt)\sum_t tr Cov(Q^ν_t,π_t) under endogenous dynamics. Audits based on immediate costs alone can have the wrong sign. Writing the covariance as a joint-versus-product gap gives the bound ∣J(π)−J(ν)∣≤∑tspantI(st;at)/2|J(π)-J(ν)|\le\sum_t span_t\sqrt{I(s_t;a_t)/2}, with a sharp constant. Hence, an MDP's adaptivity gap is bounded by the information that its optimal policy uses. Estimating J(π)−J(ν)J(π)-J(ν) from ππ's own bandit-feedback logs takes Θ(χˉ2log⁡(1/η)/δ2)Θ(\barχ^2 \log(1/η)/δ^2) rounds, where χˉ2\barχ^2 is an average χ2χ^2-divergence. At the same time, deterministic non-constant policies cannot be audited at all. We also provide an importance-sampling auditor for episodic MDPs.

Introduction

Learned policies set portfolio weights, prices, bids, inventory orders, and treatment assignments. A principal or regulator who evaluates such a policy usually sees only its inputs and outputs, but wants to know whether the policy creates value by using information or merely by how it behaves on average. The second kind of value can be replicated by a fixed rule; the first cannot. This paper studies the problem of separating the two, which we call auditing adaptivity, from three angles: an exact characterization, an information-theoretic limit, and the sample complexity of estimation.

The benchmark. Fix a Markov policy π=(π1,…,πH)\pi=(\pi_1,\ldots,\pi_H) in a finite-horizon MDP and let dtπd_t^\pi be its state distribution at step tt. Its open-loop marginal ν=νπ\nu=\nu^\pi is the policy that, at step tt, ignores the state and draws ata_t from

pˉt(a)=Es∼dtπ[πt(a∣s)].\bar{p}_t(a)=\mathbb{E}_{s\sim d_t^\pi}[\pi_t(a\mid s)].

Thus ν\nu uses each action exactly as often as π\pi does on average at each step, but uses no information. The quantity Δ(π):=J(π)−J(ν)\Delta(\pi):=J(\pi)-J(\nu), where JJ denotes expected total cost, is the value that π\pi adds (if negative) or destroys (if positive) by conditioning on the state. In finance, this is the classical split of active returns into a ”timing” (covariance) component and a ”static allocation” (means) component [9, 19]; in stochastic optimization, min⁡νJ(ν)−min⁡πJ(π)\min_\nu J(\nu)-\min_\pi J(\pi) is the additive adaptivity gap [10, 13]. Recent work by Aldridge [2, 3] observed that, for stochastic linear programs and portfolio policies, expected regret equals the covariance between costs and decisions when the policy is mean-unbiased. We show that this phenomenon is exact in far greater generality and develop its quantitative theory.

Results

1. Exact characterization (§ 3). In every finite-horizon MDP and for every Markov policy π\pi,

J(π)−J(ν)=∑t=1Htr⁡Cov⁡st∼dtπ(Qtν(st,⋅),πt(⋅∣st))(1)J(\pi)-J(\nu)=\sum_{t=1}^{H}\operatorname{tr}\operatorname{Cov}_{s_t\sim d_t^\pi}\left(Q_t^\nu(s_t,\cdot),\pi_t(\cdot\mid s_t)\right) \tag*{(1)}
J(π)−J(ν)=∑t=1H(EPt[Qtν]−EPtS⊗PtA[Qtν]),(2)J(\pi)-J(\nu)=\sum_{t=1}^{H}\left(\mathbb{E}_{P_t}\left[Q_t^\nu\right]-\mathbb{E}_{P_t^S\otimes P_t^A}\left[Q_t^\nu\right]\right), \tag*{(2)}

where PtP_t is the joint law of (st,at)(s_t,a_t) under π\pi and PtS⊗PtAP_t^S\otimes P_t^A is the product of its marginals (Theorem 3.4). The identity holds under fully endogenous dynamics; the feedback from actions to states is absorbed by evaluating the covariance under π\pi’s state distribution and pairing actions with the QQ-function of ν\nu. Pathwise and with no probability model at all, the regret of any online linear optimization algorithm against the best fixed action in hindsight equals a sample covariance plus a non-negative static gap (Theorem 3.1). Regret to the optimal policy splits as adaptivity plus static allocation plus the problem’s adaptivity gap, and the adaptivity gap is at most the covariance magnitude of any optimal policy (Theorem 3.7). The QνQ^\nu in (1) cannot be replaced by immediate costs: the resulting “myopic audit” can report value destruction for a policy that creates value, with unbounded error (Theorem 3.8).

2. Information limits (§ 4). The right-hand form of (1) compares a joint law to the product of its marginals. The KL divergence between them is the mutual information I(st;at)I(s_t;a_t), so Pinsker’s inequality yields:

Informal statement (Theorems 4.2 and 4.3). ∣J(π)−J(ν)∣≤∑tspan⁡t(π)I(st;at)/2\left|J(\pi)-J(\nu)\right|\leq\sum_t \operatorname{span}_t(\pi)\sqrt{I(s_t;a_t)/2}, where span⁡t\operatorname{span}_t is the largest per-state range of QtνQ_t^\nu across actions. The constant 1/21/\sqrt{2} cannot be improved.

Two consequences follow. The additive adaptivity gap of an MDP is at most ∑tspan⁡tIt/2\sum_t\operatorname{span}_t\sqrt{I_t/2} evaluated at any optimal policy, so problems whose optimal policies need few bits have small adaptivity gaps (Theorem 4.4). And with costs in [0,1][0,1], a policy whose actions carry at most RR units of mutual information between state and action per step (a.k.a. RR ”nats”) cannot beat the best open-loop policy by more than H(H+1)2R/2\frac{H(H+1)}{2}\sqrt{R/2} (Theorem 4.5). This is a rate–value tradeoff in the spirit of rational inattention [24, 25].

3. Sample complexity of auditing (§ 5). An auditor observes π\pi’s own logs and must estimate Δ(π)\Delta(\pi). Under full information, the problem is easy. Under bandit feedback, it reduces to off-policy evaluation of the open-loop marginal νπ\nu^\pi, and the right complexity parameter is

χˉ2(π):=Ex[χ2(πˉ∥π(⋅∣x))],\bar{\chi}^{2}(\pi):=\mathbb{E}_{x}\left[\chi^{2}\left(\bar{\pi}\mathbin{\|}\pi(\cdot\mid x)\right)\right],

the average χ2\chi^2-divergence from the marginal to the conditional action distributions.

Informal statement (Theorems 5.2 to 5.4). A median-of-means IPW auditor estimates Δ(π)\Delta(\pi) within ±δ\pm\delta with probability 1−η1-\eta from O(χˉ2log⁡(1/η)/δ2)O(\bar{\chi}^{2}\log(1/\eta)/\delta^{2}) logged rounds, for every policy and instance. Conversely, for every value Γ≥1/3\Gamma\geq1/3 there is a policy with χˉ2=Γ\bar{\chi}^{2}=\Gamma and two instances on which every auditor needs Ω(Γlog⁡(1/η)/δ2)\Omega(\Gamma\log(1/\eta)/\delta^{2}) rounds. If π\pi never plays some action that νπ\nu^\pi plays, on a set of contexts of positive measure, then Δ(π)\Delta(\pi) is not identifiable. In particular, a deterministic non-constant policy cannot be audited from its own logs.

For episodic MDPs, an importance-sampling auditor over whole trajectories needs a number of episodes

n=O(H2χ2(Pν∥Pπ)log⁡(1/η)/δ2),where1+χ2(Pν∥Pπ)≤∏t(1+max⁡sχ2(pˉt∥πt(⋅∣s)))n = O\left(H^2 \chi^2(P^\nu\mathbin\Vert P^\pi)\log(1/\eta)/\delta^2\right), \qquad\text{where} \qquad1+\chi^2(P^\nu\mathbin\Vert P^\pi) \le\prod_t\left(1+\max_s\chi^2(\bar p_t\mathbin\Vert\pi_t(\cdot\mid s))\right)

(Theorem 5.6).

Techniques

The characterization rests on two observations. First, the open-loop marginal is the unique state-independent policy whose value function satisfies Vtν(s)=⟨Qtν(s,⋅),pˉt⟩V_t^\nu(s)=\langle Q_t^\nu(s,\cdot),\bar p_t\rangle with the same pˉt\bar p_t as π\pi’s marginal. Plugging this into the performance-difference lemma [16] turns each advantage term into a centered inner product, which is a covariance. Second, a covariance between a function of the state and a function of the action is EPf−EPS⊗PAf\mathbb{E}_{P}f-\mathbb{E}_{P_S\otimes P_A}f, so any divergence bound between a joint law and its product applies. The identity is invariant to adding any function of the state to QtνQ_t^\nu, and choosing the per-state midpoint replaces the global oscillation of QtνQ_t^\nu by the much smaller per-state action range. For auditing, the key observation is that E[ℓt(at)]\mathbb{E}[\ell_t(a_t)] under π\pi is directly observable, so all statistical difficulty lies in evaluating νπ\nu^\pi off-policy. The variance of the natural estimator is exactly bounded by χˉ2\bar\chi^2. The lower bound plants a cost perturbation on the context–action pair that π\pi plays with probability pp but νπ\nu^\pi plays with probability 1/21/2, and applies the Bretagnolle–Huber inequality.

Related work

Online learning and regret. Regret against the best fixed action is the standard benchmark of online learning [7, 14]. Theorem 3.1 is an elementary identity, but it provides a structural reading of regret: negative regret (beating the best fixed action) is possible only with negative sample covariance, and every no-regret algorithm has sample covariance of at most its regret. Applied to stochastic bandit algorithms such as Thompson sampling, whose regret is near-optimal [1], the decomposition separates an algorithm’s static exposure to suboptimal arms (the static gap) from the timing of its exploration (the covariance).

Adaptivity gaps. The benefit of adaptivity is studied as a multiplicative ratio for stochastic knapsack [10], stochastic probing [13] and submodular maximization [4]. Our bounds are additive and problem-agnostic: Theorem 4.4 bounds the gap by the information used by an optimal policy, and Theorem 3.7 identifies the policy-level quantity, a covariance, whose extremum the gap is.

Information-theoretic bounds. Bounding the covariance between a selection and a quantity by mutual information through a change of measure underlies information-theoretic analyzes of adaptive data analysis [23], generalization [29], and Thompson sampling [22]. Theorem 4.2 applies this technique to the value of adaptivity in MDPs. Evaluating the bound on continuous-state data requires estimating mutual information, for which efficient kk-nearest-neighbour entropy estimators are available [5]. Two ingredients specific to this setting are the reduction to QνQ^\nu through Theorem 3.4 and the state-baseline invariance that yields the per-state span. Information-constrained decision-making is studied as rational inattention [24] and in information-theoretic RL [25].

Off-policy evaluation. Our auditing results are an instance of off-policy evaluation (OPE), with the twist that the target policy νπ\nu^\pi is defined by the behavior policy itself. Importance sampling and doubly robust estimators [11, 15, 21] and minimax analyses for contextual bandits [17, 27] are the closest antecedents. The lower bound of Theorem 5.4 is in the spirit of [17], specialized for targets of the form νπ\nu^\pi. Marginalized importance sampling [18, 28, 31] suggests routes to polynomial-in-horizon auditing.

Auditing LLM agents. Agentic systems built on large language models raise the same question at the level of tool calls and workflow steps. Systems working on agent evaluation ask when and how to inspect an agent’s execution mid-trajectory [30]. Our results supply a complementary statistical criterion. Logging the agent’s action propensities and states is enough to estimate its adaptive value against its own open-loop marginal (Theorem 5.6). Without exploration, however, a deterministic agent cannot be audited from its own logs (Theorem 5.2).

Finance and predict-then-optimize. The decomposition E[c⊤z]=E[c]⊤E[z]+tr⁡Cov⁡(c,z)\mathbb{E}[c^\top z] = \mathbb{E}[c]^\top\mathbb{E}[z] + \operatorname{tr}\operatorname{Cov}(c,z) is classical in performance attribution [9, 19] and related to decision-focused learning [12]. Aldridge [2, 3] uses it as a regret characterization for stochastic linear programs and AI investment strategies under a mean-unbiasedness condition. The present paper removes that condition, extends the identity to endogenous dynamics, and supplies information and sample-complexity theory.

Model

MDPs and policies. A finite-horizon MDP is a tuple M=(S,A,H,(Pt)t≤H,(ℓt)t≤H,ρ)M = (\mathcal{S}, \mathcal{A}, H, (P_t)_{t \le H}, (\ell_t)_{t \le H}, \rho) with finite state and action sets, transition kernels Pt(⋅∣s,a)∈Δ(S)P_t(\cdot\mid s,a) \in\Delta(\mathcal{S}), bounded costs ℓt:S×A→R\ell_t: \mathcal{S} \times\mathcal{A} \to\mathbb{R}, and initial distribution ρ∈Δ(S)\rho\in\Delta(\mathcal{S}). A (randomized, time-dependent) Markov policy is π=(πt)t≤H\pi= (\pi_t)_{t \le H} with πt(⋅∣s)∈Δ(A)\pi_t(\cdot\mid s) \in\Delta(\mathcal{A}). Running π\pi generates s1∼ρs_1 \sim\rho, at∼πt(⋅∣st)a_t \sim\pi_t(\cdot\mid s_t), st+1∼Pt(⋅∣st,at)s_{t+1} \sim P_t(\cdot\mid s_t,a_t). Write dtπ∈Δ(S)d_t^\pi\in\Delta(\mathcal{S}) for the law of sts_t, J(π)=Eπ[∑t=1Hℓt(st,at)]J(\pi) = \mathbb{E}^\pi[\sum_{t=1}^H \ell_t(s_t,a_t)] for expected total cost, and

Qtμ(s,a)=ℓt(s,a)+Es′∼Pt(⋅∣s,a)[Vt+1μ(s′)],Vtμ(s)=⟨Qtμ(s,⋅),μt(⋅∣s)⟩,VH+1μ≡0,Q_t^\mu(s,a) = \ell_t(s,a) + \mathbb{E}_{s' \sim P_t(\cdot\mid s,a)}[V_{t+1}^\mu(s')], \qquad V_t^\mu(s) = \langle Q_t^\mu(s,\cdot), \mu_t(\cdot\mid s)\rangle, \qquad V_{H+1}^\mu\equiv0,

for the action-value and value functions of a Markov policy μ\mu. Costs, rather than rewards, maintain the sign convention of regret.

Definition 2.1 (Open-loop marginal). For a Markov policy π\pi, let pˉtπ(a)=∑sdtπ(s)πt(a∣s)\bar{p}_t^\pi(a) = \sum_s d_t^\pi(s)\pi_t(a \mid s). The open-loop marginal of π\pi is the policy νπ\nu^\pi with νtπ(⋅∣s)=pˉtπ\nu_t^\pi(\cdot\mid s) = \bar{p}_t^\pi for all ss. A policy is open-loop if μt(⋅∣s)\mu_t(\cdot\mid s) does not depend on ss for every tt.

We write ν=νπ\nu= \nu^\pi and pˉt=pˉtπ\bar{p}_t = \bar{p}_t^\pi when π\pi is clear, and call Δ(π):=J(π)−J(νπ)\Delta(\pi) := J(\pi) - J(\nu^\pi) the adaptivity cost of π\pi; −Δ(π)-\Delta(\pi) is its adaptive value. Let π∗\pi^* be an optimal policy and ν∗\nu^* an optimal open-loop policy (both exist by finiteness and compactness). The (additive) adaptivity gap of MM is Gap⁡(M):=J(ν∗)−J(π∗)≥0\operatorname{Gap}(M) := J(\nu^*) - J(\pi^*) \ge0.

Covariances. For random vectors q,z∈RAq,z \in\mathbb{R}^{\mathcal{A}} with finite second moments, Cov⁡(q,z)=E⟨q,z⟩−⟨Eq,Ez⟩=E⟨q−Eq,z−Ez⟩\operatorname{Cov}(q,z) = \mathbb{E}\langle q,z\rangle- \langle\mathbb{E}q,\mathbb{E}z\rangle= \mathbb{E}\langle q-\mathbb{E}q,z-\mathbb{E}z\rangle. Throughout, qt:=Qtν(st,⋅)q_t := Q_t^\nu(s_t,\cdot) and zt:=πt(⋅∣st)z_t := \pi_t(\cdot\mid s_t) with st∼dtπs_t \sim d_t^\pi, so that Ezt=pˉt\mathbb{E}z_t = \bar{p}_t.

Information quantities. Under π\pi, let Pt(s,a)=dtπ(s)πt(a∣s)P_t(s,a) = d_t^\pi(s)\pi_t(a \mid s) be the joint law of (st,at)(s_t,a_t), with marginals PtS=dtπP_t^S = d_t^\pi and PtA=pˉtP_t^A = \bar{p}_t. The mutual information is It(π):=I(st;at)=KL⁡(Pt ∥ PtS⊗PtA)I_t(\pi) := I(s_t;a_t) = \operatorname{KL}(P_t \,\|\, P_t^S \otimes P_t^A), in units of information, nats. For distributions p,qp,q on A\mathcal{A}, χ2(p∥q)=∑ap(a)2/q(a)−1\chi^2(p\|q) = \sum_a p(a)^2/q(a) - 1, with the convention χ2=∞\chi^2 = \infty if p≪̸qp \not\ll q.

Exact characterization

Pathwise: online linear optimization

Theorem 3.1 (Pathwise decomposition). Let Z⊂RnZ \subset\mathbb{R}^{n} be convex and compact, let c1,…,cT∈Rnc_{1},\ldots,c_{T} \in\mathbb{R}^{n} be arbitrary, and let z1,…,zT∈Zz_{1},\ldots,z_{T} \in Z be arbitrary. Let cˉ=1T∑t=1Tct\bar{c} = \frac{1}{T}\sum_{t=1}^{T}c_{t}, zˉ=1T∑t=1Tzt\bar{z} = \frac{1}{T}\sum_{t=1}^{T}z_{t}, and z∗∈arg⁡min⁡z∈Zcˉ⊤zz^{*} \in\arg\min_{z\in Z}\bar{c}^{\top}z. Then

∑t=1Tct⊤zt−min⁡z∈Z∑t=1Tct⊤z⏟Regret⁡T=∑t=1T(ct−cˉ)⊤(zt−zˉ)⏟C^T+Tcˉ⊤(zˉ−z∗).\underbrace{\sum_{t=1}^{T}c_{t}^{\top}z_{t}-\min_{z\in Z}\sum_{t=1}^{T}c_{t}^{\top}z}_{\operatorname{Regret}_{T}}=\underbrace{\sum_{t=1}^{T}(c_{t}-\bar{c})^{\top}(z_{t}-\bar{z})}_{\widehat{C}_{T}}+T\bar{c}^{\top}(\bar{z}-z^{*}) .

Proof. ∑tct⊤zt=∑t(ct−cˉ)⊤(zt−zˉ)+Tcˉ⊤zˉ\sum_{t}c_{t}^{\top}z_{t}=\sum_{t}(c_{t}-\bar{c})^{\top}(z_{t}-\bar{z})+T\bar{c}^{\top}\bar{z}, because the cross terms ∑t(ct−cˉ)⊤zˉ\sum_{t}(c_{t}-\bar{c})^{\top}\bar{z} and ∑tcˉ⊤(zt−zˉ)\sum_{t}\bar{c}^{\top}(z_{t}-\bar{z}) vanish. Also min⁡z∑tct⊤z=Tcˉ⊤z∗\min_{z}\sum_{t}c_{t}^{\top}z=T\bar{c}^{\top}z^{*}. The last term is non-negative because zˉ∈Z\bar{z}\in Z by convexity.

Corollary 3.2. For every online algorithm and every adversary, C^T≤Regret⁡T\widehat{C}_{T}\leq\operatorname{Regret}_{T}, with equality if and only if zˉ\bar{z} is a best fixed action in hindsight. In particular, Regret⁡T<0\operatorname{Regret}_{T}<0 implies C^T<0\widehat{C}_{T}<0, and every algorithm with Regret⁡T≤ρ(T)\operatorname{Regret}_{T}\leq\rho(T) has C^T≤ρ(T)\widehat{C}_{T}\leq\rho(T).

Theorem 3.1 requires no stochastic assumptions; it is the accounting identity the auditor computes on a realized path. The rest of the paper concerns the expected, endogenous-dynamics analogue.

The MDP covariance identity

Lemma 3.3 (Performance difference [16]). For Markov policies π,μ\pi,\mu,

J(π)−J(μ)=∑t=1HEs∼dtπ[⟨Qtμ(s,⋅),πt(⋅∣s)⟩−Vtμ(s)].J(\pi)-J(\mu)=\sum_{t=1}^{H}\mathbb{E}_{s\sim d_{t}^{\pi}}\left[\left\langle Q_{t}^{\mu}(s,\cdot),\pi_{t}(\cdot\mid s)\right\rangle-V_{t}^{\mu}(s)\right].

Proof. Since VH+1μ≡0V_{H+1}^{\mu}\equiv0, ∑t=1H(ℓt(st,at)+Vt+1μ(st+1)−Vtμ(st))=∑tℓt(st,at)−V1μ(s1)\sum_{t=1}^{H}\left(\ell_{t}(s_{t},a_{t})+V_{t+1}^{\mu}(s_{t+1})-V_{t}^{\mu}(s_{t})\right)=\sum_{t}\ell_{t}(s_{t},a_{t})-V_{1}^{\mu}(s_{1}) by telescoping. Take expectations under π\pi: the right side is J(π)−J(μ)J(\pi)-J(\mu). On the left, E[ℓt(st,at)+Vt+1μ(st+1)∣st,at]=Qtμ(st,at)\mathbb{E}[\ell_{t}(s_{t},a_{t})+V_{t+1}^{\mu}(s_{t+1})\mid s_{t},a_{t}]=Q_{t}^{\mu}(s_{t},a_{t}), and averaging over at∼πt(⋅∣st)a_{t}\sim\pi_{t}(\cdot\mid s_{t}) gives the claim.

Theorem 3.4 (Covariance characterization). For every finite-horizon MDP and every Markov policy π\pi, with ν=νπ\nu=\nu^{\pi},

J(π)−J(ν)=∑t=1Htr⁡Cov⁡(qt,zt)(3)J(\pi)-J(\nu)=\sum_{t=1}^{H}\operatorname{tr}\operatorname{Cov}(q_{t},z_{t}) \tag*{(3)}
=∑t=1H(E(s,a)∼Pt[Qtν(s,a)]−E(s,a)∼PtS⊗PtA[Qtν(s,a)]).(4)=\sum_{t=1}^{H}\left(\mathbb{E}_{(s,a)\sim P_{t}}\left[Q_{t}^{\nu}(s,a)\right]-\mathbb{E}_{(s,a)\sim P_{t}^{S}\otimes P_{t}^{A}}\left[Q_{t}^{\nu}(s,a)\right]\right). \tag*{(4)}

Moreover, each summand is unchanged if Qtν(s,a)Q_{t}^{\nu}(s,a) is replaced by Qtν(s,a)−gt(s)Q_{t}^{\nu}(s,a)-g_{t}(s) for any gt:S→Rg_{t}:S\to\mathbb{R}.

Proof. Because νt(⋅∣s)=pˉt\nu_{t}(\cdot\mid s)=\bar{p}_{t} for every ss, Vtν(s)=⟨Qtν(s,⋅),pˉt⟩V_{t}^{\nu}(s)=\langle Q_{t}^{\nu}(s,\cdot),\bar{p}_{t}\rangle. By Theorem 3.3 with μ=ν\mu=\nu,

J(π)−J(ν)=∑tEst∼dtπ⟨qt,zt−pˉt⟩.J(\pi)-J(\nu)=\sum_{t}\mathbb{E}_{s_{t}\sim d_{t}^{\pi}}\langle q_{t},z_{t}-\bar{p}_{t}\rangle.

Since Ezt=pˉt\mathbb{E}z_{t}=\bar{p}_{t}, E⟨Eqt,zt−pˉt⟩=0\mathbb{E}\langle\mathbb{E}q_{t},z_{t}-\bar{p}_{t}\rangle=0, so each summand equals E⟨qt−Eqt,zt−Ezt⟩=tr⁡Cov⁡(qt,zt)\mathbb{E}\langle q_{t}-\mathbb{E}q_{t},z_{t}-\mathbb{E}z_{t}\rangle=\operatorname{tr}\operatorname{Cov}(q_{t},z_{t}), which proves (3). For (4), E⟨qt,zt⟩=∑s,adtπ(s)πt(a∣s)Qtν(s,a)=EPtQtν\mathbb{E}\langle q_{t},z_{t}\rangle=\sum_{s,a}d_{t}^{\pi}(s)\pi_{t}(a\mid s)Q_{t}^{\nu}(s,a)=\mathbb{E}_{P_{t}}Q_{t}^{\nu} and E⟨qt,pˉt⟩=∑s,adtπ(s)pˉt(a)Qtν(s,a)=EPtS⊗PtAQtν\mathbb{E}\langle q_{t},\bar{p}_{t}\rangle=\sum_{s,a}d_{t}^{\pi}(s)\bar{p}_{t}(a)Q_{t}^{\nu}(s,a)=\mathbb{E}_{P_{t}^{S}\otimes P_{t}^{A}}Q_{t}^{\nu}. Finally, PtP_{t} and PtS⊗PtAP_{t}^{S}\otimes P_{t}^{A} have the same ss-marginal, so EPtgt=EPtS⊗PtAgt\mathbb{E}_{P_{t}}g_{t}=\mathbb{E}_{P_{t}^{S}\otimes P_{t}^{A}}g_{t}.

Remark 3.5 (What is new relative to the static identity). The identity is exact under endogenous dynamics: actions affect future states, and this feedback is fully captured by (i) averaging over π\pi’s own state distribution dtπd_t^\pi and (ii) pairing actions with the action-values of ν\nu, not of π\pi and not the immediate costs. The baseline invariance means QtνQ_t^\nu may be replaced by the advantage Qtν−VtνQ_t^\nu- V_t^\nu.

Corollary 3.6 (Exogenous costs). Suppose actions do not affect transitions, that is, Pt(⋅∣s,a)=Pt(⋅∣s)P_t(\cdot\mid s,a)=P_t(\cdot\mid s). Write ct(s)=ℓt(s,⋅)∈RAc_t(s)=\ell_t(s,\cdot)\in\mathbb{R}^A. Then J(π)−J(ν)=∑ttr⁡Cov⁡(ct(st),zt)J(\pi)-J(\nu)=\sum_t \operatorname{tr}\operatorname{Cov}(c_t(s_t),z_t). In particular, for a contextual problem (H=1H=1, s=xs=x), J(π)−J(ν)=tr⁡Cov⁡(c(x),π(⋅∣x))J(\pi)-J(\nu)=\operatorname{tr}\operatorname{Cov}(c(x),\pi(\cdot\mid x)).

Proof. With action-independent transitions, Qtν(s,a)=ℓt(s,a)+gt(s)Q_t^\nu(s,a)=\ell_t(s,a)+g_t(s) with gt(s)=E[Vt+1ν(st+1)∣st=s]g_t(s)=\mathbb{E}[V_{t+1}^\nu(s_{t+1})\mid s_t=s]. Apply the invariance in Theorem 3.4.

Decomposing regret to the optimum

Corollary 3.7 (Three-part decomposition). For every Markov policy π\pi,

J(π)−J(π∗)=∑ttr⁡Cov⁡(qt,zt)+J(νπ)−J(νπ∗)+Gap⁡(M).J(\pi)-J(\pi^*)=\sum_t \operatorname{tr}\operatorname{Cov}(q_t,z_t)+J(\nu^{\pi})-J(\nu^{\pi^*})+\operatorname{Gap}(M).

Consequently Gap⁡(M)=−Δ(π∗)−(J(νπ∗)−J(ν∗))≤−Δ(π∗)\operatorname{Gap}(M)=-\Delta(\pi^*)-\left(J(\nu^{\pi^*})-J(\nu^*)\right)\leq-\Delta(\pi^*) for every optimal π∗\pi^*, with equality if and only if the open-loop marginal of π∗\pi^* is an optimal open-loop policy.

Proof. Add and subtract J(νπ)J(\nu^\pi) and J(νπ∗)J(\nu^{\pi^*}), and apply Theorem 3.4. The middle term is non-negative because νπ∗\nu^{\pi^*} is open-loop. Setting π=π∗\pi=\pi^* gives the second statement.

Myopic audits fail

A tempting shortcut is to audit with immediate costs, ∑ttr⁡Cov⁡(ℓt(st,⋅),zt)\sum_t\operatorname{tr}\operatorname{Cov}(\ell_t(s_t,\cdot),z_t), which by Theorem 3.6 is correct when dynamics are exogenous. Under endogenous dynamics it can be arbitrarily wrong.

Proposition 3.8 (Sign reversal). For every m>1m>1 there is a two-step MDP with two states and two actions, and a deterministic policy π\pi, such that

∑ttr⁡Cov⁡(ℓt(st,⋅),zt)=14>0whileJ(π)−J(νπ)=1−m4<0.\sum_t\operatorname{tr}\operatorname{Cov}(\ell_t(s_t,\cdot),z_t)=\frac{1}{4}>0 \qquad\text{while} \qquad J(\pi)-J(\nu^\pi)=\frac{1-m}{4}<0.

Proof. Let s1∼Bernoulli⁡(1/2)s_1\sim\operatorname{Bernoulli}(1/2) and A={0,1}\mathcal{A}=\{0,1\} (“wait”, “invest”). Set ℓ1(s,0)=0\ell_1(s,0)=0 and ℓ1(s,1)=1+s\ell_1(s,1)=1+s. The step-2 state records (s1,a1)(s_1,a_1), and ℓ2\ell_2 is action-independent with ℓ2((s,1),⋅)=−ms\ell_2((s,1),\cdot)=-ms and ℓ2((s,0),⋅)=0\ell_2((s,0),\cdot)=0. Let π1(1∣s)=s\pi_1(1\mid s)=s (invest exactly when s=1s=1); π2\pi_2 is arbitrary. Then pˉ1=(1/2,1/2)\bar p_1=(1/2,1/2).

Myopic term. At t=1t=1, tr⁡Cov⁡(ℓ1(s,⋅),z1)=Cov⁡(1+s,s)=Var⁡(s)=1/4\operatorname{tr}\operatorname{Cov}(\ell_1(s,\cdot),z_1)=\operatorname{Cov}(1+s,s)=\operatorname{Var}(s)=1/4, since the a=0a=0 coordinate is constant. At t=2t=2, the cost vector is constant across actions, so its covariance with z2z_2 vanishes because ⟨1,z2−pˉ2⟩=0\langle\mathbf{1},z_2-\bar p_2\rangle=0.

True value. Q1ν(s,0)=0Q_1^\nu(s,0)=0 and Q1ν(s,1)=1+s−msQ_1^\nu(s,1)=1+s-ms. By Theorem 3.4, J(π)−J(ν)=Cov⁡(1+(1−m)s,s)=(1−m)/4J(\pi)-J(\nu)=\operatorname{Cov}(1+(1-m)s,s)=(1-m)/4; the step-2 term vanishes for the same reason as before.

The ratio between the two quantities, (1−m)(1-m), is unbounded as m→∞m\to\infty. Swapping the roles of the costs gives the reverse failure: a myopic audit that certifies value for a policy that destroys it.

Information limits of adaptivity

Definition 4.1 (Action span). For a Markov policy π\pi with marginal ν=νπ\nu= \nu^\pi, let

span⁡t(π)=max⁡s∈supp⁡dtπ(max⁡a∈supp⁡pˉtQtν(s,a)−min⁡a∈supp⁡pˉtQtν(s,a)).\operatorname{span}_t(\pi) = \max_{s \in\operatorname{supp} d_t^\pi} \left( \max_{a \in\operatorname{supp} \bar{p}_t} Q_t^\nu(s,a) - \min_{a \in\operatorname{supp} \bar{p}_t} Q_t^\nu(s,a) \right).

The span measures how much the choice of action can matter in a single state; it ignores the variation of QtνQ_t^\nu across states, which by Theorem 3.4 is irrelevant to adaptivity.

Theorem 4.2 (Information bound). For every finite-horizon MDP and every Markov policy π\pi,

∣J(π)−J(νπ)∣≤∑t=1Hspan⁡t(π)I(st;at)2,\left|J(\pi) - J(\nu^\pi)\right| \le\sum_{t=1}^{H} \operatorname{span}_t(\pi) \sqrt{\frac{I(s_t; a_t)}{2}},

where I(st;at)I(s_t; a_t) is the mutual information, in nats, between state and action at step tt under π\pi.

Proof. Fix tt and write P=PtP = P_t and P~=Pts⊗Pta\widetilde{P} = P_t^s \otimes P_t^a. If dtπ(s)>0d_t^\pi(s) > 0 and πt(a∣s)>0\pi_t(a \mid s) > 0 then pˉt(a)≥dtπ(s)πt(a∣s)>0\bar{p}_t(a) \ge d_t^\pi(s)\pi_t(a \mid s) > 0, so both PP and P~\widetilde{P} are supported on Ω=supp⁡dtπ×supp⁡pˉt\Omega= \operatorname{supp} d_t^\pi\times\operatorname{supp} \bar{p}_t. For s∈supp⁡dtπs \in\operatorname{supp} d_t^\pi let g(s)g(s) be the midpoint of {Qtν(s,a):a∈supp⁡pˉt}\{Q_t^\nu(s,a) : a \in\operatorname{supp} \bar{p}_t\}, and set f(s,a)=Qtν(s,a)−g(s)f(s,a) = Q_t^\nu(s,a) - g(s). Then ff takes values in [−span⁡t/2,span⁡t/2][-\operatorname{span}_t/2,\operatorname{span}_t/2] on Ω\Omega. By Theorem 3.4, the tt-th summand equals EPf−EP~f\mathbb{E}_P f - \mathbb{E}_{\widetilde{P}}f. For any ff with values in an interval of length LL, ∣EPf−EP~f∣≤L⋅TV⁡(P,P~)|\mathbb{E}_P f - \mathbb{E}_{\widetilde{P}}f| \le L \cdot\operatorname{TV}(P,\widetilde{P}). By Pinsker’s inequality [8],

TV⁡(P,P~)≤KL⁡(P∥P~)2=I(st;at)2.\operatorname{TV}(P,\widetilde{P}) \le\sqrt{\frac{\operatorname{KL}(P\mathbin{\|}\widetilde{P})}{2}} = \sqrt{\frac{I(s_t; a_t)}{2}}.

Sum over tt and use the triangle inequality.

Proposition 4.3 (Sharpness). The constant 1/21/\sqrt{2} in Theorem 4.2 is optimal: there is a family of one-step instances with span⁡1=1\operatorname{span}_1 = 1, I(s1;a1)→0I(s_1; a_1) \to0, and

∣J(π)−J(νπ)∣span⁡1I(s1;a1)/2⟶1.\frac{\left|J(\pi) - J(\nu^\pi)\right|}{\operatorname{span}_1 \sqrt{I(s_1; a_1)/2}} \longrightarrow1.

Proof. Let H=1H = 1, s∼Uniform⁡{0,1}s \sim\operatorname{Uniform}\{0,1\}, A={0,1}\mathcal{A} = \{0,1\}, ℓ(s,a)=1{a≠s}\ell(s,a) = \mathbf{1}\{a \ne s\}, and π(a=s∣s)=(1+ϵ)/2\pi(a = s \mid s) = (1+\epsilon)/2 for ϵ∈(0,1)\epsilon\in(0,1). Then pˉ=(1/2,1/2)\bar{p} = (1/2,1/2), Qν=ℓQ^\nu= \ell, and span⁡1=1\operatorname{span}_1 = 1. Moreover, J(π)=(1−ϵ)/2J(\pi) = (1-\epsilon)/2 and J(ν)=1/2J(\nu) = 1/2, so ∣J(π)−J(ν)∣=ϵ/2|J(\pi)-J(\nu)| = \epsilon/2. The mutual information is that of a binary symmetric channel with uniform input:

I=1+ϵ2ln⁡(1+ϵ)+1−ϵ2ln⁡(1−ϵ)=∑k≥1ϵ2k2k(2k−1)=ϵ22+ϵ412+O(ϵ6).I = \frac{1+\epsilon}{2}\ln(1+\epsilon) + \frac{1-\epsilon}{2}\ln(1-\epsilon) = \sum_{k \ge1} \frac{\epsilon^{2k}}{2k(2k-1)} = \frac{\epsilon^2}{2} + \frac{\epsilon^4}{12} + O(\epsilon^6).

Hence I/2=ϵ2(1+O(ϵ2))\sqrt{I/2} = \frac{\epsilon}{2}(1+O(\epsilon^2)), and the ratio tends to 1 as ϵ→0\epsilon\to0.

Corollary 4.4 (Adaptivity gap is bounded by the information an optimal policy uses). For every optimal Markov policy π∗\pi^*,

Gap⁡(M)≤∑tspan⁡t(π∗)It(π∗)2.\operatorname{Gap}(M) \le\sum_t \operatorname{span}_t(\pi^*)\sqrt{\frac{I_t(\pi^*)}{2}}.

In particular, if some optimal policy satisfies I(st;at)=0I(s_t; a_t) = 0 for all tt, then Gap⁡(M)=0\operatorname{Gap}(M) = 0.

Proof. Combine Theorem 3.7 (Gap⁡(M)≤−Δ(π∗)≤∣Δ(π∗)∣\operatorname{Gap}(M) \le-\Delta(\pi^*) \le|\Delta(\pi^*)|) with Theorem 4.2.

Corollary 4.5 (Rate–value tradeoff). Suppose ℓt∈[0,1]\ell_t \in[0,1]. If a Markov policy π\pi satisfies I(st;at)≤RtI(s_t; a_t) \le R_t for every tt, then

J(π)≥J(ν∗)−∑t=1H(H−t+1)Rt/2.J(\pi) \ge J(\nu^*) - \sum_{t=1}^{H}(H-t+1)\sqrt{R_t/2}.

In particular, with a constant budget RR,

J(ν∗)−J(π)≤H(H+1)2R/2.J(\nu^*) - J(\pi) \le\frac{H(H+1)}{2}\sqrt{R/2}.

Proof. Qtν∈[0,H−t+1]Q_t^\nu\in[0,H-t+1], so span⁡t≤H−t+1\operatorname{span}_t \le H-t+1. By Theorem 4.2, J(π)≥J(νπ)−∑t(H−t+1)Rt/2J(\pi) \ge J(\nu^\pi)-\sum_t(H-t+1)\sqrt{R_t/2}, and J(νπ)≥J(ν⋆)J(\nu^\pi) \ge J(\nu^\star).

Remark 4.6 (Sub-Gaussian refinement). The proof of Theorem 4.2 only uses a change of measure between PP and P~\widetilde{P}. If f=Qtν−gtf=Q_t^\nu-g_t is σt\sigma_t-sub-Gaussian under P~\widetilde{P}, the Donsker–Varadhan argument of [23, 29] gives ∣EPf−EP~f∣≤σt2I(st;at)\lvert\mathbb{E}_P f-\mathbb{E}_{\widetilde{P}}f\rvert\le\sigma_t\sqrt{2I(s_t;a_t)}. This can be much tighter than the span bound when QtνQ_t^\nu has rare extreme action values.

Remark 4.7 (Estimating the bound from data). With finitely many states, I(st;at)I(s_t;a_t) is a plug-in quantity. When states are continuous, as with prices, inventories or market signals, the auditor can write I(st;at)=∑apˉt(a)[h(st)−h(st∣at=a)]I(s_t;a_t)=\sum_a\bar{p}_t(a)[h(s_t)-h(s_t\mid a_t=a)] in terms of differential entropies of the state. Each entropy can be estimated from logged states using the weighted kk-nearest-neighbor estimator of [5], which is efficient in low dimensions. Because the action is discrete and its propensities are logged, only the entropies of the state distribution need to be estimated.

The sample complexity of auditing

Contextual bandits

Setting. Contexts xt∼Dx_t\sim\mathcal{D} are i.i.d. on a measurable space X\mathcal{X}; given xtx_t, a cost vector ℓt∈[0,1]A\ell_t\in[0,1]^\mathcal{A} is drawn from a conditional law with mean c(xt)c(x_t); the policy draws at∼π(⋅∣xt)a_t\sim\pi(\mathord\cdot\mid x_t), independently of ℓt\ell_t given xtx_t. The auditor observes the log {(xt,π(⋅∣xt),at,ℓt(at))}t=1T\{(x_t,\pi(\mathord\cdot\mid x_t),a_t,\ell_t(a_t))\}_{t=1}^T (bandit feedback with logged propensities) and knows pˉ=Exπ(⋅∣x)\bar{p}=\mathbb{E}_x\pi(\mathord\cdot\mid x). The target is the per-round adaptivity cost

Δ(π)=Ex⟨c(x),π(⋅∣x)⟩−⟨Exc(x),pˉ⟩=tr⁡Cov⁡(c(x),π(⋅∣x)),\Delta(\pi)=\mathbb{E}_x\langle c(x),\pi(\mathord\cdot\mid x)\rangle-\langle\mathbb{E}_xc(x),\bar{p}\rangle=\operatorname{tr}\operatorname{Cov}(c(x),\pi(\mathord\cdot\mid x)),
Equation not extracted

the H=1H=1 case of Theorem 3.6. An auditor is (δ,η)(\delta,\eta)-accurate on an instance if its output Δ^\widehat{\Delta} satisfies P(∣Δ^−Δ(π)∣<δ)≥1−η\mathbb{P}(\lvert\widehat{\Delta}-\Delta(\pi)\rvert<\delta)\ge1-\eta. Let χˉ2(π)=Ex[χ2(pˉ∥π(⋅∣x))]∈[0,∞]\bar{\chi}^2(\pi)=\mathbb{E}_x[\chi^2(\bar{p}\mathbin\Vert\pi(\mathord\cdot\mid x))]\in[0,\infty].

Remark 5.1 (Knowing pˉ\bar{p}). pˉ\bar{p} depends only on π\pi and D\mathcal{D}, not on costs, so it can be estimated to any accuracy from unlabelled contexts, which are cheap in most applications. We treat it as known to isolate the cost of missing counterfactual costs.

Proposition 5.2 (Non-identifiability). Suppose there are an action aa with pˉ(a)>0\bar{p}(a)>0 and a measurable set X′\mathcal{X}' with D(X′)>0\mathcal{D}(\mathcal{X}')>0 such that π(a∣x)=0\pi(a\mid x)=0 for all x∈X′x\in\mathcal{X}'. Then there are two instances whose logs have the same distribution for every TT but whose values of Δ(π)\Delta(\pi) differ. In particular, if π\pi is deterministic and its action is not almost surely constant, then Δ(π)\Delta(\pi) is not identifiable from π\pi’s logs.

Proof. Take any instance with ca(x)≤1/2c_a(x)\le1/2, and modify it by adding 1/21/2 to the mean of ℓ(a)\ell(a) for x∈X′x\in\mathcal{X}'. The log never contains ℓt(a)\ell_t(a) for xt∈X′x_t\in\mathcal{X}', so its law is unchanged. The first term of Δ(π)\Delta(\pi) is unchanged because π(a∣x)=0\pi(a\mid x)=0 on X′\mathcal{X}'; the second changes by pˉ(a)D(X′)/2≠0\bar{p}(a)\mathcal{D}(\mathcal{X}')/2\ne0. For a deterministic policy with a non-constant action, pick aa with 0<pˉ(a)<10<\bar{p}(a)<1 and X′={x:π(x)≠a}\mathcal{X}'=\{x:\pi(x)\ne a\}, which has measure 1−pˉ(a)>01-\bar{p}(a)>0.

Theorem 5.3 (Upper bound). Let wt=pˉ(at)/π(at∣xt)w_t=\bar{p}(a_t)/\pi(a_t\mid x_t) and Yt=ℓt(at)(1−wt)Y_t=\ell_t(a_t)(1-w_t). Split TT rounds into k=⌈8ln⁡(1/η)⌉k=\lceil8\ln(1/\eta)\rceil blocks of m=⌈4χˉ2(π)/δ2⌉m=\lceil4\bar{\chi}^2(\pi)/\delta^2\rceil rounds each, and output the median of the block means. If χˉ2(π)<∞\bar{\chi}^2(\pi)<\infty, this auditor is (δ,η)(\delta,\eta)-accurate on every instance once

T≥⌈4χˉ2(π)δ2⌉⋅⌈8ln⁡(1/η)⌉.(5)T\ge\left\lceil\frac{4\bar{\chi}^2(\pi)}{\delta^2}\right\rceil\cdot\left\lceil8\ln(1/\eta)\right\rceil. \tag*{(5)}

Proof. Unbiasedness. Conditioning on xx and using independence of aa and ℓ\ell given xx,

E[Yt∣x]=∑aπ(a∣x)ca(x)(1−pˉ(a)π(a∣x))=⟨c(x),π(⋅∣x)⟩−⟨c(x),pˉ⟩.\mathbb{E}[Y_t \mid x] = \sum_a \pi(a \mid x)c_a(x)\left(1-\frac{\bar p(a)}{\pi(a \mid x)}\right)=\langle c(x),\pi(\cdot\mid x)\rangle-\langle c(x),\bar p\rangle.

Here χˉ2<∞\bar\chi^2<\infty ensures π(a∣x)>0\pi(a\mid x)>0 whenever pˉ(a)>0\bar p(a)>0, for D\mathcal{D}-almost every xx. Taking expectations gives EYt=Δ(π)\mathbb{E}Y_t=\Delta(\pi).

Variance. Since ℓt∈[0,1]\ell_t\in[0,1], Var⁡(Yt)≤EYt2≤E(1−wt)2=Ewt2−2Ewt+1\operatorname{Var}(Y_t)\leq\mathbb{E}Y_t^2\leq\mathbb{E}(1-w_t)^2=\mathbb{E}w_t^2-2\mathbb{E}w_t+1. Now E[wt∣x]=∑apˉ(a)=1\mathbb{E}[w_t\mid x]=\sum_a\bar p(a)=1 and E[wt2∣x]=∑apˉ(a)2/π(a∣x)=1+χ2(pˉ∥π(⋅∣x))\mathbb{E}[w_t^2\mid x]=\sum_a\bar p(a)^2/\pi(a\mid x)=1+\chi^2(\bar p\Vert\pi(\cdot\mid x)), so Var⁡(Yt)≤χˉ2(π)\operatorname{Var}(Y_t)\leq\bar\chi^2(\pi).

Concentration. By Chebyshev’s inequality, each block mean deviates from Δ(π)\Delta(\pi) by at least δ\delta with probability at most χˉ2/(mδ2)≤1/4\bar\chi^2/(m\delta^2)\leq1/4. The median fails only if at least k/2k/2 of the kk independent blocks fail. By Hoeffding’s inequality this has probability at most exp⁡(−2k(1/4)2)=e−k/8≤η\exp(-2k(1/4)^2)=e^{-k/8}\leq\eta [20].

Theorem 5.4 (Lower bound). For every Γ≥1/3\Gamma\geq1/3, δ∈(0,1/32]\delta\in(0,1/32] and η∈(0,1/8]\eta\in(0,1/8], there is a context distribution D\mathcal{D} and a policy π\pi with χˉ2(π)=Γ\bar\chi^2(\pi)=\Gamma, together with two cost models, such that every auditor that is (δ,η)(\delta,\eta)-accurate on both instances requires

T≥92048⋅(Γ+1)ln⁡(1/(4η))δ2.T\geq\frac{9}{2048}\cdot\frac{(\Gamma+1)\ln(1/(4\eta))}{\delta^2}.

Proof. Instance. Let X={0,1}\mathcal{X}=\{0,1\} with D\mathcal{D} uniform, A={1,2}\mathcal{A}=\{1,2\}, and for p∈(0,1/4]p\in(0,1/4] let π(⋅∣0)=(p,1−p)\pi(\cdot\mid0)=(p,1-p) and π(⋅∣1)=(1−p,p)\pi(\cdot\mid1)=(1-p,p). Then pˉ=(1/2,1/2)\bar p=(1/2,1/2) and

χˉ2(π)=14(1p+11−p)−1=14p(1−p)−1.\bar\chi^2(\pi)=\frac{1}{4}\left(\frac{1}{p}+\frac{1}{1-p}\right)-1=\frac{1}{4p(1-p)}-1.

This is continuous and decreasing on (0,1/4](0,1/4], takes the value 1/31/3 at p=1/4p=1/4, and diverges as p→0p\to0. So for each Γ≥1/3\Gamma\geq1/3 there is pp with χˉ2=Γ\bar\chi^2=\Gamma, and Γ+1=1/(4p(1−p))≤1/(3p)\Gamma+1=1/(4p(1-p))\leq1/(3p).

For σ∈{+1,−1}\sigma\in\{+1,-1\} and ϵ=8δ≤1/4\epsilon=8\delta\leq1/4, let instance σ\sigma have ℓ(1)∼Bern⁡(1/2)\ell(1)\sim\operatorname{Bern}(1/2) for both contexts, ℓ(2)∼Bern⁡(1/2)\ell(2)\sim\operatorname{Bern}(1/2) when x=0x=0, and ℓ(2)∼Bern⁡(1/2+σϵ)\ell(2)\sim\operatorname{Bern}(1/2+\sigma\epsilon) when x=1x=1. Only action 2 has a context-dependent mean, so

Δσ=Cov⁡(c2(x),π(2∣x))=14(σϵ)(p−(1−p))=−σϵ(1−2p)4,\Delta_\sigma=\operatorname{Cov}\left(c_2(x),\pi(2\mid x)\right)=\frac{1}{4}(\sigma\epsilon)(p-(1-p))=-\frac{\sigma\epsilon(1-2p)}{4},

and ∣Δ+−Δ−∣=ϵ(1−2p)/2≥ϵ/4=2δ|\Delta_+-\Delta_-|=\epsilon(1-2p)/2\geq\epsilon/4=2\delta.

Divergence. The laws of (xt,π(⋅∣xt),at)(x_t,\pi(\cdot\mid x_t),a_t) coincide under both instances, and the law of ℓt(at)\ell_t(a_t) differs only on the event {xt=1,at=2}\{x_t=1,a_t=2\}, which has probability p/2p/2. On that event, using KL⁡≤χ2\operatorname{KL}\leq\chi^2,

KL⁡(Bern⁡(12+ϵ)∥Bern⁡(12−ϵ))≤4ϵ21/4−ϵ2≤64ϵ23.\operatorname{KL}\left(\operatorname{Bern}\left(\frac{1}{2}+\epsilon\right)\middle\Vert\operatorname{Bern}\left(\frac{1}{2}-\epsilon\right)\right)\leq\frac{4\epsilon^2}{1/4-\epsilon^2}\leq\frac{64\epsilon^2}{3}.

By the chain rule and independence across rounds,

KL⁡(P+T∥P−T)≤T⋅p2⋅64ϵ23=20483Tpδ2.\operatorname{KL}\left(\mathbb{P}_+^T\Vert\mathbb{P}_-^T\right)\leq T\cdot\frac{p}{2}\cdot\frac{64\epsilon^2}{3}=\frac{2048}{3}Tp\delta^2.

Testing. Given a (δ,η)(\delta,\eta)-accurate auditor, let ψ=+\psi=+ if ∣Δ^−Δ+∣<δ|\widehat{\Delta}-\Delta_+|<\delta and ψ=−\psi=- otherwise. Since ∣Δ+−Δ−∣≥2δ|\Delta_+-\Delta_-|\geq2\delta, P+(ψ=−)≤η\mathbb{P}_+(\psi=-)\leq\eta and P−(ψ=+)≤η\mathbb{P}_-(\psi=+)\leq\eta. The Bretagnolle–Huber inequality [6, 26] gives 2η≥12exp⁡(−KL⁡)2\eta\geq\frac{1}{2}\exp(-\operatorname{KL}), so

20483Tpδ2≥ln⁡(1/(4η)).\frac{2048}{3}Tp\delta^2\geq\ln(1/(4\eta)).

Using 1/p≥3(Γ+1)1/p\geq3(\Gamma+1),

T≥3ln⁡(1/(4η))2048pδ2≥9(Γ+1)ln⁡(1/(4η))2048δ2.T\geq\frac{3\ln(1/(4\eta))}{2048p\delta^2}\geq\frac{9(\Gamma+1)\ln(1/(4\eta))}{2048\delta^2}.

Theorems 5.3 and 5.4 together show that χˉ2(π)\bar\chi^2(\pi) is the right complexity parameter: the uniform upper bound O(χˉ2log⁡(1/η)/δ2)O(\bar\chi^2\log(1/\eta)/\delta^2) is matched, up to constants, at every value of χˉ2≥1/3\bar\chi^2\geq1/3. Theorem 5.2 is the χˉ2=∞\bar\chi^2=\infty endpoint. A practical reading for audit design is that a policy can be audited from its own logs only if it explores, and the cost of auditing grows inversely with its exploration probability on the actions it marginally uses.

Episodic MDPs

Now the auditor observes nn i.i.d. episodes τ=(s1,a1,ℓ1,…,sH,aH,ℓH)\tau=(s_1,a_1,\ell_1,\ldots,s_H,a_H,\ell_H) generated by π\pi, with logged propensities, and knows (pˉt)t≤H(\bar{p}_t)_{t\le H}. Assume costs lie in [0,1][0,1] and the following overlap condition.

Assumption 5.5 (Overlap). For every tt, s∈supp⁡dtπs\in\operatorname{supp}d_t^\pi, and a∈supp⁡pˉta\in\operatorname{supp}\bar{p}_t: πt(a∣s)>0\pi_t(a\mid s)>0.

Theorem 5.6 (MDP auditing). Under Theorem 5.5, let W(τ)=∏t=1Hpˉt(at)/πt(at∣st)W(\tau)=\prod_{t=1}^{H}\bar{p}_t(a_t)/\pi_t(a_t\mid s_t), L(τ)=∑tℓtL(\tau)=\sum_t\ell_t, and Y=L(τ)(1−W(τ))Y=L(\tau)(1-W(\tau)). Then EπY=J(π)−J(νπ)\mathbb{E}_{\pi}Y=J(\pi)-J(\nu^\pi) and Var⁡π(Y)≤H2χ2(Pν∥Pπ)\operatorname{Var}_{\pi}(Y)\le H^2\chi^2(P^\nu\mathbin\Vert P^\pi), where PμP^\mu denotes the trajectory law under μ\mu. Moreover

1+χ2(Pν∥Pπ)≤∏t=1H(1+max⁡s∈supp⁡dtπχ2(pˉt∥πt(⋅∣s))).1+\chi^2(P^\nu\mathbin\Vert P^\pi)\le\prod_{t=1}^{H}\left(1+\max_{s\in\operatorname{supp}d_t^\pi}\chi^2(\bar{p}_t\mathbin\Vert\pi_t(\cdot\mid s))\right).

Consequently, the median-of-means auditor of Theorem 5.3 applied to YY is (δ,η)(\delta,\eta)-accurate after n=⌈4H2χ2(Pν∥Pπ)/δ2⌉⌈8ln⁡(1/η)⌉n=\lceil4H^2\chi^2(P^\nu\mathbin\Vert P^\pi)/\delta^2\rceil\lceil8\ln(1/\eta)\rceil episodes.

Proof. Support. Every trajectory with positive probability under ν\nu has positive probability under π\pi. By induction on tt: s1∼ρs_1\sim\rho under both; if the prefix up to sts_t is π\pi-possible, then st∈supp⁡dtπs_t\in\operatorname{supp}d_t^\pi, and any ata_t with pˉt(at)>0\bar{p}_t(a_t)>0 has πt(at∣st)>0\pi_t(a_t\mid s_t)>0 by Theorem 5.5, so (st,at)(s_t,a_t) and any st+1s_{t+1} in the support of Pt(⋅∣st,at)P_t(\cdot\mid s_t,a_t) are π\pi-possible. The transition factors cancel in dPν/dPπdP^\nu/dP^\pi, which therefore equals WW. Hence Eπ[LW]=EνL=J(ν)\mathbb{E}_{\pi}[LW]=\mathbb{E}_{\nu}L=J(\nu), EπL=J(π)\mathbb{E}_{\pi}L=J(\pi), and EπY=J(π)−J(ν)\mathbb{E}_{\pi}Y=J(\pi)-J(\nu).

Variance. L∈[0,H]L\in[0,H], so Var⁡(Y)≤H2Eπ(1−W)2=H2(EπW2−1)=H2χ2(Pν∥Pπ)\operatorname{Var}(Y)\le H^2\mathbb{E}_{\pi}(1-W)^2=H^2(\mathbb{E}_{\pi}W^2-1)=H^2\chi^2(P^\nu\mathbin\Vert P^\pi), using EπW=1\mathbb{E}_{\pi}W=1.

Factorization. Let wt=pˉt(at)/πt(at∣st)w_t=\bar{p}_t(a_t)/\pi_t(a_t\mid s_t) and let Ft\mathcal{F}_t be generated by the history up to sts_t. Then Eπ[wt2∣Ft]=1+χ2(pˉt∥πt(⋅∣st))≤1+Mt\mathbb{E}_{\pi}[w_t^2\mid\mathcal{F}_t]=1+\chi^2(\bar{p}_t\mathbin\Vert\pi_t(\cdot\mid s_t))\le1+M_t, where MtM_t is the maximum in the statement. By the tower property, Eπ∏t≤Hwt2=Eπ[∏t<Hwt2Eπ[wH2∣FH]]≤(1+MH)Eπ∏t<Hwt2\mathbb{E}_{\pi}\prod_{t\le H}w_t^2=\mathbb{E}_{\pi}\left[\prod_{t<H}w_t^2\mathbb{E}_{\pi}[w_H^2\mid\mathcal{F}_H]\right]\le(1+M_H)\mathbb{E}_{\pi}\prod_{t<H}w_t^2. Induct.

Concentration. This is identical to Theorem 5.3, with variance bound H2χ2(Pν∥Pπ)H^2\chi^2(P^\nu\mathbin\Vert P^\pi) in place of χˉ2\bar{\chi}^2.

The product bound is exponential in HH unless the per-step divergences are O(1/H)O(1/H). General OPE lower bounds for tree-structured MDPs are also exponential in HH [15]. Because the target νπ\nu^\pi is a very special policy. However, those lower bounds do not apply directly.

Numerical illustration

We illustrate the theorems on three small examples; the code is seeded and runs in seconds. (i) For the sharpness family of Theorem 4.3, the ratio in Theorem 4.2 is 0.978, 0.997, 0.9992 and 0.99999 at ϵ=0.5\epsilon=0.5, 0.2, 0.1, 0.01. (ii) On the lower-bound family of Theorem 5.4 with ϵ=0.1\epsilon=0.1 and p∈{0.2,0.1,0.05,0.02}p\in\{0.2,0.1,0.05,0.02\} (χˉ2∈[0.56,11.8]\bar{\chi}^2\in[0.56,11.8]), the root-mean-squared error of the IPW mean, over 2,000 replications at T∈{103,104}T\in\{10^3,10^4\}, equals (0.72(0.72–0.76)χˉ2/T0.76)\sqrt{\bar{\chi}^2/T} in every configuration, matching the χˉ2/T\sqrt{\bar{\chi}^2/T} rate of Theorem 5.3. (iii) Table 1 reports a 20-step lost-sales inventory MDP (capacity 12, orders 0–6, Poisson(3) demand, order cost 1, holding cost 0.5, lost-sale penalty 6), computed exactly by dynamic programming. The covariance identity holds to 10−1310^{-13}. The myopic audit understates adaptive value by 22–78%, and the information bound holds with slack, as expected of a worst-case bound when I(st;at)I(s_t;a_t) is large.

PolicyJ(π)J(\pi)J(νπ)J(\nu^\pi)Δ(π)\Delta(\pi)Myopic∑tIt\sum_t I_tInfo. bound on ∣Δ∣|\Delta|
Optimal (DP)92.66130.14−37.48-37.48−29.36-29.3632.5285.9
Base-stock 694.63131.41−36.78-36.78−21.43-21.4335.0292.1
Noisy base-stock 698.99136.10−37.11-37.11−24.05-24.0511.2172.8
Base-stock 9121.63134.68−13.06-13.06−2.90-2.9035.1286.8
Random closed-loop137.87140.51−2.64-2.64−1.89-1.895.5112.7

Table 1. Inventory MDP, exact computation. Adaptivity cost Δ(π)=J(π)−J(νπ)\Delta(\pi)=J(\pi)-J(\nu^\pi); myopic =∑ttr⁡Cov⁡(ℓt(st,⋅),zt)=\sum_t \operatorname{tr}\operatorname{Cov}(\ell_t(s_t,\cdot),z_t); bound =∑tspan⁡It/2=\sum_t \operatorname{span}\sqrt{I_t/2} (Theorem 4.2); ∑tIt\sum_t I_t in nats.

References

  1. [1]Shipra Agrawal and Navin Goyal. Near-optimal regret bounds for Thompson sampling. Journal of the ACM, 64(5):1–24, 2017. doi: 10.1145/3088510.DOI
  2. [2]Irene Aldridge. Evaluating ai investment strategies, 2026. URL https://arxiv.org/abs/2606.08791.
  3. [3]Irene Aldridge. Regret equals covariance: A closed-form characterization for stochastic optimization, 2026. URL https://arxiv.org/abs/2605.14019.
  4. [4]Arash Asadpour and Hamid Nazerzadeh. Maximizing stochastic monotone submodular functions. Management Science, 62(8):2374–2391, 2016.
  5. [5]Thomas B. Berrett, Richard J. Samworth, and Ming Yuan. Efficient multivariate entropy estimation via k-nearest neighbour distances. Annals of Statistics, 47(1):288–318, 2019.
  6. [6]Jean Bretagnolle and Catherine Huber. Estimation des densités: risque minimax. Zeitschrift für Wahrscheinlichkeitstheorie und verwandte Gebiete, 47:119–137, 1979.DOI
  7. [7]Nicolò Cesa-Bianchi and Gábor Lugosi. Prediction, Learning, and Games. Cambridge University Press, 2006.
  8. [8]Thomas M. Cover and Joy A. Thomas. Elements of Information Theory. Wiley, 2nd edition, 2006.
  9. [9]Kent Daniel, Mark Grinblatt, Sheridan Titman, and Russ Wermers. Measuring mutual fund performance with characteristic-based benchmarks. Journal of Finance, 52(3):1035–1058, 1997.
  10. [10]Brian C. Dean, Michel X. Goemans, and Jan Vondrák. Approximating the stochastic knapsack problem: The benefit of adaptivity. Mathematics of Operations Research, 33(4):945–964, 2008.
  11. [11]Miroslav Dudík, John Langford, and Lihong Li. Doubly robust policy evaluation and learning. In Proceedings of the 28th International Conference on Machine Learning (ICML), pages 1097–1104, 2011.arxiv.org/abs/1103.4601
  12. [12]Adam N. Elmachtoub and Paul Grigas. Smart “predict, then optimize”. Management Science, 68(1):9–26, 2022.arxiv.org/abs/1710.08005
  13. [13]Anupam Gupta, Viswanath Nagarajan, and Sahil Singla. Algorithms and adaptivity gaps for stochastic probing. In Proceedings of the 27th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1731–1747, 2016.
  14. [14]Elad Hazan. Introduction to online convex optimization. Foundations and Trends in Optimization, 2(3–4):157–325, 2016.
  15. [15]Nan Jiang and Lihong Li. Doubly robust off-policy value evaluation for reinforcement learning. In Proceedings of the 33rd International Conference on Machine Learning (ICML), pages 652–661, 2016.arxiv.org/abs/1511.03722
  16. [16]Sham Kakade and John Langford. Approximately optimal approximate reinforcement learning. In Proceedings of the 19th International Conference on Machine Learning (ICML), pages 267–274, 2002.
  17. [17]Lihong Li, Rémi Munos, and Csaba Szepesvári. Toward minimax off-policy value estimation. In Proceedings of the 18th International Conference on Artificial Intelligence and Statistics (AISTATS), pages 608–616, 2015.
  18. [18]Qiang Liu, Lihong Li, Ziyang Tang, and Dengyong Zhou. Breaking the curse of horizon: Infinite-horizon off-policy estimation. In Advances in Neural Information Processing Systems 31 (NeurIPS), pages 5356–5366, 2018.arxiv.org/abs/1810.12429
  19. [19]Andrew W. Lo. Where do alphas come from? A measure of the value of active investment management. Journal of Investment Management, 6(2):1–29, 2008.
  20. [20]Gábor Lugosi and Shahar Mendelson. Mean estimation and regression under heavy-tailed distributions: A survey. Foundations of Computational Mathematics, 19(5):1145–1190, 2019.arxiv.org/abs/1906.04280
  21. [21]Doina Precup, Richard S. Sutton, and Satinder Singh. Eligibility traces for off-policy policy evaluation. In Proceedings of the 17th International Conference on Machine Learning (ICML), pages 759–766, 2000.
  22. [22]Daniel Russo and Benjamin Van Roy. An information-theoretic analysis of Thompson sampling. Journal of Machine Learning Research, 17(68):1–30, 2016.
  23. [23]Daniel Russo and James Zou. Controlling bias in adaptive data analysis using information theory. In Proceedings of the 19th International Conference on Artificial Intelligence and Statistics (AISTATS), pages 1232–1240, 2016.
  24. [24]Christopher A. Sims. Implications of rational inattention. Journal of Monetary Economics, 50(3):665–690, 2003.DOI
  25. [25]Naftali Tishby and Daniel Polani. Information theory of decisions and actions. In Perception-Action Cycle: Models, Architectures, and Hardware, pages 601–636. Springer, 2011.DOI
  26. [26]Alexandre B. Tsybakov. Introduction to Nonparametric Estimation. Springer, 2009.
  27. [27]Yu-Xiang Wang, Alekh Agarwal, and Miroslav Dudík. Optimal and adaptive off-policy evaluation in contextual bandits. In Proceedings of the 34th International Conference on Machine Learning (ICML), pages 3589–3597, 2017.
  28. [28]Tengyang Xie, Yifei Ma, and Yu-Xiang Wang. Towards optimal off-policy evaluation for reinforcement learning with marginalized importance sampling. In Advances in Neural Information Processing Systems 32 (NeurIPS), pages 9665–9675, 2019.
  29. [29]Aolin Xu and Maxim Raginsky. Information-theoretic analysis of generalization capability of learning algorithms. In Advances in Neural Information Processing Systems 30 (NeurIPS), pages 2524–2533, 2017.arxiv.org/abs/1705.07809
  30. [30]Jiakai Xu, Tiancheng Ge, Tujie Guan, Yusheng Li, Rohan Tim maraju, Eugene Wu, and Kostis Kaffes. Probe-and-resume: When and how to evaluate agent execution, 2026.arxiv.org/abs/2610.21088
  31. [31]Ming Yin and Yu-Xiang Wang. Asymptotically efficient off-policy evaluation for tabular reinforcement learning. In Proceedings of the 23rd International Conference on Artificial Intelligence and Statistics (AISTATS), pages 3948–3958, 2020.arxiv.org/abs/2001.10742

Paper details

vlnc:W_7z3g4nk5
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Economics, Econometrics and Finance

Not recorded for this paper · View statement →

Looking for related papers…
Contents