DZ~/duo-zhou
← All research notes

RESEARCH NOTE / November 7, 2026

DR-SAC: Robust to the Worst Plausible World, Cheaply

The bottleneck in distributionally robust RL is not defining the worst-case transition model, but making the worst-case soft Bellman backup computable: KL duality, decomposable functional optimization, and a conditional transition VAE turn an infinite-dimensional measure problem into a five-step update inside Soft Actor-Critic.

Distributionally Robust OptimizationOffline Reinforcement LearningSoft Actor-CriticContinuous Control

DR-SAC: Distributionally Robust Soft Actor-Critic for Reinforcement Learning under Uncertainty · ICLR 2026

Mingxuan Cui*, Duo Zhou*†, Yuxuan Han, Grani A. Hanasusanto, Qiong Wang, Huan Zhang, Zhengyuan Zhou

OpenReview · arXiv · PDF · Code · Project page

In distributionally robust reinforcement learning (DR-RL), writing down the worst-case objective is straightforward: replace the single transition kernel of a Markov Decision Process with an ambiguity set of plausible kernels around the nominal dynamics, and evaluate the policy against the worst transition model in that set. The real obstacle is computational. Inside an actor-critic loop over continuous state and action spaces, a worst-case Bellman backup requires minimizing expected next-state value over an infinite-dimensional family of probability measures at every state-action pair—and doing so from a static offline dataset without ever querying a simulator.

DR-SAC makes the worst-case soft Bellman backup computable at actor-critic scale. Kullback–Leibler (KL) strong duality first collapses the infinite-dimensional inner infimum over transition kernels into a one-dimensional concave search over a scalar temperature β≥0\beta \ge 0 evaluated strictly under the nominal transition model. Decomposable functional optimization then replaces the per-sample scalar searches across the replay buffer with a single shared dual network trained in five gradient steps per critic update, while a conditional Variational Autoencoder (VAE) supplies the local transition samples needed to prevent the nonlinear KL dual from degenerating on continuous offline data. Paper, Sections 1 and 3.

Diagram of the three reductions in DR-SAC: (1) KL strong duality reduces the infinite-dimensional measure infimum to a 1D scalar search over beta under the nominal kernel; (2) L1 decomposable interchange replaces per-(s,a) SciPy solves with a shared dual network g_eta updated in 5 gradient steps; (3) a conditional transition VAE draws m next-state samples per (s,a) to prevent single-sample log-exp cancellation.
The three obstructions between the Robust MDP objective and an offline continuous-action actor-critic algorithm, paired with the exact reduction DR-SAC uses at each stage.

1. Why nominal-model offline RL breaks under shift

Consider a discounted continuous-state, continuous-action Markov Decision Process M=(S,A,R,P,γ)\mathcal{M} = (\mathcal{S}, \mathcal{A}, R, P, \gamma) with bounded reward r=R(s,a)∈[0,Rmax⁡]r = R(s,a) \in [0, R_{\max}], transition kernel ps,a=P(⋅∣s,a)∈Δ(S)p_{s,a} = P(\cdot \mid s,a) \in \Delta(\mathcal{S}), discount factor γ∈[0,1)\gamma \in [0, 1), and stochastic policy π:S→Δ(A)\pi : \mathcal{S} \to \Delta(\mathcal{A}). Maximum entropy reinforcement learning augments reward with policy entropy H(π(s))=Ea∼π(⋅∣s)[−log⁡π(a∣s)]\mathcal{H}(\pi(s)) = \mathbb{E}_{a \sim \pi(\cdot \mid s)}[-\log \pi(a \mid s)] weighted by temperature α≥0\alpha \ge 0, defining the soft value function

VMπ(s)=E ⁣[ ∑t=1∞γt−1 ⁣(rt+α H(π(st)))  ∣  π, s1=s ]V_{\mathcal{M}}^\pi(s) = \mathbb{E}\!\left[\, \sum_{t=1}^{\infty} \gamma^{t-1}\!\left(r_t + \alpha \, \mathcal{H}(\pi(s_t))\right) \;\mid\; \pi,\, s_1 = s \,\right]

and soft action-value function QMπ(s,a)Q_{\mathcal{M}}^\pi(s,a). Soft Actor-Critic (SAC) alternates policy evaluation under the nominal soft Bellman operator

TπQ(s,a)=E[r]+γ Es′∼ps,a, a′∼π(⋅∣s′) ⁣[Q(s′,a′)−αlog⁡π(a′∣s′)]\mathcal{T}^\pi Q(s,a) = \mathbb{E}[r] + \gamma \, \mathbb{E}_{s' \sim p_{s,a},\, a' \sim \pi(\cdot \mid s')}\!\left[Q(s',a') - \alpha \log \pi(a' \mid s')\right]

with Boltzmann policy improvement πk+1=argmin⁡π∈ΠDKL ⁣(π(⋅∣s) ∥ exp⁡(1αQMπk(s,⋅))/Z(s))\pi_{k+1} = \operatorname{argmin}_{\pi \in \Pi} D_{\mathrm{KL}}\!\left(\pi(\cdot \mid s) \,\Vert\, \exp(\frac{1}{\alpha}Q_{\mathcal{M}}^{\pi_k}(s,\cdot)) / Z(s)\right). Paper, Section 2.1, Equations (1)–(5).

In offline RL, the agent has access only to a static dataset D={(si,ai,ri,si′)}i=1N\mathcal{D} = \{(s_i, a_i, r_i, s_i')\}_{i=1}^N of N=106N = 10^6 transitions drawn from a nominal environment P0={ps,a0}(s,a)∈S×AP^0 = \{p_{s,a}^0\}_{(s,a)\in\mathcal{S}\times\mathcal{A}} under a behavior policy distribution μ\mu. Because Tπ\mathcal{T}^\pi trusts ps,a0p_{s,a}^0 as exact, the critic and actor tune actions to the nominal dynamics. When deployment shifts the physical plant—changing pendulum length or mass, joint damping or stiffness in MuJoCo locomotion, thruster power or wind on a lander, or injecting sensor and actuator noise—trajectories visit transitions where the nominal value estimate was overly optimistic, and return degrades steeply. Paper, Sections 1, 2.2, and 4.2.

Prior distributionally robust RL methods do not close this gap for continuous control:

  • Tabular DR-RL relies on enumerating state-action pairs or empirical transition frequencies, which is impossible when S\mathcal{S} and A\mathcal{A} are continuous.
  • Robust Fitted Q-Iteration (RFQI) extends offline DR-RL beyond tabular settings using a Total Variation (TV) ambiguity set on top of Fitted Q-Iteration (FQI) and Batch-Constrained Q-learning (BCQ). However, value-based FQI learns deterministic policies, scales poorly in continuous action spaces, and is brittle to dataset action coverage: on both Pendulum and HalfCheetah, FQI and RFQI fail even in the unperturbed nominal environment when trained on ϵ\epsilon-greedy offline datasets. Paper, Sections 1 and 4.2.

2. The distributionally robust soft Bellman operator

To protect against transition mismatch without sacrificing maximum-entropy actor-critic learning, DR-SAC formulates a Robust Markov Decision Process Mδ=(S,A,R,P(δ),γ)\mathcal{M}_\delta = (\mathcal{S}, \mathcal{A}, R, \mathcal{P}(\delta), \gamma) over an (s,a)(s,a)-rectangular ambiguity set P(δ)=∏(s,a)∈S×APs,a(δ)\mathcal{P}(\delta) = \prod_{(s,a)\in\mathcal{S}\times\mathcal{A}} \mathcal{P}_{s,a}(\delta). Around each nominal transition kernel ps,a0p_{s,a}^0, the plausible deployment kernels lie in a KL-divergence ball of radius δ>0\delta > 0:

Ps,a(δ):={ ps,a∈Δ(S):DKL ⁣(ps,a ∥ ps,a0)≤δ },DKL(P ∥ Q)=EP ⁣[log⁡P(x)Q(x)].\mathcal{P}_{s,a}(\delta) := \left\{\, p_{s,a} \in \Delta(\mathcal{S}) : D_{\mathrm{KL}}\!\left(p_{s,a} \,\Vert\, p_{s,a}^0\right) \le \delta \,\right\}, \qquad D_{\mathrm{KL}}(P \,\Vert\, Q) = \mathbb{E}_P\!\left[\log \frac{P(x)}{Q(x)}\right].

The distributionally robust soft value and soft QQ-function evaluate a policy π\pi against the worst transition kernel p∈P(δ)p \in \mathcal{P}(\delta):

VMδπ(s)=inf⁡p∈P(δ)Ep ⁣[ ∑t=1∞γt−1 ⁣(rt+α H(π(st)))  ∣  π, s1=s ],V_{\mathcal{M}_\delta}^\pi(s) = \inf_{p \in \mathcal{P}(\delta)} \mathbb{E}_p\!\left[\, \sum_{t=1}^{\infty} \gamma^{t-1}\!\left(r_t + \alpha \, \mathcal{H}(\pi(s_t))\right) \;\mid\; \pi,\, s_1 = s \,\right], QMδπ(s,a)=inf⁡p∈P(δ)Ep ⁣[ r1+∑t=2∞γt−1 ⁣(rt+α H(π(st)))  ∣  π, s1=s, a1=a ].Q_{\mathcal{M}_\delta}^\pi(s,a) = \inf_{p \in \mathcal{P}(\delta)} \mathbb{E}_p\!\left[\, r_1 + \sum_{t=2}^{\infty} \gamma^{t-1}\!\left(r_t + \alpha \, \mathcal{H}(\pi(s_t))\right) \;\mid\; \pi,\, s_1 = s,\, a_1 = a \,\right].

By (s,a)(s,a)-rectangularity, dynamic programming holds and QMδπQ_{\mathcal{M}_\delta}^\pi is the fixed point of the distributionally robust soft Bellman operator:

TδπQ(s,a):=E[r]+γinf⁡ps,a∈Ps,a(δ)Es′∼ps,a, a′∼π(⋅∣s′) ⁣[Q(s′,a′)−αlog⁡π(a′∣s′)].\mathcal{T}_\delta^\pi Q(s,a) := \mathbb{E}[r] + \gamma \inf_{p_{s,a} \in \mathcal{P}_{s,a}(\delta)} \mathbb{E}_{s' \sim p_{s,a},\, a' \sim \pi(\cdot \mid s')}\!\left[Q(s',a') - \alpha \log \pi(a' \mid s')\right].

Paper, Section 2.2, Equations (6)–(9), and Section 3.1, Equation (10).

Equation (10) isolates the algorithmic difficulty. Every application of Tδπ\mathcal{T}_\delta^\pi requires solving an inner minimization over probability measures ps,a∈Δ(S)p_{s,a} \in \Delta(\mathcal{S}) constrained by DKL(ps,a ∥ ps,a0)≤δD_{\mathrm{KL}}(p_{s,a} \,\Vert\, p_{s,a}^0) \le \delta. Over a continuous state space S\mathcal{S}, that inner problem is infinite-dimensional at each (s,a)(s,a).

3. Duality and functional optimization turn an inner kernel search into a shared scalar update

3.1 KL strong duality eliminates the adversarial kernel

Define the soft state value under the current critic and policy:

V(s)=Ea∼π(⋅∣s) ⁣[Q(s,a)−αlog⁡π(a∣s)].V(s) = \mathbb{E}_{a \sim \pi(\cdot \mid s)}\!\left[Q(s,a) - \alpha \log \pi(a \mid s)\right].

Writing inf⁡ps,a∈Ps,a(δ)Eps,a[V(s′)]=−sup⁡ps,a∈Ps,a(δ)Eps,a[−V(s′)]\inf_{p_{s,a} \in \mathcal{P}_{s,a}(\delta)} \mathbb{E}_{p_{s,a}}[V(s')] = -\sup_{p_{s,a} \in \mathcal{P}_{s,a}(\delta)} \mathbb{E}_{p_{s,a}}[-V(s')] and applying strong duality for KL-constrained worst-case expectations (Hu & Hong, 2013, Lemma B.1; valid because bounded rewards and γ∈[0,1)\gamma \in [0,1) keep V(s′)V(s') bounded with a finite moment generating function around zero), Proposition 3.3 rewrites the primal operator in exact dual form:

TδπQ(s,a)=E[r]+γsup⁡β≥0{−βlog⁡ ⁣(Es′∼ps,a0 ⁣[exp⁡ ⁣(−V(s′)β)])−βδ}.\mathcal{T}_\delta^\pi Q(s,a) = \mathbb{E}[r] + \gamma \sup_{\beta \ge 0} \left\{ -\beta \log\!\left(\mathbb{E}_{s' \sim p_{s,a}^0}\!\left[\exp\!\left(-\frac{V(s')}{\beta}\right)\right]\right) - \beta \delta \right\}.

Paper, Proposition 3.3, Equations (11)–(12), and Appendix B.1.

This identity accomplishes two things at once:

  1. The inner optimization drops from infinite dimensions to one scalar. At each (s,a)(s,a), the adversarial distribution disappears; the solver searches only over a non-negative dual temperature β≥0\beta \ge 0.
  2. Expectations are taken strictly under the nominal transition kernel ps,a0p_{s,a}^0. Rather than constructing perturbed transition kernels in P(δ)\mathcal{P}(\delta), the backup reweights nominal next states exponentially via exp⁡(−V(s′)/β)\exp(-V(s')/\beta), placing higher effective mass on transitions with low continuation value V(s′)V(s').

Despite the nonlinear log-moment-generating-function form, the operator preserves the exact fixed-point geometry needed for actor-critic learning:

  • γ\gamma-contraction (Proposition 3.4): For any two bounded critics Q1,Q2Q_1, Q_2 with soft values V1,V2V_1, V_2, monotonicity of the log-exponential functional Fβ(V)=−βlog⁡Eps,a0[exp⁡(−V(s′)/β)]−βδF_\beta(V) = -\beta \log \mathbb{E}_{p_{s,a}^0}[\exp(-V(s')/\beta)] - \beta\delta ensures ∣Fβ(V1)−Fβ(V2)∣≤∥V1−V2∥∞\vert F_\beta(V_1) - F_\beta(V_2)\vert \le \Vert V_1 - V_2 \Vert_\infty for every β>0\beta > 0, while at the boundary β⋆=0\beta^\star = 0 (which occurs if and only if ps,a0p_{s,a}^0 places sufficient mass κ>0\kappa > 0 with log⁡κ+δ≥0\log \kappa + \delta \ge 0 on ess inf⁡s′∼ps,a0V(s′)\operatorname{ess\,inf}_{s'\sim p_{s,a}^0} V(s'), by Lemma B.2) the objective reduces to the essential infimum. Across all three optimality cases (β1⋆=β2⋆=0\beta_1^\star = \beta_2^\star = 0; one zero and one positive; both positive), ∥TδπQ1−TδπQ2∥∞≤γ∥Q1−Q2∥∞\Vert \mathcal{T}_\delta^\pi Q_1 - \mathcal{T}_\delta^\pi Q_2 \Vert_\infty \le \gamma \Vert Q_1 - Q_2 \Vert_\infty. Iterative application Qk+1=TδπQkQ^{k+1} = \mathcal{T}_\delta^\pi Q^k therefore converges globally to QMδπQ_{\mathcal{M}_\delta}^\pi. Paper, Proposition 3.4 and Appendix B.2.
  • Monotonic policy improvement and convergence (Proposition 3.5 and Theorem 3.6): Updating the policy via the KL projection
πk+1=argmin⁡π∈ΠDKL ⁣(π(⋅∣s)  ∥  exp⁡ ⁣(1αQMδπk(s,⋅))Zπk(s))\pi_{k+1} = \operatorname{argmin}_{\pi \in \Pi} D_{\mathrm{KL}}\!\left(\pi(\cdot \mid s) \;\Vert\; \frac{\exp\!\left(\frac{1}{\alpha} Q_{\mathcal{M}_\delta}^{\pi_k}(s,\cdot)\right)}{Z^{\pi_k}(s)}\right)

guarantees QMδπk+1(s,a)≥QMδπk(s,a)Q_{\mathcal{M}_\delta}^{\pi_{k+1}}(s,a) \ge Q_{\mathcal{M}_\delta}^{\pi_k}(s,a) for all (s,a)∈S×A(s,a) \in \mathcal{S}\times\mathcal{A} under ∣A∣<∞\vert \mathcal{A}\vert < \infty, and alternating DR soft policy evaluation with DR soft policy improvement converges to the distributionally robust optimal policy π⋆\pi^\star. Paper, Section 3.1, Equations (13)–(14), and Appendices B.3–B.4.

3.2 Decomposable functional optimization removes the per-sample inner loop

Collapsing the inner problem to a scalar β≥0\beta \ge 0 makes a single backup tractable, but a naive implementation (DR-SAC-Accurate) must still run a separate 1D numerical optimization for every (s,a)(s,a) pair in every mini-batch. On Pendulum, solving Equation (11) per sample via SciPy takes 260 minutes for 8,000 training steps, compared with 1.7 minutes for 10,000 steps of standard SAC—over 150×150\times slower. Paper, Section 4.3.1 and Appendix C.3.1, Table 5.

DR-SAC eliminates the per-sample solver by pulling the supremum over β\beta outside the dataset expectation. Let

f ⁣((s,a),β):=−βlog⁡ ⁣(Es′∼ps,a0 ⁣[exp⁡ ⁣(−V(s′)β)])−βδ.f\!\left((s,a), \beta\right) := -\beta \log\!\left(\mathbb{E}_{s' \sim p_{s,a}^0}\!\left[\exp\!\left(-\frac{V(s')}{\beta}\right)\right]\right) - \beta \delta.

Because V(s′)∈[0, Vmax⁡]V(s') \in [0,\, V_{\max}] with Vmax⁡=(Rmax⁡+αlog⁡∣A∣)/(1−γ)V_{\max} = (R_{\max} + \alpha \log \vert\mathcal{A}\vert)/(1-\gamma) and the primal value satisfies f((s,a),β⋆)=inf⁡ps,a∈Ps,a(δ)E[V(s′)]≥0f((s,a), \beta^\star) = \inf_{p_{s,a} \in \mathcal{P}_{s,a}(\delta)} \mathbb{E}[V(s')] \ge 0, any β>Vmax⁡/δ\beta > V_{\max}/\delta yields f((s,a),β)≤Vmax⁡−βδ<0f((s,a),\beta) \le V_{\max} - \beta\delta < 0 and can never be optimal. The pointwise optimal multiplier β⋆(s,a)\beta^\star(s,a) is therefore uniformly bounded in the compact interval [0,Vmax⁡/δ][0, V_{\max}/\delta]. Defining the admissible function space on (S×A,Σ(S×A),μ)(\mathcal{S}\times\mathcal{A}, \Sigma(\mathcal{S}\times\mathcal{A}), \mu),

G:={ g∈L1(S×A,Σ(S×A),μ):g(s,a)∈[0,  Rmax⁡+αlog⁡∣A∣(1−γ)δ],  ∀(s,a)∈S×A },\mathcal{G} := \left\{\, g \in L^1(\mathcal{S}\times\mathcal{A}, \Sigma(\mathcal{S}\times\mathcal{A}), \mu) : g(s,a) \in \left[0,\; \frac{R_{\max} + \alpha \log \vert\mathcal{A}\vert}{(1-\gamma)\delta}\right],\; \forall (s,a) \in \mathcal{S}\times\mathcal{A} \,\right\},

f((s,a),β)f((s,a),\beta) is a finite-valued normal integrand (measurable in (s,a)(s,a) and continuous in β\beta). Applying Rockafellar and Wets’s interchange of minimization and integration in decomposable spaces (Lemma B.4), Proposition 3.7 establishes the exact functional identity:

E(s,a)∼D ⁣[sup⁡β≥0f ⁣((s,a),β)]=sup⁡g∈GE(s,a)∼D ⁣[ f ⁣((s,a),g(s,a)) ].\mathbb{E}_{(s,a) \sim \mathcal{D}}\!\left[\sup_{\beta \ge 0} f\!\left((s,a), \beta\right)\right] = \sup_{g \in \mathcal{G}} \mathbb{E}_{(s,a) \sim \mathcal{D}}\!\left[\, f\!\left((s,a), g(s,a)\right) \,\right].

Paper, Section 3.2, Equations (15)–(17), and Appendix B.5.

Substituting a parameterized neural network g∈Gηg \in \mathcal{G}_\eta for the pointwise scalar β\beta defines the functional DR soft Bellman operator:

Tδ,gπQ(s,a):=E[r]+γ{−g(s,a)log⁡ ⁣(Es′∼ps,a0 ⁣[exp⁡ ⁣(−V(s′)g(s,a))])−g(s,a)δ}.\mathcal{T}_{\delta, g}^\pi Q(s,a) := \mathbb{E}[r] + \gamma \left\{ -g(s,a) \log\!\left(\mathbb{E}_{s' \sim p_{s,a}^0}\!\left[\exp\!\left(-\frac{V(s')}{g(s,a)}\right)\right]\right) - g(s,a)\delta \right\}.

Instead of solving ∣D∣\vert\mathcal{D}\vert independent scalar optimizations per update, DR-SAC updates η\eta jointly across the mini-batch to maximize E(s,a)∼D[f~((s,a),g(s,a))]\mathbb{E}_{(s,a)\sim\mathcal{D}}[\widetilde{f}((s,a), g(s,a))] in just 5 gradient steps. Paper, Section 3.2, Equation (18), and Section 4.3.1.

4. Making it work offline: the double-sampling trap and generative transitions

4.1 Why naive offline ERM collapses under KL duality

In offline RL, ps,a0p_{s,a}^0 is unknown; we only observe transitions (si,ai,ri,si′)∈D(s_i, a_i, r_i, s_i') \in \mathcal{D}. Under a Total Variation ambiguity set (as in RFQI), the dual Bellman operator is linear in ps,a0p_{s,a}^0, so standard single-sample Empirical Risk Minimization (ERM) over D\mathcal{D} is unbiased.

Under a KL ambiguity set, the dual objective f((s,a),g(s,a))f((s,a), g(s,a)) applies a nonlinear −log⁡(⋅)-\log(\cdot) outside the inner expectation Es′∼ps,a0[exp⁡(−V(s′)/g(s,a))]\mathbb{E}_{s' \sim p_{s,a}^0}[\exp(-V(s')/g(s,a))]. Attempting to estimate both the outer dataset expectation and the inner transition expectation directly from D\mathcal{D} triggers the classic double-sampling issue (Baird, 1995):

  • Disjoint conditional sample sets are empty in continuous spaces. Splitting the dataset into Dout\mathcal{D}_{\mathrm{out}} and Din\mathcal{D}_{\mathrm{in}} and forming the conditional sample set D(s,a)={(sˉ,aˉ,sˉ′)∈D:(sˉ,aˉ)=(s,a)}\mathcal{D}_{(s,a)} = \{(\bar{s}, \bar{a}, \bar{s}') \in \mathcal{D} : (\bar{s}, \bar{a}) = (s,a)\} yields the plug-in estimator:
J^(g):=1∣Dout∣∑(s,a,s′)∈Dout[−g(s,a)log⁡ ⁣(1∣D(s,a)∣∑(sˉ,aˉ,sˉ′)∈D(s,a)exp⁡ ⁣(−V(sˉ′)g(s,a)))−g(s,a)δ].\widehat{J}(g) := \frac{1}{\vert\mathcal{D}_{\mathrm{out}}\vert} \sum_{(s,a,s') \in \mathcal{D}_{\mathrm{out}}} \left[ -g(s,a) \log\!\left(\frac{1}{\vert\mathcal{D}_{(s,a)}\vert} \sum_{(\bar{s},\bar{a},\bar{s}') \in \mathcal{D}_{(s,a)}} \exp\!\left(-\frac{V(\bar{s}')}{g(s,a)}\right)\right) - g(s,a)\delta \right].
  • Single-sample evaluation cancels the logarithm and exponential. In continuous state and action spaces, the probability of visiting the exact same (s,a)(s,a) pair twice in a finite dataset is zero, so D(s,a)\mathcal{D}_{(s,a)} is either empty (if split disjointly) or contains only the single recorded transition si′s_i' (mi=1m_i = 1). With a single sample si′s_i' inside the logarithm, log⁡\log and exp⁡\exp cancel identically:
−g(si,ai)log⁡ ⁣(exp⁡ ⁣(−V(si′)g(si,ai)))−g(si,ai)δ=V(si′)−g(si,ai)δ.-g(s_i, a_i) \log\!\left(\exp\!\left(-\frac{V(s_i')}{g(s_i, a_i)}\right)\right) - g(s_i, a_i)\delta = V(s_i') - g(s_i, a_i)\delta.

Because g(si,ai)≥0g(s_i, a_i) \ge 0 and δ>0\delta > 0, maximizing V(si′)−g(si,ai)δV(s_i') - g(s_i, a_i)\delta drives the dual multiplier to g⋆(si,ai)=0g^\star(s_i, a_i) = 0 everywhere, collapsing the robust operator back into the non-robust Bellman backup. As Equation (25) of the paper shows, the exact per-sample operator Tδπ\mathcal{T}_\delta^\pi suffers from the identical cancellation if estimated with one next state per (s,a)(s,a). Paper, Section 3.2 and Appendix A.1, Equations (23)–(25).

4.2 Conditional transition VAE and the explicit V-network

To evaluate the inner expectation without a simulator or repeated state-action visits, DR-SAC trains a conditional Variational Autoencoder (VAE) parameterized by φ\varphi on (s,a,s′)∈D(s, a, s') \in \mathcal{D} to approximate ps,a0p_{s,a}^0. With latent prior p(z)=N(0,I)p(z) = \mathcal{N}(0, I), encoder qφ(z∣s,a,s′)q_\varphi(z \mid s, a, s'), and decoder reconstructing s^′\hat{s}' from (s,a,z)(s, a, z), the VAE minimizes the ELBO loss:

JVAE(φ)=Eqφ(z∣s,a,s′) ⁣[∥s′−s^′∥2]+DKL ⁣(qφ(z∣s,a,s′) ∥ N(0,I)).J_{\mathrm{VAE}}(\varphi) = \mathbb{E}_{q_\varphi(z \mid s,a,s')}\!\left[\Vert s' - \hat{s}' \Vert^2\right] + D_{\mathrm{KL}}\!\left(q_\varphi(z \mid s,a,s') \,\Vert\, \mathcal{N}(0, I)\right).

At each gradient step, for every (s,a)(s,a) in the mini-batch, the decoder draws mm synthetic next states {s~i′}i=1m\{\tilde{s}_i'\}_{i=1}^m to form the local empirical measure p~s,a0\tilde{p}_{s,a}^0, yielding the empirical DR soft Bellman operator:

T~δ,gπQ(s,a):=E[r]+γ f~ ⁣((s,a),g(s,a)),f~ ⁣((s,a),β)=−βlog⁡ ⁣(1m∑i=1mexp⁡ ⁣(−Vψˉ(s~i′)β))−βδ.\widetilde{\mathcal{T}}_{\delta, g}^\pi Q(s,a) := \mathbb{E}[r] + \gamma \, \widetilde{f}\!\left((s,a), g(s,a)\right), \qquad \widetilde{f}\!\left((s,a), \beta\right) = -\beta \log\!\left(\frac{1}{m}\sum_{i=1}^m \exp\!\left(-\frac{V_{\bar{\psi}}(\tilde{s}_i')}{\beta}\right)\right) - \beta \delta.

Paper, Section 3.2, Equations (19)–(20), and Appendix A.2, Equations (27) and (30).

Two architectural details in Section 3.3 and Appendix C.3.3 make this empirical operator stable on offline continuous-control datasets:

  1. Retaining an explicit state-value network Vψ(s)V_\psi(s) (SAC-v1) rather than dropping it (SAC-v2). Later online SAC variants remove VψV_\psi and estimate target values directly from Qθˉ(s′,a′)Q_{\bar{\theta}}(s', a'). In offline learning, however, removing VψV_\psi makes training sensitive to mismatch between the learned policy and the dataset’s behavior policy: on Pendulum with a TD3-generated dataset, SAC with an explicit VV-network stabilizes quickly around an average reward of −150-150, whereas SAC without a VV-network fluctuates heavily and never exceeds −200-200. In DR-SAC, the target network Vψˉ(s~i′)V_{\bar{\psi}}(\tilde{s}_i') also scores all mm VAE-drawn next states directly inside the log-sum-exp without drawing and evaluating mm fresh actions through the critic ensemble. Paper, Section 3.3 and Appendix C.3.3, Figure 9.
  2. Diversified QQ-ensemble (SAC-N\text{SAC-}N). To curb offline overestimation bias, DR-SAC trains nn independent critics {Qθi}i=1n\{Q_{\theta_i}\}_{i=1}^n (n=2n = 2 on Pendulum, Cartpole, and LunarLander; n=5n = 5 on Reacher and HalfCheetah) against the robust target T~δ,g~⋆πQθ(s,a)\widetilde{\mathcal{T}}_{\delta, \widetilde{g}^\star}^\pi Q_\theta(s,a) and takes min⁡i∈[n]Qθˉi\min_{i \in [n]} Q_{\bar{\theta}_i} in the VV-network and actor updates. Paper, Section 3.3 and Appendix C.1, Table 2.

5. What robustness buys and what it costs

5.1 Robustness across five continuous-control environments

All methods are trained purely offline on N=106N = 10^6 transitions collected in the nominal environment (via ϵ\epsilon-greedy rollouts around TD3 or SAC behavior policies, with ϵ=0.5\epsilon = 0.5 on Pendulum, Cartpole, and LunarLander, and ϵ=0.3\epsilon = 0.3 on Reacher and HalfCheetah) and evaluated over 50 episodes across parameter, actuator, and observation shifts. Paper, Section 4.1 and Appendix C.1, Table 3.

EnvironmentAmbiguity RadiusPerturbation AxisHeadline Empirical Result
LunarLanderδ=0.25\delta = 0.25Joint main & side engine_power; linear wind_powerAt 20%20\% engine power shift, DR-SAC averages 240240 while SAC, CQL, FQI, and RFQI all drop below 180180; at 30%30\% engine power reduction, DR-SAC achieves 9.8×9.8\times the average reward of SAC.
Pendulumδ=0.50\delta = 0.50Pole length, mass, gravity, and heavy-tailed Cauchy state noise35%35\% higher average reward than SAC at 20%20\% length shift; >40%>40\% higher at 120%120\% mass shift; top curve across 40%40\% gravity shift and Cauchy noise scales.
Cartpole (continuous)δ=0.75\delta = 0.75Random actuator probability and Gaussian observation noiseAll models calibrated to 500500 nominal return; DR-SAC beats RFQI across random-action rates (<50%<50\%) and improves return by >75%>75\% over SAC and DDPG at observation noise σ∈{0.2,0.3}\sigma \in \{0.2, 0.3\}.
Reacher (MuJoCo)δ=0.20\delta = 0.20Gaussian state noise (dims 4–9) and joint_damping (2.0–7.0)Highest mean return across all observation noise and joint damping levels, with lower or comparable variance (Table 4).
HalfCheetah (MuJoCo)δ=0.20\delta = 0.20back_damping, front_damping, and front_stiffUnder up to 50%50\% back_damping shift, DR-SAC holds return above 6,3006{,}300 while SAC falls below 5,9505{,}950; up to 10%10\% gain at 80%80\% front_stiff shift.

Paper, Section 4.2, Figure 1, and Appendix C.2, Figures 4–6 and Table 4.

Six perturbation plots from the DR-SAC paper comparing DR-SAC against SAC, FQI, RFQI, DDPG, and CQL on Pendulum length, Cartpole action noise, LunarLander engine power, Reacher observation noise, Reacher joint damping, and HalfCheetah back damping.
Mean episode return over 50 evaluation rollouts (±0.5 standard deviation shaded) as deployment dynamics move away from the nominal offline training environment. [Paper, Figure 1].

5.2 Compute accounting: functional vs. exact dual, and DR-SAC vs. RFQI

The paper’s ablation tables quantify exactly where the computational time goes on identical hardware (Ubuntu 24.04 LTS, Intel Core i7-6850K CPU with 12 cores, 64 GB RAM, and one NVIDIA GTX 1080 Ti 11 GB GPU). Paper, Section 4.3.1 and Appendices C.1 and C.3.1.

Two-panel bar chart of training time and inner gradient descent steps from Tables 1, 5, and 6 of the DR-SAC paper. Panel A compares SAC, DR-SAC, FQI, and RFQI wall times on Cartpole, LunarLander, and Reacher. Panel B compares DR-SAC at 5 GD steps against RFQI at 5, 10, 100, and 1000 GD steps on LunarLander, plus the Pendulum accurate vs functional ablation.
Wall-clock training times and inner dual optimization steps from Tables 1, 5, and 6 of the paper.

First, replacing per-(s,a)(s,a) scalar SciPy solves (DR-SAC-Accurate) with the shared functional network Gη\mathcal{G}_\eta (DR-SAC-Functional, both with δ=0.5\delta = 0.5) on Pendulum cuts training time by more than 98% without losing robustness:

Pendulum VariantTraining StepsWall Time (min)Relative to SACRelative to Accurate
SAC (non-robust baseline)10,0001.71.0×1.0\times0.65%0.65\%
DR-SAC-Functional (Algorithm 1)10,0004.72.8×2.8\times1.81%1.81\%
DR-SAC-Accurate (per-(s,a)(s,a) SciPy)8,000260.0152.9×152.9\times100.0%100.0\%

Even with 25% more gradient steps, DR-SAC-Functional finishes in under 2% of DR-SAC-Accurate’s wall time, matches its return across mass perturbations up to 120%120\%, and outperforms it on length perturbations below 30%30\%. Paper, Section 4.3.1, Figure 2, and Appendix C.3.1, Table 5.

Second, across the three environments where RFQI converges, DR-SAC requires at most 2.6×2.6\times the training time of non-robust SAC, whereas RFQI requires 11.3–14.0× the time of FQI and up to 23.2×23.2\times the time of DR-SAC (saving over 80%80\% of training time in every case):

EnvironmentSAC (min)DR-SAC (min)FQI (min)RFQI (min)RFQI / DR-SAC
Cartpole2479323.25×23.25\times
LunarLander1636172386.61×6.61\times
Reacher1332141594.97×4.97\times

Why is RFQI an order of magnitude slower when both algorithms use a functional dual network? Table 6 of the paper isolates the reason: inner-loop conditioning. In each critic update, DR-SAC’s smooth KL log-exponential dual needs only 5 gradient descent (GD) steps on Gη\mathcal{G}_\eta, whereas RFQI’s piecewise-linear TV dual on top of BCQ defaults to 1,000 GD steps. Truncating RFQI’s inner loop on LunarLander causes immediate degradation even in the nominal environment:

Algorithm on LunarLanderInner GD Steps / UpdateTraining Time (min)Nominal Unperturbed Return
DR-SAC536240.0
RFQI512175.9
RFQI1021181.9
RFQI100139192.9
RFQI (default)1,000238201.2

Paper, Section 4.3.1, Table 1, and Appendix C.3.1, Figure 7 and Table 6.

5.3 Generative model overhead, theoretical regret, and conservatism limits

Replacing the conditional VAE with alternative generative families confirms that sampling speed inside the Bellman backup is the governing systems constraint:

  • Normalizing flows exhibit unstable training even in unperturbed Pendulum.
  • Diffusion probabilistic models match the VAE’s robustness curves on Pendulum and Cartpole, but iterative denoising during next-state sampling makes training at least 4.5×4.5\times slower than VAE-based DR-SAC.
  • VAE latent dimension dzd_z is benign across a wide plateau: on Pendulum (dim⁡(S)=3,dim⁡(A)=1\dim(\mathcal{S})=3, \dim(\mathcal{A})=1), varying dz∈{5,10,20}d_z \in \{5, 10, 20\} produces virtually indistinguishable robustness curves (while extreme under- or over-parameterization at dz=1d_z = 1 or 5050 degrades mildly). Paper, Section 4.3.2, Figure 3, and Appendix C.3.2, Figure 8.

On the theoretical side, Appendix D quantifies how nominal transition estimation error propagates into the learned robust policy. Suppose the estimated nominal kernel p^s,a0\hat{p}_{s,a}^0 satisfies DKL(ps,a0 ∥ p^s,a0)≤ε12D_{\mathrm{KL}}(p_{s,a}^0 \,\Vert\, \hat{p}_{s,a}^0) \le \varepsilon_1^2 and shares support with the true nominal kernel, supp⁡(ps,a0)=supp⁡(p^s,a0)\operatorname{supp}(p_{s,a}^0) = \operatorname{supp}(\hat{p}_{s,a}^0) (Assumption D.2, which implies TV⁡(ps,a0,p^s,a0)≤12ε1\operatorname{TV}(p_{s,a}^0, \hat{p}_{s,a}^0) \le \frac{1}{2}\varepsilon_1 by Pinsker’s inequality). Then Lemma D.3 bounds the single-step operator discrepancy by

∥T^δπQ−TδπQ∥∞≤γε1Vmax⁡δexp⁡ ⁣(Vmax⁡β‾)=:ε2,Vmax⁡=Rmax⁡+αlog⁡∣A∣1−γ,\left\Vert \hat{\mathcal{T}}_\delta^\pi Q - \mathcal{T}_\delta^\pi Q \right\Vert_\infty \le \gamma \varepsilon_1 \frac{V_{\max}}{\delta} \exp\!\left(\frac{V_{\max}}{\underline{\beta}}\right) =: \varepsilon_2, \qquad V_{\max} = \frac{R_{\max} + \alpha \log \vert\mathcal{A}\vert}{1-\gamma},

where β‾=min⁡{β⋆/2,β^⋆/2,1/2}>0\underline{\beta} = \min\{\beta^\star/2, \hat{\beta}^\star/2, 1/2\} > 0 lower-bounds the active dual temperature. Because both Tδπ\mathcal{T}_\delta^\pi and T^δπ\hat{\mathcal{T}}_\delta^\pi are γ\gamma-contractions, ∥Q^Mδπ−QMδπ∥∞≤ε2/(1−γ)\Vert \hat{Q}_{\mathcal{M}_\delta}^\pi - Q_{\mathcal{M}_\delta}^\pi \Vert_\infty \le \varepsilon_2 / (1-\gamma), and the distributionally robust regret of the converged policy π^Mδ⋆\hat{\pi}_{\mathcal{M}_\delta}^\star satisfies

RMδ ⁣(π^Mδ⋆):=∥VMδ⋆−VMδπ^Mδ⋆∥∞≤2ε21−γ.R_{\mathcal{M}_\delta}\!\left(\hat{\pi}_{\mathcal{M}_\delta}^\star\right) := \left\Vert V_{\mathcal{M}_\delta}^\star - V_{\mathcal{M}_\delta}^{\hat{\pi}_{\mathcal{M}_\delta}^\star} \right\Vert_\infty \le \frac{2\varepsilon_2}{1-\gamma}.

Paper, Appendix D, Definition D.1, Assumption D.2, and Lemma D.3.

Both the regret bound and the KL formulation point to the two structural costs of this approach:

  1. Support restriction (supp⁡(ps,a)⊆supp⁡(p^s,a0)\operatorname{supp}(p_{s,a}) \subseteq \operatorname{supp}(\hat{p}_{s,a}^0)): A KL ball only reweights transitions where the nominal model assigns positive density. A Gaussian-decoder VAE helps by smoothing empirical transitions over continuous state space, but shifts that jump outside the learned generative support cannot be anticipated by KL reweighting alone.
  2. Conservatism and manual radius selection (δ\delta): Larger δ\delta forces the critic to weight low-value next states more heavily, trading peak nominal return for a flatter degradation curve under perturbation. In the paper’s experiments, the best ambiguity radius depends on task geometry (δ=0.75\delta = 0.75 on Cartpole, 0.500.50 on Pendulum, 0.250.25 on LunarLander, and 0.200.20 on Reacher and HalfCheetah) and is chosen by grid search rather than derived automatically from local sample density. Paper, Appendix C.2.

6. Takeaways

  1. The bottleneck in continuous-control DR-RL is the Bellman backup, not the minimax objective. KL strong duality (Proposition 3.3) removes the infinite-dimensional transition kernel search and replaces it with an exponentially tilted expectation under the nominal model parameterized by a single scalar temperature β≥0\beta \ge 0, while preserving γ\gamma-contraction and monotonic soft policy improvement (Propositions 3.4–3.5, Theorem 3.6).
  2. Decomposable functional optimization makes the dual backup batch-friendly. By Rockafellar–Wets interchange on L1(S×A)L^1(\mathcal{S}\times\mathcal{A}) (Proposition 3.7), replacing per-(s,a)(s,a) scalar solves with a shared dual network Gη\mathcal{G}_\eta cuts training time on Pendulum from 260 minutes (DR-SAC-Accurate) to 4.7 minutes (DR-SAC-Functional)—a >50×>50\times speedup with no loss of robustness.
  3. Under KL duality, single-sample offline ERM silently degenerates to non-robust RL. Because −βlog⁡E[exp⁡(−V/β)]-\beta \log \mathbb{E}[\exp(-V/\beta)] is nonlinear in the transition distribution, a single offline next-state draw cancels log⁡\log and exp⁡\exp, forcing the optimal dual multiplier to zero. Drawing mm synthetic next states from a conditional transition VAE—and scoring them with an explicit SAC-v1 target value network VψˉV_{\bar{\psi}}—resolves double sampling without a simulator and runs at least 4.5×4.5\times faster than diffusion-based transition models.
  4. Smooth KL duals converge in 5 inner gradient steps where TV duals need 1,000. Across continuous-control benchmarks, DR-SAC trains in 2.0–2.5× the wall time of standard SAC and 5–23× faster than RFQI, while achieving up to 9.8×9.8\times higher return than SAC under severe environment perturbations.
Cite this note

BIBTEX

@misc{zhou2026drsac,
  author = {Zhou, Duo},
  title  = {{DR-SAC: Robust to the Worst Plausible World, Cheaply}},
  year   = {2026},
  url    = {https://www.duo-zhou.com/blog/dr-sac/},
  note   = {Research note}
}