# Policy Optimization for Robust Average Reward MDPs

Robust policy mirror descent converges to near-optimal policies for average-cost MDPs

Sun, Zhongchang, He, Sihong, Miao, Fei, Zou, Shaofeng · Advances in Neural Information Processing Systems · 2024-12-16

- **Problem** Discounted robust methods can lose long-run quality on long-horizon tasks, and worst-case average cost is non-differentiable. Smoothness proofs for standard policy gradients don't transfer to it.
- **Method** Robust policy mirror descent replaces the gradient with a Fréchet sub-gradient, instead of a plain gradient step. It updates each state's policy separately, using a Bregman divergence.
- **Results** The authors prove that with increasing step sizes the optimality gap shrinks linearly, giving O(1/ϵ) iteration complexity to reach an ϵ-optimal policy.

## Why robust average cost is harder than discounted cost

A robust MDP chooses a policy that performs well against the worst transition kernel in an uncertainty set. Most existing robust work measures cost with a discount factor, where a factor below one makes the value contract, while average cost weighs every step equally and so depends on long-run behaviour. Discounted methods can therefore lose long-run quality in tasks with long horizons.

Here the objective is the worst-case long-run average cost for ergodic chains. The uncertainty set is built for each state-action pair as a divergence ball of radius R around a nominal kernel, and the worst case is taken as a maximum over those kernels.

That maximum makes the cost non-differentiable in the policy, so a plain gradient step has nothing to follow. The convergence proofs for non-robust policy gradient methods rely on the value function being smooth, and the worst-case kernel changes with the policy, so those proofs don't transfer. Earlier robust average-cost work relied on value iteration rather than policy updates, and it gave no finite iteration complexity.

## A sub-gradient for the worst-case cost

The authors replace the gradient with a Fréchet sub-gradient, a vector that lower-bounds the change of the function along each direction, up to a term of higher order in the step length. The sub-gradient is defined for direct policy parameterization.

For state s and action a, the entry is the stationary weight of s times the robust relative state-action value, written as \\\\(\\\\nabla g^{\\\\pi}\_{\\\\mathcal P}(s,a)=d^{\\\\pi}\_{\\\\mathcal P}(s)Q^{\\\\pi}\_{\\\\mathcal P}(s,a)\\\\). Here d is the state distribution under the worst-case kernel of the policy, and Q is the worst-case action value.

The discounted-cost version carries a factor of 1/(1−γ) and needs γ strictly below one, so it can't be carried over to the average setting. The authors derive the average-cost sub-gradient with the performance difference lemma for average cost and a Lipschitz property of the relative action value.

## Per-state mirror descent update

Algorithm 1 runs a loop over iterations k, and at each step an oracle supplies the robust relative state-action value of the current policy. The policy at state s is replaced by the minimizer over the probability simplex of the step-size-weighted term ⟨Q, p⟩ plus a Bregman divergence to the old policy, written as \\\\(\\\\pi\_{k+1}(\\\\cdot\|s)=\\\\arg\\\\min\_{p\\\\in\\\\Delta(A)}\\\\{\\\\eta\_k\\\\langle Q^{\\\\pi\_k}\_{\\\\mathcal P}(s,\\\\cdot),p\\\\rangle+D(p,\\\\pi\_k(\\\\cdot\|s))\\\\}\\\\).

The global update sums per-state divergences with weights given by the stationary distribution of the current policy, which the authors call a dynamically weighted divergence. Because that sum separates across states, the minimization can be done state by state.

With the squared Euclidean distance as the divergence, the update looks like projected policy gradient. The difference is that the sub-gradient is replaced by the robust relative action value Q.

## The lower bound and the PL-type condition

The key lemma lower-bounds the robust average cost difference between two policies by an expectation under the second policy's distribution: \\\\(g^{\\\\pi}\_{\\\\mathcal P}-g^{\\\\pi'}\_{\\\\mathcal P}\\\\ge \\\\mathbb E\_{s\\\\sim d^{\\\\pi'}\_{\\\\mathcal P}}\[\\\\langle Q^{\\\\pi}\_{\\\\mathcal P}(s,\\\\cdot),\\\\pi(\\\\cdot\|s)-\\\\pi'(\\\\cdot\|s)\\\\rangle\]\\\\). The usual performance difference identity doesn't apply directly, because the worst-case kernel differs between the two policies.

The authors instead use the Bellman equation of the robust relative value together with the fact that the robust average cost doesn't depend on the starting state.

The PL-type result states that the suboptimality of a policy is bounded by a constant C\_PL times the maximum over policies of an inner product between the sub-gradient and the policy gap, written as \\\\(g^{\\\\pi}\_{\\\\mathcal P}-g^\*\_{\\\\mathcal P}\\\\le C\_{PL}\\\\max\_{\\\\hat\\\\pi}\\\\langle\\\\nabla g^{\\\\pi}\_{\\\\mathcal P},\\\\pi-\\\\hat\\\\pi\\\\rangle\\\\). The authors read this as saying that a policy with a small sub-gradient lies near the global optimum.

A Lipschitz bound on the relative value in the policy, with a constant L\_π, is used to fix the constant step size. The first-order optimality condition of the update, which holds for every p in the simplex, is combined with the lower bound to relate the one-step decrease to the squared gradient mapping.

## Rates for increasing and constant step sizes

With increasing step sizes, the step must satisfy a lower bound tied to the previous step, η\_k ≥ η\_{k−1}(1−1/M)^{−1}M. Under that condition the gap after k iterations is bounded by (1−1/M)^k times the initial gap, plus a term involving the initial distance to the optimal policy. M is a supremum over policies and kernels of a norm of a ratio of stationary distributions, so the rate depends on that quantity.

Here ω = (2√2 S C\_PL)^(−2), so the first term gives the O(1/ϵ) iteration complexity to reach an ϵ-optimal policy.

For discounted robust MDPs, the constant-step-size O(1/ϵ) bound in the earlier work needs a sufficiently large step size. The authors say their constant-step analysis doesn't require the step size to be sufficiently large. The same bound is O(1/ϵ), which matches the non-robust policy mirror descent result for discounted cost MDPs.

## Simulation setup and results

The authors test Garnet(3, 2), Garnet(5, 2), Garnet(10, 5) and the recycling robot problem. The recycling robot has low and high battery levels, three actions, and a probability of 0.9 of finding a can in each battery level, with α and β both set to 0.9. The robust method is compared with non-robust policy mirror descent, and both start from a uniform random policy.

The uncertainty set is the KL divergence set with radius R = 0.1, the constant step size is η = 0.01, and results are averaged over 5 runs with different seeds. Each training episode has 2000 training steps, and episodes last 100 steps for Garnet and 300 for the robot problem.

On Garnet(3, 2) the robust method converges faster than the baseline, and the two end at the same value. The authors attribute the common endpoint to the small size of that environment.

On Garnet(5, 2), Garnet(10, 5) and the recycling robot problem, the robust method's mean robust average cost is lower than the baseline's across the training episodes. The authors read this as evidence of the robustness of their algorithm, which applies to these four simulated problems only.

## Limitations

The method is model-based, and the authors leave policy-based model-free algorithms for robust average cost MDPs as future work. All guarantees rely on Assumption 2.1, which requires every induced chain under every kernel in the uncertainty set to be ergodic.

The simulations use one uncertainty set, one radius and one step size, and only four problems. Garnet(3, 2) shows the same final value for both methods, and the authors speculate that the small environment causes it.

Smoothness-based convergence arguments don't directly carry over, because the robust average cost may not be smooth.

## Paper info

- **Authors**: Sun, Zhongchang, He, Sihong, Miao, Fei, Zou, Shaofeng
- **Venue**: Advances in Neural Information Processing Systems · Published
- **First published**: 2024-12-16
- **Added**: 2026-11-26
- **DOI**: 10.52202/079017-0551
- **Original paper terms**: [Check in the original ↗](https://papers.nips.cc/paper_files/paper/2024/hash/1f28e9341ab99d8e5a5734f0a76601c7-Abstract-Conference.html)
- **What we show**: Paper info and commentary

[Original paper ↗](https://papers.nips.cc/paper_files/paper/2024/hash/1f28e9341ab99d8e5a5734f0a76601c7-Abstract-Conference.html)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Sun, Zhongchang, He, Sihong, Miao, Fei, Zou, Shaofeng (2024). Policy Optimization for Robust Average Reward MDPs. Advances in Neural Information Processing Systems. https://doi.org/10.52202/079017-0551

**BibTeX**

```
@article{zhongchang2024policy,
  title = {{Policy Optimization for Robust Average Reward MDPs}},
  author = {Sun, Zhongchang and He, Sihong and Miao, Fei and Zou, Shaofeng},
  year = {2024},
  journal = {Advances in Neural Information Processing Systems},
  doi = {10.52202/079017-0551},
  url = {https://papers.nips.cc/paper_files/paper/2024/hash/1f28e9341ab99d8e5a5734f0a76601c7-Abstract-Conference.html}
}
```

## Other paper commentary

- [Escaping the Mode: Multi-Answer Reinforcement Learning in LMs](https://refivu.com/en/papers/57396737-909e-4ef4-acf5-3d267b659acf-escaping-the-mode-multi-answer-reinforcement-learning-in.md)
- [Lazy Agents Answer Against Their Own Beliefs: Reinforcement Learning with Verifiable Beliefs Teaches Them to Act on What They Believe](https://refivu.com/en/papers/ad05164f-2508-4c12-9720-9f989b190939-lazy-agents-answer-against-their-own-beliefs-reinforcement.md)
- [CO-GRAFT: Attributing Reinforcement Learning Gains in Search Agents via Role-Level Policy Grafting](https://refivu.com/en/papers/ca0608ae-9635-4dfa-aeee-67d5801fc208-co-graft-attributing-reinforcement-learning-gains-in-search.md)
- [Nearly Minimax-Optimal Sample Complexity of Natural Policy Gradient with a Matching Information-Theoretic Lower Bound](https://refivu.com/en/papers/f4105df1-e98f-45be-9f6c-57932a13fc43-nearly-minimax-optimal-sample-complexity-of-natural-policy.md)
- [Continuous-Time LQR from a Single Discrete-Time Off-Policy Batch](https://refivu.com/en/papers/b50622ac-e464-4101-97fb-07bbb46e1e70-continuous-time-lqr-from-a-single-discrete-time.md)
- [Detecting Is Not Choosing: What a World Model Needs to Keep a VLA Policy Safe](https://refivu.com/en/papers/31a4624b-8fa0-4005-9087-3002d8c6c996-detecting-is-not-choosing-what-a-world-model.md)
- [EntroKV: Entropy-Guided Dynamic Budget Allocation for KV-Cache Compression](https://refivu.com/en/papers/057d5e1a-3097-4692-bf08-f2e331814f7d-entrokv-entropy-guided-dynamic-budget-allocation-for-kv.md)
- [Memory as Dynamics: Learning Reliability-Guided Predictive Models for Online Video Perception](https://refivu.com/en/papers/9edb7769-5017-4985-b695-21eab77d07d7-memory-as-dynamics-learning-reliability-guided-predictive.md)
- [Breaking Semantic Artifacts for Generalized AI-generated Image Detection](https://refivu.com/en/papers/4e046749-44ad-45fe-a59b-ca849df10c45-breaking-semantic-artifacts-for-generalized-ai-generated.md)
- [Towards Estimating Bounds on the Effect of Policies under Unobserved Confounding](https://refivu.com/en/papers/b9f2b061-ed7b-4b7a-b0f1-55430eefad3f-towards-estimating-bounds-on-the-effect-of-policies.md)
- [How Many Sources, Not Just How Many Problems: Planning the Precision of LLM Evaluations from Earlier Results](https://refivu.com/en/papers/1af869bf-a94d-4c3d-8125-3cd015747743-how-many-sources-not-just-how-many-problems.md)
- [Refusal Is Not Scored: A Coverage Limit in Content-Based Bias Evaluation](https://refivu.com/en/papers/d282d82d-de6e-498c-898b-66902724ac0d-refusal-is-not-scored-a-coverage-limit-in.md)

## Terms in this paper

- [KL divergence](https://refivu.com/en/terms/5f1dbea73907-kl-divergence)
- [Bregman divergence](https://refivu.com/en/terms/901f7d5a921d-bregman-divergence)
- [policy mirror descent](https://refivu.com/en/terms/a8e2f2500617-policy-mirror-descent)
- [stationary distribution](https://refivu.com/en/terms/daf71c28dc9d-stationary-distribution)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/afaa3408-a6a7-4cab-ab30-117a9e30f158-policy-optimization-for-robust-average-reward-mdps)
