Main idea

I consider AVG one of the strongest existing methods for deep streaming / incremental reinforcement learning, alongside methods such as Stream-X.

However, the scope of this paper is specifically policy-gradient methods. The problem it addresses is whether deep policy-gradient RL can learn under a strict incremental-learning constraint:

  • no replay buffer,
  • no batch updates,
  • no target networks,
  • learning only from the most recent transition.

These are essentially the resource constraints I am interested in building on for streaming RL.

The paper shows that standard deep RL methods such as SAC, PPO, and TD3 degrade or fail when their replay buffers and batch sizes are reduced toward the incremental setting. AVG is designed specifically to remain stable under this constraint.

At a high level, AVG combines:

  1. a reparameterization-gradient (RG) policy-gradient estimator,
  2. online observation normalization,
  3. penultimate-layer normalization, and
  4. TD-error scaling.

The interesting question for me is which of these ingredients make incremental learning possible, and whether they remain appropriate once the underlying MDP itself becomes non-stationary.

Likelihood gradient vs. reparameterization gradient

A major difference between AVG and traditional incremental actor-critic is how the actor receives its learning signal.

Likelihood gradient (LG)

With the usual likelihood-gradient / score-function estimator, we sample

and evaluate how good that sampled action was.

Ignoring entropy for the moment, the policy-gradient estimator has the form

or, in a traditional actor-critic implementation, an advantage or TD-error estimate can replace :

The interpretation is:

I sampled action . If the critic says that this action was better than expected, increase the probability of sampling actions like it again. If it was worse than expected, decrease its probability.

So the computation is roughly

Importantly, LG does not use

The critic only supplies a scalar evaluation of the sampled action. The actor does not ask the critic which nearby action would be better.

For example, suppose the policy samples , and the critic evaluates this action positively. LG essentially says:

"0.4 was good, so make 0.4-like actions more probable."

It does not directly know whether changing the action from toward or toward would increase return.


Reparameterization gradient (RG)

RG exploits the fact that, for continuous actions, the stochastic policy can often be rewritten as a differentiable function of parameter-independent noise:

For AVG's Gaussian policy, conceptually this is

Now the sampled action is itself a differentiable function of the actor parameters.

The computation becomes

The critic can therefore provide

which tells us the local direction in action space that would increase the critic's predicted value.

Because

the chain rule gives

This is the key difference.

LG asks:

"Was the action I sampled good?"

RG asks:

"At the action I sampled, in which direction does the critic predict that the action should move to become better?"

The gradient can then flow directly

For a one-dimensional action, if

the critic locally predicts that increasing the action should increase value.

If

it predicts that decreasing the action should increase value.

For multidimensional actions, this becomes the vector

which gives a local ascent direction in the continuous action space.

This provides considerably richer information than simply assigning a scalar "good" or "bad" score to one sampled action.


AVG actor update

AVG uses this reparameterization gradient together with entropy regularization.

The actor approximately maximizes

Therefore the actor update follows

The first term gives the RG signal:

while the second term encourages the stochastic policy to maintain entropy.

During this actor update, the critic parameters are treated as fixed. The gradient flows through the critic with respect to its action input, but the actor update does not update the critic itself.

So:

is differentiated with respect to , while remains unchanged.


The critic is still trained with TD learning

RG only changes the actor update.

The critic still learns through ordinary bootstrapped TD learning.

Schematically, AVG computes a one-step soft TD target

and the TD error is

AVG then scales this TD error before using it to update the critic.

The important difference from algorithms such as SAC is that AVG does not use

as a separate target critic.

It uses the same online critic to bootstrap:

The target side is treated as fixed for the individual semi-gradient update, but after the update the same critic parameters have changed. There is no slow-moving copy of the critic.

Therefore AVG has two conceptually separate design choices:

  1. Actor: use RG instead of LG.
  2. Critic: use incremental TD learning without a target network.

RG does not itself remove the need for a target network. Target networks are primarily a mechanism for stabilizing the bootstrapped critic, while RG is a way of obtaining the actor gradient.

AVG demonstrates that, with its normalization and scaling mechanisms, the critic can remain sufficiently stable without a target network while the actor can be updated from one transition at a time using RG.

Stabilizing incremental learning

The second major part of AVG is controlling the large and noisy gradients that appear when deep networks are updated from individual transitions.

Observation normalization

AVG maintains the mean and variance of observations online using Welford's algorithm.

An important detail is that this is a sample running mean and variance. All previous observations contribute equally to the statistics.

The method does not use an exponentially weighted statistic that deliberately places greater weight on recent observations.

This choice makes sense for the setting considered in the paper. Even with a fixed MDP, the input distribution observed by an RL agent is non-IID because the policy itself changes during learning, which in turn changes the state distribution visited by the agent.

The authors describe this as a transient distribution and report that weighted methods emphasizing recent observations did not perform as well in their experiments.

This distinction is particularly important for my work.

There are at least two different sources of non-stationarity:

versus

AVG explicitly addresses the first type. It does not explicitly study the second.

If the MDP itself changes abruptly, giving every observation from the entire history equal weight could become undesirable. Statistics accumulated under an old regime may continue dominating normalization long after the environment has changed.

This suggests that the normalization mechanism itself may need to become regime-adaptive.

Penultimate normalization

AVG also normalizes the activations of the penultimate layer of the networks to have unit norm.

This is intended to reduce instability and maintain useful network representations during continual incremental updates.

This component should not be overlooked when describing AVG: the paper's ablation suggests that observation normalization, penultimate normalization, and TD-error scaling work best together.

TD-error scaling

AVG scales the TD error before updating the critic:

The purpose is to prevent large changes in the scale of bootstrapped targets from creating correspondingly large critic updates.

This is particularly important in incremental learning because a single extreme TD error directly produces an optimization step. There is no minibatch to average it with other samples.

Like observation normalization, the statistics used for TD-error scaling are maintained online across experience.

What non-IID means in this paper

An important distinction for my research is that the experiments use a single underlying MDP during each training run.

The stream is still non-IID because the agent is continually changing:

and therefore

The distribution of experienced states changes even though the environment dynamics and reward function remain fixed.

My setting introduces another source of non-IID data:

where the transition dynamics, reward function, or both can change.

Therefore, AVG demonstrates that deep policy-gradient learning can operate successfully on a single non-IID stream generated by a changing policy, but it does not establish that its normalization and scaling mechanisms are appropriate under latent MDP / regime changes.

I think this is an important boundary of the paper rather than a weakness: non-stationary MDP adaptation is simply a different problem from the one AVG sets out to solve.

My thoughts / critique

The most valuable part of AVG for my work is the learning constraint rather than treating AVG itself as a complete solution to non-stationary RL.

I want to preserve the same basic streaming constraint:

learn from each transition once, without a replay buffer, batch updates, or target networks.

AVG provides a strong base algorithm under this constraint.

The question is then what happens when the environment itself changes.

The normalization mechanisms are particularly interesting. AVG deliberately uses statistics accumulated over the entire data stream. That is sensible when the distribution shift is caused mainly by gradual policy evolution.

Under abrupt MDP changes, however, historical statistics may become stale.

For example, after a regime transition

the running observation statistics are approximately a mixture of observations from both regimes:

If , the old regime can dominate for a long time after the change.

The same general issue could appear in optimizer states, TD-error scaling statistics, value estimates, and network representations.

This gives me a more precise way of thinking about regime adaptation: AVG solves stability under a continuously changing learning process, while I am interested in adding adaptation to changes in the environment-generating process.

Connection to my research

AVG is probably the most natural base learner for my experiments because its resource assumptions already match the streaming-learning setting I care about.

Rather than modifying SAC and then imposing artificial memory constraints, I can start from an algorithm explicitly designed around:

  • one transition per update,
  • no replay,
  • no minibatches,
  • no target network.

The research question then becomes:

Which pieces of persistent learning state in AVG become harmful when the MDP changes, and how should they adapt?

Candidates include:

  • observation running mean and variance,
  • TD-error scaling statistics,
  • Adam optimizer state,
  • critic parameters,
  • actor parameters,
  • representation statistics.

This also suggests that I should distinguish between learning non-stationarity and environment non-stationarity throughout my work.

AVG already handles substantial non-stationarity induced by continuously changing policies and representations.

My problem begins when that assumption is extended to

itself changing over time.

Questions / possible experiments

  • How much of AVG's advantage over IAC comes from the RG estimator itself, versus normalization and TD-error scaling?

  • Does RG remain more stable than LG immediately after an abrupt regime change?

  • What happens to AVG's running observation statistics after a large MDP shift?

  • How long does a sample running mean take to adapt after a regime change as a function of the amount of pre-change experience?

  • Would an exponentially weighted running mean adapt faster after regime changes, despite performing worse in the stationary-MDP experiments reported in AVG?

  • Instead of permanently replacing the sample mean with an exponentially weighted mean, could the weighting rule itself change after a detected regime transition?

  • Should observation-normalization statistics be stored separately as part of a regime memory?

  • Does resetting normalization statistics after a known change improve adaptation?

  • How do observation normalization, TD-error scaling, optimizer state, actor state, and critic state individually contribute to slow adaptation after an MDP shift?

  • Can AVG be extended to handle