Coder Social home page Coder Social logo

shawnks / mtg-net Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 0.0 43.34 MB

Efficient and Effective Multi-task Grouping via Meta Learning on Task Combinations part of Advances in Neural Information Processing Systems (NeurIPS) 2022.

Python 16.00% Jupyter Notebook 82.81% Shell 0.88% C++ 0.30%

mtg-net's Introduction

MTG-Net

The repository contains the codes for the paper, Efficient and Effective Multi-task Grouping via Meta Learning on Task Combinations, which is accepted by Advances in Neural Information Processing Systems (NeurIPS) 2022.

Dataset & Backbone Model

Taskonomy We follow the backbone model used in Which Tasks to Train Together in Multi-Task Learning (ICML'20) MIMICIII We follow the backbone model used in A Comprehensive EHR Timeseries Pre-training Benchmark (CHIL'21) ETTm1 We follow the backbone model used in Autoformer (NeurIPS21)

Transferring Gain Collection

We provide scripts for collecting the transferring gain here.

Env

torch 1.7.1 cuda 10.2 numpy 1.21.6 pandas 1.3.5

For the backbone environment package used, please refer to the link mentioned above.

Baselines

High Order Approximation(HOA) uses pairwise task transferring gains to predict tasks' transferring gains, Task Affinity Grouping (TAG) combines HOA with task affinity to accelerate the data collection process. For each baseline we provide scripts for data collect and predict.

Pipeline

  1. Collect ground truth transferring gains on datasets, our collected gains can be found at ./gain_collection/
  2. Run MTG-Net script to obtain the predicted gain, the log files would be generated at ./log/.

A script embed_visual_example.ipynb to visualize the task embedding is provided.

python MTG.py --dataset mimic27 --gpu_id 0 --layer_num 4 --seed 72 --strategy active --num_hidden 64
  1. We provide grouping and visualization notebooks for each dataset at ./model/

Visualization Notebooks

We provide visualizations of the results for grouping operations in the ./model/ directory, which include ETTm1_grouping_reproduce.ipynb, mimic27_grouping_reproduce.ipynb, and taskonomy_grouping_reproduce.ipynb notebooks corresponding to the three datasets we used. For each dataset, we provide log files for both training and prediction processes, and grouping is performed using the predicted and sampled values during these processes. The visualized grouping performance results can be seen in these three notebooks. In addition, for the taskonomy dataset, we used an exhaustive algorithm for grouping, while for the other two datasets with larger combinatorial spaces, we adopted a strategy to reduce computational complexity for easier grouping operations. The algorithm is introduced in the appendix of the paper and implemented in search.py. The provided scripts and notebooks have been tested locally.

Citation

If you find our work interesting, you can cite the paper as

@inproceedings{
song2022mtgnet,
title={{Efficient and Effective Multi-task Grouping via Meta Learning on Task Combinations},
author={Xiaozhuang Song and Shun Zheng and Wei Cao and James Jianqiao Yu and Jiang Bian},
booktitle={Advances in Neural Information Processing Systems},
year={2022},
}

mtg-net's People

Contributors

clarenceluo78 avatar shawnks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mtg-net's Issues

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.