Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Task Contribution] Meta-learning weight initialization (i.e., MAML style few-shot learning) #75

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

51616
Copy link

@51616 51616 commented Oct 3, 2023

I've implemented a new meta-learning task. The goal is learning the initial weight that can be finetuned in a few sgd updates efficiently. This PR is somewhat self-contain with some caveats.

  • The dataset used here is omniglot imported from an external library. If needed, I can refactor and make a custom preprocessing code that can be used with raw omniglot data.
  • The final accuracy for the network implemented there is not good yet. In the original MAML paper, the accuracy was near 100% for 5-way 5-shot omniglot while my network here can barely reach 80%. It could be something related to batchnorm. I can investigate more on this if the performance is a concern.

This PR serves as another good example of how one should go about implementing a new task.

Please let me know if this PR is approvable. If so, I'll make this PR review ready.

@google-cla
Copy link

google-cla bot commented Oct 3, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant