Squeezing More from the Stream : Learning Representation Online for Streaming Reinforcement Learning

Nilaksh, Antoine Clavaud, Mathieu Reymond, Francois Rivest, Sarath Chandar

TL;DR

This paper introduces a way to make "Streaming Reinforcement Learning"—where data is used once and immediately discarded—significantly more sample-efficient by adding a self-supervised representation learning objective. By using clever gradient projection techniques to prevent training instabilities, the authors enable agents to learn rich, high-dimensional representations on the fly, outperforming existing baselines across Atari and other benchmarks while remaining efficient enough to train on a few CPU cores.

What Problem Does This Paper Address?

Most modern Deep Reinforcement Learning (RL) agents are "data hungry" and rely heavily on Experience Replay. They store millions of past transitions in a massive buffer and sample them repeatedly to stabilize training. While effective, this is a deal-breaker for privacy-sensitive applications or resource-constrained "edge" devices (like small robots or wearables) that can't afford the memory or the computation of large batch updates.

Streaming RL is the alternative: the agent observes a transition, updates its parameters, and deletes the data forever. However, this is notoriously difficult. Without a buffer, the data is highly correlated (the next frame looks a lot like the current one), and the standard RL "value loss" (Q-learning) is too weak to extract deep structural meaning from a single pass of data. The result is usually an agent that learns very slowly or fails to learn complex features at all.

Methods

The authors propose augmenting streaming RL with Self-Predictive Representations (SPR). In SPR, the agent doesn't just learn to predict rewards; it learns a "dynamics model" in latent space, trying to predict what its own future internal representations will look like several steps ahead.

However, simply "plugging in" SPR to a streaming pipeline causes the agent to crash. To fix this, the authors introduce two key innovations:

  1. Orthogonal Gradient Updates (orth): To handle the extreme temporal correlation of streaming data, they project the current SPR gradient onto a subspace orthogonal to a moving average of past gradients. This effectively filters out redundant information and prevents the model from "overfitting" to the current local trajectory.
  2. Conflict Resolution for Specialized Optimizers (orth2): Streaming RL often uses specialized optimizers like ObGD (Overshooting-bounded Gradient Descent) to maintain stability. The authors discovered that the SPR loss often conflicts with the RL loss, pushing the weights in opposite directions. They introduced a second projection step that ensures the SPR update never interferes with the primary RL update's stability.

Datasets

The approach was validated across three distinct suites:

  • Atari 26: A standard, visually complex benchmark (26-game subset).
  • MinAtar: A simplified version of Atari designed for faster experimentation.
  • Octax: A recent, high-performance suite of CHIP-8 arcade environments implemented in JAX.

Key Insights and Ideas

  • Representation is the Bottleneck: The paper argues that the performance gap between streaming RL and replay-based RL isn't just about "reusing data"—it's about the quality of the features learned. By forcing the encoder to predict future states, the agent builds a much more robust "understanding" of the world.
  • The "Effective Rank" of Latents: The authors used a metric called "effective rank" to measure the complexity of the learned features. They found that adding SPR significantly increased this rank, meaning the agent was using more of its "brain power" rather than collapsing into a few simple, repetitive patterns.
  • Geometric Safeguards: The use of orthogonal projections acts as a "geometric safeguard." It allows the agent to learn from auxiliary tasks (like SPR) without those tasks "distracting" the agent from its primary goal of maximizing reward, which is critical when you don't have a replay buffer to smooth out mistakes.

Key Results

  • Systematic Outperformance: The proposed method (specifically QRC(λ) + SPR + orth) consistently outperformed base streaming algorithms across almost all metrics (Mean, Median, and Inter-Quartile Mean returns).
  • Sample Efficiency: On Atari games like Breakout and BattleZone, the SPR-augmented agents learned significantly faster in the early stages of training compared to baselines.
  • CPU-Friendly: Despite the extra complexity of the dynamics model, the agents remained highly efficient. They could be trained on just 4 CPU cores, making the approach truly viable for on-device learning.
  • Qualitative Improvement: t-SNE visualizations showed that SPR produced "smooth" latent trajectories where temporally close states were clustered together, whereas baseline streaming agents produced scattered, disorganized latent spaces.

Limitations and Future Work

  • Unused Dynamics: Currently, the agent learns a transition dynamics model to improve its representations, but it doesn't actually use that model for planning (like a Model-Based RL agent would). The authors suggest this is a natural next step.
  • Computational Overhead: While CPU-friendly, adding SPR does increase the "wall-clock" time per step. Future work could explore "sparse" updates (e.g., only calculating the SPR loss every few steps) to further reduce the load.
  • Continuous Control: This study focused on discrete action spaces (Atari). Testing these orthogonal update strategies on continuous control tasks (like robotics) remains an open challenge.

Summary updated

BibTeX
@inproceedings{nilaksh2026squeezing,
  author = {Nilaksh and Antoine Clavaud and Mathieu Reymond and Francois Rivest and Sarath Chandar},
  title = {{Squeezing More from the Stream : Learning Representation Online for Streaming Reinforcement Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=fuBIaxqMAG},
}
Figure