Conditional Probability Shift Model
- CPSM is a framework that addresses shifts in P(Y|Z) while keeping the downstream distribution P(W|Z,Y) invariant, bridging covariate and label shift scenarios.
- It employs multinomial logistic regression to parameterize target posteriors and uses an EM algorithm to estimate the local tilt even with missing target labels.
- Empirical evaluations show that CPSM significantly improves balanced accuracy and reduces approximation error compared to traditional label shift methods in various settings.
The Conditional Probability Shift Model (CPSM) addresses a nuanced regime of distributional shift in supervised learning, generalizing beyond the classical covariate shift and label shift frameworks. In CPSM, the conditional distribution of the class label given a subset of features (“conditioning” features) is allowed to change from source to target, while the conditional distribution of the remaining features, given the class and conditioning features, remains invariant. CPSM provides a principled methodology for recovering the posterior class probabilities on the target domain, relying on parameterization via multinomial logistic regression and parameter estimation through the Expectation-Maximization (EM) algorithm in the presence of missing target labels (Teisseyre et al., 4 Mar 2025).
1. Problem Definition and Conditional Probability Shift Assumption
Let denote the observed feature vector and the class label. CPSM partitions , where includes the “conditioning” features suspected of experiencing a shift in , and consists of all remaining features. The model presumes access to labeled samples from a source distribution and only unlabeled samples from a target marginal .
The central CPS assumption posits:
- (invariance of the “anti-causal” slice)
- (shift of the class-conditional on 0)
Joint distributions factor as: 1
2
Selecting 3 recovers classic covariate shift (4, 5). Setting 6 trivializes to label shift (7, 8). CPSM thus interpolates between these domains, uniquely capturing situations where 9 varies while “downstream” structure remains stable.
2. Posterior Recovery and Model Parameterization
The inferential target is 0. By Bayes' rule and the invariance of 1, the target posterior is expressed as: 2 where 3 is the local “tilt” of the class-conditional.
This formulation reduces the adaptation task to that of learning the set of ratios 4.
CPSM parameterizes 5 as a multinomial logistic regression: 6
7
for 8 and some feature mapping 9. The true 0 is assumed to be in this family for some 1.
3. Expectation-Maximization Estimation
Since target labels are unobserved, parameter estimation proceeds by maximizing the observed target marginal likelihood using the EM algorithm.
E-step: At iteration 2, compute the pseudo-responsibilities
3
with 4.
M-step: Update 5 by maximizing
6
This coincides with the weighted multinomial logistic regression log-likelihood, solvable by Newton–Raphson or stochastic gradient methods. The procedure is initialized at 7 (no shift).
Standard EM theory ensures that the observed likelihood is non-decreasing. Under regularity conditions, the procedure converges to a stationary point of the likelihood.
4. Integration with Probabilistic Classifiers
CPSM requires, from labeled source data:
- 8 (“posterior model”)
- 9 (“marginal model”)
These posteriors can be estimated using any probabilistic classifier (e.g., logistic regression, random forest, neural network) trained on source data. Typically:
- A classifier predicts 0 from 1 to provide 2.
- A separate classifier predicts 3 from 4 only to estimate 5.
These models supply the necessary terms for the E-step. Upon convergence of EM and estimation of 6, the target posterior 7 is reconstructed via the closed-form correction formula provided above.
5. Special Cases and Identifiability
- If 8 is constant, 9 reduces to 0, and CPSM collapses to the classical label shift model, with 1 modeling the class priors.
- If 2 (i.e., 3), 4, yielding the covariate shift regime with unchanged posterior mapping.
- Identifiability of 5 is ensured provided the feature transformation 6 spans 7 and classes are not perfectly separated. Under these mild assumptions, the EM estimator is consistent as 8.
6. Empirical Evaluation
Synthetic Studies
Two generative settings for 9 were examined: binary vectors and multivariate Gaussians. 0 with 1 constant and 2 parameterized as a logistic function of 3. By modulating parameters, the following regimes were generated: no shift, label shift, CPS only, and joint shift. Additional features 4 were sampled conditionally according to the invariant 5.
Metrics included balanced accuracy and the absolute error 6. CPSM matched classical label shift methods (BBSC, MLLS) under pure label shift, but outperformed all methods—especially Sparse-Joint-Shift (SEES)—in all settings featuring conditional shifts (7 but no marginal label shift).
MIMIC Medical Case Study
On the MIMIC medical database, the tasks involved predicting four disease indicators from laboratory/vital data, with 8 chosen as age category or gender. Source data was sampled to maintain constant 9; the target was perturbed to induce a conditional shift 0 for 1. Marginal label distributions could remain unchanged or shift.
Logistic regression and three-layer neural networks were used as base classifiers. Competing approaches encompassed NAIVE (no correction), BBSC and MLLS (label shift correction), ExTRA (exponential tilt for joint shift), and SEES. Results established that:
- In pure conditional shift (no label shift): NAIVE, BBSC, and MLLS did not improve target performance.
- CPSM consistently improved balanced accuracy by 10–20 points and minimized approximation error in nearly all settings.
- CPSM outperformed SEES (the only other SJS-based method) in terms of approximation error and balanced accuracy.
7. Context, Extensions, and Implications
CPSM provides a middle ground between covariate and label shift adaptations, rigorously addressing shifts that are localized in conditional class distributions yet cannot be ascribed solely to priors or marginal features. Its generic EM-based implementation and compatibility with arbitrary probabilistic classifiers make it broadly applicable in machine learning pipelines facing distributional changes that violate stronger shift assumptions. Empirical evidence suggests distinct advantages over prior label shift and joint shift correction methods in settings where conditional structure dominates and prior-based corrections are insufficient. A plausible implication is increased robustness to “hidden stratification” in clinical or high-dimensional scientific datasets, where subpopulation-specific prevalence can change without altering aggregate class proportions (Teisseyre et al., 4 Mar 2025).