Manuscript Offprint
arXiv:2610.38171B2P-Corr: Batch-to-Population Gradient Estimators for Non-Decomposable Correlation Losses
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 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.
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 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 cost.
Theoretically, we quantify the 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.
Optimization of Non-decomposable Objectives Most work on non-decomposable stochastic optimization focuses on classification metrics such as F-measure, AUC, and AUPRC. Beyond primal-dual and saddle-point methods for confusion-matrix ratios [19, 14, 5, 6, 26], recent work studies compositional/coupled formulations and other gradient-based surrogates, including SCGD for compositions of expectations [24], finite-sum coupled compositional optimization for AP and related objectives [23], AUPRC optimization via dependent compositional objectives [15], and pAUC maximization via DRO-based methods [28]. Incomplete U-statistics provide another route for pairwise objectives [4, 11]. Our method is related in spirit but targets PCC/CCC regression, using global moment sketches and stop-gradient pseudo-losses to remain within a standard SGD pipeline.
3 Correlation Objectives and B2P-Corr Decomposition
3.1 Problem Setup and Global Moments
We consider supervised regression with data , where and (straightforward to extend to vector outputs). A model produces predictions with parameters . We denote batch size with and the population moments of targets and predictions by
Throughout, and are independent of , while depend on through .
The population PCC and CCC between and y can be expressed as
where . Both objectives are non-decomposable: they depend on global moments , which are unknown and must be estimated from data.
Stop-gradient Operator. We use to denote a stop-gradient operator: the value of is equal to u in the forward pass, but in backprop. In autodiff frameworks (e.g., PyTorch [12]), this corresponds to detach or stop_gradient. This will let us treat moment sketches as constants when differentiating pseudo-losses.
3.2 Population Gradient Decompositions
Although PCC/CCC are non-decomposable as scalar objectives, we show their population gradients admit a clean per-example decomposition where only a few global moments appear as coefficients. These identities are the basis of the B2P-Corr framework.
Lemma 3.1 (Population gradient of PCC). Let with moments defined above. Then
Lemma 3.2 (Population gradient of CCC). Recall with C and D defined above, then
Proofs are shown in Sections B.2 and B.3. Lemma 3.1 and 3.2 show that, if we can provide accurate estimates of the global moments, then correlation learning reduces to optimizing an expectation of per-example weighted gradients.
3.3 B2P Decomposition via Stop-gradient Pseudo-losses
For scalar predictions and target y, consider the pseudo-losses
Note that these pseudo-losses need not equal or -CCC, we only require its gradient to match the target population gradient when the moments are correct. Treating the moments inside as constants, the derivative w.r.t. f gives
Therefore backpropagation yields (negative because we maximize PCC/CCC) and provided we plug in the true moments. In standard offline setting, can be precomputed from training labels. In online settings, we simply maintain a EMA sketch as since these moments are -independent and will not alter the gradient decompositions.
Now, pseudo-losses in Equations (4) and (5) are decomposable given the moments, but in practice we do not know the true moments. In next section, we introduce our B2P-Corr which maintains lightweight “moment sketches” with two sketching strategies, B2P-EMA and B2P-U.

Figure 1: Batch-to-population mismatch in naive mini-batch and our proposed B2P-Corr fix.
4 Method: B2P-Corr
We propose B2P-Corr, a simple drop-in framework for mini-batch optimization of PCC/CCC which (i) use the decomposable pseudo-losses in Equations (4) and (5), and (ii) maintain a small “moment sketch” of the required global moments, treated as constants using sg(·). The remaining design choice is how to update the sketch from mini-batches. We provide two practical instantiations: B2P-EMA a running-moment sketch and B2P-U a variance-reduced replacement for the covariance/variance estimates used inside B2P-EMA. Both share the same pseudo-loss.
4.1 B2P-EMA: Exponential-moving Moment Sketch
B2P-EMA maintains exponentially weighted average (EMA) estimates of the prediction moments (, , ). On each batch , compute predictions and define for moment updates. At iteration , B2P-EMA computes
and updates
then form derived quantities (with for stability)
Finally, optimize the decomposable batch objective or where all estimated moments appear under . Algorithm 1 summarizes one step and the extra cost over naive mini-batch training is update with negligible overhead.
Remark. Theorem 5.3 uses a diminishing for a clean asymptotic tracking statement. In experiments we use a constant , which corresponds to keeping a small steady-state tracking error when the target moments drift slowly.
4.2 B2P-U: Stabilized Plug-in Sketch
While B2P-EMA greatly stabilizes correlation optimization, and still fluctuate under small . B2P-U further stabilizes these moment estimates using cross-batch U-statistic identities together with a small reservoir-based correction.
Cross-batch U-statistic identities. For i.i.d. pairs and predictions , the moments satisfy
with proof in Section B.1. For the second-order moments considered here, the complete cross-batch estimator over all pairs also admits an exact algebraically collapsed form. In our implementation we instead use a sampled incomplete U-statistic with cross-batch pairs, which preserves the same pairwise identity while fitting naturally with our cross-batch sketch update. To reduce coupling between the sketch (in denominators) and the current per-example gradients, we form pairs across consecutive batches: at step , sample cross-batch pairs and with and compute
Algorithm 1 B2P-EMA training step for PCC/CCC
1: Input: mini-batch ; moment sketch ; label moments ; stability ; EMA rate
2: for all ;
3: ; ;
4: ; ;
5: ; ;
6: using Equation (4) (use Equation (5) if loss = CCC)
7: Compute and update with an optimizer step
Reservoir-based stabilization. We maintain a small reservoir (size ) of cached and labels (refreshed periodically). For any moment , we combine the sampled U-statistic estimate with a reservoir estimate via
where is a running mean of tracked by an EMA. In the classical idealized control-variate setting, the optimal choice is
In our implementation, however, the reservoir is disjoint and periodically refreshed, so the EMA-estimated coefficient should be viewed as a practical stabilization heuristic rather than a guarantee of stepwise conditional variance reduction at fixed ; it can also reflect temporal correlation induced by slow parameter drift. We then update in Equation (8) using and in place of the raw mini-batch estimators. Algorithm 2 details the B2P-U subroutine, which preserves complexity in our implementation.
5 Theoretical Study
We analyze three aspects of correlation optimization: (i) the bias of naive mini-batch PCC/CCC gradients; (ii) moving-target tracking of the B2P-EMA sketch and the induced plug-in gradient; and (iii) an idealized control-variate analysis that motivates the reservoir stabilization used in B2P-U.
Assumption 5.1 (Differentiability, Integrability, and Non-degeneracy). Fix and write . Define the raw-moment vector , and its Jacobian . Let denote the Euclidean norm on and the Frobenius norm on . Assume:
(1) Interchanging and . is a.s. differentiable in and for each coordinate of we may interchange differentiation and expectation, e.g., , and .
(2) Finite moments. , and .
(3) Non-degeneracy. and either (i) , or (ii) we analyze -stabilized versions with and .
5.1 Bias of Naive Mini-batch PCC/CCC Gradients
Let and denote PCC and CCC computed from a random i.i.d. mini-batch of size , where the moments inside the ratio are computed from the same batch and we differentiate through those batch moments. This is the standard “naive” mini-batch training strategy.
Proposition 5.2 (Naive Mini-batch Gradients Have Bias). Under Assumption 5.1, for i.i.d. mini-batches of size we have
Algorithm 2 B2P-U sketch update plug-in for Algorithm 1
1: Input: current batch and previous batch ; reservoir (size ) storing cached pairs ; current sketch ; EMA rate ; number of pairs ;
2: Sample cross-batch pairs with
3: ;
4: Update running means , (e.g., via EMA)
5: Update running estimates of , and ,
6: ;
7: ;
8: ; Reduced-variance sketch
9: Proceed with lines 5–7 in Algorithm 1
where the term is generally nonzero due to coupling between random batch moments (appearing in denominators) and per-example gradient terms. A full proof is given in Appendix C.2. An empirical verification with synthetic dataset is given in Section 6.1.2.
This bias is the analytic expression of the B2P gap: naive mini-batch optimization directly follows the gradient of a random local objective whose expectation does not equal the desired population objective, and the discrepancy decreases only slowly as increases.
5.2 Tracking of B2P-EMA
In practice, the parameters and the sketch are updated jointly, so the key question is whether the EMA sketch tracks the current population moments along training. Let , , and let denote all information available before drawing the batch at step . This is the standard fast-sketch / slow-parameter regime in stochastic compositional optimization [24, 23]. We work under a standard tracking regime: the detached batch-moment estimator is conditionally unbiased with bounded second moment, the EMA steps satisfy standard diminishing-step conditions, the target moments drift slowly relative to , and the mean plug-in gradient is Lipschitz in the sketch. The formal assumptions are deferred to Appendix C.3.
Theorem 5.3 (B2P-EMA tracks moving population moments). Let denote the negative PCC objective or the negative CCC objective , and let be the mini-batch gradient produced by the B2P-EMA pseudo-loss at step . Under Assumption 5.1 and C.2,
A sufficient condition for slow drift is that is Lipschitz and . Proof is given in Appendix C.4. This is a tracking result for the sketch and induced plug-in gradient, not a full convergence theorem for the coupled nonconvex training dynamics.
5.3 Idealized Control-Variate Analysis for B2P-U
Proposition 5.4 (Idealized control-variate analysis). Let be an (incomplete) U-statistic estimate of a scalar moment , and let be another estimator with and . For any scalar , define . Then is unbiased for , and choosing yields
with strict inequality whenever (proof is provided in Section C.5).
Remark 5.5 (Implementation). Proposition 5.4 is an idealized statement: it applies when the auxiliary estimator is correlated with at the target parameter. In Algorithm 2, the reservoir is disjoint and periodically refreshed, so the classical conditional sampling covariance at fixed can be small and, under independent-sample idealizations, may vanish. Accordingly, the EMA-estimated coefficient in B2P-U should be interpreted as a practical stabilization mechanism—potentially reflecting temporal correlation induced by slowly drifting parameters—rather than a guarantee of stepwise conditional variance reduction. Empirically, B2P-U nonetheless exhibits lower gradient variability in Figure 2.
6 Experiments
We first use two synthetic experiments to verify the bias of naive mini-batch PCC/CCC gradients and to compare gradient alignment/stability. We then evaluate B2P-EMA/B2P-U as drop-in replacements for naive mini-batch PCC/CCC optimization on three real-world benchmarks, followed by overhead and sensitivity studies.
6.1 Synthetic Dataset for Theory Verification
We use two controlled regression problems with a linear predictor to demonstrate the “batch-to-population” (B2P) gap for correlation objectives. Unless stated otherwise, we maximize PCC defined in Section 3. CCC diagnostics are reported in Figures 2c and 2d (CCC results for Exp.2 are provided in Section E.2). Experiment details and metrics are deferred to Section D.
6.1.1 Experiment Settings
Exp. 1: Imbalanced Mixture Regression. We construct an imbalanced two-component Gaussian mixture to make mini-batch moment estimates highly unstable under small batch-size . We sample a component indicator with , draw , and set y = w^\star^\top x + \Delta s + \varepsilon_s, where is a mixture-component label shift and is zero-mean heteroscedastic noise. This setting is challenging as the population moments are well-defined, but within-batch estimates of and vary widely across batches.
Metric. At each training checkpoint with , we compute an oracle population gradient using full batch, and compare it with a stochastic gradient estimate from a mini-batch of size . We report (i) gradient cosine alignment , and (ii) RelBias, the relative error .
Exp. 2: Isotropic Linear Regression. We sample and let y = w^\star^\top x + \varepsilon, with and . Since PCC is scale-invariant in , the optimum is characterized by directional alignment between and rather than the norm of .
Metric. We train with varying batch sizes and evaluate (i) DirectionRecovery = and (ii) TestPCC = on test set.
6.1.2 Result Analysis
Figures 2b and 2d empirically verifies Proposition 5.2: the average relative bias of naive PCC/CCC gradients decreases roughly linearly with . Beyond this bias law, Figure 2 shows that B2P-Corr yields much better-aligned stochastic gradients, especially at very small batch sizes. For , naive PCC gradients are often NaN or nearly random, whereas B2P remains stable; for , alignment improves from 0.16 to 0.43 and RelBias drops from 0.98 to 0.08. B2P-U matches B2P-EMA in mean alignment while reduces gradient estimation variance (different from variance in Table 1). Empirically, B2P-U in Figure 2a exhibits a narrower variance shade, with average standard deviations across batch sizes dropping from 0.0346 (naive) and 0.0275 (B2P-EMA) to 0.0183 (B2P-U).
Figure 3 shows the same optimization effect in isotropic regression. With , naive mini-batch PCC training fails, whereas both B2P variants recover the correct direction and substantially higher test PCC; the gap narrows as increases, consistent with improved concentration of batch moments.
6.2 Real-world Regression Benchmarks
We evaluate B2P-Corr on three real-world tasks where the state-of-the-art baselines directly optimize PCC/CCC with mini-batches. We adopt a strict drop-in protocol: for each baseline, we keep the

(a) PCC: gradient align
(b) PCC: relative bias
(c) CCC: gradient align
(d) CCC: relative bias
Figure 2: For Exp. 1, we compare stochastic gradients from naive mini-batch optimization and B2P-Corr against an oracle population gradient from full-batch training. (a–d) Average gradient cosine alignment and relative bias at different batch size B for PCC and CCC.

(a) PCC: training (b) PCC: training (c) PCC: training (d) PCC: training
Figure 3: For Exp. 2, we show DirectionRecovery and TestPCC vs. training steps for different batch sizes. With , naive mini-batch fails to converge while B2P-EMA/B2P-U continue to improve. The gap narrows as increases. CCC training curves are shown in Section E.2.
architecture, data splits, and auxiliary losses unchanged, and only replace the naive mini-batch correlation objective with our decomposable B2P pseudo-loss (B2P-EMA or B2P-U) and a fine-grained PCC loss alternative PLC [3]. Dataset details and training protocols are provided in Section D.
6.2.1 Datasets
Video Quality Assessment (PCC). KoNViD-1k comprises 1,200 in-the-wild videos (960×540) sampled from YFCC100M [22]. Following KVQ [16], we use Mean Opinion Scores (MOS) as targets and split 960/120/120 videos for train/val/test. KVQ directly optimizes PCC and reports PCC, SROCC, and RMSE.
Spatial Transcriptomic (PCC). The 10xProteomic dataset used by EGN [25] contains 32,032 pathology image patches paired with gene-expression vectors for breast cancer. We follow its data preprocessing and the 3-fold evaluation. EGN jointly optimizes MSE+PCC during training and reports PCC, MAE, and MSE.
Video-based Sentiment Analysis (CCC). VEATIC contains 124 videos (257,601 frames) with valence and arousal annotation. The baseline optimizes joint learning objective CCC+MSE and we report CCC, PCC, and RMSE.
6.2.2 Result Analysis
Table 1 shows that replacing the naive mini-batch PCC/CCC term with B2P-EMA/B2P-U consistently improves correlation across all three tasks and batch sizes, while keeping architectures, optimizers, preprocessing, and auxiliary losses unchanged.
Video Quality Assessment (KoNViD-1k). In the unstable small-batch regime (B=2), B2P-EMA yields substantial gains, boosting PCC from 0.865 to 0.895 and reducing RMSE by 6.4% (0.303 → 0.283). This significantly outperforms the fine-grain correlation loss PLC (0.871), confirming that the primary bottleneck is the bias in local moment estimation rather than model capacity. As batch size increases, B2P-Corr variants maintain superiority, with B2P-U achieving the best overall performance at B = 8 (PCC 0.906, SROCC 0.893, RMSE 0.264). This aligns with our analysis that naive mini-batch correlation gradients couple per-example terms with denominators (Proposition 5.2), and our B2P-U effectiveness reduces variance during moment estimation.
Table 1: Comparison across three datasets. We replace naive mini-batch PCC/CCC objectives in each baseline with our B2P-Corr and it consistently improves performance. "Default" denotes the original batch size used in each baseline. The VEATIC arousal prediction result are shown in Section E.1.
| 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) | ||||||
| Metrics | PCC ↑ | MAE ↓ | MSE ↓ | PCC ↑ | MAE ↓ | MSE ↓ | PCC ↑ | MAE ↓ | MSE ↓ | |
| 10xProteomic(PCC) | EGN [25] | 0.615±0.094 | 0.166±0.085 | 0.056±0.052 | 0.637±0.150 | 0.161±0.091 | 0.057±0.059 | 0.629±0.150 | 0.165±0.098 | 0.061±0.066 |
| +PLC [3] | 0.623±0.097 | 0.165±0.087 | 0.055±0.049 | 0.645±0.139 | 0.162±0.101 | 0.059±0.064 | 0.631±0.149 | 0.169±0.110 | 0.061±0.063 | |
| +B2P-EMA | 0.644±0.089 | 0.159±0.083 | 0.052±0.049 | 0.675±0.125 | 0.162±0.103 | 0.056±0.061 | 0.665±0.144 | 0.159±0.101 | 0.055±0.059 | |
| +B2P-U | 0.660±0.091 | 0.155±0.080 | 0.051±0.048 | 0.667±0.134 | 0.158±0.093 | 0.053±0.057 | 0.673±0.161 | 0.155±0.087 | 0.051±0.073 | |
| Dataset | Batch-size | 4 | 10 | 20 (Default) | ||||||
| Metrics | CCC ↑ | PCC ↑ | RMSE ↓ | CCC ↑ | PCC ↑ | RMSE ↓ | CCC ↑ | PCC ↑ | RMSE ↓ | |
| VEATIC(CCC) | VEATIC [17] | 0.437±0.036 | 0.520±0.029 | 0.311±0.015 | 0.574±0.045 | 0.638±0.028 | 0.294±0.019 | 0.606±0.041 | 0.639±0.038 | 0.317±0.012 |
| +B2P-EMA | 0.460±0.035 | 0.541±0.037 | 0.306±0.013 | 0.585±0.040 | 0.644±0.033 | 0.291±0.015 | 0.613±0.035 | 0.660±0.033 | 0.298±0.009 | |
| +B2P-U | 0.467±0.025 | 0.538±0.028 | 0.298±0.010 | 0.597±0.043 | 0.655±0.031 | 0.287±0.015 | 0.615±0.026 | 0.671±0.022 | 0.301±0.008 | |
Spatial Transcriptomic (10xProteomic). Table 1 reports 10xProteomic gene-expression prediction results under 3-fold evaluation. The result shows that replacing the naive PCC term in EGN's objective with B2P-Corr yields consistent improvements. In the high-variance setting (B=8), B2P-U is most effective, improving PCC (0.615 → 0.660) while simultaneously reducing MAE and MSE. This indicates that stable correlation optimization enhances rather than compromises magnitude metrics. At the default B=32, B2P-U scales effectively, achieving the highest PCC (0.673) and lowest MSE. Overall, these results highlight B2P-Corr's robustness in heterogeneous, high-noise regimes where reliable global moment estimates are critical.
Video-based Sentiment Analysis (VEATIC). Table 1 also demonstrates B2P-Corr effectively improves and stabilizes CCC optimization, which is more sensitive to moment mismatch than PCC because its normalization term D couples variance and mean mismatch in addition to covariance. At B=4, B2P-U improves CCC (0.437 → 0.467) and RMSE (0.311 → 0.298). B2P-U remains dominant at B=10, yielding the best CCC (0.597) and lowest RMSE (0.287). Even at the default B=20, B2P-U boosts CCC from 0.606 to 0.615, verifying that decoupling the gradient calculation from noisy batch denominators prevents the estimation error propagation.
6.3 Efficiency and Sensitivity
Table 2 shows B2P-EMA adds essentially no runtime or VRAM cost, while B2P-U incurs less than 1% extra runtime from reservoir updates and cross-batch pairing with no additional VRAM. Sensitivity to α and reservoir size is reported in Sections E.3 and E.4. Both variants remain stable across practical ranges. Empirically, for B2P-EMA, larger batches tolerate larger α since batch statistics are closer to population moments. For B2P-U, a larger reservoir reduces estimation noise but increases higher runtime.
Table 2: KoNViD-1k runtime and memory overhead. We evaluate per-iteration runtime and VRAM usage for KVQ with different batch sizes. B2P-Corr adds negligible time and VRAM overhead, while improving test PCC relative to naive mini-batch correlation objective.
| Batch-sizeOverhead | 2 (default) | 4 | 8 | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Sec/iter | VRAM | 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 | |||
ments. For B2P-U, a larger reservoir reduces estimation noise but increases higher runtime.
7 Conclusion
We introduced B2P-Corr, a simple framework for closing the batch-to-population gap in correlation learning with decomposable stop-gradient pseudo-losses and lightweight moment sketches. B2P-EMA provides asymptotic gradient tracking, while B2P-U adds sampled cross-batch U-statistics with reservoir-based stabilization. Across synthetic and real-world tasks, B2P-Corr reduces the batch-to-population gap, stabilizes training, and improves correlation with negligible overhead.
8 Acknowledgement
This work was partially supported by US National Science Foundation IIS-2412195, CCF-2400785, the Cancer Prevention and Research Institute of Texas (CPRIT) award (RP230363), the National Institutes of Health (NIH) R01 award (1R01AI190103-01) and Microsoft Accelerate Foundation Models Research (2024).
References
[1] Galen Andrew, Raman Arora, Jeff Bilmes, and Karen Livescu. Deep canonical correlation analysis. In International conference on machine learning, pages 1247–1255. PMLR, 2013.
[2] Bagus Tris Atmaja and Masato Akagi. Evaluation of error-and correlation-based loss functions for multitask learning dimensional speech emotion recognition. In Journal of Physics: Conference Series, volume 1896, page 012004. IOP Publishing, 2021.
[3] Chaoyu Chen, Xin Yang, Ruobing Huang, Xindi Hu, Yankai Huang, Xiduo Lu, Xinrui Zhou, Mingyuan Luo, Yinyu Ye, Xue Shuang, et al. Fine-grained correlation loss for regression. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 663–672. Springer, 2022.
[4] Stephan Clémençon, Igor Colin, and Aurélien Bellet. Scaling-up empirical risk minimization: optimization of incomplete u-statistics. Journal of Machine Learning Research, 17(76):1–36, 2016.
[5] Krzysztof Dembczynski, Arkadiusz Jachnik, Wojciech Kotlowski, Willem Waegeman, and Eyke Huellermeier. Optimizing the f-measure in multi-label classification: Plug-in rule approach versus structured loss minimization. In Sanjoy Dasgupta and David McAllester, editors, Proceedings of the 30th International Conference on Machine Learning, volume 28 of Proceedings of Machine Learning Research, pages 1130–1138, Atlanta, Georgia, USA, 17–19 Jun 2013. PMLR. URL https://proceedings.mlr.press/v28/dembczynski13.html.
[6] Wei Gao, Rong Jin, Shenghuo Zhu, and Zhi-Hua Zhou. One-pass auc optimization. In International conference on machine learning, pages 906–914. PMLR, 2013.
[7] Priya Goyal, Piotr Dollár, Ross Girshick, Pieter Noordhuis, Lukasz Wesolowski, Aapo Kyrola, Andrew Tulloch, Yangqing Jia, and Kaiming He. Accurate, large minibatch sgd: Training imagenet in 1 hour. arXiv preprint arXiv:1706.02677, 2017.
[8] Nitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal, Mikhail Smelyanskiy, and Ping Tak Peter Tang. On large-batch training for deep learning: Generalization gap and sharp minima. arXiv preprint arXiv:1609.04836, 2016.
[9] Lawrence I-Kuei Lin. A concordance correlation coefficient to evaluate reproducibility. Biometrics, pages 255–268, 1989.
[10] Sehwan Moon, Jeongyoung Hwang, and Hyunju Lee. Sdgcca: supervised deep generalized canonical correlation analysis for multi-omics integration. Journal of Computational Biology, 29(8):892–907, 2022.
[11] Guillaume Papa, Stéphan Clémençon, and Aurélien Bellet. Sgd algorithms based on incomplete u-statistics: large-scale minimization of empirical risk. Advances in Neural Information Processing Systems, 28, 2015.
[12] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. Advances in neural information processing systems, 32, 2019.
[13] R Gnana Praveen and Jahangir Alam. Recursive joint cross-modal attention for multimodal fusion in dimensional emotion recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4803–4813, 2024.
[14] Shameem Puthiya Parambath, Nicolas Usunier, and Yves Grandvalet. Optimizing f-measures by cost-sensitive classification. Advances in neural information processing systems, 27, 2014.
[15] Qi Qi, Youzhi Luo, Zhao Xu, Shuiwang Ji, and Tianbao Yang. Stochastic optimization of areas under precision-recall curves with provable convergence. Advances in neural information processing systems, 34:1752–1765, 2021.
[16] Yunpeng Qu, Kun Yuan, Qizhi Xie, Ming Sun, Chao Zhou, and Jian Wang. Kvq: Boosting video quality assessment via saliency-guided local perception. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 2150–2160, 2025.
[17] Zhihang Ren, Jefferson Ortega, Yifan Wang, Zhimin Chen, Yunhui Guo, Stella X Yu, and David Whitney. Veatic: Video-based emotion and affect tracking in context dataset. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages 4467–4477, 2024.
[18] Sebastian Ruder. An overview of gradient descent optimization algorithms. arXiv preprint arXiv:1609.04747, 2016.
[19] Amartya Sanyal, Pawan Kumar, Purushottam Kar, Sanjay Chawla, and Fabrizio Sebastiani. Optimizing non-decomposable measures with deep networks. Machine Learning, 107(8):1597–1620, 2018.
[20] Patrick Schober, Christa Boer, and Lothar A Schwarte. Correlation coefficients: appropriate use and interpretation. Anesthesia & analgesia, 126(5):1763–1768, 2018.
[21] Michael A Skinnider, Jordan W Squair, and Leonard J Foster. Evaluating measures of association for single-cell transcriptomics. Nature methods, 16(5):381–386, 2019.
[22] Bart Thomee, David A Shamma, Gerald Friedland, Benjamin Elizalde, Karl Ni, Douglas Poland, Damian Borth, and Li-Jia Li. Yfcc100m: The new data in multimedia research. Communications of the ACM, 59(2):64–73, 2016.
[23] Bokun Wang and Tianbao Yang. Finite-sum coupled compositional stochastic optimization: Theory and applications. arXiv preprint arXiv:2202.12396, 2022.
[24] Mengdi Wang, Ethan X Fang, and Han Liu. Stochastic compositional gradient descent: algorithms for minimizing compositions of expected-value functions. Mathematical Programming, 161(1):419–449, 2017.
[25] Yan Yang, Md Zakir Hossain, Eric A Stone, and Shafin Rahman. Exemplar guided deep neural network for spatial transcriptomics analysis of gene expression prediction. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages 5039–5048, 2023.
[26] Zhuoning Yuan, Yan Yan, Milan Sonka, and Tianbao Yang. Large-scale robust deep auc maximization: A new surrogate loss and empirical studies on medical image classification. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 3040–3049, 2021.
[27] Su Zhang, Ruyi An, Yi Ding, and Cuntai Guan. Continuous emotion recognition using visual-audio-linguistic information: A technical report for abaw3. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 2376–2381, 2022.
[28] Dixian Zhu, Gang Li, Bokun Wang, Xiaodong Wu, and Tianbao Yang. When auc meets dro: Optimizing partial auc for deep learning with non-convex convergence guarantee. In International Conference on Machine Learning, pages 27548–27573. PMLR, 2022.
Appendix
A Reproducibility
We provide a PyTorch [12] implementation of B2P-EMA and B2P-U in Github. B2P-EMA and B2P-U are implemented as torch.nn.Module object, enabling a simple drop-in replacement of the naive PCC/CCC loss. An example usage is shown below:
from b2p import B2PCorrEMA, B2PCorrU
pcc_loss_ema = B2PCorrEMA(metric="PCC", alpha=0.05) pcc_loss_u = B2PCorrU(metric="CCC", alpha=0.05, reservoir_size=256)
loss = pcc_loss_ema(y_label, y_predict) loss.backward()
B Additional Proofs and Derivations
B.1 Useful identities: U-statistics
Lemma B.1 (U-statistic identities used in §4.2). Let and be i.i.d. copies of with and . Then
Proof. We expand and use independence. For covariance,
which gives Equation (14). Similarly,
giving Equation (15).
B.2 Proof of Lemma 3.1 (population gradient of PCC)
Proof of Lemma 3.1. Assume Assumption 5.1 and write . Recall
Since , we may rewrite
Using differentiation under the expectation,
Next, with . Again interchanging and gives
Therefore,
Now apply the quotient rule to , noting is constant in :
Since , we obtain
which is exactly Theorem 3.1.
B.3 Proof of Lemma 3.2 (population gradient of CCC)
Proof of Lemma 3.2. Assume Assumption 5.1 and write . Recall
We already have from Equation (16).
Next compute . Since and are constants in ,
From Equation (17), . Also, so
Combining and regrouping,
(19)
Finally, apply the quotient rule to :
which is exactly Theorem 3.2.
C Proofs for Theoretical Studies
C.1 Pseudo-loss gradients recover the population gradients
Lemma C.1 (Pseudo-losses match population gradients when moments are correct). Let and be defined in Equations (4) and (5). If the population moments are used inside , then
Proof. All moments are wrapped in and thus treated as constants in backpropagation. Hence,
Differentiating Equation (4) w.r.t. f gives
which matches the negative of the per-example weight in Lemma 3.1. Thus . The CCC case is identical: differentiating Equation (5) yields
which matches the negative weight in Lemma 3.2.
C.2 Proof of Proposition 5.2 (Bias of naive mini-batch gradients)
Proof of Proposition 5.2 (PCC case). We present the PCC case; CCC follows identically since it is also a smooth ratio of finitely many raw moments of on the non-degenerate domain.
Step 1: PCC as a smooth function of raw moments. Fix and write . Define
On the domain define
Given an i.i.d. mini-batch , let and , so .
Let and . Under Assumption 5.1(3), is on a neighborhood of and its derivatives up to third order are bounded there.
Step 2: Taylor expansion and decomposition. Fix any coordinate and write . By the chain rule,
Let . A second-order Taylor expansion of J around r yields
for some constant (depending on third derivatives near r). Therefore,
Term (i): unbiased leading term. By Assumption 5.1(1), . Hence
Term (ii): the bias term. Write and . Then
Using independence across samples and ,
Since is bounded on the neighborhood, , and it is generally nonzero because and come from the same sample.
Term (iii): the Taylor remainder contributes . Using and the triangle inequality,
Let . Then
by exchangeability. Expanding using gives
Taking expectation against and using independence and , all mixed terms vanish, yielding
provided the expectations are finite. This holds under Assumption 5.1(2) since by triangle inequality and .
Consequently, .
Conclusion. Taking expectations in Equation (20) yields
Since this holds for each coordinate , we obtain . The mini-batch gradient analysis for CCC is identical after defining the corresponding smooth map
□
C.3 Formal Tracking Regime for Theorem 5.3
Assumption C.2 (B2P-EMA tracking regime). Assume Assumption 5.1 holds for all iterates . Let , z_t := (\hat{\mu}_f^{(t)}, \sigma_f^2^{(t)}, \hat{C}^{(t)}), and let be all information available before drawing the batch at step . Let be the detached batch-moment estimate used in Equation (8), and let denote the conditional mean gradient of the B2P-EMA pseudo-loss. Assume:
(1) Unbiased moment noise: and for some .
(2) EMA rates: , , and .
(3) Slow target drift: a.s. for some .
(4) Stable plug-in gradient: for the -stabilized PCC/CCC pseudo-losses, is Lipschitz, i.e., for some .
C.4 Proof of Theorem 5.3 (Tracking of B2P-EMA)
Proof. Write
Step 1: Tracking of the moment sketch. The EMA recursion can be written as
where
By Assumption C.2(1),
Let
Then
Conditioning on , we do not pull outside the expectation, since may depend on the same batch used to form . Instead, define
Using Young's inequality with ,
Since is -measurable and ,
Therefore,
Applying Assumption C.2(3) and ,
Hence
Taking expectation and writing
gives
Fix any . Since , there exists such that for all . Hence, for ,
Equivalently, we have
Iterating from to t yields
The first term vanishes because , and the second vanishes because . Therefore
Since is arbitrary, we conclude
Step 2: Consistency of the plug-in gradient. Let
By Lemma C.1, plugging the true moments into the stop-gradient pseudo-loss exactly recovers the population gradient:
Using Assumption C.2(4) and Jensen's inequality,
This proves the asymptotic consistency of the moving-target plug-in gradient.
Remark C.3 (Constant- heuristic). If and
then the same one-step recursion gives
Thus a small constant EMA still keeps the sketch accurate when the target moments drift on a slower scale than .
C.5 Proof of Proposition 5.4 (Variance reduction of B2P-U)
Proof of Proposition 5.4. Unbiasedness follows from linearity of expectation:
For the variance,
This is a convex quadratic in , minimized at . Substituting yields the stated variance reduction, with strict inequality when .
D Detailed Experiment Settings
D.1 Synthetic Dataset
D.1.1 Exp. 1: Imbalanced mixture regression
Exp. 1: Imbalanced mixture regression (synthetic). We construct an imbalanced two-component Gaussian-mixture regression problem to stress-test correlation objectives under mini-batches. Let and . We first draw an indicator with , and map it to a sign variable , where is the major component. Define a mean vector with and for . We then sample features
Next, we sample a ground-truth direction and normalize it to unit norm. The regression target is generated by
with heteroscedastic noise
This construction yields well-defined population moments, but makes mini-batch estimates of , , highly variable for small batch size B due to (i) strong class imbalance and (ii) component-dependent label shift and noise.
Exp. 1: Gradient-alignment diagnostics (PCC/CCC). We treat the entire synthesized dataset as the population to form oracle moments and oracle gradients. For a linear predictor , at each checkpoint , we compute an oracle gradient (or ) using the full population. We then estimate stochastic gradients from i.i.d. mini-batches of size sampled from the population: for each checkpoint we draw batches and compute a per-batch gradient direction , where is the naive mini-batch PCC/CCC or our B2P-Corr surrogate. We report:
where expectations are approximated by averaging over the 4096 sampled mini-batches. We repeat this evaluation for metric and .
Table 3: Exp. 1 hyperparameters.
| Data generation | |
|---|---|
| Dimension | 64 |
| Population size | 4000 |
| Imbalance | 0.9 |
| Mean separation (mean_sep) | 3.0 (only on feature 1; others 0) |
| Label shift (shift) | 8.0 |
| Noise std (major/minor) | |
| Data seed | 0 |
| Evaluation protocol (gradient diagnostics) | |
| Metrics | {PCC, CCC} |
| Batch sizes | {2, 4, 8, 16, 32} |
| Checkpoint grid | 60 points in (linear interpolation; renormalized) |
| Mini-batches per checkpoint | n_trials = 4096 |
| Random-direction seed (for ) | set_seed(123) inside each config run |
| B2P-Corr estimator hyperparameters | |
| Shared: step size | 0.02 |
| Shared: numerical | |
| B2P-U reservoir size | 1024 |
D.1.2 Exp. 2: isotropic linear regression
Exp. 2: Isotropic linear regression (data generation). We construct an isotropic linear regression problem in with additive Gaussian noise. Fix the dimension and sample the ground-truth direction , then normalize it to unit norm . Next, we generate i.i.d. covariates and responses
y_i = w^\star^\top x_i + \varepsilon_i, \qquad \varepsilon_i \sim \mathcal{N}(0, \sigma^2), \; \sigma = 3.0, \tag{21}for a total of samples. We split the first examples for training and the remaining for testing.
Exp. 2: Mini-batch PCC optimization. We train a bias-free linear predictor (implemented as Linear(d,1,bias=False)), where is initialized as (std. ). We optimize the PCC objective using Adam for 5,000 steps with mini-batch size (we run separate experiments for each ). We evaluate (i) DirectionRecovery = and (ii) TestPCC computed on the full test set. Metrics are logged every 100 steps (and at step 1) and averaged over 3 random seeds (which control model initialization and data-loader shuffling).
Table 4: Exp. 2 hyperparameters
| Data generation | |
|---|---|
| Dimension | 256 |
| Train / test size | |
| Covariates | |
| Ground-truth direction | , normalized to |
| Response model | y = w^*^\top x + \varepsilon |
| Noise | with |
| Dataset seed | 0 |
| Training & evaluation protocol | |
| Initialization | (std ) |
| Batch size | |
| Training steps | 5,000 |
| Optimizer | Adam |
| Learning rate | |
| Weight decay | |
| Gradient clipping | |
| B2P-Corr estimator hyperparameters | |
| Shared: step size | 0.05 |
| Shared: numerical | |
| B2P-U reservoir size | 256 |
D.2 Real-world Dataset
D.2.1 Video quality assessment (KoNViD-1k)
The hyperparameter settings for the KoNViD-1k experiment are provided in Table 5. We strictly follow the data processing and training pipeline of the baseline KVQ [16], use the same reported metrics (PCC, SROCC, and RMSE), and only replace the naive mini-batch PCC objective with our decomposable B2P-Corr and B2P-U objectives.
Table 5: KVQ [16] experiment setting on KoNViD-1k dataset
| Model & input | |
|---|---|
| Clip length | 32 |
| Input channels | 768 |
| Hidden channels | 64 |
| Optimization schedule | |
| Epochs | 60 |
| Warmup epochs | 1 |
| Batch size | |
| Optimizer | AdamW |
| Learning rate | |
| Weight decay | 0.05 |
| B2P-Corr estimator hyperparameters | |
| Shared: step size | 0.05 |
| Shared: numerical | |
| B2P-U reservoir size | 256 |
D.2.2 Spatial transcriptomic (10xProteomic)
The hyperparameter settings for the 10xProteomic experiment are provided in Table 6. We strictly follow the data processing and training pipeline of the baseline EGN [25], use the same reported metrics (PCC, MAE and MSE), and only replace the naive mini-batch PCC objective with our decomposable B2P-Corr and B2P-U objectives.
Table 6: EGN [25] experiment setting on 10xProteomic dataset
| Model & input | |
|---|---|
| Number of genes | 250 |
| MLP dimension | 4096 |
| Hidden dimension | 1024 |
| Model depth | 8 |
| Optimization schedule | |
| Epochs | 50 |
| Warmup steps | 100 |
| Batch size | |
| Optimizer | AdamW |
| Learning rate | |
| Weight decay | |
| B2P-Corr estimator hyperparameters | |
| Shared: step size | 0.05 |
| Shared: numerical | |
| B2P-U reservoir size | 256 |
D.2.3 Video-based sentiment analysis (VEATIC)
The hyperparameter settings for the VEATIC experiment are provided in Table 7. We strictly follow the data processing and training pipeline in VEATIC [17], use the same reported metrics (CCC, PCC, RMSE), and only replace the naive mini-batch CCC objective with our decomposable B2P-Corr and B2P-U objectives.
Table 7: VEATIC [17] experiment setting
| Model & input | |
|---|---|
| MLP dimension | 2048 |
| Hidden dimension | 2048 |
| Model depth | 6 |
| Dropout | 0.4 |
| Backbone | resnet50 |
| Optimization schedule | |
| Epochs | 20 |
| Batch size | |
| Optimizer | Adam |
| Learning rate | |
| Weight decay | |
| Betas | [0.9, 0.999] |
| B2P-Corr estimator hyperparameters | |
| Shared: step size | 0.05 |
| Shared: numerical | |
| B2P-U reservoir size | 256 |
D.3 Hardware Resources
All experiments were conducted on a server running Ubuntu 22.04, equipped with 6 NVIDIA A100 GPUs (80GB VRAM each) and 512GB of system RAM.
E Extended Results and Analysis
E.1 VEATIC Dataset Arousal Result
Table 8: VEATIC arousal (CCC) results. We keep the baseline architecture, optimizer and auxiliary losses fixed and replace only the naive mini-batch CCC objective with B2P-Corr (B2P-EMA/B2P-U). B2P consistently improves CCC/PCC and reduces RMSE across batch sizes. “Default” denotes the batch size used in the original baseline. Results are reported as mean±std (bold/underline denote best/second best).
| 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 | |
Table 8 reports arousal prediction on VEATIC. Keeping the baseline setting unchanged and replacing only the naive mini-batch CCC term with B2P-Corr yields consistent gains across batch sizes. At , B2P-U improves CCC from 0.433 to 0.450 and sharply reduces RMSE from 0.311 to 0.218 (B2P-EMA: CCC 0.452, RMSE 0.246). The improvements persist at (best CCC 0.578 vs. 0.560, RMSE 0.210 vs. 0.230) and at the default , where B2P-U achieves the best overall CCC/PCC (0.603/0.643) with lower RMSE (0.212 vs. 0.234). Overall, B2P provides a practical and effective drop-in replacement for stabilizing CCC optimization on this sentimental video-based analysis dataset.
E.2 Direction recovery and test set CCC for synthetic Exp. 2
Figure 4 reports DIRECTIONRECOVERY and CCC on the isotropic linear-regression test set for batch sizes . The overall behavior closely mirrors the PCC results in Figure 3. In the extreme mini-batch regime ( ), both B2P-EMA and B2P-U remain stable and continue to improve throughout training, reaching DIRECTIONRECOVERY and CCC. Notably, this CCC is comparable to the naive method trained with a much larger batch size ( ). In contrast, naive mini-batch CCC optimization degrades sharply at , attaining only CCC and exhibiting substantially worse alignment with the ground-truth direction. Overall, Exp. 2 demonstrates that B2P-Corr enables reliable CCC maximization in the micro-batch setting, where the naive mini-batch objective suffers from severe batch-to-population bias and can become unstable.

(a) CCC: training (b) CCC: training (c) CCC: training (d) CCC: training
Figure 4: For Exp. 2, we show DirectionRecovery and TestCCC vs. training steps for different batch sizes. With , B2P-EMA/B2P-U shows largest increment comparing to naive mini-batch optimization. The gap narrows as increases.
E.3 B2P-EMA hyperparameter sensitivity
Figures 5a and 5b report test-set PCC on KoNViD-1k for B2P-EMA with different smoothing factors under and . Overall, B2P-EMA is stable across hyperparameter choices. With small batches ( ), smaller smoothing factors perform better: a smaller updates the running moment sketch less aggressively, which is desirable because moment estimates from very small batches are noisier. Consequently, outperforms (0.898 vs. 0.893). When increasing the batch size to , moment estimates concentrate, and larger values (e.g., or ) outperform (0.898 vs. 0.893). Overall, we recommend using a larger smoothing factor for larger batch sizes.

(a) B2P-EMA (B = 2)
(b) B2P-EMA (B = 8)
(c) B2P-U Reservoir (B = 2)
(d) B2P-U Reservoir (B = 8)
Figure 5: Sensitivity analysis on the KoNViD-1k dataset. We replace the naive mini-batch PCC objective with B2P-Corr and B2P-U, and evaluate (a–b) test-set PCC of B2P-EMA under different smoothing factors , and (c–d) test-set PCC of B2P-U under different reservoir sizes, for batch sizes .
E.4 B2P-U reservoir size sensitivity
Figures 5c and 5d report test-set PCC on KoNViD-1k for B2P-U with different reservoir sizes under and . B2P-U remains stable once the reservoir size exceeds 32. For both and , test-set PCC generally increases with reservoir size. However, larger reservoirs also increase the risk of stale cached predictions (if the reservoir is refreshed infrequently) and add computational overhead.