Code Monkey home page Code Monkey logo

ifsl's Introduction

Interventional Few-Shot Learning

This project provides a strong Baseline with WRN28-10 and ResNet-10 backbone for the following Few-Shot Learning methods:

  • Fine-tuning
  • Matching Networks
  • Model-Agnostic Meta-Learning (MAML)
  • Meta-Transfer Learning for Few-Shot Learning (MTL)
  • Meta-Learning with Latent Embedding Optimization (LEO)
  • Synthetic Information Bottleneck (SIB)

This also includes implementation of our NeurIPS 2020 paper Interventional Few-Shot Learning, which proposes IFSL classifier based on intervention P(Y|do(X)) to remove the confounding bias from pre-trained knowledge. Our IFSL classifier is generally applicable to all fine-tuning and meta-learning method, easy to plug in and involves no additional training steps.

The codes are organized into four folders according to methods. The folder finetune_MN_MAML contains baseline and IFSL for fine-tuning, Matching Networks and MAML.

Dependencies

Recommended version:

  • Python 3.7.6
  • PyTorch 1.4.0

Preparation

After downloading the weights and datasets, you can follow the instructions in each folder to modify the code and finish preparation.

TODO

Apologize in advance for dirty code, which I will clean up gradually.

Before the release of other methods, you can refer to SIB for IFSL implementation (which is really the same across all methods).

  • Code release for SIB
  • Code release for LEO
  • Code release for MTL
  • Code release for fine-tuning, MN and MAML (Planned by 25/10/2020)
  • Code refactoring
  • Improve documentation and optimize project setup procedures

References

The implementation is based on the following repositories (for correctness of baseline, most of our code is based on the official released code).

Citation

If you find our work or the code useful, please consider cite our paper using:

@inproceedings{yue2020interventional,
  title={Interventional Few-Shot Learning},
  author={Yue, Zhongqi and Zhang, Hanwang and Sun, Qianru and Hua, Xian-Sheng},
  booktitle= {NeurIPS},
  year={2020}
}

ifsl's People

Contributors

yue-zhongqi 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.