TL;DR
Until now, lifelong reinforcement learning (RL) agents have only cared about average outcomes, ignoring the catastrophic tail-risks that real-world environments throw at them. When the authors tried to plug classical risk theory into continual learning, they discovered a mathematical contradiction: standard risk measures either require infinite memory or force the agent to stop adapting. To fix this, they invent ergodic risk measures, giving endless learners a theoretically sound way to manage risk on the fly.
What Problem Does This Paper Address?
Standard RL trains agents in static worlds for finite episodes—like mastering a single video game. Continual RL pushes agents into the real world, where they operate indefinitely as tasks and environments shift beneath their feet. At the core of continual RL is the stability-plasticity dilemma: an agent must retain useful old knowledge (stability) while remaining flexible enough to adapt to new experiences (plasticity).
Historically, continual RL has been purely risk-neutral, meaning agents just maximize expected (mean) long-term rewards. In the real world, however, avoiding rare disasters often matters more than maximizing averages. While risk-aware RL exists for finite episodes—relying on mathematical tools borrowed from finance called static and nested risk measures—nobody had formalized what it means for a lifelong, endlessly adapting agent to be risk-aware. When the authors investigated, they found that existing risk frameworks fundamentally break down over infinite, non-stationary horizons.
Methods
First, the authors generalize an existing information-theoretic framework for continual RL. Instead of an agent simply receiving an observation from the environment, observations pass through a filter representing the agent’s current risk attitude (or risk tolerance, $\tau_t$), producing "risk-aware observations."
Next, they establish two common-sense axioms required for any continual risk-aware agent:
- Feasibility Axiom: Risk assessments must be computable using finite memory (over a finite window of time).
- Plasticity Axiom: New observations and shifting risk attitudes must be able to influence the agent's behavior infinitely often.
Having proven that classical static and nested risk measures violate these axioms, the authors introduce a novel mathematical class: ergodic risk measures. An ergodic risk measure is a dynamic risk measure where one-step risk assessments can be accurately computed using only a rolling, finite window of recent history, and where strict "time consistency" (a mathematical rule preventing an agent from changing its mind about relative risks) is intentionally relaxed.
To turn this theory into a practical RL objective, they pair ergodic risk measures with average-reward Markov Decision Processes (MDPs)—which optimize long-term reward rates rather than discounted sums—and optimize the Conditional Value-at-Risk (CVaR, the expected value of the worst $\tau$-percent of outcomes) using an existing algorithm called RED CVaR Q-learning.
Datasets
In RL, simulated environments serve the role of datasets. Rather than static datasets, the authors evaluate their approach on two newly introduced continual variations of the Red-Pill Blue-Pill (RPBP) environment. In standard RPBP, taking the "blue pill" leads to a state with a higher average reward, while the "red pill" leads to a state with a safer, higher worst-case reward (better CVaR). The two new continual benchmarks are:
- $\tau$-RPBP: The environment stays the same, but the agent's internal risk attitude ($\tau$) shifts midway through its lifetime from risk-neutral ($\tau \approx 1$) to risk-averse ($\tau \approx 0$).
- $\mathcal{S}$-RPBP: The agent's risk attitude stays fixed, while the underlying reward distributions of the red and blue states shift multiple times, effectively replacing the state space on the fly.
Key Insights and Ideas
- Classical risk theory breaks lifelong learning: Static risk measures evaluate risk at a fixed endpoint $N$. If $N \to \infty$, you need infinite memory (violating Feasibility); if $N$ is finite, the agent ignores everything after step $N$ (violating Plasticity).
- Time consistency is the enemy of plasticity: Nested risk measures enforce time consistency—if outcome A is deemed safer than outcome B tomorrow, it must be safer today. While mathematically neat for dynamic programming, in continual learning this means future surprises can never change how an agent ranks risks, killing plasticity.
- Ergodicity enables adaptation, not stagnation: By relying on ergodic assumptions within individual MDP phases (via Birkhoff’s Ergodic Theorem), risk assessments converge over finite rolling windows. This forgets ancient, irrelevant history while staying adaptable to new shifts, bridging RL with the emerging field of ergodicity economics.
Key Results
Across both continual RPBP tasks, optimizing the ergodic CVaR objective produced clean, intuitive adaptation:
- Adapting to internal shifts ($\tau$-RPBP): Over 50 runs of a 100,000-step experiment, the risk-neutral agent initially learned to spend ~85% of its time in the high-mean "blue world." At step 50,000, when its risk parameter switched to risk-averse, the agent rapidly pivoted, dropping its time in the blue world to ~10% in favor of the safer "red world."
- Adapting to external shifts ($\mathcal{S}$-RPBP): Over 10 runs of 120,000 steps, the reward distributions shifted at steps 40k and 80k, flipping which state had the superior CVaR (ranging between roughly -1.5 and -0.7). At every boundary, the agent's rolling reward CVaR quickly tracked and locked onto whichever state currently offered the safer tail distribution.
Limitations and Future Work
While the main text focuses on establishing the foundational math, a few scope boundaries are apparent:
- Scalar and ergonomic assumptions: The incompatibility proofs assume risk assessments output a single scalar value, and the average-reward MDP formulation requires ergodicity-like assumptions (unichain or communicating MDPs) to hold independently within each stationary phase of the environment, alongside risk functionals that can be estimated at every step.
- Toy empirical validation: The empirical case study is limited to simple, two-state tabular environments. Scaling ergodic risk measures to high-dimensional, deep continual RL settings remains an open avenue for future work enabled by this theoretical foundation.
Summary updated