Poly-Dual Polynomial Regression
- The paper presents a hybrid piecewise regression approach that combines GPU-accelerated pilot density estimation with dual polynomial fitting to accurately capture asymmetric, heavy-tailed unimodal distributions.
- It demonstrates superior computational efficiency and fitting accuracy compared to conventional KDE methods, significantly reducing memory usage and speeding up inference.
- The method offers practical advantages for large-scale datasets in clinical, financial, and reliability applications by adapting to skewed data with minimal tuning.
Poly-Dual Polynomial Regression (Poly-DPR) is a piecewise regression framework developed for accurate, efficient estimation of asymmetric, heavy-tailed, unimodal probability densities. Leveraging a hybrid procedure, Poly-DPR first constructs a smooth pilot density estimate using GPU-accelerated kernel or histogram-based surrogates, then fits two separate polynomials (of a chosen order) to the empirical density function on either side of the mode. This architecture enables low-cost evaluation and strong data-adaptive flexibility, especially for real-world distributions that exhibit skewness or exponential decay and are not well-modeled by classical parametric or generic nonparametric density estimators (Sarkar et al., 3 Dec 2025).
1. Motivation and Problem Setting
Standard parametric families, including the Normal and Pearson Type I distributions, impose restrictive symmetry and tail constraints, resulting in poor performance on skewed or heavy-tailed data. Conversely, generic nonparametric methods such as histograms or kernel density estimation (KDE) lack structure yet suffer bin-edge artifacts or become computationally intractable due to scaling in both time and space (where is the sample size and is the evaluation grid). Poly-DPR addresses this gap by utilizing the strengths of piecewise modeling—flexibility to accommodate empirical irregularities—while enforcing computational efficiency and numerical tractability, particularly for very large datasets and real-time inference scenarios (Sarkar et al., 3 Dec 2025).
2. Mathematical Formulation
Given one-dimensional observations from an unknown unimodal density , Poly-DPR executes in two stages. First, a smooth, empirical pilot estimate is constructed using either:
- Tensor-based KDE (tKDE):
where is set by Scott’s rule .
- Tensor-based Histogram Density Estimation (tHDE), smoothed by a Gaussian filter.
The mode is determined as 0. The domain is split at 1, and two independent polynomials of order 2 are fitted on the left (3) and right (4) segments, in shifted coordinates 5:
- For 6:
7
- For 8:
9
Continuity is automatically enforced at the mode (0) because both polynomials agree at 1 (i.e., 2). No derivative matching is imposed, ensuring numerical stability and simplicity. The polynomial coefficients 3 are obtained by minimizing mean squared error between the polynomial fit and the pilot estimate over all grid points:
4
Normalization is enforced such that the fitted PDF integrates to unity over the grid:
5
Values are floored at 6 and clipped to not exceed 7 to ensure numerical stability (Sarkar et al., 3 Dec 2025).
3. Implementation Aspects and Computational Complexity
tKDE and tHDE are implemented using TensorFlow 2.x, exploiting GPU batch operations and @tf.function(reduce_retracing=True). Least-squares polynomial fitting is performed using tf.linalg.lstsq (Cholesky-based solver) on independent Vandermonde matrices for each segment:
8
The core workflow consists of generating the pilot estimate, mode finding, data partitioning, separate polynomial least-squares fits, clipping and normalization.
Theoretical computational complexity:
| Procedure | Training Time | Training Memory | Evaluation |
|---|---|---|---|
| tKDE + Poly-DPR | 9 | 0 | 1 |
| tHDE + Poly-DPR | 2 | 3 | 4 |
| SciPy KDE | 5 | 6 | 7 |
Poly-DPR yields major efficiency advantages both in memory and evaluation latency, supporting deployment on datasets for which full KDEs are infeasible (Sarkar et al., 3 Dec 2025).
4. Model Order Selection and Hyperparameters
Polynomial order 8 sets the balance between fit complexity and stability. Empirical benchmarking across six synthetic unimodal distributions (including symmetric/skewed Gaussians, AMW-I, AMW-II, Asymmetric Laplace) indicates:
- Orders 9 underfit asymmetric shapes.
- Orders 0 often trigger Cholesky instability due to ill-conditioning in Vandermonde matrices.
- 1 achieves optimal balance: low mean squared error, Jensen-Shannon divergence (JSD 2), and Pearson correlation coefficients near unity (3).
A plausible implication is that, in most practical cases, choosing 4 suffices for accuracy and stability; higher orders may require numerically robust solvers (e.g., QR decomposition) (Sarkar et al., 3 Dec 2025).
5. Empirical Evaluation and Benchmarking
Poly-DPR was benchmarked using synthetic and real-world unimodal datasets. Metrics include mean squared error (MSE), Jensen-Shannon divergence (JSD), Pearson 5, and area under the curve (AUC). On six synthetic datasets, Poly-DPR (6, tKDE backend) achieved:
- Mean JSD 7,
- MSE 8,
- 9,
- Inference time orders of magnitude faster than SciPy KDE.
On 300,000-patient systolic and diastolic blood pressure data, full-scale SciPy KDE failed due to 0 GB memory use, whereas Poly-DPR (1, tKDE) trained in 2 seconds (for 1,000 grid points) and inferred in 3 seconds for 15,000 points. For systolic data, AUC = 1.00, JSD = 0.005, MSE 4, 5, and 6 faster inference than SciPy KDE. Diastolic data showed similar results. A sliding window analysis confirmed significantly lower median JSD for 7 vs.\ 8 (Mann–Whitney 9, 0), with batch inference latency 1 ms (Sarkar et al., 3 Dec 2025).
6. Applications, Limitations, and Extensions
Poly-DPR is particularly advantageous for large-scale clinical, financial, or reliability datasets characterized by unimodality, skewness, or heavy tails. Its strengths are efficiency, interpretability, and resilience to deviations from Gaussian assumptions. The main limitation is numerical instability for high polynomial orders (2), beyond which ill-conditioned least-squares systems impede robust fitting. tKDE is preferable if sufficient GPU memory is available; tHDE is the recommended fallback for constrained environments. A plausible implication is that future developments could involve robustification of fitting routines (e.g., QR-based solvers) and auto-adaptive selection of polynomial order to maximize fit quality without sacrificing stability (Sarkar et al., 3 Dec 2025).