B2P-Corr: Batch-to-Population Gradient Estimators for Non-Decomposable Correlation Losses
Organizations: Department of Computer Science and Engineering University of Texas at Arlington Arlington, TX, USA
Abstract
Correlation metrics such as the Pearson Correlation Coefficient (PCC) and Concordance Correlation Coefficient (CCC) are standard regression metrics and learning objectives, but their non-decomposable nature poses a challenge for stochastic optimization. Since these metrics depend on dataset-level moments (mean, variance, covariance), naive mini-batch training with local statistics yields biased, high-variance gradients whose expectation does not align with the population gradient. To bridge this batch-to-population'' (B2P) gap, we propose **B2P-Corr**, a novel framework that transforms correlation objectives into decomposable pseudo-losses driven by lightweight global moment sketches''. We introduce two efficient variants: B2P-EMA, which utilizes exponential moving averages and stop-gradient operators to ensure asymptotic gradient tracking with cost ( is batch size); and B2P-U, which uses sampled cross-batch U-statistic estimators and a reservoir-based stabilization with an implementation. Theoretically, we quantify the bias of naive mini-batch optimization, prove a moving-target tracking result for B2P-EMA under a fast-sketch / slow-parameter regime, and provide an idealized control-variate analysis for B2P-U. Experiments on two synthetic and three real-world datasets demonstrate B2P-Corr achieves stable optimization and higher correlation than naive mini-batch optimization with negligible overhead.
Figures & tables
| Dataset | Batch-size | 2 (Default) | 4 | 8 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Metrics | PCC | SROCC | RMSE | PCC | SROCC | RMSE | PCC | SROCC | RMSE | |
| KoNViD-1k (PCC) | KVQ [ 16 ] | 0.865 ±0.028 | 0.861 ±0.023 | 0.303 ±0.018 | 0.878 ±0.029 | 0.863 ±0.032 | 0.299 ±0.017 | 0.881 ±0.033 | 0.875 ±0.026 | 0.290 ±0.015 |
| +PLC [ 3 ] | 0.871 ±0.033 | 0.864 ±0.027 | 0.301 ±0.016 | 0.881 ±0.031 | 0.853 ±0.021 | 0.289 ±0.010 | 0.887 ±0.028 | 0.871 ±0.035 | 0.293 ±0.015 | |
| +B2P-EMA | 0.895 ±0.024 | 0.880 ±0.030 | 0.283 ±0.011 | 0.893 ±0.023 | 0.884 ±0.019 | 0.279 ±0.017 | 0.895 ±0.026 | 0.881 ±0.022 | 0.280 ±0.010 | |
| +B2P-U | 0.887 ±0.024 | 0.867 ±0.018 | 0.289 ±0.013 | 0.896 ±0.028 | 0.881 ±0.021 | 0.278 ±0.013 | 0.906 ±0.025 | 0.893 ±0.028 | 0.264 ±0.010 | |
| Dataset | Batch-size | 8 | 16 | 32 (Default) | ||||||
| Batch-size | 2 (default) | 4 | 8 | |||
|---|---|---|---|---|---|---|
| Overhead | Sec/iter | VRAM | Sec/iter | VRAM | Sec/iter | VRAM |
| KVQ | 3.168 | 25.102 GB | 5.730 | 44.914 GB | 11.061 | 76.216 GB |
| + B2P-EMA | 3.169 | 25.102 GB | 5.734 | 44.914 GB | 11.093 | 76.216 GB |
| + B2P-U | 3.177 | 25.102 GB | 5.764 | 44.914 GB | 11.165 | 76.216 GB |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Data generation | |
|---|---|
| Dimension | |
| Population size | |
| Imbalance | |
| Mean separation ( mean_sep ) | (only on feature 1; others ) |
| Label shift ( shift ) | |
| Noise std (major/minor) | , |
| Data generation | |
|---|---|
| Dimension | |
| Train / test size | , |
| Covariates | |
| Ground-truth direction | , normalized to |
| Response model | |
| Noise | with |
| Model & input | |
|---|---|
| Clip length | |
| Input channels | |
| Hidden channels | |
| Optimization schedule | |
| Epochs | |
| Warmup epochs | |
| Model & input | |
|---|---|
| Number of genes | |
| MLP dimension | |
| Hidden dimension | |
| Model depth | |
| Optimization schedule | |
| Epochs | |
| Model & input | |
|---|---|
| MLP dimension | |
| Hidden dimension | |
| Model depth | |
| Dropout | |
| Backbone | resnet50 |
| Optimization schedule | |
| Dataset | Batch-size | 4 | 10 | 20 (Default) | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Metrics | CCC | PCC | RMSE | CCC | PCC | RMSE | CCC | PCC | RMSE | |
| VEATIC Arousal (CCC) | VEATIC [ 17 ] | 0.433 ±0.025 | 0.515 ±0.019 | 0.311 ±0.017 | 0.560 ±0.033 | 0.602 ±0.029 | 0.230 ±0.012 | 0.577 ±0.024 | 0.619 ±0.030 | 0.234 ±0.015 |
| +B2P-EMA | 0.452 ±0.023 | 0.538 ±0.031 | 0.246 ±0.015 | 0.569 ±0.036 | 0.612 ±0.021 | 0.216 ±0.017 | 0.591 ±0.028 | 0.630 ±0.020 | 0.217 ±0.014 | |
| +B2P-U | 0.450 ±0.027 | 0.541 ±0.019 | 0.218 ±0.014 | 0.578 ±0.025 | 0.630 ±0.033 | 0.210 ±0.009 | 0.603 ±0.019 | 0.643 ±0.023 | 0.212 ±0.010 | |
Stochastic Gradient Descent
Stochastic Gradient Descent (SGD) uses noisy, data-sampled gradients to train models and solve large-scale optimization problems.
See all 225 papers