[Paper Review] Correlation versus RMSE Loss Functions in Symbolic Regression Tasks
This paper proposes using the Pearson correlation coefficient (R²) as a fitness function in symbolic regression, replacing traditional RMSE. By maximizing R² during evolution and applying a post-processing linear alignment step, the method achieves faster convergence, higher accuracy, and requires fewer training points than RMSE, especially on noisy or complex benchmarks including the Feynman dataset.
The use of correlation as a fitness function is explored in symbolic regression tasks and the performance is compared against the typical RMSE fitness function. Using correlation with an alignment step to conclude the evolution led to significant performance gains over RMSE as a fitness function. Using correlation as a fitness function led to solutions being found in fewer generations compared to RMSE, as well it was found that fewer data points were needed in the training set to discover the correct equations. The Feynman Symbolic Regression Benchmark as well as several other old and recent GP benchmark problems were used to evaluate performance.
Motivation & Objective
- To investigate whether replacing RMSE with correlation as a fitness function improves symbolic regression performance in genetic programming.
- To evaluate the impact of correlation-based fitness on convergence speed and solution accuracy across diverse symbolic regression benchmarks.
- To assess the robustness of correlation-based fitness under noise and varying data point counts.
- To determine whether post-processing linear alignment enhances model quality when using correlation as the primary fitness metric.
Proposed method
- Replace the standard RMSE fitness function with R² (coefficient of determination) as the primary fitness metric in genetic programming symbolic regression.
- Maximize R² during evolution to emphasize the strength of the linear relationship between predicted and target values, independent of scale.
- Apply a post-processing linear regression step to align the evolved model’s output with the true target values, minimizing absolute error: $\operatorname*{argmin}_{a_0,a_1} \sum_{i=1}^{N} |y_i - (a_1\hat{y}_i + a_0)|$.
- Use the Feynman Symbolic Regression Benchmark and other established GP benchmarks to evaluate performance under varying noise levels and data point counts.
- Compare results between correlation-based and RMSE-based fitness functions across 98 benchmark problems.
- Measure performance via convergence speed (generations to solution), solution accuracy (RMSE), and success rate in finding exact equations.
Experimental results
Research questions
- RQ1Does using correlation as a fitness function lead to faster convergence in symbolic regression compared to RMSE?
- RQ2Can correlation-based fitness discover correct symbolic equations with fewer training data points than RMSE?
- RQ3How does correlation-based fitness perform under noisy conditions compared to RMSE?
- RQ4To what extent does post-processing linear alignment improve the quality of models evolved with correlation fitness?
- RQ5Does the performance advantage of correlation-based fitness persist across diverse symbolic regression problems, including complex and noisy ones?
Key findings
- The correlation-based fitness function achieved significant performance gains, solving 46 benchmark problems perfectly—29 of which were not solved perfectly by the RMSE approach.
- With 200 data points and 10% noise, the correlation method outperformed RMSE in 79 out of 98 test cases.
- On non-trivial noisy problems (equations 24–26), the correlation fitness function consistently showed faster and more stable convergence than RMSE.
- The correlation method required fewer data points to discover correct equations, demonstrating improved data efficiency.
- When a constant was introduced into the equation, the RMSE fitness function became significantly more sensitive to its magnitude, while the correlation method remained robust.
- Even with high constants (e.g., 50), the correlation method maintained strong performance, while RMSE performance degraded sharply, especially in the absence of noise.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.