Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 831 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 831 Bytes

PCGrad-PyTorch

PyTorch implementation for "Gradient Surgery for Multi-Task Learning" https://arxiv.org/abs/2001.06782

This is currently a Work in Progress! Please see the issues tab for pending tasks.

For the Tensorflow implementation by the Paper authors, please see https://github.com/tianheyu927/PCGrad

Usage:

"""
grad_list is a list of lists
structured as :
[
task1 gradients: [], 
task1 gradients: [], 
...
taskn gradients:[]
]
"""


grad_list = pc_grad_update(grad_list)

Currently validated on Multi MNIST: https://github.com/OrthoDex/MultiObjectiveOptimization/tree/feature/pc-grad

Reproducing Results:

MultiMNIST: https://app.wandb.ai/ishaan-malhi/multi-task-learning

Note: Reproducing paper results for multi-task CIFAR-100 and NYUv2 are pending.