Git Product home page Git Product logo

sol's Introduction

Generalizable Symbolic Optimizer Learning, ECCV 2024.

This is the code implementation for the paper "Generalizable Symbolic Optimizer Learning".

Requirements

  • Python 3.7
  • Pytorch 1.13.1
  • torch_geometric 2.3.1
  • transformer 4.28.1
  • robustbench
  • torchattacks

Data

Image classification

  • MNIST
  • CIFAR-10

GNN node classification

  • CiteSeer
  • Cora
  • PubMed

BERT finetuning

  • MRPC
  • WNLI
  • SST-2
  • Cola
  • RTE

Running the Experiments

To perform the experiment on MNIST with MNISTNET

cd ./convnet
python -u mnistnet.py --max_epoch 50 --optimizer_steps 100 --truncated_bptt_step 20 --updates_per_epoch 10 --batch_size 128

To perform the experiment on CIFAR-10 with ConvNet

cd ./convnet
python -u convnet.py --max_epoch 50 --optimizer_steps 100 --truncated_bptt_step 20 --updates_per_epoch 10 --batch_size 64

To perform the experiment on adversarial attacks

cd ./attack
python -u train.py

To perform the experiment on GNN training

cd ./gnn
python -u main.py

To perform the experiement on BERT finetuning, we use Cola as an example, the other datasets are similar

cd ./bert
python -u main_cola.py

For SST-2 and RTE datasets, test the learned optimizer using new_sst.py.

The MRPC experiment is executed in separate codes

cd ./bert
python -u MRPC_train.py -maxlen 64 --max_epoch 100 --updates_per_epoch 10 --optimizer_steps 150 --truncated_bptt_step 30 > mrpc_log 2>&1 &ls

Reference

Wait update.

sol's People

Contributors

songxt3 avatar

Stargazers

 avatar Jingrong Xie avatar

Watchers

 avatar Kostas Georgiou avatar

Forkers

rayzhhh

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.