NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Efficient Classification with Counterfactual Reasoning and Active Learning

Azhar Mohammed, Dang Nguyen, Bao Duong, Thin Nguyen

Introduction

Data augmentation is a cornerstone of modern machine learning, particularly in computer vision where geometric transformations like rotations or flips can expand a dataset while preserving semantic labels. However, applying these techniques to tabular data—the structured information found in finance, healthcare, and social sciences—remains a significant challenge. Unlike images, tabular features lack geometric invariance; changing a single value, such as "Years of Employment," can fundamentally alter the outcome of a prediction rather than simply creating a variant of the same class.

In the paper "Efficient Classification with Counterfactual Reasoning and Active Learning," researchers from Deakin University propose CCRAL, a framework designed to bring the power of data augmentation to tabular datasets. By combining causal reasoning with active learning, CCRAL generates informative "what-if" scenarios that help classifiers better understand complex decision boundaries.

The CCRAL Framework

The CCRAL method addresses the inherent difficulties of tabular data—sensitivity to small changes, feature heterogeneity, and the lack of ground-truth labels for synthetic samples—through a two-stage process.

1. Learning Counterfactual Samples

The framework utilizes causal reasoning to generate synthetic data points known as counterfactuals.

  • Treatment Flipping: The process begins by identifying a "treatment feature" (a binary variable such as "Marital Status" or "Sex"). By flipping the value of this feature while keeping other variables constant, the model creates a counterfactual record: "How would this individual’s credit risk change if their marital status were different?"
  • Label Assignment: Because these generated samples are synthetic, they lack natural labels. CCRAL employs a matching heuristic, using Euclidean distance to find the nearest real-world neighbor in the existing training set and assigning its label to the counterfactual sample.

2. Active Learning and Uncertainty Sampling

A key contribution of the paper is the insight that not all counterfactuals are beneficial. Adding too many synthetic points can introduce noise and degrade performance. CCRAL employs active learning to filter these samples:

  • Region of Uncertainty: The model identifies the "region of uncertainty"—the area of the feature space where the classifier is most hesitant. This is defined by a margin $\alpha$ around the 0.5 decision boundary.
  • Targeted Augmentation: Only counterfactuals derived from samples within this uncertain region are added to the training set. This forces the model to refine its decision boundary specifically where it is most prone to error, maximizing the informational value of each added sample.

Experimental Evaluation

The authors evaluated CCRAL across five diverse tabular datasets frequently used in fairness and causality research:

  • German Credit: Credit risk prediction (1,000 samples).
  • Bank Marketing: Term deposit subscription prediction (4,521 samples).
  • Twins: Mortality rate prediction for twins (4,821 samples).
  • COMPAS: Criminal recidivism risk (4,010 samples).
  • Adult: Income level prediction (30,162 samples).

While the experiments primarily utilized Support Vector Machines (SVM) as the base classifier, the CCRAL framework is algorithm-agnostic and can be integrated with other models such as Random Forests or Neural Networks.

Key Results and Insights

CCRAL consistently outperformed both standard training (no augmentation) and "naive" counterfactual augmentation (augmenting with all possible counterfactuals).

  • Significant Accuracy Gains: On the German Credit dataset, CCRAL achieved an accuracy of 70.0%, representing a 9% improvement over the standard baseline of 61.0%. The Adult dataset also saw a notable improvement of approximately 3.5%.
  • Robustness in AUC: The Area Under the Curve (AUC) metrics showed even more dramatic improvements. In the Twins dataset, CCRAL reached an AUC of 75.95%, compared to just 56.8% for the standard baseline.
  • Efficiency of Selection: The results validate the "quality over quantity" hypothesis. By focusing on uncertain samples, CCRAL avoids the performance degradation often seen when synthetic noise is introduced indiscriminately.

Conclusion and Future Directions

CCRAL demonstrates that targeted counterfactual reasoning is a highly effective strategy for tabular data augmentation. By exploring the "what-if" space around the decision boundary, the framework creates more robust and accurate classifiers.

Future work may address current limitations, such as the reliance on binary treatment features for counterfactual generation. Expanding the framework to handle continuous or multi-categorical treatments (like "Age" or "Occupation") and refining the nearest-neighbor labeling heuristic could further enhance the utility of CCRAL across even more complex data structures.

Summary updated

BibTeX
@inproceedings{mohammed2022efficient,
  author = {Azhar Mohammed and Dang Nguyen and Bao Duong and Thin Nguyen},
  title = {{Efficient Classification with Counterfactual Reasoning and Active Learning}},
  booktitle = {ACIIDS},
  year = {2022},
  doi = {10.1007/978-3-031-21743-2\_3},
}
Figure