Skip to content

PyTorch code for the EvoMAL algorithm presented in "Learning Symbolic Model-Agnostic Loss Functions via Meta-Learning" (TPAMI-2023). Paper Link: https://arxiv.org/abs/2209.08907

License

Notifications You must be signed in to change notification settings

Decadz/Evolved-Model-Agnostic-Loss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Evolved Model-Agnostic Loss

This repository contains code for reproducing the experiments in the paper "Learning Symbolic Model-Agnostic Loss Functions via Meta-Learning" by Christian Raymond, Qi Chen, Bing Xue, and Mengjie Zhang.

banner-image

Contents

A PyTorch + Higher implementation of the newly proposed Evolved Model-Agnostic Loss (EvoMAL) algorithm. In addition, there is also code for reproducing loss function learning algorithms from the following papers:

Installation

  1. Clone this repository to your local machine:
git clone https://github.com/Decadz/Evolved-Model-Agnostic-Loss.git
cd Evolved-Model-Agnostic-Loss
  1. Install the necessary libraries and dependencies:
pip install requirements.txt

Usage

To meta-learn loss functions run the following command via the terminal:

python experiments/run_learning.py --method method_name --dataset dataset_name --model model_name --seeds [seeds] --device device

To transfer a previously meta-learned loss functions run the following command via the terminal:

python experiments/run_transfer.py --method method_name --source_dataset dataset_name --source_model model_name --source_seed seed --target_dataset dataset_name --target_model model_name --target_seeds [seeds] --device device

Available Arguments:

  • Method = {baseline, ml3, taylorglo, gplfl, evomal}
  • Dataset = {mnist, cifar10, cifar100, svhn, california, boston, diabetes}
  • Model = {linear, mlp, lenet5, alexnet, vgg, allcnnc, resnet, preresnet, wideresnet, squeezenet, pyramidnet}

Code Reproducibility:

The code has not been comprehensively checked and re-run since refactoring. If you're having any issues, find a problem/bug or cannot reproduce similar results as the paper please open an issue or email me.

Reference

If you use our library or find our research of value please consider citing our papers with the following Bibtex entry:

@article{raymond2023learning,
  title={Learning Symbolic Model-Agnostic Loss Functions via Meta-Learning},
  author={Raymond, Christian and Chen, Qi and Xue, Bing},
  journal={IEEE Transactions on Pattern Analysis and Machine Intelligence},
  year={2023},
  publisher={IEEE}
}
@inproceedings{raymond2023fast,
  title={Fast and Efficient Local-Search for Genetic Programming Based Loss Function Learning},
  author={Raymond, Christian and Chen, Qi and Xue, Bing and Zhang, Mengjie},
  booktitle={Proceedings of the Genetic and Evolutionary Computation Conference},
  pages={1184--1193},
  year={2023}
}

About

PyTorch code for the EvoMAL algorithm presented in "Learning Symbolic Model-Agnostic Loss Functions via Meta-Learning" (TPAMI-2023). Paper Link: https://arxiv.org/abs/2209.08907

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages