Robust Non-Linear Correlations via Polynomial Regression

Luca Giuliani, Michele LombardiarXiv 2025 · DOI

Introduction

In statistical analysis, identifying dependencies between variables is fundamental. While Pearson’s correlation effectively captures linear patterns and Spearman’s rank handles monotonic relationships, real-world data often exhibits complex, non-linear dependencies. The Hirschfeld–Gebelein–Rényi (HGR) coefficient is considered the "gold standard" for such cases because it identifies the optimal transformations for two variables to maximize their correlation. However, HGR is theoretically uncomputable for finite samples, and existing approximations—such as those using neural networks (HGR-NN) or Kernel Density Estimation (HGR-KDE)—suffer from overfitting, high computational costs, and non-deterministic behavior.

This paper introduces a novel approach to estimating HGR using polynomial kernels. By restricting the search space to finite-degree polynomials, the authors provide a method that is deterministic, robust against noise, and significantly faster than traditional neural network-based approaches.

Methodology

The authors propose two primary variants for estimating the HGR coefficient:

  1. HGR-KB (Kernel-Based): This method restricts transformations to finite-degree polynomials, reformulating the HGR problem into a constrained quadratic optimization task. This can be solved reliably using Trust Region Methods, ensuring deterministic results.
  2. HGR-SK (Single-Kernel): A streamlined version that assumes a functional dependency in only one direction. This simplifies the mathematical requirements into a standard least-squares problem, offering extreme computational efficiency.
Transformation of a circular dependency into a linear correlation using polynomial kernels f(a) and g(b).

As illustrated above, the method works by finding polynomial transformations that map non-linear distributions (like a circle) into a space where they exhibit high linear correlation. Both methods provide subgradients, allowing them to be integrated into deep learning loss functions as differentiable fairness constraints.

Key Insights and Results

The "Sweet Spot" of Expressivity

While neural networks can theoretically model any function, they often overfit to noise in smaller datasets. Polynomials (specifically degrees 3 to 5) act as a natural regularizer. This approach captures the underlying signal without the instability of black-box models. Furthermore, the coefficients of these polynomials are interpretable, allowing researchers to understand the nature of the dependency (e.g., quadratic vs. cubic).

Computational Efficiency

The proposed methods offer significant speed advantages. By reducing the problem to linear algebra or constrained optimization, the authors achieved substantial speedups compared to global optimization methods.

Execution time comparison between the Optimization (HGR-KB) and Least-Square (HGR-SK) methods across different data sizes and shapes.

Robustness and Fairness

In empirical tests, HGR-KB demonstrated perfect consistency across different random seeds, a stark contrast to the fluctuations seen in HGR-NN. When applied to real-world fairness benchmarks—such as the 2015 US Census, Communities & Crimes, and Adult Census Income datasets—the method successfully enforced fairness constraints. For instance, on the Adult dataset, it reduced correlation with protected attributes to target levels while maintaining high predictive accuracy.

Conclusion

By leveraging polynomial kernels, this research provides a practical, robust, and interpretable tool for non-linear correlation estimation. The deterministic nature of the HGR-KB and HGR-SK methods makes them particularly suitable for legal and ethical audits in machine learning, where consistency and transparency are paramount. Future work may explore extending this framework to other kernel types, such as splines or RBF kernels, to further enhance robustness across diverse data distributions.

Summary updated

BibTeX
@misc{giuliani2025robust,
  author = {Luca Giuliani and Michele Lombardi},
  title = {{Robust Non-Linear Correlations via Polynomial Regression}},
  year = {2025},
  eprint = {2509.09380},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.09380},
}
Figure