HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

TAG: Task-based Accumulated Gradients for Lifelong learning

Pranshu Malviya Balaraman Ravindran Sarath Chandar

TAG: Task-based Accumulated Gradients for Lifelong learning

Abstract

When an agent encounters a continual stream of new tasks in the lifelong learning setting, it leverages the knowledge it gained from the earlier tasks to help learn the new tasks better. In such a scenario, identifying an efficient knowledge representation becomes a challenging problem. Most research works propose to either store a subset of examples from the past tasks in a replay buffer, dedicate a separate set of parameters to each task or penalize excessive updates over parameters by introducing a regularization term. While existing methods employ the general task-agnostic stochastic gradient descent update rule, we propose a task-aware optimizer that adapts the learning rate based on the relatedness among tasks. We utilize the directions taken by the parameters during the updates by accumulating the gradients specific to each task. These task-based accumulated gradients act as a knowledge base that is maintained and updated throughout the stream. We empirically show that our proposed adaptive learning rate not only accounts for catastrophic forgetting but also allows positive backward transfer. We also show that our method performs better than several state-of-the-art methods in lifelong learning on complex datasets with a large number of tasks.

Code Repositories

pranshu28/TAG
Official
pytorch

Benchmarks

BenchmarkMethodologyMetrics
continual-learning-on-5-dataset-1-epochTAG-RMSProp
Accuracy: 62.59
continual-learning-on-cifar100-20-tasks-1TAG-RMSProp
Average Accuracy: 62.79
continual-learning-on-cub-200-2011-20-tasks-1TAG-RMSProp
Accuracy: 61.58
continual-learning-on-mini-imagenet-20-tasksTAG-RMSProp
Accuracy: 57.2

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp