Abstract
Performance of machine learning approaches depends strongly on the choice of misfit penalty, and correct choice of penalty parameters, such as the threshold of the Huber function. These parameters are typically chosen using expert knowledge, cross-validation, or black-box optimization, which are time consuming for large-scale applications. We present a principled, data-driven approach to simultaneously learn the model parameters and the misfit penalty parameters. We discuss theoretical properties of these joint inference problems, and develop algorithms for their solution. We show synthetic examples of automatic parameter tuning for piecewise linear-quadratic (PLQ) penalties, and use the approach to develop a self-tuning robust PCA formulation for background separation.
Introduction
In statistical modeling and machine learning, the choice of loss function—or misfit penalty—is critical. Common choices include the Huber loss for robustness against outliers and the quantile loss for asymmetric error costs. These Piecewise Linear-Quadratic (PLQ) penalties are defined by "shape parameters," such as the threshold $\kappa$ in Huber loss or the asymmetry $\tau$ in quantile loss.
Traditionally, these parameters are tuned through computationally expensive methods like cross-validation or grid search, which require solving the entire optimization problem repeatedly. This paper proposes a framework to learn these optimal shape parameters directly from data during the training process, significantly reducing overhead.
The Challenge of Shape Parameters
PLQ penalties are versatile but sensitive. For instance, the quantile loss (shown below) uses a parameter $\tau$ to weight overestimation and underestimation differently.
Determining the "correct" $\tau$ or the Huber threshold $\kappa$ usually relies on expert intuition. The goal of this research is to automate this selection by treating the penalty as a component of a probability density function.
The Statistical Bridge and Joint Optimization
The core innovation lies in associating any coercive PLQ penalty $\rho(r; \theta)$ with a probability density $p(r; \theta) \propto \exp(-\rho(r; \theta))$. To ensure this is a valid density, it must integrate to one, necessitating a normalization constant $n_c(\theta)$.
By minimizing the negative log-likelihood of this density, we arrive at a joint objective function: $$\min_{x, \theta} \sum \rho(y_i - a_i^\top x; \theta) + m \log[n_c(\theta)]$$
The term $\log[n_c(\theta)]$ acts as a natural regularizer, preventing shape parameters from collapsing to trivial values. This approach allows for more complex penalties, such as the quantile Huber loss, which combines robustness and asymmetry.
Optimization Algorithms
The authors developed specialized algorithms to solve this joint problem:
- Proximal Methods (PALM/PAM): Effective for smooth penalties.
- Interior Point (IP) Method: A robust approach using the conjugate representation of PLQ functions, typically converging in fewer than 20 iterations.
Results and Efficiency
The method was tested on synthetic linear regression and real-world video data for Robust Principal Component Analysis (RPCA). Key findings include:
- Speed: Joint estimation is roughly 20 times faster than a standard $5 \times 5$ grid search.
- Accuracy: The model successfully recovered ground-truth shape parameters in synthetic tests.
- Performance: In background subtraction tasks, the "self-tuning" Huber penalty outperformed manually tuned versions, providing cleaner separation of moving objects from static backgrounds.
Conclusion
By leveraging the normalization constant of probability densities, shape parameter estimation becomes a tractable joint optimization problem. This approach offers a principled, efficient alternative to traditional hyperparameter tuning, with the potential to scale to large-scale machine learning applications.
Summary updated