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).
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 >

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.
Screens
