NCVX: A User-Friendly and Scalable Package for Nonconvex Optimization in Machine Learning

Buyun Liang, Tim Mitchell, Ju Sun
11/27/2021
cs.LGcs.CVcs.MS

Official code: sun-umn/NCVX (39 stars, AGPL-3.0, last commit 2022-07-27).

Abstract

Optimizing nonconvex (NCVX) problems, especially nonsmooth and constrained ones, is an essential part of machine learning. However, it can be hard to reliably solve such problems without optimization expertise.

Show full abstract

Existing general-purpose NCVX optimization packages are powerful but typically cannot handle nonsmoothness. GRANSO is among the first optimization solvers targeting general nonsmooth NCVX problems with nonsmooth constraints, but, as it is implemented in MATLAB and requires the user to provide analytical gradients, GRANSO is often not a convenient choice in machine learning (especially deep learning) applications. To greatly lower the technical barrier, we introduce a new software package called NCVX, whose initial release contains the solver PyGRANSO, a PyTorch-enabled port of GRANSO incorporating auto-differentiation, GPU acceleration, tensor input, and support for new QP solvers. NCVX is built on freely available and widely used open-source frameworks, and as a highlight, can solve general constrained deep learning problems, the first of its kind. NCVX is available at https://ncvx.org, with detailed documentation and numerous examples from machine learning and other fields.

View on arXivView PDF

Code Implementations(1)

sun-umn/NCVXOfficial100%
AGPL-3.0

NCVX: A User-Friendly and Scalable Package for Nonconvex Optimization in Machine Learning

392Aug 5, 20214 years agoAGPL-3.0
computer-visiondata-sciencedeep-learningmachine-learningmathematical-software+1 more

Similar Papers

Cite this paper

@article{liang2021ncvx,
  title  = {NCVX: A User-Friendly and Scalable Package for Nonconvex Optimization in Machine Learning},
  author = {Buyun Liang and Tim Mitchell and Ju Sun},
  year   = {2021},
  eprint = {2111.13984},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.13984}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2111.13984.svg)](https://codeofpaper.com/paper/2111.13984)

Discussion