arXiv:2610.01788cs.LGOct 2026

Manuscript Offprint

arXiv:2610.01788

SAGE: Similarity-Based Cleaning of Poisoned Training Data from Verified Examples

Chaeeun Han, Soodeh Atefi, Yevgeniy Vorobeychik, Aron Laszka

Chaeeun Han*, Soodeh Atefi†, Yevgeniy Vorobeychik‡, and Aron Laszka*

*College of Information Sciences and Technology, Pennsylvania State University, University Park, PA, USA

†Department of Computer Science and Engineering, University of Louisville, Louisville, KY, USA

‡Department of Computer Science and Engineering, Washington University in St. Louis, St. Louis, MO, USA

Email: {cfh5554, aql5923}@psu.edu, soodeh.atefi@louisville.edu, yvorobeychik@wustl.edu

Published in the Proceedings of the 6th ICDM Machine Learning for Cybersecurity Workshop (ICDM MLC 2026).

Abstract—As machine learning increasingly relies on public, untrusted data sources, data poisoning attacks, which inject malicious examples into training data to induce misclassification of a chosen target, pose a growing threat. Existing defenses either assume zero ground-truth information about which examples are poisoned, or they assume access to a large set of examples verified to be clean. Satisfying the latter assumption incurs significant cost since reliable verification can be very resource- or labor-intensive. This cost is particularly high for clean-label attacks, where poisoned examples are visually indistinguishable from clean data. Since requiring a large set of verified examples is impractical, we propose relying on a small set of verified examples including both clean and poisoned ones, i.e., each example verified either to be clean or poisoned through inspection by a forensic expert. The challenge is then to detect poisons based on a set of verified examples that is so small that most classification models would overfit. To address this challenge, we propose Similarity-based Approach for Ground-truth-driven Exclusion (SAGE), which trains a generic feature extractor on a separate dataset and then flags poisoned training examples using a non-parametric, similarity-weighted prediction based on the verified set. On standard benchmarks against seven clean-label attack methods, we demonstrate that having access to even a handful of verified poisoned examples provides a substantial advantage. We also find that the distribution of verified clean examples across classes matters more than the number of verified examples.

Index Terms—data poisoning, clean-label attacks, data cleaning, similarity-based learning

I. INTRODUCTION

Machine learning (ML) systems have become indispensable in a wide range of applications, from autonomous driving [1] to health care diagnostics [2]. The success of these systems hinges on the integrity and quality of their training data. However, as ML increasingly relies on external, untrusted data sources, it becomes more vulnerable to data poisoning attacks, in which adversaries introduce malicious examples into training data to cause misclassifications of specific test instances [3]–[6]. Such attacks can be practical: Carlini et al. [7] demonstrate that an adversary could have succeeded in achieving their misclassification goal by controlling a mere 0.01% of a web-scale dataset such as LAION-400M.

A number of cleaning approaches have been introduced to detect and remove poisoned examples from training data [3], [5], which vary in terms of their assumptions. Some cleaning approaches trust the class labels of the entire training set [8]; others assume nothing and rely on statistical outlier criteria, at the cost of lower precision [9], [10]. We focus on base-set defenses that assume access to a set of verified clean examples, which serve as a reference for the remaining data. The assumed size of this verified set varies between cleaning approaches: the frequency-based poison detector [11] and MW-Net [12] use 100 clean examples; while MNTD [13], Neural Cleanse [14] and I-BAU [15] use 1,000. De-Pois [16] assumes 20% of the training data to be verified, which corresponds to 10,000 verified images for CIFAR-10, a commonly used benchmark. Reducing the verified fraction degrades both its accuracy and the F1 score from roughly 0.9 to 0.7 as the fraction decreases to 0.5%. DUTI [17] likewise relies on a substantial number of verified clean examples.

However, verifying that an example is clean is expensive. Clean-label poisons are perturbed to remain visually indistinguishable from benign data, and professional inspectors struggle to identify over 86% of feature-perturbing poisons [18]. Verification therefore cannot rely on rapid visual screening; it requires deliberate per-example scrutiny, whose cost grows linearly with the size of the verified set. For this reason, gathering the hundreds or thousands of verified clean examples that existing base-set defenses require is often impractical.

Further, the assumption that verification provides only clean examples may also be impractical. An inspection process that is meticulous enough to reliably verify examples as clean may also confirm some examples to be poisoned, and these carry more information than what clean examples carry alone. A verified clean set characterizes only how clean data are distributed, so a defense built on it must treat every deviation from this distribution as suspect. A set of verified poisons instead marks regions of the feature space that the attack targets, enabling defense to focus on these specific regions. We therefore study a setting in which the defender has access to both kinds of verified examples, and we show that relying on both enables effective detection based on verified sets that are much smaller than those assumed by existing base-set defenses.

Given both kinds of verified examples, the detection of remaining poisons can itself be posed as an ML problem: a binary classification task separating poisoned examples from clean examples, trained on the set of verified examples and applied to the rest of the training data. For the kind of unstructured data that we consider throughout this work, such as images, training a classifier based on a few dozen verified examples is very challenging. Training a model directly on so few examples immediately overfits the model. Fitting a classifier on features output by a fixed, pretrained feature extractor only shifts the difficulty: clean-label poisons differ from benign data by small perturbations, so any representation exposing them must retain fine-grained detail and is therefore high-dimensional, leaving the decision boundary under-determined, creating a curse of dimensionality for the detection problem. Both failures share a cause: each fits parameters to the verified set, which is far too small to determine them. This motivates an approach that fits no parameters to that set at all.

In this work, we propose SAGE (Similarity-based Approach for Ground-truth-driven Exclusion), which addresses these challenges. SAGE trains a feature extractor on a separate dataset, then classifies each candidate as poisoned or clean by a non-parametric, similarity-weighted prediction over the verified set. Because no parameters are fit to that set, its size affects only how finely the prediction can discriminate, not the risk of overfitting. This shifts the technical question from how to classify to how to represent. An extractor trained with a standard classification objective is optimized to make classes linearly separable, not to place similar examples near each other, which is what SAGE relies on at detection time. We therefore train it with an objective that mirrors detection. Each batch is split into a reference subset and a query subset, predictions for the query subset are formed as a similarity-weighted combination of reference labels, and the resulting cross-entropy is back propagated through the extractor. Detection then applies the same rule with the verified examples as the reference set.

We evaluate SAGE on CIFAR-10 [19] and Tiny ImageNet [20] against three clean-label triggerless attacks (feature collision [21], bullseye polytope [22], and gradient matching [23]) and against four clean-label backdoor attacks (Narcissus [24] and three variants of Wicked Oddities [25]). On CIFAR-10, SAGE finds at least 480 of the 500 poisoned examples in every triggerless setting, limiting attack success rate (ASR) to at most 5%, while discarding less than 2% of the training data. Against backdoor attacks, SAGE is the only defense that effectively suppresses attacks without discarding too much training data: the only baseline method that attains significantly lower ASR does so by discarding so much training data that the accuracy of the trained application model falls below 0.50.

The remainder of this paper is organized as follows. Section II reviews related work on data poisoning and defenses, and explains how our assumptions differ. Section III introduces the threat model and our objective. Section IV presents our proposed method, SAGE. Section V describes our experimental setup, and Section VI reports results. Section VII discusses the limitations of our approach and provides concluding remarks.

References (37)