Manuscript Offprint

arXiv:2610.38171

B2P-Corr: Batch-to-Population Gradient Estimators for Non-Decomposable Correlation Losses

Jingquan Yan, Yuwei Miao, Peiran Yu, Junzhou Huang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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 O(B)O(B) cost (BB is batch size); and B2P-U, which uses sampled cross-batch U-statistic estimators and a reservoir-based stabilization with an O(B)O(B) implementation. Theoretically, we quantify the O(B−1)O(B^{-1}) 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.

1 Introduction

Stochastic optimization (e.g., SGD [18]) are most effective for decomposable objectives, where the population risk is an expectation of per-example losses and mini-batch gradients are unbiased estimators of the population gradient. This assumption breaks for non-decomposable objectives whose values depend on dataset-level statistics or cross-example interactions. Well-known examples include AUC/F-measures in classification [19] and correlation-based regression objectives such as the Pearson correlation coefficient (PCC) [20] and concordance correlation coefficient (CCC) [9].

Correlation metrics are natural and crucial when relative trends matter more than absolute scale, e.g., in transcriptomics or human-annotated regression tasks where annotator-dependent scale shifts make absolute errors less informative [21]. However, they depend on global means, variances, and covariances. Replacing these population moments with mini-batch estimates makes the objective batch-dependent, so the resulting gradients are noisy and biased, especially in the small-batch regime.

Existing methods are incomplete. Larger batches reduce moment noise but are often memory-intensive and may hurt generalization [7, 8]. Beyond large-batch strategy, prior work on non-decomposable objectives includes primal-dual or constrained formulations [19], general stochastic compositional optimization [24], coupled/compositional methods for AP and AUPRC-style objectives [23, 15], and DRO-based formulations for partial AUC [28]. These advances are important, but they mostly target

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

classification metrics and do not directly resolve mini-batch correlation optimization in regression within a standard SGD pipeline.

We view this mismatch as a batch-to-population (B2P) gap: the target correlation objective is global, but training only observes noisy local statistics. Our key observation is that, although PCC/CCC are non-decomposable as scalar objectives, their population gradients admit decomposable per-example forms whose coefficients depend only on a few global moments.

Contributions. We propose B2P-Corr (Figure 1), which bridges this B2P gap by decoupling moment estimation from backpropagation via stop-gradient pseudo-losses and lightweight moment sketches. Specifically, we

(i) derive population gradients of PCC and CCC as decomposable per-example expectations depending on global prediction moments, and implement them via pseudo-losses with stop-gradient sketches.

(ii) introduce B2P-EMA, which tracks global moments with EMA, and under a standard fast-sketch / slow-parameter regime, it yields plug-in gradients that asymptotically track the moving population target at O(B)O(B) cost;

(iii) further propose B2P-U, which is implemented via sampled incomplete U-statistics, with a reservoir-based stabilization to further stabilize moment estimation while remaining O(B)O(B) cost.

Theoretically, we quantify the O(B−1)O(B^{-1}) bias of naive mini-batch PCC/CCC gradients, establish a tracking theorem for B2P-EMA, and provide an idealized control-variate analysis for B2P-U. We empirically show on synthetic and real-world benchmarks that B2P-Corr stabilizes training and improves correlation with negligible overhead.

References (26)

  • Deep canonical correlation analysis
  • Evaluation of error-and correlation-based loss functions for multitask learning dimensional speech emotion recognition
  • Scaling-up empirical risk minimization: optimization of incomplete u-statistics
  • Optimizing the f-measure in multi-label classification: Plug-in rule approach versus structured loss minimization
  • One-pass auc optimization
  • Accurate, large minibatch sgd: Training imagenet in 1 hour (opens arXiv in a new tab)
  • On large-batch training for deep learning: Generalization gap and sharp minima (opens arXiv in a new tab)
  • Sdgcca: supervised deep generalized canonical correlation analysis for multi-omics integration
  • Sgd algorithms based on incomplete u-statistics: large-scale minimization of empirical risk
  • An imperative style, high-performance deep learning library
  • Recursive joint cross-modal attention for multimodal fusion in dimensional emotion recognition
  • Optimizing f-measures by cost-sensitive classification
  • Stochastic optimization of areas under precision-recall curves with provable convergence
  • Kvq: Boosting video quality assessment via saliency-guided local perception
  • Veatic: Video-based emotion and affect tracking in context dataset
  • An overview of gradient descent optimization algorithms
  • Optimizing non-decomposable measures with deep networks
  • Correlation coefficients: appropriate use and interpretation
  • Evaluating measures of association for single-cell transcriptomics
  • Yfcc100m: The new data in multimedia research
  • Finite-sum coupled compositional stochastic optimization: Theory and applications (opens arXiv in a new tab)
  • Stochastic compositional gradient descent: algorithms for minimizing compositions of expected-value functions
  • Exemplar guided deep neural network for spatial transcriptomics analysis of gene expression prediction
  • Large-scale robust deep auc maximization: A new surrogate loss and empirical studies on medical image classification
  • Continuous emotion recognition using visual-audio-linguistic information: A technical report for abaw3
  • When auc meets dro: Optimizing partial auc for deep learning with non-convex convergence guarantee