Skip to content
< all work

Machine learning · Graduate research · 2025

Per-bag suspicion bagging against data poisoning

A weighted bagging defence that uses per-class autoencoders to score how suspicious each training sample is, then down-weights the suspicious ones when drawing bootstrap samples. Published at PST 2025 (IEEE).

adversarial-mldata-poisoningensembles

Under 50% label flipping on MNIST, the best weighted ensemble reached 98.06% accuracy, against 97.67% for the best standard bagging ensemble and 97.04% for a single CNN.

Role
First author
Stack
Python · PyTorch · scikit-learn
Links
Paper >
Framework diagram: per-label autoencoders feed automated residual analysis, which sets resampling probabilities for bootstrap samples and a majority-voting ensemble

Bagging already blunts data poisoning. Weighted bagging goes further by giving anomalous samples a lower chance of being drawn into each bootstrap sample, but the weights are often unstable and need careful tuning. I wanted weights that come from the data itself.

I trained one autoencoder per class on the clean starting data (784 to 3 dimensions and back, in PyTorch). When new data arrives, each sample is scored by how badly its own class's autoencoder reconstructs it. That residual becomes a suspicion score, and the scores set the resampling probabilities for the bootstrap samples. I tested label-flipping attacks on MNIST with a CNN, at poisoning levels from 10% to 50% and ensembles of 3 to 20 models.

On clean data the method costs a little: 98.77% against 98.84% for standard bagging with three models, because a few unusual but honest samples get down-weighted. Above 10% poisoning it wins on accuracy at every level tested. The paper was published at PST 2025 (IEEE) with co-authors at Ontario Tech.

Two histograms of resampling probabilities, one for the clean training set and one for the set with 50% label flipping
Resampling probabilities on the clean set (a) and at 50% label flipping (b). Over 24,000 samples get zero probability in (b).