Skip to main content
QUICK REVIEW

[Paper Review] Statistical Properties of the log-cosh Loss Function Used in Machine Learning

Resve Saleh, A. K. Ehsanes Saleh|arXiv (Cornell University)|Aug 9, 2022
Statistical Methods and InferenceMathematics26 citations
TL;DR

The paper derives the statistical properties of the log-cosh loss, identifies the Cosh distribution as the underlying model, and compares it with Normal and Cauchy; it also shows robustness advantages and applications to quantile regression.

ABSTRACT

This paper analyzes a popular loss function used in machine learning called the log-cosh loss function. A number of papers have been published using this loss function but, to date, no statistical analysis has been presented in the literature. In this paper, we present the distribution function from which the log-cosh loss arises. We compare it to a similar distribution, called the Cauchy distribution, and carry out various statistical procedures that characterize its properties. In particular, we examine its associated pdf, cdf, likelihood function and Fisher information. Side-by-side we consider the Cauchy and Cosh distributions as well as the MLE of the location parameter with asymptotic bias, asymptotic variance, and confidence intervals. We also provide a comparison of robust estimators from several other loss functions, including the Huber loss function and the rank dispersion function. Further, we examine the use of the log-cosh function for quantile regression. In particular, we identify a quantile distribution function from which a maximum likelihood estimator for quantile regression can be derived. Finally, we compare a quantile M-estimator based on log-cosh with robust monotonicity against another approach to quantile regression based on convolutional smoothing.

Motivation & Objective

  • Motivate and justify studying the log-cosh loss function from a statistical perspective.
  • Derive the Cosh distribution and its MLE corresponding to the log-cosh loss.
  • Analyze asymptotic bias, variance, and confidence intervals for the log-cosh MLE.
  • Compare log-cosh with robust alternatives (Huber, rank-based methods) and with LSE.
  • Demonstrate quantile regression applications using a continuous log-cosh based check function.

Proposed method

  • Define the log-cosh loss as rho_L(x, theta)=log(cosh(x - theta)).
  • Derive the Cosh distribution with pdf f(x; theta, sigma)=1/(pi sigma cosh((x-theta)/sigma)).
  • Compute the MLE by solving sum_i tanh(x_i - theta)=0 and show convexity via second derivative sech^2(x).
  • Compute Fisher information I(theta)=1/(2 sigma^2) and asymptotic variance Var(hat{theta})=2 sigma^2/n.
  • Compare asymptotic properties to Normal and Cauchy distributions and relate to L1/L2 losses through intuitive analysis.
  • Extend to quantile regression by introducing a continuous log-cosh based check function and SMRQ, including how to derive its Fisher information and use bootstrapping for s.e.

Experimental results

Research questions

  • RQ1What is the statistical distribution from which the log-cosh loss arises and how does it compare to Cauchy?
  • RQ2What are the asymptotic properties (bias, variance, confidence intervals) of the log-cosh MLE for the location parameter?
  • RQ3How does log-cosh perform relative to robust alternatives (Huber, rank-based) in estimation and standard errors?
  • RQ4How can log-cosh be utilized in quantile regression to avoid crossing problems, and what is the corresponding MLE and distribution?
  • RQ5How does convolved smoothing compare to SMRQ in addressing quantile crossing and monotonicity?

Key findings

  • The log-cosh loss corresponds to the Cosh distribution with pdf 1/(pi sigma cosh((x-theta)/sigma)).
  • The MLE for theta satisfies sum_i tanh(x_i - theta)=0 and is globally convex, with asymptotic Var(hat{theta}) = 2 sigma^2/n.
  • Asymptotically, the log-cosh estimator is unbiased and its confidence intervals follow standard asymptotic normal theory using Fisher information I(theta)=1/(2 sigma^2).
  • Log-cosh exhibits robustness comparable to L1-based methods while providing continuous first and second derivatives, unlike L1 (discontinuous derivative) and with smoother behavior than Huber in some settings.
  • In quantile regression, a continuous log-cosh based check function rho_S(x, tau) = log(cosh(x)) + (tau - 1/2)x yields a smooth M-estimator that avoids the kink problem of the traditional check function.
  • Bootstrapping validates the asymptotic variance results and supports the consistency of log-cosh estimates across different theta and sigma.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.