Enhancing Counterfactual Classification Performance via Self-Training

Ruijiang Gao, Max Biggs, Wei Sun, Ligong Han

Introduction

In decision-making contexts such as personalized medicine or dynamic pricing, we often face the challenge of predicting outcomes for actions that were never taken—a problem known as counterfactual inference. Standard machine learning models trained on historical observational data suffer from selection bias, as past actions were likely dictated by specific human policies. This paper addresses Counterfactual Classification (CC), focusing on categorical outcomes (e.g., purchase vs. no-purchase) rather than continuous effects.

Methodology: Counterfactual Self-Training (CST)

The authors propose Counterfactual Self-Training (CST), framing counterfactual inference as a domain adaptation problem. The goal is to transition from biased observational data to a simulated randomized controlled trial.

Conceptual overview of the Direct Method versus Self-Training (CST), illustrating how pseudolabeling fills in missing counterfactual outcomes to simulate a randomized trial.

CST operates through an iterative process:

  1. Initial Training: A base model is trained on factual observational data.
  2. Pseudolabeling: The model predicts outcomes for all counterfactual actions (actions not taken in the original data).
  3. Augmentation: The dataset is expanded with these "imagined" outcomes.
  4. Iterative Refinement: The model is retrained on the augmented dataset until convergence.

To mitigate the risk of error propagation from incorrect pseudolabels, the authors introduce Counterfactual Virtual Adversarial Training (CVAT). This consistency-based regularization forces the model to maintain stable predictions under small input perturbations across all possible actions, effectively smoothing decision boundaries and denoising the training set.

Experimental Evaluation

The effectiveness of CST was tested across three distinct data environments:

  • Toy Data: Visualizing decision boundary refinement on "two-moon" distributions.
  • Synthetic Pricing: 50-dimensional feature sets with five discrete price points to evaluate demand function estimation where the ground truth is known.
  • Real-World Benchmarks: Multi-label datasets (Scene and Yeast) converted into bandit feedback format to simulate missing counterfactual information.

Key Results and Insights

CST demonstrates significant improvements over the Direct Method (DM) and representation learning techniques like HSIC. By imputing labels for every action, CST effectively simulates a randomized trial, making it highly effective at extrapolation—predicting behavior under policies never previously implemented.

Comparison of Log Loss (NLL) across synthetic datasets D1-D5, showing that CST with CVAT consistently achieves the lowest error.

As shown in the results for synthetic pricing, CST with CVAT consistently achieves the lowest Log Loss. For instance, on the D1 dataset, the error dropped from 2.37 (Backbone) to 0.54 (PL + CVAT). Similar gains were observed in Hamming Loss across both synthetic and real-world datasets. Notably, the method remains robust even in low-overlap scenarios where historical policies were highly deterministic, a setting that typically poses a significant challenge for counterfactual learners.

Conclusion and Future Work

While CST provides a powerful, model-agnostic framework for counterfactual classification, it currently requires discrete action spaces. Future research may explore joint kernel embeddings to handle continuous actions and more robust model selection techniques, such as counterfactual cross-validation, to optimize the self-training loop.

Summary updated

BibTeX
@inproceedings{gao2022enhancing,
  author = {Ruijiang Gao and Max Biggs and Wei Sun and Ligong Han},
  title = {{Enhancing Counterfactual Classification Performance via Self-Training}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i6.20621},
}
Figure