TLDR: Researchers Luca Giuliani and Michele Lombardi have developed a new method, HGR-KB, for calculating the Hirschfeld–Gebelein–Rényi (HGR) correlation coefficient, which captures complex non-linear relationships in data. By using user-configurable polynomial kernels, their approach offers superior robustness, interpretability, and determinism compared to existing techniques. This makes it a more reliable tool for real-world applications, especially in areas like algorithmic fairness and constrained machine learning, where understanding and controlling non-linear correlations are crucial.
Understanding how different pieces of information relate to each other is fundamental in fields like statistics and machine learning. While common tools like Pearson’s correlation coefficient are excellent for identifying linear relationships, and Spearman’s rank correlation handles monotonic trends, many real-world connections are far more complex and non-linear.
This is where the Hirschfeld–Gebelein–Rényi (HGR) correlation coefficient comes into play. HGR is a powerful extension that can uncover these intricate non-linear dependencies by transforming data into different spaces using “copula transformations.” Its potential applications are vast, ranging from ensuring fairness in algorithms to advanced scientific analysis and discovering causal links.
However, despite its advantages, HGR has been challenging to use in practice. Its exact value is theoretically uncomputable, meaning researchers have to rely on approximations. Previous methods for estimating HGR often struggled with a trade-off between bias and variance, potentially compromising their reliability and making them less suitable for critical real-world scenarios. Some approaches were also non-deterministic, producing different results each time, which can erode user trust.
A Novel Approach: Polynomial Regression for Robust HGR
Researchers Luca Giuliani and Michele Lombardi from the University of Bologna have introduced a significant advancement in computing HGR. Their novel method, detailed in their preprint “Robust Non-Linear Correlations via Polynomial Regression”, leverages user-configurable polynomial kernels to estimate HGR. This approach offers enhanced robustness and determinism compared to existing techniques.
The core idea is to represent the complex mapping functions (copula transformations) as finite-degree polynomials. This allows for a more controlled and understandable way to transform the data. The method comes in two main variants: HGR-KB (Kernel-Based) and HGR-SK (Single-Kernel).
Key Advantages of the New Method
The polynomial kernel approach brings several crucial benefits:
- Robustness and Determinism: Unlike some previous methods that rely on random processes, this new technique uses exact optimization, making it fully deterministic. This means consistent results every time, which is vital for reliable applications.
- Interpretability: Polynomial kernels are transparent. The learned transformations can be easily plotted and analyzed, and the coefficients directly show the magnitude of each polynomial term. This provides clear insights into the nature of the non-linear relationship, a feature often lacking in neural network-based or kernel-density estimation methods.
- Configurability: Users can choose the degree of the polynomial kernels. This provides a clear and mathematically sound way to manage the bias-variance trade-off, allowing for fine-tuning the method’s expressiveness and computational demands. Experiments show that an optimal balance is often found with relatively low polynomial degrees.
- Differentiability: The method can yield meaningful gradients or subgradients, making it suitable for use as a “loss regularizer” in constrained machine learning. This means it can help guide neural networks during training to enforce desired correlation levels, particularly important in fairness applications.
- Faster Computation (HGR-SK): The Single-Kernel variant, HGR-SK, is significantly faster, solving an unconstrained least-square problem. While it’s limited to functional dependencies (B depends on A, or A depends on B), it offers a rapid solution when applicable.
Also Read:
- Unveiling the Symbiotic Relationship Between Nonnegative Matrix Factorization and the Principle of the Common Cause
- Unlocking Transparent Job Matching: How AI and Knowledge Graphs Explain Career Connections
Experimental Validation and Real-World Impact
The researchers validated their approach through extensive experiments on both synthetic and real-world datasets. On synthetic data, HGR-KB demonstrated better stability and produced results closer to the “oracle” (true) correlation compared to other methods, which sometimes underestimated or overestimated the correlation due to overfitting.
In fairness scenarios, where the goal is to prevent unwanted correlations between protected attributes (like age or race) and model predictions, the HGR-KB and HGR-SK methods proved effective. They successfully enforced correlation constraints during the training of neural networks, showing their practical applicability in building more equitable AI systems. The HGR-SK variant, while slightly less precise in some cases, offered a substantial speed advantage.
In conclusion, this new methodology for computing the HGR correlation coefficient via polynomial kernels represents a significant step forward. By offering improved robustness, interpretability, and determinism, it provides a more reliable and understandable tool for detecting and enforcing non-linear correlations, paving the way for more trustworthy and fair machine learning applications.


