Home

Awesome

LINAS

LINAS is model-agnostic and can be adapted to various baseline methods. We provide our code based on 'Dual Encoding'.

Environments

Dataset

To run our code, please first download the required dataset and a pre-trained word2vec here. Then extract the content in LINAS/dataset/.

Training

Run the script for training.

cd LINAS
./train_all.sh $GPU_DEVICE $support-set-size

Evaluation

The evaluation on the test set will be performed automatically after the training. If you would like to evaluate before the end of training, please add '--test' in the script.

Adaptive Distillation

Change the '--similarity_type' in train_all.sh from 'diag' to 'adapt' for training the mask with our Adaptive Distillation strategy.