mlsanityData to 14 Oct 2026

Statistical Context Detection for Deep Lifelong Reinforcement Learning

arXiv 2405.19047 ↗First posted 29 May 2024cs.LG cs.AIcited by 7

On the map: Deep reinforcement learning methods → Deep RL algorithms and representations

Abstract (arXiv)

Context detection involves labeling segments of an online stream of data as belonging to different tasks. Task labels are used in lifelong learning algorithms to perform consolidation or other procedures that prevent catastrophic forgetting. Inferring task labels from online experiences remains a challenging problem. Most approaches assume finite and low-dimension observation spaces or a preliminary training phase during which task labels are learned. Moreover, changes in the transition or reward functions can be detected only in combination with a policy, and therefore are more difficult to detect than changes in the input distribution. This paper presents an approach to learning both policies and labels in an online deep reinforcement learning setting. The key idea is to use distance metrics, obtained via optimal transport methods, i.e., Wasserstein distance, on suitable latent action-reward spaces to measure distances between sets of data points from past and current streams. Such distances can then be used for statistical tests based on an adapted Kolmogorov-Smirnov calculation to assign labels to sequences of experiences. A rollback procedure is introduced to learn multiple policies by ensuring that only the appropriate data is used to train the corresponding policy. The combination of task detection and policy deployment allows for the optimization of lifelong reinforcement learning agents without an oracle that provides task labels. The approach is tested using two benchmarks and the results show promising performance when compared with related context detection algorithms. The results suggest that optimal transport statistical methods provide an explainable and justifiable procedure for online context detection and reward optimization in lifelong reinforcement learning.

Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Placed in Deep RL algorithms and representations, one of 15 directions in Deep reinforcement learning methods. Builds on 36 of its 61 references that are in the map. First posted on arXiv 29 May 2024.

Builds on

36 of 61 references.

References · 36

  1. 2017Proximal Policy Optimization Algorithmscited by 15,215
  2. 2016Overcoming catastrophic forgetting in neural networkscited by 4,787
  3. 2015Trust Region Policy Optimizationcited by 2,580
  4. 2016Learning without Forgettingcited by 2,496
  5. 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,079
  6. 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,485
  7. 2016Progressive Neural Networkscited by 1,361
  8. 2018Continual Lifelong Learning with Neural Networks: A Reviewcited by 1,330
  9. 2014How transferable are features in deep neural networks?cited by 1,225
  10. 2017Continual Learning with Deep Generative Replaycited by 1,158
  11. 2017Memory Aware Synapses: Learning what (not) to forgetcited by 1,105
  12. 2018Experience Replay for Continual Learningcited by 1,095
24 more
  1. 2018Overcoming catastrophic forgetting with hard attention to the taskcited by 681
  2. 2017A Brief Survey of Deep Reinforcement Learningcited by 483
  3. 2017PathNet: Evolution Channels Gradient Descent in Super Neural Networkscited by 364
  4. 2020Towards Continual Reinforcement Learning: A Review and Perspectivescited by 274
  5. 2020Supermasks in Superpositioncited by 227
  6. 2018Task-Free Continual Learningcited by 221
  7. 2019Generalized Sliced Wasserstein Distancescited by 208
  8. 2019REMIND Your Neural Network to Prevent Catastrophic Forgettingcited by 197
  9. 2018Alleviating catastrophic forgetting using context-dependent gating and synaptic stabilizationcited by 104
  10. 2013Sample Complexity of Multi-task Reinforcement Learningcited by 58
  11. 2021Same State, Different Task: Continual Reinforcement Learning without Interferencecited by 43
  12. 2023Achieving a Better Stability-Plasticity Trade-off via Auxiliary Networks in Continual Learningcited by 41
  13. 2021A statistical framework for efficient out of distribution detection in deep neural networkscited by 28
  14. 2022Wasserstein Task Embedding for Measuring Task Similaritiescited by 25
  15. 2022Task-Free Continual Learning via Online Discrepancy Distance Learningcited by 22
  16. 2022Lifelong Reinforcement Learning with Modulating Maskscited by 22
  17. 2022Continual Learning Based on OOD Detection and Task Maskingcited by 21
  18. 2021Minimum-Delay Adaptation in Non-Stationary Reinforcement Learning via Online High-Confidence Change-Point Detectioncited by 18
  19. 2019Uncertainty-Based Out-of-Distribution Detection in Deep Reinforcement Learningcited by 15
  20. 2021Towards a theory of out-of-distribution learningcited by 11
  21. 2022Task-Agnostic Continual Reinforcement Learning: Gaining Insights and Overcoming Challengescited by 11
  22. 2021Continual Novelty Detectioncited by 10
  23. 2023Sharing Lifelong Reinforcement Learning Knowledge via Modulating Maskscited by 10
  24. 2023The configurable tree graph (CT-graph): measurable problems in partially observable and distal reward environments for lifelong reinforcement learningcited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 4.

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Temporal Distance-aware Transition Augmentation for Offline Model-based Reinforcement Learning
  2. 2024XLand-100B: A Large-Scale Multi-Task Dataset for In-Context Reinforcement Learning
  3. 2019Reinforcement Learning with Policy Mixture Model for Temporal Point Processes Clustering ↗
  4. 2019Multi-task Batch Reinforcement Learning with Metric Learning
  5. 2025Understanding Behavioral Metric Learning: A Large-Scale Study on Distracting Reinforcement Learning Environments
  6. 2025A Planning Framework for Adaptive Labeling
  7. 2025Lifelong Reinforcement Learning with Similarity-Driven Weighting by Large Models
  8. 2026When Does Trajectory-Level Supervision Permit Efficient Offline Reinforcement Learning?