Kernel Selection for Modal Linear Regression: Optimal Kernel and IRLS Algorithm

Ryoya Yamasaki, Toshiyuki Tanaka

TL;DR

This paper provides a theoretical and practical guide to kernel selection in Modal Linear Regression (MLR). The authors prove that the Biweight kernel is statistically optimal for minimizing estimation error, while the Epanechnikov kernel paired with an Iteratively Reweighted Least-Squares (IRLS) algorithm offers superior computational efficiency, even guaranteed to terminate in a finite number of steps.

What Problem Does This Paper Address?

Standard linear regression (OLS) aims to find the mean of a dependent variable. However, when data is "messy"—containing outliers, heavy tails, or asymmetric distributions—the mean can be misleading. Modal Linear Regression (MLR) offers a robust alternative by predicting the conditional mode (the most frequent value) rather than the average.

Despite its advantages, MLR has been held back by two main issues:

  1. Kernel Inertia: Most researchers default to using a Gaussian kernel without knowing if it is the most accurate choice.
  2. Algorithmic Bottlenecks: The standard estimation method (Modal EM) is often slow or mathematically inflexible when using non-Gaussian kernels.

The authors set out to answer two fundamental questions: Which kernel gives the smallest error, and which one is the fastest to compute?

Methods

The researchers approached the problem through two lenses: statistical theory and algorithmic design.

  • Refining Asymptotics: They refined existing theorems on the "asymptotic normality" of MLR parameters. By deriving the Asymptotic Mean Squared Error (AMSE), they created a mathematical criterion to compare different kernels.
  • Variational Optimization: Using the AMSE criterion, they solved a variational problem to identify the "optimal" kernel shape.
  • IRLS Framework: They moved away from the standard Modal EM algorithm in favor of Iteratively Reweighted Least-Squares (IRLS). They defined a class of "Quadratic Minorizable" (QM) kernels for which IRLS is guaranteed to converge. This framework allows for explicit parameter update formulas even for non-Gaussian kernels, which previously required messy inner-loop optimizations.

Datasets

The authors used synthetic datasets specifically designed to test the limits of regression.

  • Structure: They generated samples (ranging from $n=100$ to $n=6400$) from a heteroscedastic distribution where the noise was a mixture of two Gaussian distributions.
  • Purpose: This setup created a skewed conditional distribution where the mode and mean were distinct, providing a clear environment to verify their theoretical claims about estimation accuracy and convergence speed.

Key Insights and Ideas

  • The Biweight Advantage: The Biweight kernel—a "truncated" kernel that ignores data points beyond a certain distance—was mathematically proven to be the most accurate. It outperformed the Gaussian kernel by roughly 12% in terms of the AMSE criterion.
  • Truncation is Key: A major takeaway is that truncated kernels (like Biweight, Triweight, and Epanechnikov) generally perform better in MLR than heavy-tailed kernels (like Laplace or Sech).
  • Finite Convergence: In a surprising theoretical result, the authors proved that if you use an Epanechnikov kernel with the IRLS algorithm, the math simplifies such that the algorithm reaches the exact solution in a finite number of iterations. This is a significant upgrade over algorithms that only converge "in the limit."
  • IRLS over EM: The paper demonstrates that IRLS is a more versatile "engine" for MLR, providing a unified way to handle various kernel types that the standard EM algorithm struggles with.

Key Results

  • Accuracy: In simulations with large sample sizes ($n=6400$), the Biweight kernel achieved the lowest Mean Squared Error (0.449), followed by the Gaussian (0.486) and Epanechnikov (0.513).
  • Speed: The computational efficiency of the Epanechnikov kernel was striking. At $n=6400$, the IRLS algorithm with an Epanechnikov kernel converged in just 5.9 seconds on average, compared to 11.5 seconds for the Biweight and a staggering 145.7 seconds for the Laplace kernel.
  • Small Sample Caveat: Interestingly, for very small samples ($n=100$), the Gaussian kernel still performed slightly better, suggesting that the benefits of the Biweight kernel are most realized as more data becomes available.

Limitations and Future Work

  • Asymptotic Reliance: The proof for the Biweight kernel's optimality relies on "large sample" theory. As seen in the results, these advantages might not materialize in very small datasets.
  • Bandwidth Selection: While the paper identifies the best shape for a kernel, the "bandwidth" (the scale or width of the kernel) remains a critical hyperparameter that requires careful tuning.
  • Real-World Validation: The study is purely theoretical and simulation-based. Applying these "optimal" kernels to complex real-world datasets (e.g., economics or medical imaging) would be the next logical step to prove their practical utility.

Summary updated

BibTeX
@inproceedings{yamasaki2019kernel,
  author = {Ryoya Yamasaki and Toshiyuki Tanaka},
  title = {{Kernel Selection for Modal Linear Regression: Optimal Kernel and IRLS Algorithm}},
  booktitle = {ICMLA},
  year = {2019},
  url = {https://openreview.net/forum?id=ZdpU4VxCqj4},
}
Figure