百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

LibMTL

> 编程语言
开源

一个用于多任务学习的 PyTorch 库

2.6K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

一个用于多任务学习的 PyTorch 库

LibMTL

LibMTL is an open-source library built on PyTorch for Multi-Task Learning (MTL). See the latest documentation for detailed introductions and API instructions.

:star: Star us on GitHub — it motivates us a lot!

:bangbang: A comprehensive survey on Gradient-based Multi-Objective Deep Learning is now available on arXiv, along with an awesome list. Check it out!

News

  • [Apr 21 2025] Added support for UPGrad.
  • [Feb 18 2025] Added support for a bilevel method Auto-Lambda (TMLR 2022).
  • [Feb 17 2025] Added support for FAMO (NeurIPS 2023), SDMGrad (NeurIPS 2023), and MoDo (NeurIPS 2023; JMLR 2024).
  • [Feb 06 2025] Added support for two bilevel methods: MOML (NeurIPS 2021; AIJ 2024), FORUM (ECAI 2024).
  • [Sep 19 2024] Added support for FairGrad (ICML 2024).
  • [Aug 31 2024] Added support for ExcessMTL (ICML 2024).
  • [Jul 24 2024] Added support for STCH (ICML 2024).
  • [Feb 08 2024] Added support for DB-MTL.
  • [Aug 16 2023]: Added support for MoCo (ICLR 2023). Many thanks to the author's help @heshandevaka.
  • [Jul 11 2023] Paper got accepted to JMLR.
  • [Jun 19 2023] Added support for Aligned-MTL (CVPR 2023).
  • [Mar 10 2023]: Added QM9 and PAWS-X examples.
  • [Jul 22 2022]: Added support for Nash-MTL (ICML 2022).
  • [Jul 21 2022]: Added support for Learning to Branch (ICML 2020). Many thanks to @yuezhixiong (#14).
  • [Mar 29 2022]: Paper is now available on the arXiv.

Table of Content

  • Features
  • Overall Framework
  • Supported Algorithms
  • Supported Benchmark Datasets
  • Installation
  • Quick Start
    • Download Dataset
    • Run a Model
  • Citation
  • Contributor
  • Contact Us
  • Acknowledgements
  • License

Features

  • Unified: LibMTL provides a unified code base to implement and a consistent evaluation procedure including data processing, metric objectives, and hyper-parameters on several representative MTL benchmark datasets, which allows quantitative, fair, and consistent comparisons between different MTL algorithms.
  • Comprehensive: LibMTL supports many state-of-the-art MTL methods including 8 architectures and 16 optimization strategies. Meanwhile, LibMTL provides a fair comparison of several benchmark datasets covering different fields.
  • Extensible: LibMTL follows the modular design principles, which allows users to flexibly and conveniently add customized components or make personalized modifications. Therefore, users can easily and fast develop novel optimization strategies and architectures or apply the existing MTL algorithms to new application scenarios with the support of LibMTL.

Overall Framework

Each module is introduced in Docs.

Supported Algorithms

LibMTL currently supports the following algorithms:

Optimization Strategies Venues Arguments
Equal Weighting (EW) - --weighting EW
Gradient Normalization (GradNorm) ICML 2018 --weighting GradNorm
Uncertainty Weights (UW) CVPR 2018 --weighting UW
MGDA (official code) NeurIPS 2018 --weighting MGDA
Dynamic Weight Average (DWA) (official code) CVPR 2019 --weighting DWA
Geometric Loss Strategy (GLS) CVPR 2019 Workshop --weighting GLS
Projecting Conflicting Gradient (PCGrad) NeurIPS 2020 --weighting PCGrad
Gradient sign Dropout (GradDrop) NeurIPS 2020 --weighting GradDrop
Impartial Multi-Task Learning (IMTL) ICLR 2021 --weighting IMTL
Gradient Vaccine (GradVac) ICLR 2021 --weighting GradVac
Conflict-Averse Gradient descent (CAGrad) (official code) NeurIPS 2021 --weighting CAGrad
MOML NeurIPS 2021 --weighting MOML
Nash-MTL (official code) ICML 2022 --weighting Nash_MTL
Random Loss Weighting (RLW) TMLR 2022 --weighting RLW
Auto-Lambda (official code) TMLR 2022 --weighting AutoLambda
MoCo ICLR 2023 --weighting MoCo
Aligned-MTL (official code) CVPR 2023 --weighting Aligned_MTL
FAMO (official code) NeurIPS 2023 --weighting FAMO
SDMGrad (official code) NeurIPS 2023 --weighting SDMGrad
MoDo (official code) NeurIPS 2023 --weighting MoDo
FORUM ECAI 2024 --weighting FORUM
STCH (official code) ICML 2024 --weighting STCH
ExcessMTL (official code) ICML 2024 --weighting ExcessMTL
FairGrad (official code) ICML 2024 --weighting FairGrad
DB-MTL arXiv

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Pythondeep-learningmmoemtlmulti-domain-learning

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言