TL;DR
Reinforcement Learning with Latent Flow (Flare) introduces a novel architecture that explicitly encodes temporal dynamics by computing differences between latent representations of consecutive frames. By moving away from the standard "frame-stacking" heuristic, Flare achieves state-of-the-art sample efficiency and performance on challenging continuous control tasks and Atari games.
What Problem Does This Paper Address?
For a Reinforcement Learning (RL) agent to succeed, it must understand the environment's dynamics—not just where things are, but how they are moving. In state-based RL, this information is often provided explicitly (e.g., joint velocities). However, when learning directly from pixels, agents typically rely on a heuristic called frame-stacking: concatenating the last few frames into a single input volume.
The authors argue that this "early fusion" approach is suboptimal. It forces the convolutional neural network (CNN) to implicitly learn temporal relationships from raw pixels, which is computationally demanding and sample-inefficient. While computer vision has moved toward explicit temporal encodings like optical flow, these are often too slow for the tight control loops required in robotics and RL. Flare seeks a middle ground: an explicit temporal inductive bias that is computationally efficient.
Methods
The core contribution is the Flare architecture. Instead of stacking raw images, Flare processes each frame individually through a shared CNN encoder to produce a sequence of latent vectors ($z_t, z_{t-1}, \dots$).
It then computes the latent flow—the vector difference between consecutive latents ($\delta_t = z_t - z_{t-1}$). These differences act as a high-level approximation of velocity in the latent space. Finally, the latent vectors and their differences are concatenated and passed to the downstream RL algorithm (such as Soft Actor-Critic or Rainbow DQN).
This approach can be viewed as a "structured late fusion" architecture. By explicitly providing the difference, the authors provide the agent with a strong inductive bias for motion without the heavy overhead of pixel-level optical flow.
Datasets
The authors evaluated Flare across two major benchmarks:
- DeepMind Control (DMControl) Suite: Focused on 5 challenging continuous control tasks: Quadruped Walk, Hopper Hop, Finger Turn-hard, Pendulum Swingup, and Walker Run. These were chosen specifically because they involve partial observability or sparse rewards where temporal information is critical.
- Atari 2600 Games: Evaluated on 8 games (Assault, Breakout, Berserk, Defender, Montezuma’s Revenge, Seaquest, Phoenix, and Tutankham) at the 100M time step benchmark.
Key Insights and Ideas
- Recovering Hidden Velocity: In a "motivation" experiment using state-based RL, the authors showed that an agent given only positions ($s^p_t$) performs poorly. However, by simply adding the difference between positions ($\delta_t = s^p_t - s^p_{t-1}$), Flare recovers near-optimal performance, matching agents that have access to true ground-truth velocities.
- Structured Bias vs. Black Boxes: The authors compared Flare against Recurrent SAC (using LSTMs) and standard Frame Stacking. Flare consistently outperformed both, suggesting that the explicit calculation of differences is a more effective inductive bias for motion than letting a recurrent network or a deep CNN "figure it out" from scratch.
- Late Fusion is Key: Ablation studies revealed that computing differences after the CNN encoding (late fusion) is significantly more stable and efficient than computing pixel-level differences before the CNN (early fusion).
Key Results
- DMControl Superiority: Flare outperformed the previous state-of-the-art model-free algorithm (RAD) by 1.9x at the 500k step mark and 1.5x at 1M steps. It achieved near-optimal asymptotic performance on tasks where standard pixel-based methods often struggle, such as Pendulum Swingup and Finger Turn-hard.
- Atari Performance: When integrated with Rainbow DQN, Flare outperformed the baseline on 5 out of 8 games, including the notoriously difficult Montezuma’s Revenge.
- Sample Efficiency: Across the board, Flare reached higher reward levels with fewer environment interactions, making it one of the most sample-efficient model-free pixel-based RL algorithms to date.
Limitations and Future Work
- Hyperparameter Sensitivity: The authors noted that the optimal number of stacked frames can vary by task. For instance, Pendulum Swingup performed best with only 2 frames, and adding more actually degraded performance, likely due to the introduction of "distractor" information.
- Domain-Specific Motion: While latent flow captures general change, the authors suggest that future work could focus on capturing more complex, domain-specific motions that might be overlooked by a generic difference operation.
- Computational Cost: While much faster than optical flow, Flare does require running the CNN encoder on multiple individual frames rather than a single stack, which increases the computational footprint per inference step.
Summary updated