A new class imbalance correction method based on flipping majority-class labels allows uplift modeling and heterogeneous treatment effect estimation algorithms to maintain causal validity without distorting predicted effects. Developed by researchers Krzysztof Rudaś and Szymon Jaroszewicz and published in the journal Machine Learning, the approach provides an alternative to traditional sampling strategies for experimental data. Uplift modeling and heterogeneous treatment effect estimation aim to predict the causal effect of a specific action, such as a medical treatment or a targeted marketing campaign, on an individual. In experimental settings, analyzing data from randomized controlled trials guarantees a causal interpretation of outcomes, but severe class imbalance across outcomes frequently complicates model training in key application areas such as online advertising.
Conventional methods for handling class imbalance, such as classical undersampling or oversampling, present severe complications when applied to causal estimation tasks. In the context of uplift modeling and heterogeneous treatment effect prediction, traditional sampling adjustments distort the predicted effect across target populations. Prior attempts to address these distortions have relied on post-hoc calibration methods; however, the authors emphasize that calibration techniques do not guarantee correct predictions.
To overcome these limitations, the authors introduce a framework centered on flipping the class value of selected records rather than discarding or duplicating observations. The core operational advantage of this class flipping formulation is that conditional class probabilities can be recovered through linear transformations. This mathematical property guarantees causal model identifiability directly from the adjusted data. Consequently, the proposed approach does not distort the predicted causal effect and eliminates the requirement for separate calibration procedures, offering a theoretically sound mechanism for processing imbalanced randomized trial outcomes.
The study notes specific mathematical boundaries regarding how class flipping must be implemented across records. While an unconstrained approach could theoretically attempt to simultaneously flip classes zero and one in different proportions, the authors demonstrate that the necessary relationship defined in their formulation would no longer hold under such conditions. If both classes were flipped simultaneously in differing proportions, the conditional average treatment effect would not be predicted correctly, failing to achieve asymptotic consistency even as the overall sample size tends to infinity. Restricting label changes specifically to the majority class preserves the linear relationship necessary for exact probability recovery.
The class flipping approach proves especially advantageous for modified outcome models based on class variable transformation. In standard formulations, class variable transformation models suffer because the class transformation they apply can introduce severe bias when applied to unbalanced datasets. Furthermore, these models frequently encounter spurious correlations with the treatment variable, which degrades empirical performance. The authors address modified outcome models separately, designing a tailored transformation scheme that simultaneously resolves the problem of spurious correlations with the treatment variable while guaranteeing correct causal predictions throughout model estimation.
Empirical experiments conducted by the research team confirmed their theoretical derivations across multiple modeling configurations. When evaluating uplift meta-learners, the investigators found that incorporating class flipping improved performance when logistic regression or gradient boosting served as the base learner. In contrast, the approach proved less helpful when applied to decision trees within those meta-learner structures. Across these evaluations, the class flipping technique performed comparably to or better than traditional approaches based on undersampling, demonstrating practical utility across standard experimental benchmarks.
The experimental evaluations revealed distinct gains when applying class flipping to the class variable transformation uplift algorithm. Under this approach, class flipping produced substantial improvements in predictive performance, enabling the class variable transformation framework to compete effectively against alternative meta-models. Notably, these performance gains emerged even when using base learners such as decision trees, an architecture for which class flipping did not yield comparable benefits in standard classification experiments. When tested on standard imbalanced classification problems outside causal inference, results were mixed, with the proposed flipping technique performing best in configurations utilizing logistic regression.
To support experimental replication, the researchers made their complete code publicly available in an open repository, utilizing a pre-aggregated version of the Starbucks marketing promotion campaign uplift modeling dataset. The authors note that the area under the receiver operating characteristic curve metric utilized in evaluations is mathematically equivalent to the Mann–Whitney U test statistic. For data availability, the publication records that no new datasets were generated or analysed during the study.
Looking toward future developments, the authors outline plans to extend investigations into areas of causal evaluation and algorithmic design. A primary objective involves examining the effects of class flipping on evaluation criteria that incorporate fairness metrics, referencing work by Lo and colleagues. In addition, the researchers plan to conduct deeper theoretical and empirical investigations into the specific performance characteristics and behavioral dynamics of decision trees operating under class flipping transformations.
Subject of Research: Class flipping method for uplift modeling and heterogeneous treatment effect estimation
Article Title: Class Flipping for Uplift Modeling and Heterogeneous Treatment Effect Estimation on Imbalanced RCT Data
Article References: Rudaś, K., & Jaroszewicz, S. (2026). Class Flipping for Uplift Modeling and Heterogeneous Treatment Effect Estimation on Imbalanced RCT Data. Machine Learning, 115(12), Article 264. https://doi.org/10.1007/s10994-026-07201-z
Image Credits: AI Generated
DOI: 10.1007/s10994-026-07201-z
Keywords: uplift modeling, heterogeneous treatment effects, class flipping, class imbalance, randomized controlled trials, causal inference, meta-learners, class variable transformation, modified outcome models, logistic regression, gradient boosting, decision trees, conditional average treatment effect, model identifiability, online advertising, undersampling, calibration methods, fairness criteria
Cite Scienmag News
Courtney Benton. (November 25, 2026). Class Flipping Corrects Imbalance in Uplift Models Without Distorting Causal Effects. Scienmag. https://scienmag.com/class-flipping-corrects-imbalance-in-uplift-models-without-distorting-causal-effects/
Courtney Benton. "Class Flipping Corrects Imbalance in Uplift Models Without Distorting Causal Effects." Scienmag, 25 November 2026, https://scienmag.com/class-flipping-corrects-imbalance-in-uplift-models-without-distorting-causal-effects/. Accessed 27 November 2026.
Courtney Benton. "Class Flipping Corrects Imbalance in Uplift Models Without Distorting Causal Effects." Scienmag. November 25, 2026. https://scienmag.com/class-flipping-corrects-imbalance-in-uplift-models-without-distorting-causal-effects/








