← all repositories

WeiChengTseng/Pytorch-PCGrad

A PyTorch reimplementation of PCGrad (gradient surgery) for multi-task learning.

401 stars Python ML Frameworks
Pytorch-PCGrad
Velocity · 7d
+0.2
★ / day
Trend
steady
star history

This repository provides a PyTorch implementation of the gradient surgery technique for multi-task learning. It wraps standard PyTorch optimizers with a PCGrad class that modifies conflicting gradients between tasks before applying updates. The implementation supports multi-task scenarios including Multi-MNIST and is designed to prevent gradient interference when training a single model on multiple objectives.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.