Task-unaware Lifelong Robot Learning with Retrieval-based Weighted Local Adaptation

Pengzhi Yang, Xinyu Wang, Ruipeng Zhang, Cong Wang, Frans A. Oliehoek, Jens Kober · DOI

Abstract

Lifelong learning in robotics is often hindered by catastrophic forgetting, where learning new skills leads to the degradation of previously acquired ones. Traditional solutions frequently rely on explicit task identification, which is often unavailable in dynamic, real-world environments. This paper presents Retrieval-based Weighted Local Adaptation (RWLA), a task-agnostic framework that enables robots to autonomously recover skills through a targeted "review" phase. By retrieving relevant past demonstrations and focusing adaptation on critical "separation segments" where the current policy diverges from expert behavior, RWLA significantly enhances performance. Evaluated on the LIBERO benchmark, the proposed ER-RWLA method achieves a 52.42% overall success rate, outperforming both task-agnostic and several task-aware baselines.

Introduction

The goal of lifelong robot learning is to create agents capable of continuously acquiring new skills over extended periods. However, neural network-based policies are prone to catastrophic forgetting. While task-aware methods mitigate this by using explicit task boundaries or IDs, real-world scenarios are often task-agnostic, with blurry boundaries and varying contexts. A robot asked to "grab the bottle" must recognize the specific environment and retrieve the appropriate skill without being told "this is Task #42."

The RWLA Framework

The authors propose a three-phase workflow designed to handle lifelong learning in a task-unaware manner: Lifelong Learning, Reviewing, and Testing.

Overview of the RWLA workflow: Lifelong Learning, Reviewing, and Testing.

1. Lifelong Learning

The robot learns tasks sequentially while maintaining a Storage Memory ($\mathcal{M}$). This memory stores a subset of past demonstrations. Standard Experience Replay (ER) is employed during training to keep previous skills active, though this alone is often insufficient to prevent all forgetting.

2. Reviewing and Weighted Local Adaptation

The "Reviewing" phase occurs just before deployment in a new scenario. The robot performs initial "practice runs" (rollouts). If these fail, it uses its current visual observations and language instructions to retrieve the most relevant expert demonstrations from $\mathcal{M}$.

The core innovation is Weighted Local Adaptation. Instead of uniform fine-tuning, the system identifies the Separation Segment—the specific moment where the robot's failed rollout diverges from the expert demonstration. By assigning higher weights to these "forgotten" frames, the robot performs a fast, local fine-tuning of its policy, focusing its learning resources on the exact point of failure.

The architecture leverages pretrained encoders: R3M for visual features and a Sentence Similarity (SS) model for language. This ensures the robot understands the semantic meaning of instructions (e.g., "pick up the cup" vs. "grab the mug") rather than relying on exact keyword matching.

Experimental Evaluation

The framework was evaluated using the LIBERO benchmark, which includes four subsets of manipulation tasks: libero_spatial, libero_object, libero_goal, and libero_different_scenes. To ensure a truly task-agnostic evaluation, instructions were paraphrased using an LLM (Phi-3), preventing the model from relying on fixed linguistic labels.

Results and Key Insights

The proposed ER-RWLA (Experience Replay combined with RWLA) consistently outperformed all task-agnostic baselines across the benchmark.

Comparison of success rates across different LIBERO benchmarks and lifelong learning methods.

Key Findings:

  • Superior Performance: ER-RWLA achieved an average success rate of 52.42%, a significant improvement over vanilla Experience Replay (39.65%) and AGEM (16.44%).
  • Outperforming Task-Aware Models: In the most challenging libero_different_scenes benchmark, ER-RWLA (45.17%) surpassed PackNet (32.92%), despite PackNet having access to explicit task IDs.
  • Efficiency: The "review" phase is highly efficient, requiring only approximately 20 epochs of local adaptation to achieve substantial performance gains.
  • Semantic Understanding: The use of a dedicated Sentence Similarity model was critical for handling paraphrased instructions, where standard encoders like BERT often fail in a robotics context.

Conclusion and Future Work

RWLA demonstrates that a targeted "review" phase can effectively mitigate catastrophic forgetting in task-unaware lifelong learning. By focusing on specific failure points and leveraging semantic retrieval, robots can adapt to new scenarios with minimal overhead.

Future research will focus on Memory Scalability as the library of experiences grows, potentially using compact embeddings. The team also plans to explore equivariant features to improve skill generalization across different environments and move toward real-world robot manipulation.

Summary updated

BibTeX
@misc{yang2024task,
  author = {Pengzhi Yang and Xinyu Wang and Ruipeng Zhang and Cong Wang and Frans A. Oliehoek and Jens Kober},
  title = {{Task-unaware Lifelong Robot Learning with Retrieval-based Weighted Local Adaptation}},
  year = {2024},
  eprint = {2410.02995},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.02995},
}
Figure