Giter Site home page Giter Site logo

skylark-test's Introduction

skylark-test

The entry point for the code is in run.py. The training code is in the function train and the evaluation is in the function test in main.py

My submission for the Internship Application at SkyLark Labs. The following is a summary of my approach:

  1. I use the memory augmented neural network (MANN) described in the paper, "One-shot Learning with Memory-Augmented Neural Networks".
  2. I use the MNIST dataset for my test because its the simplest dataset. In my formulation I split the dataset into two parts. One part is with labels 0,1,2,3,4 and the other part is 5,6,7,8,9.
  3. The following is the formulation of my training methodology:
    1. I train the MANN on the first task until convergence using the --labels option to specify which labels are part of the first task. If we have to load a pretrained model we use the --pretrained_model option.
    2. Next, I train the MANN on the second task until convergence using the --labels option again to specify which labels are part of the second task. Here, I will also use the --pretrained_model option to load the model from the previous task. This leads to trasfer of learning. Additionally, I will also use the --no_write option. This allows us to only train the weights of the convolutional neural network while keeping the memory matrix unchanged.
    3. Repeat steps i. and ii. until no learning is happening in either of the tasks - END

I believe that the asymmetry in the i. and ii. steps allows us to train for both the tasks while also overcoming catastrophic forgetting. Thus achieving continual learning.

The following is a schematic of my approach: Schematic of my approach

PS: While we have used external memory matrix to address catastrophic forgetting, I believe we can refer to more mordern methods where tasks are defined using prompts. For example, see this recent paper by Facebook AI. Adopting such methods in addition to the augmented memory might be an interesting idea to try.

skylark-test's People

Contributors

braceletboy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.