betaFeedback

WorksEngineering

Adaptive Agent Design

Abstract

We consider an agent acting against a general non-Markovian environment. The agent maintains its agent states, but is free to choose a transition kernel across those states and optimize its state-feedback control policies. We study the bi-level agent design problem that optimizes the transition kernel and the policy it induces, given said kernel with offline data of observations and actions obtained via a behavioral policy. For general environments, we show that a soft QQ-learning algorithm converges almost surely to the fixed point of a soft Bellman equation defined by the stationary averages that the behavioral policy and the chosen kernel induce, and we delineate what separates the resulting policy from an optimal one. In partially observed Markov decision problems, we analyze convergence properties of parametrized transition kernel design via zero-th order and Bayesian optimization techniques.

Introduction

Intelligent decision-making systems are ubiquitous: from autonomous vehicles navigating complex traffic to language-model-based agents that invoke tools in open-ended software environments. Abstracting any such system as an agent that interacts with everything outside it—the environment—the agent must assimilate observations and produce actions that yield favorable outcomes.

A classical approach is to model the environment as a Markov Decision Process (MDP), explicitly encoding all decision-relevant information into a state variable. MDPs have driven considerable progress in control and reinforcement learning. Their central challenge, however, is state design: the state must capture all information relevant to future decisions, which is rarely obvious in practice [23]. In traditional control theory this challenge is addressed through observability and filtering—from the Kalman filter to particle filters—but these require the practitioner to specify the state structure in advance. In richer domains such as language modeling or robotics, the “right” state representation is far less transparent.

A more realistic stance is to acknowledge that the environment may be arbitrarily complex and non-Markovian, and to design agents that learn to summarize their interaction history into a compact internal state on the fly. One principled formulation of this idea is the simple agent, complex environment framework of [6], later cast as reinforcement learning in non-Markovian environments by [4]. Related work on partially observed Markov decision processes (POMDPs) [16, 1] provides sample-complexity bounds on the degradation of decision quality as available history shrinks.

More broadly, these works are related to learning in partially observed environments where the agent is assumed to act without completely knowing the true underlying state. A long line of literature formalizes such settings as POMDPs [2]. For discrete spaces, [10] formalizes the complexity of finding solutions in these environments. In [14], a point based value iteration is proposed to approximately solve these problems in belief space. Another line of work in this direction is utilizing what is known as Approximate Information State [17] which proposes a theoretical approach on what a notion of a state should satisfy in partially observed environments that would make it sufficient for acting optimally. See [23] for further literature.

While these works establish a theoretical basis for acting in general environments, they leave open the question of how an agent should adapt its state abstraction during interaction. In this paper, we address that question directly. We formulate the agent design problem as an optimization problem over a parametric family of state-transition kernels fθf_\theta, derive an iterative procedure that alternates between inner policy optimization and outer adaptation of θ\theta, and study two concrete instantiations of the outer step: zeroth-order optimization (ZOO) and Bayesian optimization (BO). We prove that (i) the outer objective VD(θ)V_D(\theta) has a Lipschitz-continuous gradient, (ii) the ZOO variant converges to a first-order stationary point at rate O(1/K)\mathcal{O}(1/\sqrt{K}), and (iii) the BO variant with a convex-combination parametrization converges to a global optimum asymptotically.

A Simple Agent in a Non-Markovian Environment

Let A\mathcal{A} and O\mathcal{O} denote finite action and observation spaces, respectively. The environment is characterized by a stochastic kernel ρ\rho that generates the next observation

ot+1∼ρ(⋅∣ot,at)o_{t+1} \sim\rho\left(\cdot\mid o^t, a^t\right)

where ot=(ot,ot−1,…)o^t = (o_t,o_{t-1},\ldots) and at=(at,at−1…)a^t = (a_t,a_{t-1}\ldots) denote the full histories of observations and actions up to time tt. We assume that the observation process has been evolving for a long enough time i.e., t>−∞t > -\infty. This formulation allows for arbitrary temporal dependence and does not require the environment to be Markovian.

The agent maintains an internal state sts_t taking values in a finite set S\mathcal{S}. Rather than assuming the state-update rule to be given or fixed but unknown, we parametrize the update by θ∈Θ⊂Rd\theta\in\Theta\subset\mathbb{R}^d and write

st+1∼fθ(⋅∣st,at,ot+1)(1)s_{t+1} \sim f_\theta(\cdot\mid s_t,a_t,o_{t+1}) \tag*{(1)}

where fθ(⋅∣s,a,o)∈Δ(S)f_\theta(\cdot\mid s,a,o) \in\Delta(\mathcal{S}) is a stochastic transition kernel. (1) is the agent’s mechanism for compressing its full interaction history into a finite state; the quality of this compression depends entirely on the choice of θ\theta.

Given internal state sts_t, the agent selects actions according to a policy π:S→Δ(A)\pi:\mathcal{S}\to\Delta(\mathcal{A}) and receives reward r(st,at,ot+1)r(s_t,a_t,o_{t+1}), where we write ∣r(⋅)∣≤Rmax⁡\lvert r(\cdot)\rvert\le R_{\max} for some finite Rmax⁡>0R_{\max} > 0. The agent’s goal is to maximize the expected discounted cumulative reward. Since this objective depends on both the transition parameter θ\theta and the policy π\pi, we write

max⁡θ∈Θ, πV(fθ,π)=Eρ,fθ,π[∑t=0∞γtr(st,at,ot+1)](2)\max_{\theta\in\Theta,\,\pi} V(f_\theta,\pi) = \mathbb{E}_{\rho,f_\theta,\pi}\left[\sum_{t=0}^{\infty}\gamma^t r(s_t,a_t,o_{t+1})\right] \tag*{(2)}

where γ∈(0,1)\gamma\in(0,1) is a discount factor. Problem (2) is a bilevel optimization problem: at optimality the policy must be optimal given θ\theta. Denoting this best-response policy πθ⋆\pi_\theta^\star, substituting it back yields the outer objective

VD(θ):=V(fθ,πθ⋆)=Eρ,fθ,πθ⋆[∑t=0∞γtr(st,at,ot+1)].(3)V_D(\theta) := V(f_\theta,\pi_\theta^\star) = \mathbb{E}_{\rho,f_\theta,\pi_\theta^\star}\left[\sum_{t=0}^{\infty}\gamma^t r(s_t,a_t,o_{t+1})\right]. \tag*{(3)}

Optimizing VD(θ)V_D(\theta) over θ\theta is the central problem of this paper. We address it in Section 3.

Generic Adaptive Agent Design

Directly optimizing VD(θ)V_D(\theta) faces two obstacles. First, obtaining πθ⋆\pi_\theta^\star for a given fθf_\theta requires solving a reinforcement learning problem in a non-Markovian environment, for which there is no closed-form solution. Second, the gradient of VDV_D with respect to θ\theta is not analytically accessible because the environment ρ\rho is treated as a black box.

Our approach resolves both difficulties as follows. Fix a behavioral policy πb:S→Δ(A)\pi_b : \mathcal{S} \to\Delta(\mathcal{A}) and collect a dataset DD of observation-action-observation triples by rolling πb\pi_b out in the environment long enough for the induced process to mix. For a candidate θ\theta, we approximate πθ⋆\pi_\theta^\star by running soft QQ-learning directly on the internal states generated by fθf_\theta, using DD as the replay source. Note that this might not result in the true optimal policy because of the non-Markovian environment but is motivated by the fact that the agent ignores the environment complexities and acts simple. The resulting policy πθ\pi_\theta is then deployed in the true environment to obtain a Monte Carlo estimate of VD(θ)V_D(\theta). Finally, an outer optimization routine updates θ\theta using only these function evaluations (no gradient of VDV_D with respect to θ\theta is assumed available). This design is summarized in Algorithm 1.

Before stating the algorithm precisely, we record the three assumptions that underlie the entire development.

Assumption 1 (Compact and Convex). Θ⊂Rd\Theta\subset\mathbb{R}^d is compact, convex and ΠΘ\Pi_\Theta denotes Euclidean projection onto Θ\Theta.

Assumption 2 (Smooth internal kernel). For all θ∈Θ\theta\in\Theta: (i) fθ(s′∣s,a,o)>0f_\theta(s'|s,a,o) > 0 for all (s′,s,a,o)(s',s,a,o); and (ii) θ↦fθ\theta\mapsto f_\theta is twice continuously differentiable with uniformly bounded first and second derivatives over Θ\Theta.

Assumption 3 (Ergodicity and coverage). The behavioral policy πb\pi_b, together with fθf_\theta and the environment ρ\rho, induces a stationary and ergodic process over (st,at,ot+1)(s_t,a_t,o_{t+1}) for every θ∈Θ\theta\in\Theta. Moreover, every state-action pair is visited: πˉ(s,a):=P(st=s,at=a)>0\bar{\pi}(s,a) := \mathbb{P}(s_t=s,a_t=a) > 0 for all (s,a)∈S×A(s,a) \in\mathcal{S} \times\mathcal{A}.

Algorithm 1 Iterative Agent Design

Require: Behavioral policy πb\pi_b; parametric kernel family {fθ}θ∈Θ\{f_\theta\}_{\theta\in\Theta}; reward rr; discount γ∈(0,1)\gamma\in(0,1); temperature τ>0\tau> 0; outer iterations KK; evaluation budget MM.

Ensure: Parameter θK\theta_K and policy π^θK\hat{\pi}_{\theta_K}.

  1. Collect data: Roll out πb\pi_b in the environment (allowing sufficient mixing) to obtain D={(ot,i,at,i,ot+1,i)}i,tD = \{(o_{t,i}, a_{t,i}, o_{t+1,i})\}_{i,t}.

  2. Initialize θ0∈Θ\theta_0 \in\Theta.

  3. for k=0,1,…,K−1k = 0,1,\ldots,K-1 do

  4. Policy Computation π^θk\hat{\pi}_{\theta_k}: Run soft QQ-learning with temperature τ\tau on the internal-state sequence generated by fθkf_{\theta_k} using dataset DD, until convergence to Q^θk\widehat{Q}_{\theta_k}; set π^θk(a∣s)∝exp⁡(Q^θk(s,a)/τ)\hat{\pi}_{\theta_k}(a|s) \propto\exp(\widehat{Q}_{\theta_k}(s,a)/\tau).

  5. Policy Evaluation: Estimate VD(θk)V_D(\theta_k) by rolling out (fθk,π^θk)(f_{\theta_k}, \hat{\pi}_{\theta_k}) in the true environment for MM episodes of horizon HH.

  6. Parameter Update: θk+1=StepOptimize⁡(VD,θk,{(θj,VD(θj))}j≤k)\theta_{k+1} = \operatorname{StepOptimize}\left(V_D,\theta_k,\{(\theta_j,V_D(\theta_j))\}_{j \le k}\right)

  7. end for

  8. return θK\theta_K and π^θK\hat{\pi}_{\theta_K}.

Algorithm 2 StepOptimize via Zeroth-Order Optimization (ZOO)

Require: Current iterate θk\theta_k; objective oracle VDV_D; step size ηk\eta_k; smoothing radius δk\delta_k; evaluation budget MM.

Ensure: Updated parameter θk+1\theta_{k+1}.

  1. Draw uk∼Uniform⁡(Sd−1)u_k \sim\operatorname{Uniform}(\mathbb{S}^{d-1}).

  2. Estimate V^+\widehat{V}_{+} and V^−\widehat{V}_{-} by rolling out (fθk±δkuk,π^θk±δkuk)(f_{\theta_k \pm\delta_k u_k},\hat{\pi}_{\theta_k \pm\delta_k u_k}) for MM episodes each.

  3. g^k=d2δk(V^+−V^−)uk\hat{g}_k = \frac{d}{2\delta_k}\left(\widehat{V}_{+}-\widehat{V}_{-}\right)u_k.

  4. θk+1=ΠΘ(θk+ηkg^k)\theta_{k+1} = \Pi_\Theta(\theta_k+\eta_k\hat{g}_k).

  5. return θk+1\theta_{k+1}.

Two concrete implementations of StepOptimize are discussed below and detailed in Algorithms 2 and 3.

StepOptimize I: Zeroth-Order Optimization

When the gradient ∇θVD(θ)\nabla_\theta V_D(\theta) is unavailable, we estimate it via a two-point finite-difference scheme. At iteration kk, draw a unit direction uk∼Uniform⁡(Sd−1)u_k \sim\operatorname{Uniform}(\mathbb{S}^{d-1}), evaluate VDV_D at θk±δkuk\theta_k \pm\delta_k u_k, and form the gradient estimate

g^k=d2δk(V^D(θk+δkuk)−V^D(θk−δkuk))uk.(4)\hat{g}_k = \frac{d}{2\delta_k}\left(\widehat{V}_D(\theta_k+\delta_k u_k)-\widehat{V}_D(\theta_k-\delta_k u_k)\right)u_k. \tag*{(4)}

The iterate is updated as θk+1=ΠΘ(θk+ηkg^k)\theta_{k+1} = \Pi_\Theta(\theta_k+\eta_k\hat{g}_k), where ΠΘ\Pi_\Theta is Euclidean projection onto Θ\Theta and ηk,δk>0\eta_k,\delta_k > 0 are the step size and smoothing radius, respectively.

Algorithm 3 StepOptimize via Bayesian Optimization (BO)

Require: History Hk={(θj,V^D(θj))}j≤k\mathcal{H}_k = \{(\theta_j, \widehat{V}_D(\theta_j))\}_{j\le k}; kernel κ\kappa; observation noise variance σξ2\sigma_{\xi}^{2}; acquisition parameter βk+1\beta_{k+1}; evaluation budget MM.

Ensure: Updated parameter θk+1\theta_{k+1}.

  1. Let yk=[V^D(θj)]j≤ky_k = [\widehat{V}_D(\theta_j)]_{j\le k} and [Kk]ij=κ(θi,θj)[K_k]_{ij} = \kappa(\theta_i,\theta_j).

  2. Compute Wk=(Kk+σξ2I)−1W_k = (K_k + \sigma_{\xi}^{2}I)^{-1}.

  3. For each candidate θ\theta, let kk(θ)=[κ(θ,θj)]j≤kk_k(\theta) = [\kappa(\theta,\theta_j)]_{j\le k} and compute

μk(θ)=kk(θ)TWkyk,\mu_k(\theta) = k_k(\theta)^{\mathsf{T}}W_k y_k,
σk(θ)=κ(θ,θ)−kk(θ)TWkkk(θ).\sigma_k(\theta) = \sqrt{\kappa(\theta,\theta) - k_k(\theta)^{\mathsf{T}}W_k k_k(\theta)}.
  1. θk+1=argmax⁡θ∈Θ(μk(θ)+βk+1σk(θ))\theta_{k+1} = \operatorname*{argmax}_{\theta\in\Theta}(\mu_k(\theta) + \beta_{k+1}\sigma_k(\theta)).

  2. Estimate V^D(θk+1)\widehat{V}_D(\theta_{k+1}) using MM rollout episodes.

  3. Append (θk+1,V^D(θk+1))(\theta_{k+1}, \widehat{V}_D(\theta_{k+1})) to Hk+1\mathcal{H}_{k+1}.

  4. return θk+1\theta_{k+1}.

StepOptimize II: Bayesian Optimization

When each evaluation of VDV_D is expensive, Bayesian optimization (BO) is preferable: it maintains a Gaussian Process (GP) surrogate fitted to all past evaluations and selects the next query by maximizing an acquisition function, thus exploiting global smoothness with far fewer function evaluations.

We place a GP prior on VDV_D with a Matérn-5/25/2 covariance in the Euclidean metric on Θ\Theta. Writing r=∥θ−θ′∥2r = \lVert\theta-\theta'\rVert_2,

κ(θ,θ′)=σf2(1+5rℓ+5r23ℓ2)exp⁡(−5rℓ).\kappa(\theta,\theta') = \sigma_f^2\left(1+\frac{\sqrt{5}r}{\ell}+\frac{5r^2}{3\ell^2}\right)\exp\left(-\frac{\sqrt{5}r}{\ell}\right).

with signal variance σf2\sigma_f^2 and length scale ℓ\ell. Under the convex-combination parametrization fθ=∑i=1Nθifif_\theta= \sum_{i=1}^{N}\theta_i f_i of Lemma 7, the domain Θ\Theta is the (N−1)(N-1)-simplex, a compact convex subset of RN\mathbb{R}^{N} on which κ\kappa is strictly positive definite. It is the smoothness this kernel encodes, through ν=5/2\nu= 5/2, that Theorem 8 exploits. At each iteration the next candidate is chosen by maximizing the Upper Confidence Bound (UCB) acquisition: θk+1=argmax⁡θ∈Θ(μk(θ)+βk+1σk(θ))\theta_{k+1} = \operatorname*{argmax}_{\theta\in\Theta}(\mu_k(\theta) + \beta_{k+1}\sigma_k(\theta)).

Convergence of Inner Soft Q-Learning

Before analyzing the outer loop, we establish that the inner step of Algorithm 1 is well-founded: soft QQ-learning converges almost surely to a well-defined fixed point even though the internal state process is not Markovian (because ρ\rho has arbitrary memory). The key insight, formalized below, is that the non-Markovian noise term vanishes in expectation under the stationary measure induced by πb\pi_b, and thus the iteration effectively tracks a Markovian ODE.

Theorem 1 (Almost-sure convergence of soft QQ-learning). Let Assumption 3 hold and let the learning rates {αn}\{\alpha_n\} satisfy the Robbins–Monro conditions ∑nαn=∞\sum_n \alpha_n = \infty and ∑nαn2<∞\sum_n \alpha_n^2 < \infty. Define the stationary expected reward and transition induced by πb\pi_b and fθf_\theta:

rˉθ(s,a)=Eπb,fθ[r(s,a,o)],(5)\bar{r}_\theta(s,a) = \mathbb{E}_{\pi_b,f_\theta}[r(s,a,o)], \tag*{(5)}
Pˉθ(s′∣s,a)=Eπb,fθ[fθ(s′∣s,a,o)].(6)\bar{P}_\theta(s' \mid s,a) = \mathbb{E}_{\pi_b,f_\theta}[f_\theta(s' \mid s,a,o)]. \tag*{(6)}

Then, the soft QQ-learning iterates

Qn+1(s,a)=Qn(s,a)+αn1{Sn=s,An=a}[rn+γτlog⁡∑a′exp⁡(Qn(Sn+1,a′)τ)−Qn(s,a)](7)Q_{n+1}(s,a) = Q_n(s,a) + \alpha_n \mathbf{1}_{\{S_n=s,A_n=a\}}\left[r_n + \gamma\tau\log\sum_{a'} \exp\left(\frac{Q_n(S_{n+1},a')}{\tau}\right) - Q_n(s,a)\right] \tag*{(7)}

converge almost surely to the unique fixed point Qθ⋆Q_\theta^\star satisfying

Qθ⋆(s,a)=rˉθ(s,a)+γ∑s′Pˉθ(s′∣s,a)τlog⁡∑a′exp⁡(Qθ⋆(s′,a′)τ).(8)Q_\theta^\star(s,a) = \bar{r}_\theta(s,a) + \gamma\sum_{s'} \bar{P}_\theta(s' \mid s,a) \tau\log\sum_{a'} \exp\left(\frac{Q_\theta^\star(s',a')}{\tau}\right). \tag*{(8)}

The induced soft-greedy policy is π^θ(a∣s)∝exp⁡(Qθ⋆(s,a)/τ)\hat{\pi}_\theta(a \mid s) \propto\exp(Q_\theta^\star(s,a)/\tau).

Proof. Decompose the update in (7) as

Qn+1(s,a)=Qn(s,a)+αn[Fs,a(Qn)+ζns,a+Mn+1s,a].Q_{n+1}(s,a) = Q_n(s,a) + \alpha_n\left[F^{s,a}(Q_n) + \zeta_n^{s,a} + M_{n+1}^{s,a}\right].

where Fs,a(Q)F^{s,a}(Q) is the expected soft Bellman residual under (rˉθ,Pˉθ)(\bar{r}_\theta,\bar{P}_\theta):

Fs,a(Q)=1{Sn=s,An=a}[rˉθ(s,a)+γ∑s′Pˉθ(s′∣s,a)τlog⁡∑a′eQ(s′,a′)/τ−Q(s,a)];F^{s,a}(Q) = \mathbf{1}_{\{S_n=s,A_n=a\}}\left[\bar{r}_\theta(s,a) + \gamma\sum_{s'} \bar{P}_\theta(s' \mid s,a)\tau\log\sum_{a'} e^{Q(s',a')/\tau} - Q(s,a)\right];

ζns,a\zeta_n^{s,a} captures the non-Markovian correction

ζns,a=1{Sn=s,An=a}[E[rn∣on,an]−rˉθ(s,a)+γ∑s′(P(Sn+1=s′∣on,an)−Pˉθ(s′∣s,a))τlog⁡∑a′eQn(s′,a′)/τ];\zeta_n^{s,a} = \mathbf{1}_{\{S_n=s,A_n=a\}}\left[\mathbb{E}[r_n \mid o^n,a^n] - \bar{r}_\theta(s,a) + \gamma\sum_{s'}\left(P(S_{n+1}=s' \mid o^n,a^n) - \bar{P}_\theta(s' \mid s,a)\right)\tau\log\sum_{a'} e^{Q_n(s',a')/\tau}\right];

and Mn+1s,aM_{n+1}^{s,a} is a martingale difference sequence with bounded increments (since rewards are bounded by Rmax⁡R_{\max}).

Under the stationary measure π~(s,a)>0\tilde{\pi}(s,a) > 0 (Assumption 3), integrating ζns,a\zeta_n^{s,a} over the history y=(on,an)y = (o^n,a^n) gives zero:

∫π~(dy) ζs,a(Q,y)=0∀ (s,a),\int\tilde{\pi}(dy)\,\zeta^{s,a}(Q,y) = 0 \quad\forall\,(s,a),

because Pˉθ(s′∣s,a)=Eπ~[P(Sn+1=s′∣on,an)∣Sn=s,An=a]\bar{P}_\theta(s' \mid s,a) = \mathbb{E}_{\tilde{\pi}}[P(S_{n+1}=s' \mid o^n,a^n) \mid S_n=s,A_n=a] by definition of the stationary averages in (6). Hence, the non-Markovian noise vanishes in expectation under the stationary measure. Standard stochastic approximation theory [3] then implies that {Qn}\{Q_n\} almost surely tracks the ODE

Q˙=∑s,aπ‾(s,a)Fs,a(Q).\dot{Q} = \sum_{s,a}\overline{\pi}(s,a)F^{s,a}(Q).

The operator underlying Fs,aF^{s,a} is the soft Bellman operator with temperature τ>0\tau> 0, which is a γ\gamma-contraction in ℓ∞\ell_\infty; see, e.g., [9]. Hence the ODE is globally asymptotically stable at the unique fixed point Qθ⋆Q_\theta^\star of (8), giving Qn⟶a.s.Qθ⋆Q_n \mathrel{\mathop{\longrightarrow}^{\mathrm{a.s.}}} Q_\theta^\star.

Remark 1. Theorem 1 is a statement about the surrogate chain (r‾θ,P‾θ)(\overline{r}_\theta,\overline{P}_\theta): the iteration converges, and π^θ\widehat{\pi}_\theta is soft-optimal for that chain. It does not by itself certify that π^θ\widehat{\pi}_\theta is near-optimal for the environment. Two gaps separate the two. The first is the temperature, which biases the soft-optimal policy away from the greedy one by at most τlog⁡∣A∣/(1−γ)\tau\log|\mathcal{A}|/(1-\gamma) in value; this gap is under the designer’s control and is the price paid for the smoothness of θ↦π^θ\theta\mapsto\widehat{\pi}_\theta that Section 5 requires. The second is representational, and is the essential one: π^θ\widehat{\pi}_\theta acts on sts_t rather than on the history, so it can be no better than the best policy the compression fθf_\theta admits, and (r‾θ,P‾θ)(\overline{r}_\theta,\overline{P}_\theta) are themselves averages taken under πb\pi_b. Bounding this second gap requires structure that a general non-Markovian environment does not provide. When the environment is a POMDP and fθf_\theta is a filter whose prediction error contracts, filter-stability arguments bound the loss in value by the expected filtering error accumulated over the effective horizon 1/(1−γ)1/(1-\gamma) [11, 17], and in that regime π^θ\widehat{\pi}_\theta is near-optimal in the usual sense.

This also locates the result relative to prior work. The closest antecedent is [11], which fixes a finite-window memory as the agent state and establishes both convergence and, under filter stability, near-optimality of the learned policy. Here the agent state is instead the output of a parametrized, designable kernel fθf_\theta, so the surrogate chain and hence the limit Qθ⋆Q_\theta^\star move with θ\theta, and the argument must hold uniformly over the family {fθ}θ∈Θ\{f_\theta\}_{\theta\in\Theta}; what the proof isolates is that the non-Markovian correction ζns,a\zeta_n^{s,a} integrates to zero under the stationary measure for every θ\theta, and it is this uniformity that makes the outer problem well posed. It is precisely because the representational gap depends on θ\theta, and is untouched by the inner loop, that we treat the choice of θ\theta as an optimization problem in its own right.

Theorem 1 establishes that the inner step of Algorithm 1 converges almost surely to a well-defined fixed point Qθ⋆Q_\theta^\star, yielding a policy π^θ\widehat{\pi}_\theta with which the agent can act in the non-Markovian environment for any fixed θ\theta. However, this addresses only the inner problem, and the outer question (which θ\theta to use) is still to be addressed. While Algorithm 1 provides a general iterative procedure for adapting θ\theta, without further structure on the environment it is difficult to characterize the quality of the stationary points it reaches. In what follows, we restrict the environment to be a POMDP (Assumption 4) and analyze the properties of the transition parameters obtained by running Algorithm 1 in this setting.

Theoretical Guarantees under a POMDP Environment

The convergence results in Section 4 hold for an arbitrary non-Markovian environment. To prove any structural properties for the stationary points of VD(θ)V_D(\theta), such as Lipschitzness of the gradient, we need additional structure on the environment. We now assume that it is a Partially Observed Markov Decision Process (POMDP), which captures most practically relevant settings while enabling sharper analysis.

Assumption 4 (POMDP environment). There exist a finite latent state space X\mathcal{X}, a transition kernel P(x′∣x,a)P(x' \mid x,a), and an emission kernel O(o∣x)O(o \mid x) such that

xt+1∼P(⋅∣xt,at),ot+1∼O(⋅∣xt+1),x_{t+1} \sim P(\cdot\mid x_t,a_t), \qquad o_{t+1} \sim O(\cdot\mid x_{t+1}),

with the agent’s internal state evolving via st+1∼fθ(⋅∣st,at,ot+1)s_{t+1} \sim f_\theta(\cdot\mid s_t,a_t,o_{t+1}).

Under Assumption 4, the joint process (xt,st)(x_t,s_t) is Markovian, even though the observations and internal states alone are not. This latent Markov structure is the key that allows us to express VD(θ)V_D(\theta) as the value of a well-defined joint Markov chain and then differentiate it.

Lipschitz Gradient of the Outer Objective

Our goal is to show that ∇θVD(θ)\nabla_\theta V_D(\theta) is Lipschitz continuous, which is the regularity condition needed for both convergence proofs that follow. Establishing this requires bounding the first and second derivatives of VDV_D with respect to θ\theta, which we build up in two lemmas: one for the quantities (rˉθ,Pˉθ)(\bar{r}_\theta,\bar{P}_\theta) defined by the behavioral data, and another one for the closed-loop joint model under the optimized policy.

Lemma 2 (Smooth stationary averages). Under Assumptions 2, 3, and 4, there exist finite constants Cˉr,1,Cˉr,2,CˉP,1,CˉP,2\bar{C}_{r,1}, \bar{C}_{r,2}, \bar{C}_{P,1}, \bar{C}_{P,2} such that for all s,s′∈Ss,s' \in\mathcal{S}, a∈Aa \in\mathcal{A}, and θ∈Θ\theta\in\Theta:

∥∇θrˉθ(s,a)∥2≤Cˉr,1,∥∇θ2rˉθ(s,a)∥2≤Cˉr,2,\left\|\nabla_\theta\bar{r}_\theta(s,a)\right\|_2 \leq\bar{C}_{r,1}, \qquad\left\|\nabla_\theta^2 \bar{r}_\theta(s,a)\right\|_2 \leq\bar{C}_{r,2},
∥∇θPˉθ(s′∣s,a)∥2≤CˉP,1,∥∇θ2Pˉθ(s′∣s,a)∥2≤CˉP,2.\left\|\nabla_\theta\bar{P}_\theta(s' \mid s,a)\right\|_2 \leq\bar{C}_{P,1}, \qquad\left\|\nabla_\theta^2 \bar{P}_\theta(s' \mid s,a)\right\|_2 \leq\bar{C}_{P,2}.

Proof. Let Z=X×S\mathcal{Z}=\mathcal{X}\times\mathcal{S} and z=(x,s)z=(x,s). Under πb\pi_b, fθf_\theta, and the POMDP dynamics (P,O)(P,O), the joint process on Z\mathcal{Z} is a Markov chain with transition kernel

Pjt(z′∣z)=∑aπb(a∣s)P(x′∣x,a)∑oO(o∣x′)fθ(s′∣s,a,o).P_{\mathrm{jt}}(z' \mid z)=\sum_a \pi_b(a \mid s)P(x' \mid x,a)\sum_o O(o \mid x')f_\theta(s' \mid s,a,o).

By Assumption 3 this chain is ergodic with unique stationary distribution dθd_\theta, satisfying dθT=dθTPjtd_\theta^{\mathsf{T}}=d_\theta^{\mathsf{T}}P_{\mathrm{jt}}. Let Zθ=(I−Pjt+1dθT)−1Z_\theta=(I-P_{\mathrm{jt}}+\mathbf{1}d_\theta^{\mathsf{T}})^{-1} be the fundamental matrix. Differentiating the stationarity equation gives

∇θdθT=dθT(∇θPjt)Zθ.\nabla_\theta d_\theta^{\mathsf{T}}=d_\theta^{\mathsf{T}}(\nabla_\theta P_{\mathrm{jt}})Z_\theta.

By Assumption 2, ∥∇θfθ∥2≤Cf,1\|\nabla_\theta f_\theta\|_2\leq C_{f,1}, and thus ∥∇θPjt∥2\|\nabla_\theta P_{\mathrm{jt}}\|_2 is bounded. Since Z\mathcal{Z} is finite and the chain is ergodic, ∥Zθ∥\|Z_\theta\| is bounded by a constant proportional to the mixing time, yielding a constant Cd,1C_{d,1} with ∑x∥∇θdθ(x,s)∥2≤Cd,1\sum_x\|\nabla_\theta d_\theta(x,s)\|_2\leq C_{d,1} for all ss.

Define the conditional observation weight wθ(o∣s,a)=Nθ(o,s,a)/Dθ(s)w_\theta(o\mid s,a)=N_\theta(o,s,a)/D_\theta(s), where Dθ(s)=∑xdθ(x,s)D_\theta(s)=\sum_x d_\theta(x,s) and Nθ(o,s,a)=∑xdθ(x,s)∑x′P(x′∣x,a)O(o∣x′)N_\theta(o,s,a)=\sum_x d_\theta(x,s)\sum_{x'}P(x'\mid x,a)O(o\mid x'). Differentiating the numerator and the denominator separately gives ∥∇θDθ(s)∥2≤Cd,1\|\nabla_\theta D_\theta(s)\|_2\leq C_{d,1} and ∥∇θNθ(o,s,a)∥2≤Cd,1\|\nabla_\theta N_\theta(o,s,a)\|_2\leq C_{d,1}. Applying the quotient rule with Dθ(s)≥μmin⁡D_\theta(s)\geq\mu_{\min} (Assumption 3):

∥∇θwθ(o∣s,a)∥2≤2Cd,1μmin⁡≜Cw,1.\left\|\nabla_\theta w_\theta(o\mid s,a)\right\|_2\leq\frac{2C_{d,1}}{\mu_{\min}}\triangleq C_{w,1}.

Since rˉθ(s,a)=∑owθ(o∣s,a)r(s,a,o)\bar{r}_{\theta}(s,a)=\sum_{o}w_{\theta}(o\mid s,a)r(s,a,o), and ∣r(⋅)∣≤Rmax⁡|r(\cdot)|\le R_{\max}:

∥∇θrˉθ(s,a)∥2≤∣O∣Cw,1Rmax⁡≜Crˉ,1.\lVert\nabla_{\theta}\bar{r}_{\theta}(s,a)\rVert_{2}\le|O|C_{w,1}R_{\max}\triangleq C_{\bar{r},1}.

Since Pˉθ(s′∣s,a)=∑owθ(o∣s,a)fθ(s′∣s,a,o)\bar{P}_{\theta}(s'\mid s,a)=\sum_{o}w_{\theta}(o\mid s,a)f_{\theta}(s'\mid s,a,o), the product rule and the fact that ∑ofθ(s′∣s,a,o)\sum_{o}f_{\theta}(s'\mid s,a,o) and ∑owθ(o∣s,a)\sum_{o}w_{\theta}(o\mid s,a) each equal 1 lead to

∥∇θPˉθ(s′∣s,a)∥2≤Cw,1+Cf,1≜CPˉ,1.\lVert\nabla_{\theta}\bar{P}_{\theta}(s'\mid s,a)\rVert_{2}\le C_{w,1}+C_{f,1}\triangleq C_{\bar{P},1}.

The second-derivative bounds Crˉ,2C_{\bar{r},2} and CPˉ,2C_{\bar{P},2} follow by differentiating each expression above once more. Assumption 2 supplies ∥∇θ2fθ∥2≤Cf,2\lVert\nabla_{\theta}^{2}f_{\theta}\rVert_{2}\le C_{f,2}, which propagates through PjtP_{jt}, dθd_{\theta}, wθw_{\theta}, and finally rˉθ\bar{r}_{\theta} and Pˉθ\bar{P}_{\theta} by iterated application of the product and quotient rules. ■

Lemma 2 controls how the stationary averages rˉθ\bar{r}_{\theta} and Pˉθ\bar{P}_{\theta} change as θ\theta varies. The next lemma lifts this to the closed-loop joint model—the reward and transition seen by the joint process (xt,st)(x_t,s_t) when the agent follows the optimized policy π^θ\hat{\pi}_{\theta}. The key step is propagating the θ\theta-dependence of π^θ\hat{\pi}_{\theta} through the soft Bellman equation.

Lemma 3 (Smooth closed-loop model). Define the joint reward and transition under the closed-loop system (fθ,π^θ)(f_{\theta},\hat{\pi}_{\theta}):

rθ(z)=∑a,o,x′π^θ(a∣s)P(x′∣x,a)O(o∣x′)r(s,a,o),r^{\theta}(z)=\sum_{a,o,x'}\hat{\pi}_{\theta}(a\mid s)P(x'\mid x,a)O(o\mid x')r(s,a,o),
Pθ(z′∣z)=∑a,oπ^θ(a∣s)P(x′∣x,a)O(o∣x′)fθ(s′∣s,a,o).P^{\theta}(z'\mid z)=\sum_{a,o}\hat{\pi}_{\theta}(a\mid s)P(x'\mid x,a)O(o\mid x')f_{\theta}(s'\mid s,a,o).

Under Assumptions 1–4, there exist finite constants Cr,1,Cr,2,CP,1,CP,2C_{r,1},C_{r,2},C_{P,1},C_{P,2} such that for all z,z′∈Zz,z'\in\mathcal{Z} and θ∈Θ\theta\in\Theta:

∥∇θrθ(z)∥2≤Cr,1,∥∇θPθ(z′∣z)∥2≤CP,1,\lVert\nabla_{\theta}r^{\theta}(z)\rVert_{2}\le C_{r,1},\qquad\lVert\nabla_{\theta}P^{\theta}(z'\mid z)\rVert_{2}\le C_{P,1},

and the same bounds hold for second derivatives with constants Cr,2C_{r,2} and CP,2C_{P,2}.

Proof. Since PP and OO are fixed (independent of θ\theta), bounding ∥∇θrθ∥\lVert\nabla_{\theta}r^{\theta}\rVert and ∥∇θPθ∥\lVert\nabla_{\theta}P^{\theta}\rVert reduces to bounding ∥∇θπ^θ(a∣s)∥2\lVert\nabla_{\theta}\hat{\pi}_{\theta}(a\mid s)\rVert_{2}.

Since π^θ(a∣s)∝exp⁡(Qθ⋆(s,a)/τ)\hat{\pi}_{\theta}(a\mid s)\propto\exp(Q_{\theta}^{\star}(s,a)/\tau) (with temperature τ>0\tau>0), the chain rule through the softmax gives

∥∇θπ^θ(a∣s)∥2≤2τBQ,BQ≜max⁡s,a∥∇θQθ⋆(s,a)∥2.\lVert\nabla_{\theta}\hat{\pi}_{\theta}(a\mid s)\rVert_{2}\le\frac{2}{\tau}B_{Q},\qquad B_{Q}\triangleq\max_{s,a}\lVert\nabla_{\theta}Q_{\theta}^{\star}(s,a)\rVert_{2}.

To bound BQB_{Q}, differentiate the soft Bellman equation (8) implicitly with respect to θ\theta:

∇θQθ⋆(s,a)=∇θrˉθ(s,a)+γ∑s′[∇θPˉθ(s′∣s,a)Vθ⋆(s′)+Pˉθ(s′∣s,a)∑a′π^θ(a′∣s′)∇θQθ⋆(s′,a′)],\begin{aligned} \nabla_{\theta}Q_{\theta}^{\star}(s,a) ={}&\nabla_{\theta}\bar{r}_{\theta}(s,a)+\gamma\sum_{s'}\left[\nabla_{\theta}\bar{P}_{\theta}(s'\mid s,a)V_{\theta}^{\star}(s')\right.\\ &\left.\qquad+\bar{P}_{\theta}(s'\mid s,a)\sum_{a'}\hat{\pi}_{\theta}(a'\mid s')\nabla_{\theta}Q_{\theta}^{\star}(s',a')\right], \end{aligned}

where Vθ⋆(s′)=τlog⁡∑a′exp⁡(Qθ⋆(s′,a′)/τ)V^\star_\theta(s') = \tau\log\sum_{a'} \exp(Q^\star_\theta(s', a')/\tau). Taking the ℓ2\ell_2 norm, using ∣Vθ⋆(s′)∣≤Rmax⁡/(1−γ)\lvert V^\star_\theta(s')\rvert\le R_{\max}/(1-\gamma), and exploiting the contraction factor γ<1\gamma< 1, yields the self-consistent bound

BQ≤11−γ(Crˉ,1+γRmax⁡∣S∣1−γCPˉ,1)≜CQ,B_Q \le\frac{1}{1-\gamma}\left(C_{\bar r,1}+\frac{\gamma R_{\max}\lvert\mathcal{S}\rvert}{1-\gamma}C_{\bar P,1}\right) \triangleq C_Q,

which is finite by Lemma 2. This gives constants Crˉ,1C_{\bar r,1} and CPˉ,1C_{\bar P,1}. The second-derivative bounds Crˉ,2C_{\bar r,2} and CPˉ,2C_{\bar P,2} follow by differentiating the soft Bellman equation once more with respect to θ\theta. The resulting expression for ∇θ2Qθ⋆\nabla^2_\theta Q^\star_\theta involves ∇θ2rˉθ\nabla^2_\theta\bar r_\theta, ∇θ2Pˉθ\nabla^2_\theta\bar P_\theta, ∇θπ^θ\nabla_\theta\hat\pi_\theta, and ∇θQθ⋆\nabla_\theta Q^\star_\theta—all of which are already bounded—together with the same γ\gamma-contraction argument, yielding a finite constant BQ,2B_{Q,2}. The bounds Crˉ,2C_{\bar r,2} and CPˉ,2C_{\bar P,2} then follow by substitution. ■

With both lemmas in hand, we can now establish the key structural property of VDV_D.

Theorem 4 (Lipschitz gradient of VDV_D). Under Assumptions 1–4, the gradient ∇θVD(θ)\nabla_\theta V_D(\theta) is Lipschitz continuous on Θ\Theta.

Proof. Under Assumption 4, define the joint state zt=(xt,st)∈Zz_t=(x_t,s_t)\in\mathcal{Z}. Under the closed-loop pair (fθ,π^θ)(f_\theta,\hat\pi_\theta), the joint process is a Markov chain with transition PθP^\theta and one-step reward rθr^\theta from Lemma 3. The value function Vθ∈R∣Z∣V^\theta\in\mathbb{R}^{\lvert\mathcal{Z}\rvert} satisfies the Bellman equation

Vθ=rθ+γPθVθ⟹Vθ=(I−γPθ)−1rθ.V^\theta=r^\theta+\gamma P^\theta V^\theta\quad\Longrightarrow\quad V^\theta=(I-\gamma P^\theta)^{-1}r^\theta.

and VD(θ)=μ0⊤VθV_D(\theta)=\mu_0^\top V^\theta for some initial distribution μ0∈Δ(Z)\mu_0\in\Delta(\mathcal{Z}). Since ∥Vθ∥∞≤Rmax⁡/(1−γ)\lVert V^\theta\rVert_\infty\le R_{\max}/(1-\gamma), differentiating the Bellman equation gives

∇θVθ=(I−γPθ)−1(∇θrθ+γ(∇θPθ)Vθ).\nabla_\theta V^\theta=(I-\gamma P^\theta)^{-1}\left(\nabla_\theta r^\theta+\gamma(\nabla_\theta P^\theta)V^\theta\right).

Since ∥(I−γPθ)−1∥≤1/(1−γ)\lVert(I-\gamma P^\theta)^{-1}\rVert\le1/(1-\gamma), Lemma 3 yields

∥∇θVθ∥≤Crˉ,1+γRmax⁡CPˉ,1/(1−γ)1−γ≜CV,1.\lVert\nabla_\theta V^\theta\rVert\le\frac{C_{\bar r,1}+\gamma R_{\max}C_{\bar P,1}/(1-\gamma)}{1-\gamma}\triangleq C_{V,1}.

Differentiating the Bellman equation once more:

∇θ2Vθ=(I−γPθ)−1(∇θ2rθ+γ(∇θ2Pθ)Vθ+2γ(∇θPθ)(∇θVθ)).\nabla^2_\theta V^\theta=(I-\gamma P^\theta)^{-1}\left(\nabla^2_\theta r^\theta+\gamma(\nabla^2_\theta P^\theta)V^\theta+2\gamma(\nabla_\theta P^\theta)(\nabla_\theta V^\theta)\right).

Applying the second-derivative bounds from Lemma 3:

∥∇θ2Vθ∥≤Crˉ,2+γRmax⁡CPˉ,2/(1−γ)+2γCPˉ,1CV,11−γ.(9)\lVert\nabla^2_\theta V^\theta\rVert\le\frac{C_{\bar r,2}+\gamma R_{\max}C_{\bar P,2}/(1-\gamma)+2\gamma C_{\bar P,1}C_{V,1}}{1-\gamma}. \tag*{(9)}

Since μ0\mu_0 is a probability vector, defining the bound in (9) as LL, we have ∥∇θ2VD(θ)∥≤L\lVert\nabla^2_\theta V_D(\theta)\rVert\le L uniformly over Θ\Theta, which implies that ∇θVD\nabla_\theta V_D is LL-Lipschitz continuous. ■

Bounded Variance of the Monte Carlo Estimator

In Algorithm 1 we estimate VD(θ)V_D(\theta) by averaging MM independent rollouts of horizon HH. Since rewards are bounded, the truncated return has bounded variance and the estimator is sub-Gaussian—a property used in both convergence analyses below.

Lemma 5 (Bounded-variance Monte Carlo estimator). For a fixed θ\theta, let V^D(θ)=1M∑m=1MGm\widehat{V}_D(\theta) = \frac{1}{M}\sum_{m=1}^{M}G_m where Gm=∑t=0H−1γtrm(st,at,ot+1)G_m = \sum_{t=0}^{H-1}\gamma^t r_m(s_t,a_t,o_{t+1}) is the discounted return of the mm-th rollout. Then:

  1. each GmG_m is bounded, with ∣Gm∣≤Gmax⁡≜Rmax⁡(1−γH)/(1−γ)|G_m| \le G_{\max} \triangleq R_{\max}(1-\gamma^H)/(1-\gamma);

  2. V^D(θ)\widehat{V}_D(\theta) is an unbiased estimator of the HH-truncated return, with conditional variance Var⁡[V^D(θ)]≤Gmax⁡2/M≤σ2/M\operatorname{Var}[\widehat{V}_D(\theta)] \le G_{\max}^2/M \le\sigma^2/M, where σ2≜Rmax⁡2/(1−γ)2\sigma^2 \triangleq R_{\max}^2/(1-\gamma)^2; and

  3. V^D(θ)\widehat{V}_D(\theta) is σ/M\sigma/\sqrt{M}-sub-Gaussian, i.e. log⁡E[exp⁡(λ(V^D(θ)−EV^D(θ)))]≤λ2σ2/(2M)\log\mathbb{E}\left[\exp\left(\lambda(\widehat{V}_D(\theta)-\mathbb{E}\widehat{V}_D(\theta))\right)\right] \le\lambda^2\sigma^2/(2M) for all λ∈R\lambda\in\mathbb{R}.

Proof. Part (i) is immediate from ∣r(⋅)∣≤Rmax⁡|r(\cdot)| \le R_{\max} and the geometric series. For part (ii), the MM rollouts are independent, so Var⁡[V^D(θ)]=Var⁡[G1]/M\operatorname{Var}[\widehat{V}_D(\theta)] = \operatorname{Var}[G_1]/M, and G1G_1 being bounded by Gmax⁡G_{\max}, Popoviciu’s inequality gives Var⁡[G1]≤Gmax⁡2\operatorname{Var}[G_1] \le G_{\max}^2. Part (iii) follows from Hoeffding’s lemma for bounded random variables: each Gm/MG_m/M takes values in an interval of length 2Gmax⁡/M2G_{\max}/M, so the average is σ/M\sigma/\sqrt{M}-sub-Gaussian.

Lemma 5 makes precise how the evaluation budget MM and the discount factor γ\gamma jointly determine the estimation noise. In particular, σ2=Rmax⁡2/(1−γ)2\sigma^2 = R_{\max}^2/(1-\gamma)^2 grows as γ→1\gamma\to1—reflecting the increasing variance of long-horizon returns—and shrinks at rate 1/M1/M as more rollouts are used. The sub-Gaussian property (part iii) is what allows us to invoke GP-UCB confidence bounds in the Bayesian optimization analysis.

Convergence of Algorithm 1 with ZOO

With the Lipschitz gradient established and the estimator noise characterized, we can now analyze the zeroth-order variant. The two-point estimator (4) introduces two sources of error: a bias from the finite smoothing radius δ\delta and a variance from the Monte Carlo evaluations. The theorem below shows that both can be controlled, and balancing the two gives an O(1/K)O(1/\sqrt{K}) convergence rate to a first-order stationary point of VDV_D.

Theorem 6 (Convergence of ZOO variant). Under Assumptions 1–4, Algorithm 1 with Algorithm 2 as StepOptimize for KK iterations with constant step size η≤1/(2L)\eta\le1/(2L) and constant smoothing radius δ>0\delta> 0 yields,

1K∑k=0K−1E[∥Gη(θk)∥22]≤C1ηK+2Ld2σ2Mδ2+2δ2d2L2,(10)\frac{1}{K}\sum_{k=0}^{K-1}\mathbb{E}\left[\left\|G_\eta(\theta_k)\right\|_2^2\right] \le\frac{C_1}{\eta K}+\frac{2Ld^2\sigma^2}{M\delta^2}+2\delta^2d^2L^2, \tag*{(10)}

where Gη(θ)=1η(θ−ΠΘ(θ+η∇VD(θ)))G_{\eta}(\theta) = \frac{1}{\eta}(\theta- \Pi_{\Theta}(\theta+ \eta\nabla V_D(\theta))) is the gradient mapping, C1=2(V⋆−VD(θ0))C_1 = 2(V^\star- V_D(\theta_0)), V⋆=max⁡θ∈ΘVD(θ)V^\star= \max_{\theta\in\Theta} V_D(\theta), and d=dim⁡Θd = \dim\Theta. Choosing η=O(K−1/2)\eta= O(K^{-1/2}) and δ=O(K−1/4)\delta= O(K^{-1/4}) gives 1K∑kE[∥Gη(θk)∥22]=O(K−1/2)\frac{1}{K}\sum_k \mathbb{E}[\lVert G_{\eta}(\theta_k)\rVert_2^2] = O(K^{-1/2}).

Proof. Define the spherically smoothed objective Vδ(θ)=Eu∼Uniform⁡(Sd−1)[VD(θ+δu)]V_{\delta}(\theta) = \mathbb{E}_{u \sim\operatorname{Uniform}(\mathbb{S}^{d-1})}[V_D(\theta+ \delta u)]. By the Stokes’ theorem identity for uniform spherical smoothing [7], the two-point estimator satisfies E[g^k∣θk]=∇Vδ(θk)\mathbb{E}[\widehat{g}_k \mid\theta_k] = \nabla V_{\delta}(\theta_k). Due to LL-Lipschitz gradient (Theorem 4), using standard techniques from gradient free optimization [5] and splitting g^k\widehat{g}_k into signal and noise and applying (a+b)2≤2a2+2b2(a+b)^2 \leq2a^2 + 2b^2, the bias and second moment bounds for the uniform spherical estimator are given by:

∥∇Vδ(θ)−∇VD(θ)∥2≤Lδd2,\lVert\nabla V_{\delta}(\theta) - \nabla V_D(\theta) \rVert_2 \leq\frac{L\delta d}{2},
E[∥g^k∥22∣θk]≤4d2∥∇VD(θk)∥22+d2σ2Mδ2+δ2d2L2,\mathbb{E}[\lVert\widehat{g}_k\rVert_2^2 \mid\theta_k] \leq4d^2 \lVert\nabla V_D(\theta_k)\rVert_2^2 + \frac{d^2\sigma^2}{M\delta^2} + \delta^2 d^2 L^2,

where σ2=Rmax⁡2(1−γ)2\sigma^2 = \frac{R_{\max}^2}{(1-\gamma)^2} (Lemma 5) accounts for the Monte Carlo evaluation noise. Applying the projected gradient ascent analysis of [8] to the LL-smooth objective VDV_D over the convex compact set Θ\Theta, with Gη(θ)=1η(θ−ΠΘ(θ+η∇VD(θ)))G_{\eta}(\theta) = \frac{1}{\eta}(\theta- \Pi_{\Theta}(\theta+ \eta\nabla V_D(\theta))) as the stationarity measure, telescoping over k=0,…,K−1k = 0, \ldots, K-1 yields the stated bound. Setting η=c1K−1/2\eta= c_1K^{-1/2} and δ=c2K−1/4\delta= c_2K^{-1/4} balances all three terms at O(K−1/2)O(K^{-1/2}). ■

Convergence of Algorithm 1 with Bayesian Optimization

The ZOO variant makes no assumption on the global structure of VDV_D and consequently converges only to a first-order stationary point. By contrast, the BO variant exploits the smoothness of VDV_D, captured by its membership in a Reproducing Kernel Hilbert Space, to converge to the global optimum. This comes at the cost of a stronger parametrization requirement (for example, convex combination of base kernels) and the sub-Gaussian noise model, both of which we make precise below.

For the convex-combination parameterization, the following lemma verifies that the structural assumptions of the paper hold automatically, and moreover that VDV_D is infinitely differentiable, the regularity needed for RKHS membership.

Lemma 7 (Convex combination kernel). Let fθ=∑i=1Nθifif_{\theta} = \sum_{i=1}^{N} \theta_i f_i with θ∈Θ\theta\in\Theta the standard (N−1)(N-1)-simplex, and suppose each base kernel fi>0f_i > 0 induces an ergodic joint chain on Z\mathcal{Z}. Then:

(i) fθf_{\theta} satisfies Assumptions 1–3 for all θ∈Θ\theta\in\Theta, with a uniform lower bound μmin⁡>0\mu_{\min} > 0.

(ii) VD∈C∞(Θ)V_D \in C^{\infty}(\Theta), i.e. all derivatives of ∇VD\nabla V_D are bounded on Θ\Theta.

Proof. The simplex is compact (Assumption 1). Since fθf_{\theta} is linear in θ\theta, all derivatives of order ≥2\geq2 vanish identically, and thus fθ∈C∞(Θ)f_{\theta} \in C^{\infty}(\Theta) with trivially bounded derivatives (Assumption 2). Positivity holds because θj>0\theta_j > 0 for some jj and fj>0f_j > 0. For ergodicity, note that Pθ=∑iθiPi≥θjPjP_{\theta} = \sum_i \theta_i P_i \geq\theta_j P_j for any jj with θj>0\theta_j > 0. Since PjP_j is irreducible and aperiodic, for any z,z′z,z' there exists ll with (Pj)l(z′∣z)>0(P_j)^l(z' \mid z) > 0, so (Pθ)l(z′∣z)≥θjl(Pj)l(z′∣z)>0(P_{\theta})^l(z' \mid z) \geq\theta_j^l(P_j)^l(z' \mid z) > 0 and aperiodicity is inherited. Hence PθP_{\theta} is ergodic. The map θ↦dθ\theta\mapsto d_{\theta} is continuous (since θ↦Pθ\theta\mapsto P_{\theta} is linear and matrix inversion is continuous on invertibles). The function D(s,θ)=∑xdθ(x,s)D(s,\theta)=\sum_x d_\theta(x,s) is therefore continuous on the compact simplex, and ergodicity ensures D(s,θ)>0D(s,\theta)>0 everywhere. The Extreme Value Theorem yields μmin⁡=min⁡s,θD(s,θ)>0\mu_{\min}=\min_{s,\theta}D(s,\theta)>0.

For part (ii), since fθf_\theta is linear in θ\theta, the stationary averages rˉθ\bar{r}_\theta and Pˉθ\bar{P}_\theta are C∞C^\infty in θ\theta. The joint transition PθP^\theta and reward rθr^\theta are compositions of C∞C^\infty maps (the softmax with τ>0\tau>0 is C∞C^\infty, and Qθ⋆Q^\star_\theta is C∞C^\infty by implicit differentiation of the Bellman equation, which is well-conditioned because γ<1\gamma<1). The value function Vθ=(I−γPθ)−1rθV^\theta=(I-\gamma P^\theta)^{-1}r^\theta inherits C∞C^\infty smoothness since the resolvent is an analytic function of PθP^\theta. Hence VD∈C∞(Θ)V_D\in C^\infty(\Theta).

Theorem 8 (Global convergence of BO variant). Under Assumptions 1–4 and the convex combination parametrization of Lemma 7, the objective function satisfies VD∈HκV_D\in\mathcal{H}_\kappa with ∥VD∥κ≤B<∞\lVert V_D\rVert_\kappa\le B<\infty. Setting βk=B+σM2(γk−1+1+ln⁡(1/ε))\beta_k=B+\frac{\sigma}{\sqrt{M}}\sqrt{2(\gamma_{k-1}+1+\ln(1/\varepsilon))} (with σ2=Rmax⁡2/(1−γ)2\sigma^2=R_{\max}^2/(1-\gamma)^2 from Lemma 5), the cumulative regret of Algorithm 1 with Algorithm 3 as StepOptimize satisfies, with probability at least 1−ε1-\varepsilon:

RK=∑k=1K(VD(θ⋆)−VD(θk))≤O(KβKγK).R_K=\sum_{k=1}^{K}\left(V_D(\theta^\star)-V_D(\theta_k)\right)\le\mathcal{O}\left(\sqrt{K}\beta_K\sqrt{\gamma_K}\right).

where γK\gamma_K is the maximum information gain of κ\kappa on Θ\Theta. Since the Matérn-5/25/2 kernel has sublinear information gain (γK=o(K)\gamma_K=o(K)), average regret RK/K→0R_K/K\to0 as K→∞K\to\infty, guaranteeing convergence to the global optimum θ⋆\theta^\star.

Proof. The Matérn-5/25/2 kernel κ\kappa on RN\mathbb{R}^N has a reproducing kernel Hilbert space norm-equivalent to the Sobolev space H2.5+N/2(RN)H^{2.5+N/2}(\mathbb{R}^N). By Lemma 7(ii), VD∈C∞(Θ)V_D\in C^\infty(\Theta) with all derivatives bounded on the compact set Θ\Theta, so VDV_D admits a compactly supported C∞C^\infty extension V~D\widetilde{V}_D to RN\mathbb{R}^N. Any such extension lies in H2.5+N/2(RN)H^{2.5+N/2}(\mathbb{R}^N), and hence in Hκ\mathcal{H}_\kappa. Since the RKHS of κ\kappa restricted to Θ\Theta consists of the restrictions of functions in Hκ\mathcal{H}_\kappa, with norm no larger than that of any extension, we obtain ∥VD∥κ≤∥V~D∥Hκ≜B<∞\lVert V_D\rVert_\kappa\le\lVert\widetilde{V}_D\rVert_{\mathcal{H}_\kappa}\triangleq B<\infty.

To prove the regret bound, notice that by Lemma 5(iii), the evaluation noise ξ=V^D(θ)−VD(θ)\xi=\widehat{V}_D(\theta)-V_D(\theta) is (σ/M)(\sigma/\sqrt{M})-sub-Gaussian. With VD∈HκV_D\in\mathcal{H}_\kappa and sub-Gaussian noise, the standard conditions for GP-UCB [15] are satisfied. With the chosen βk\beta_k, the confidence intervals ∣VD(θ)−μk−1(θ)∣≤βkσk−1(θ)\lvert V_D(\theta)-\mu_{k-1}(\theta)\rvert\le\beta_k\sigma_{k-1}(\theta) hold with probability at least 1−ε1-\varepsilon uniformly over Θ\Theta and k≥1k\ge1.

The UCB acquisition ensures that θk\theta_k maximizes the upper confidence bound, meaning μk−1(θk)+βkσk−1(θk)≥μk−1(θ⋆)+βkσk−1(θ⋆)\mu_{k-1}(\theta_k)+\beta_k\sigma_{k-1}(\theta_k)\ge\mu_{k-1}(\theta^\star)+\beta_k\sigma_{k-1}(\theta^\star). Conditioned on the high-probability event that VD(θ)∈[μk−1(θ)±βkσk−1(θ)]V_D(\theta)\in[\mu_{k-1}(\theta)\pm\beta_k\sigma_{k-1}(\theta)] for all θ\theta, this gives an instantaneous regret of rk≤2βkσk−1(θk)r_k\le2\beta_k\sigma_{k-1}(\theta_k). Summing over KK iterations and applying the Cauchy–Schwarz inequality bounds the cumulative predictive standard deviations by KγK\sqrt{K\gamma_K}, yielding the cumulative regret RK≤O(KβKγK)R_K\le\mathcal{O}(\sqrt{K}\beta_K\gamma_K). For a Matérn-5/25/2 kernel on a domain of effective dimension N−1N-1, the maximum information gain is bounded by γK=O(K(N−1)N5+(N−1)Nlog⁡K)\gamma_K=\mathcal{O}\left(K^{\frac{(N-1)N}{5+(N-1)N}}\log K\right) [15]. Because the exponent is strictly less than 1 for any finite NN, γK=o(K)\gamma_K=o(K) and the average regret RK/K→0R_K/K\to0. Consequently, the simple regret SK=min⁡k<K(VD(θ⋆)−VD(θk))≤RK/K→0S_K=\min_{k<K}(V_D(\theta^\star)-V_D(\theta_k))\le R_K/K\to0, establishing exact asymptotic convergence to the global optimum θ⋆\theta^\star.

While Theorem 8 guarantees exact convergence because VD∈C∞V_D\in C^\infty, the repeated application of the chain rule through the Bellman matrix inversion (I−γPθ)−1(I-\gamma P^\theta)^{-1} implies that the theoretical RKHS norm BB scales aggressively with the number of base kernels NN.

Numerical Experiments

We illustrate the practical utility of adaptive agent design in a non-Markovian setting, analyzing how structural choices over the internal kernels strongly dictate bounding limits on optimization and capacity. Our continuous routing environment utilizes target observation delays, defining non-Markovian tracking properties mathematically. The observation space is O={0,1,2,3}\mathcal{O} = \{0,1,2,3\} and action space is A={0,1,2}\mathcal{A} = \{0,1,2\}. When the agent is initialized or completes a cycle, the environment stochastically transitions to a true hidden target state c∈{0,1,2}c \in\{0,1,2\} sampled uniformly. At the start of the sequence, the environment emits the true objective o=co = c. For all subsequent interim steps, prior to a routing junction, the environment exclusively outputs the null observation o=3o = 3. The agent must execute its internal transition rules recursively over the sequence to match its ultimate action aa against the hidden target cc. The reward matrix r(s,a,o)r(s,a,o) distributes biased, asymmetric payoffs to prevent trivial exploitation: choosing correctly yields r(⋅,a=0,⋅)=2.0r(\cdot,a=0,\cdot)=2.0, r(⋅,a=1,⋅)=1.0r(\cdot,a=1,\cdot)=1.0, and r(⋅,a=2,⋅)=0.5r(\cdot,a=2,\cdot)=0.5 correspondingly. Incorrect routing actions distribute penalties of −1.0-1.0 or −2.0-2.0. An optimal agent must mathematically compress its long-horizon observation history dynamically across its available finite states.

We formulate candidate basis transition kernels fi(s′∣s,a,o)f_i(s'|s,a,o) mapping observations into the parametrized internal states recursively. Specifically, we set f0(s′=min⁡(0,∣S∣−1)∣s,a,o=0)=1.0f_0(s'=\min(0,|S|-1)|s,a,o=0)=1.0, f1(s′=min⁡(1,∣S∣−1)∣s,a,o=1)=1.0f_1(s'=\min(1,|S|-1)|s,a,o=1)=1.0, and f2(s′=min⁡(2,∣S∣−1)∣s,a,o=2)=1.0f_2(s'=\min(2,|S|-1)|s,a,o=2)=1.0. Null observations o=3o=3 maintain the identity transition. The adaptive agent transition model fθf_\theta is defined as the strict convex combination of these basis candidate components: fθ(s′∣s,a,o)=∑i=1Kθifi(s′∣s,a,o)f_\theta(s'|s,a,o)=\sum_{i=1}^{K}\theta_i f_i(s'|s,a,o) parametrized along the probability simplex.

Landscape Geometry and Optimizer Performance

We bound our empirical analysis utilizing K=3K=3 distinct basis components (f0,f1,f2)(f_0,f_1,f_2) mapped across ∣S∣=2|S|=2 available internal states. By scanning the 2-degrees-of-freedom parametrized variables (θ0,θ1)(\theta_0,\theta_1) spanning θ∈Δ2\theta\in\Delta^2, we calculate the continuous total reward bounds evaluated iteratively across independent episodes (Figure 1).

Total Expected Reward Landscape and Optimizer Trajectories

Figure 1. The evaluated total reward plot parameterized empirically over the fθf_\theta convex combination simplex. Heavily penalized stochastic regions create strict isolation bounds.

As logged in Table 1, local-gradient Zeroth-Order Optimization (ZOO) actively traps within sub-optimal fif_i compositions. Activating global Bayesian Optimization (BO) leverages statistical exploitation to securely bypass these gradient walls, isolating the best combinatorial parameters equivalent optimally to the finite exhaustive limit calculated.

MethodMax Reward
Grid Search (Theoretical Max)0.474
Bayesian Optimization (BO)0.474
Zeroth-Order Ascent (ZOO)0.191

Table 1. Total Reward Optimizer Performance (∣S∣=2|S|=2, K=3K=3)

Impact of Kernel Parametrization

We analyze how dynamically isolating the basis kernels fif_i determines the absolute global convergence maximum available structurally (Table 2). The base formulation of structurally divergent fif_i mappings provides fθf_\theta strong capacity bounds. Reconstituting the dictionary fif_i completely using identically redundant copies (degenerate parameterization) uniformly eliminates all topological optimization potential, sealing maximum output equivalent strictly to identical combinations. Populating the candidate bases naively with strict independent uniform noise vectors immediately plummets the fθf_\theta matrix directly into severely generalized negative penalties computationally independent of standard search limits, indicating the value of side information about “good” kernels to seed the agent design framework.

Kernel Component MatricesMax Reward
Orthogonal Baseline Candidates0.474
Identical Degenerate Mappings0.462
Uniform Pure Noise Kernels-0.453

Table 2. Total Reward Peak Objective across Parameter Bases

Role of Exploratory Behavioral Policy

Data collection fundamentally structures algorithm evaluation validity. Utilizing biased or deterministic behavioral selection mappings (πb\pi_b) drastically minimizes the state-action data trajectory breadth compiled to the discrete inner-loop planner buffer (Table 3), algorithmically crippling the soft QQ-learning estimates regardless of optimum candidate kernels fif_i. Applying identically uniform random exploration naively secures standard global bounds across limited dimensionalities inherently.

Action Sampling BiasMax Reward
Uniform (0.33, 0.33, 0.33)0.489
Minor Metric Bias (0.6, 0.2, 0.2)0.469
Severe Trajectory Bias (0.9, 0.05, 0.05)0.448

Table 3. Effect of Directed Trajectory Policy πb\pi_b

State Capacity Bounds

Finally, we illustrate mathematically how limiting the generalized internal memory cardinality bounds total configuration optimization potential irrespective of available fif_i elements iteratively applied. By evaluating fθ=∑i=13θifif_\theta= \sum_{i=1}^{3} \theta_i f_i across sequentially scaling dimensions of available internal agent state sets ∣S∣|S|, we directly plot structural memory ceilings. Formally expanding the available capacity limits maps a direct continuous scaling improvement metric optimally over θ\theta bounds (Figure 2). The total reward generated strictly climbs linearly as the matrix expands functionality, precisely matching limits and completely flattening out for bounds ∣S∣>3|S| > 3 exactly as logically dictated by satisfying the true native 3-environment targets fully securely. Additional dimensionality provides objectively zero generalized mathematical tracking progression.

Capacity Structuring: Total Reward vs State Space Size

Figure 2. Total empirical expected reward evaluated monotonically maximizing iteratively as the cardinality of the internal state space linearly expands to encompass the correct environment requirements inherently.

Conclusions

In this paper, we considered the question of an agent optimizing its own transition kernel among a collection of agent states affected through its actions, playing against an unknown possibly non-Markovian environment. Given a parametrized set of transition kernels, we showed that for every choice of that parameter, a soft QQ-iteration converges almost surely to the fixed point of a soft Bellman equation built from the stationary averages that the behavioral policy induces, and we delineated what separates the policy it yields from an optimal one. Then, we considered the question of optimizing the parameter choice through zeroth-order optimization and Bayesian optimization methods. For POMDP environments, we obtained convergence to stationary points and global sub-linear regret, respectively.

There are several interesting directions for future research. Our current study only considers the case where the dataset obtained via a behavioral policy remains fixed throughout. When the agent is learning to act against an unknown environment, it can leverage the flexibility of using newly learned policies to collect further data. We want to analyze the performance of such an adaptive agent. In our analysis, the agent keeps the cardinality of the agent state space constant. In practice, the agent can even tweak that cardinality over time. We are keen to analyze the performance of such adaptation. Finally, our work only considers a simple agent acting against an unknown but stationary non-Markovian environment. We hope to study interactions between two or more such adaptive agents playing against a known/unknown dynamic environment. This takes an alternative view point for agents acting in partial information environment as opposed to the common information based approach [13], information compression [12] or persuasion [19, 18, 22, 20, 21].

References

  1. [1][AES25] Ameya Anjarlеkar, S Rasoul Etesami, and R Srikant. Scalable policy-based rl algorithms for POMDPs. In The Thirty-Ninth Annual Conference on Neural Information Processing Systems, 2025.arxiv.org/abs/2510.06540
  2. [2][Ast65] Karl Johan Astrom. Optimal control of Markov processes with incomplete state information. Journal of Mathematical Analysis and Applications, 10:174–205, 1965.
  3. [3][Boro8] Vivek S Borkar. Stochastic Approximation: A Dynamical Systems Viewpoint, volume 100. Springer, 2008.
  4. [4][CSBD24] Siddharth Chandak, Pratik Shah, Vivek S Borkar, and Parth Dodhia. Reinforcement learning in non-Markovian environments. Systems & Control Letters, 185:105751, 2024.
  5. [5][DJWW15] John C Duchi, Michael I Jordan, Martin J Wainwright, and Andre Wibisono. Optimal rates for zero-order convex optimization: The power of two function evaluations. IEEE Transactions on Information Theory, 61(5):2788–2806, 2015.
  6. [6][DRZ22] Shi Dong, Benjamin Van Roy, and Zhengyuan Zhou. Simple agent, complex environment: Efficient reinforcement learning with agent states. Journal of Machine Learning Research, 23(255):1–54, 2022.arxiv.org/abs/2102.05261
  7. [7][FKM04] Abraham D Flaxman, Adam Tauman Kalai, and H Brendan McMahan. Online convex optimization in the bandit setting: gradient descent without a gradient. arXiv preprints cs/0408007, 2004.
  8. [8][GL13] Saeed Ghadimi and Guanghui Lan. Stochastic first-and zeroth-order methods for nonconvex stochastic programming. SIAM Journal on Optimization, 23(4):2341–2368, 2013.arxiv.org/abs/1309.5549
  9. [9][HZAL18] Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In International Conference on Machine Learning, pages 1861–1870. Pmlr, 2018.
  10. [10][KLC98] Leslie Pack Kaelbling, Michael L Littman, and Anthony R Cassandra. Planning and acting in partially observable stochastic domains. Artificial intelligence, 101(1-2):99–134, 1998.
  11. [11][KY23] Ali Devran Kara and Serdar Yüksel. Convergence of finite memory Q-learning for POMDPs and near optimality of learned policies under filter stability. Mathematics of Operations Research, 48(4):2066–2093, 2023.
  12. [12][MZMB20] Weichao Mao, Kaiqing Zhang, Erik Miehling, and Tamer Başar. Information state embedding in partially observable cooperative multi-agent reinforcement learning. In 2020 59th IEEE Conference on Decision and Control (CDC), pages 6124–6131. IEEE, 2020.
  13. [13][NGLB13] Ashutosh Nayyar, Abhishek Gupta, Cedric Langbort, and Tamer Başar. Common information based Markov perfect equilibria for stochastic games with asymmetric information: Finite games. IEEE Transactions on Automatic Control, 59(3):555–570, 2013.arxiv.org/abs/1401.4786
  14. [14]Joelle Pineau, Geoff Gordon, Sebastian Thrun, et al. Point-based value iteration: An anytime algorithm for POMDPs. In Ijcai, volume 3, pages 1025–1032, 2003.
  15. [15]Niranjan Srinivas, Andreas Krause, Sham M Kakade, and Matthias Seeger. Gaussian process optimization in the bandit setting: No regret and experimental design. arXiv preprint arXiv:0912.3995, 2009.DOI
  16. [16]Amit Sinha and Aditya Mahajan. Agent-state based policies in POMDPs: Beyond belief-state MDPs. In 2024 IEEE 63rd Conference on Decision and Control (CDC), pages 6722–6735. IEEE, 2024.arxiv.org/abs/2409.15703
  17. [17]Jayakumar Subramanian, Amit Sinha, Raihan Seraj, and Aditya Mahajan. Approximate information state for approximate planning and reinforcement learning in partially observed systems. Journal of Machine Learning Research, 23(12):1–83, 2022.
  18. [18]Raj Kiriti Velicheti, Melih Bastopcu, and Tamer Başar. Strategic information design in quadratic multidimensional persuasion games with two senders. In 2023 American Control Conference (ACC), pages 1716–1722. IEEE, 2023.DOI
  19. [19]Raj Kiriti Velicheti, Melih Bastopcu, and Tamer Başar. Value of information in games with multiple strategic information providers. IEEE Transactions on Automatic Control, 70(7):4532–4547, 2025.
  20. [20]Raj Kiriti Velicheti, Subhonmesh Bose, and Tamer Başar. Harnessing information in incentive design. In 2025 IEEE 64th Conference on Decision and Control (CDC), pages 7286–7291. IEEE, 2025.arxiv.org/abs/2509.02493
  21. [21]Raj Kiriti Velicheti, Subhonmesh Bose, and Tamer Başar. Learning against a strategic agent in principal-agent games. In AIMS Workshop at the International Conference on Learning Representations (ICLR), 2026.
  22. [22]Raj Kiriti Velicheti, Melih Bastopcu, S Rasoul Etesami, and Tamer Başar. Learning how to strategically disclose information. In 2024 American Control Conference (ACC), pages 1604–1609. IEEE, 2024.arxiv.org/abs/2403.08741
  23. [23]Serdar Yüksel and Tamer Başar. Stochastic Teams, Games, and Control under Information Constraints. Springer, 2024.DOI

Paper details

vlnc:W_v9v7rv7w
Version
v1 · latest
Published
Added
License
CC BY 4.0
Usage

views · 11

downloads · 0

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

  • Engineering

Not recorded for this paper

View statement
Looking for related papers…
Contents