Skip to main content

Regularized Composite ReLU-ReHU Loss Minimization with Linear Computation and Linear Convergence

Project description

ReHLine

ReHLine is designed to be a computationally efficient and practically useful software package for large-scale empirical risk minimization (ERM) problems.

The ReHLine solver has four appealing "linear properties":

  • It applies to any convex piecewise linear-quadratic loss function, including the hinge loss, the check loss, the Huber loss, etc.
  • In addition, it supports linear equality and inequality constraints on the parameter vector.
  • The optimization algorithm has a provable linear convergence rate.
  • The per-iteration computational complexity is linear in the sample size.

📝 Formulation

ReHLine is designed to address the empirical regularized ReLU-ReHU minimization problem, named ReHLine optimization, of the following form:

$$ \min_{\mathbf{\beta} \in \mathbb{R}^d} \sum_{i=1}^n \sum_{l=1}^L \text{ReLU}( u_{li} \mathbf{x}_ i^\intercal \mathbf{\beta} + v_{li}) + \sum_{i=1}^n \sum_{h=1}^H {\text{ReHU}}_ {\tau_{hi}}( s_{hi} \mathbf{x}_ i^\intercal \mathbf{\beta} + t_{hi}) + \frac{1}{2} \Vert \mathbf{\beta} \Vert_2^2, \qquad \text{ s.t. } \mathbf{A} \mathbf{\beta} + \mathbf{b} \geq \mathbf{0}, $$

where $\mathbf{U} = (u_{li}),\mathbf{V} = (v_{li}) \in \mathbb{R}^{L \times n}$ and $\mathbf{S} = (s_{hi}),\mathbf{T} = (t_{hi}),\mathbf{\tau} = (\tau_{hi}) \in \mathbb{R}^{H \times n}$ are the ReLU-ReHU loss parameters, and $(\mathbf{A},\mathbf{b})$ are the constraint parameters. The ReLU and ReHU functions are defined as $\mathrm{ReLU}(z)=\max(z,0)$ and

$$ \mathrm{ReHU}_\tau(z) = \begin{cases} \ 0, & z \leq 0 \ \ z^2/2, & 0 < z \leq \tau \ \ \tau( z - \tau/2 ), & z > \tau \end{cases}. $$

This formulation has a wide range of applications spanning various fields, including statistics, machine learning, computational biology, and social studies. Some popular examples include SVMs with fairness constraints (FairSVM), elastic net regularized quantile regression (ElasticQR), and ridge regularized Huber minimization (RidgeHuber).

⌛ Benchmark (powered by benchopt)

Some existing problems of recent interest in statistics and machine learning can be solved by ReHLine, and we provide reproducible benchmark code and results at the ReHLine-benchmark repository.

Problem Results
FairSVM Result
ElasticQR Result
RidgeHuber Result
SVM Result
Smoothed SVM Result

🧾 Overview of Results

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

rehline-0.0.3-pp310-pypy310_pp73-win_amd64.whl (105.1 kB view hashes)

Uploaded PyPy Windows x86-64

rehline-0.0.3-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (141.1 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

rehline-0.0.3-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl (152.0 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686

rehline-0.0.3-cp312-cp312-win_amd64.whl (105.5 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

rehline-0.0.3-cp312-cp312-win32.whl (94.7 kB view hashes)

Uploaded CPython 3.12 Windows x86

rehline-0.0.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (147.5 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

rehline-0.0.3-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl (157.9 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ i686

rehline-0.0.3-cp311-cp311-win_amd64.whl (106.4 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

rehline-0.0.3-cp311-cp311-win32.whl (96.0 kB view hashes)

Uploaded CPython 3.11 Windows x86

rehline-0.0.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (148.3 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

rehline-0.0.3-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl (158.2 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686

rehline-0.0.3-cp310-cp310-win_amd64.whl (200.1 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

rehline-0.0.3-cp310-cp310-win32.whl (95.0 kB view hashes)

Uploaded CPython 3.10 Windows x86

rehline-0.0.3-cp310-cp310-musllinux_1_1_x86_64.whl (664.6 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

rehline-0.0.3-cp310-cp310-musllinux_1_1_i686.whl (717.6 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ i686

rehline-0.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (147.1 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

rehline-0.0.3-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl (157.3 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page