Manuscript Offprint
arXiv:2610.34934A Certified Robustness Framework for Backdoor Poisoning Attacks using -Divergences
Abstract
Machine learning systems trained on untrusted data are vulnerable to data and backdoor poisoning attacks, in which an adversary corrupts training and test samples to manipulate predictions at inference time. Randomized smoothing yields provable defenses against such attacks, but existing applications to train-time robustness are limited to specific threat models and smoothing mechanisms. We propose a general framework that allows expressing complex adversary constraints on the number of corrupted training examples, feature and label perturbation magnitudes, and test-time corruptions. Our framework randomizes inputs by combining data subsampling with feature, label and test-sample noising. We develop a composable certification procedure based on f-divergences that handles arbitrary combinations of threat models and noising strategies, and recovers several prior certification regimes exactly as special cases. We demonstrate our framework experimentally by certifying, for the first time, robustness under general -constrained poisoning adversaries under bagging with additive Laplace, Gaussian, and Uniform noises.
1 Introduction
Despite their continued adoption in wide-reaching domains, machine learning systems remain susceptible to adversarial attacks that subvert their reliability and can cause harmful outcomes. These attacks span a broad class of threat models, including both training- and inference-phase attacks. Of particular concern are data and backdoor poisoning attacks, in which an adversary corrupts a portion of the training data to degrade or control model behavior [Gu et al., 2019, Shafahi et al., 2018, Saha et al., 2020, Aghakhani et al., 2021, Geiping et al., 2021, Souri et al., 2022]. To defend against such attacks, certified defenses have been proposed that provide provable guarantees on the consistency of a classifier's output around an input. The most popular of these techniques, randomized smoothing, works by lifting the classifier into a function over a noised version of the input and defining a new classifier by taking the expectation [Lecuyer et al., 2019, Cohen et al., 2019].
The intuitive reason randomized smoothing works is that averaging a function over a noised input induces a uniform continuity property whose stability depends primarily on the consistency of the function around the input, rather than on the continuity properties of the base function. This principle applies whether the input and noise are simple (e.g., classification under Gaussian noise) or complex (e.g., an entire randomized dataset). In the case of data poisoning or backdoor attacks, several natural noising strategies exist, including data subsampling, feature noising, and label flipping. However, as the noising procedures become more complex, analyzing the certified guarantees becomes increasingly difficult. As a result, existing certified defenses for data poisoning attacks remain limited to smoothing strategies such as simple bagging or discrete label flipping [Jia et al., 2021, Chen et al., 2022, Zhang et al., 2022].
In this work, we ask, can we develop a highly general randomized smoothing framework for data poisoning and backdoor adversaries that easily handles complex threat models and smoothing strategies? Our insight is to leverage the convex-optimization view of randomized smoothing first introduced by Dvijotham et al. [2020], in which the admissible perturbation set is replaced by a convex outer approximation defined by f-divergence constraints. The certification condition relies on the smoothing mechanism and threat model only through a set of divergence constraints corresponding to a certain dual problem with nice composition properties. We argue this is the “right” perspective for composite mechanisms such as those arising in the backdoor poisoning setting.
Contributions We present a randomized smoothing framework for backdoor and data poisoning attacks that incorporates rich attacker threat models, a multi-step randomization scheme, and efficient certification via convex relaxation using f-divergences. Our framework makes it straightforward to describe complex threat models spanning feature, label, and test instance corruptions, to describe noising strategies that defend against them, and to derive sound robustness certificates under the resulting schemes. We explain how our framework recovers the tight certificates of several prior works as special cases. We use our framework to study certifiably robust classification under backdoor and data poisoning attacks in a wide range of settings not considered in prior works.
Randomized smoothing In response to the weaknesses of empirical defenses [Athalye et al., 2018], randomized smoothing emerged as a technique to obtain provable robustness to adversarial examples [Lecuyer et al., 2019, Cohen et al., 2019, Li et al., 2019, Salman et al., 2019]. Early work established the standard certificate analysis methodology via the Neyman–Pearson Lemma [Neyman & Pearson, 1933] and the use of confidence-corrected estimates of the smoothed prediction. Other characterizations have also been explored, including functional optimization over f-divergence constraints [Dvijotham et al., 2020] and a nonlinear Lipschitz condition [Salman et al., 2019].
Learner-specific defenses Some works derive robustness certificates for specific learning algorithms. Early work studied duality-based upper bounds on the total test error [Steinhardt et al., 2017]. Rosenfeld et al. [2020] derive an efficient certified inference algorithm under label flipping attacks for classifiers trained using linear regression and label flipping noise. Drews et al. [2020] train certifiably robust decision trees with abstract interpretation. Jia et al. [2022] derive efficient certified guarantees for nearest neighbor classifiers under label flipping attacks. Sabanayagam et al. [2025] and Gosch et al. [2026] certify graph neural networks and SVMs against data poisoning, backdoor, and label flipping attacks using the neural tangent kernel and linear programming. Sosnin et al. [2025] extend abstract interpretation to gradient-based training to certify gradient-based learners.
Differential privacy for robustness Another line of work obtains robustness from differentially private (DP) learners. Ma et al. [2019] certify global accuracy using the stability of expectation under a differentially private algorithm, and Xie et al. [2023] study a similar property in federated learning. Liu et al. [2023] extend the results of Ma et al. [2019] to instance-wise poisoning by improving the group privacy analysis of the subsampled Gaussian mechanism. Saxena et al. [2026] connect the standard hypothesis testing framework for certification to the theory of DP privacy profiles, enabling efficient analysis of composed mechanisms such as DP-SGD.
Voting-based poisoning defenses The most popular strategy for provable robustness to poisoning is to train an ensemble of learners over different partitions or randomized samples and to use robustness properties of the majority vote. One line of work considers deterministic partitioning strategies [Levine & Feizi, 2021, Wang et al., 2022, Rezaei et al., 2023, Hammoudeh & Lowd, 2024]. Another line of work considers Randomized Smoothing by training ensembles on randomized samples of training data [Weber et al., 2023, Jia et al., 2021, Chen et al., 2022, Zhang et al., 2022].
3 Problem statement and preliminaries
3.1 Learning setup
We consider classification tasks with input space and label space , and write for the labeled input space and for the space of training sets. We absorb training and inference into a single procedure: define the joint input space and suppose for some ambient space . A base predictor maps a joint input to a distribution over labels. Concretely, composes a learning algorithm with evaluation at a test point, . The induced hard predictor
We introduce because the randomization we introduce later means the base learner must process datasets from a slightly different space than W.
is , with a fixed tie-breaking rule. can be randomized, in which case denotes the expectation over 's internal randomness (and thus is a deterministic function of ).
3.2 Threat model
We consider a replacement adversary who jointly corrupts the training set and test sample. For joint input with , denote the corrupted input by , where . In particular, the adversary may corrupt training features , training labels , and the test sample , but may not insert or delete training examples.
We model corruption constraints along four axes. The first axis constrains the number of corrupted examples in the training set. The remaining axes constrain per-example feature or label corruptions in terms of a feature-space distance function or a label space distance function . The adversary's capability is thus parameterized by the pair together with a threat vector . Define . The threat vector fixes the constraints (1) , (2) , (3) , (4) . These constraints determine the perturbation set .
Decoupling the budget into four independent axes allows us to recover the threat models of several prior works as special cases [Rosenfeld et al., 2020, Jia et al., 2021, Zhang et al., 2022], as well as to generalize to several previously unconsidered threat models (e.g., with for ). Usually we will take discrete and for some .
3.3 Certified robustness
We seek to provably defend against attacks within our threat model under the following definition.
Definition 3.1 ( -Robustness). Let be a deterministic hard predictor. We say that is -robust at if for all .
Existing certified poisoning defenses typically report robustness as a scalar radius specifying the tolerable corruption magnitude along a single axis (e.g., or ) [Rosenfeld et al., 2020, Levine & Feizi, 2021, Zhang et al., 2022]. Instead, we are interested in characterizing the full certified region directly. For fixed g, define the robustness region . Defining the robustness region encodes the idea that varying one threat parameter (e.g., ) can affect robustness against other parameters (e.g., ), and we study the entire object holistically.
4 Methodology
Our goal is to develop a general defense for training classifiers that handles the threat models from Section 3 and admits an efficient certification procedure proving robustness.
4.1 Robust learning procedure
Robust training via randomized smoothing We design a certifiably robust training procedure following the methods of Randomized Smoothing [Lecuyer et al., 2019, Li et al., 2019, Cohen et al., 2019], initially introduced for certified robustness against evasion attacks. The main idea behind randomized smoothing is to transform a pre-existing base learner (in our case, the joint training-inference procedure G) into a provably robust smoothed classifier . The smoothed classifier is obtained by applying a randomized smoothing mechanism to the inputs and lifting the base classifier G to a classifier on the space of distributions over the joint input space according to the aggregation rule: . is a deterministic soft classifier whose associated hard classifier is .
Randomized mechanism The smoothing mechanism M should be chosen in a way to “wipe away” any influence the corruptions might have on the prediction. We design a multi-step randomization procedure that consists of a data subsampling phase followed by a feature and label noising phase. The resulting probability measure takes the form of a mixture distribution whose components correspond to the samples retained during the subsampling phase.
Each component of the mixture follows structurally identical randomization behavior, but is instantiated with different parameters.
For a training set and sample-index sequence , define . Let be a subsampling distribution over retained sample indices , a feature noise mechanism (e.g., ), and a label noise mechanism (e.g., ). Our smoothing mechanism is generated by the following procedure. (1) Draw retained indices . (2) Apply per-example noise to features and labels: For each , independently sample and . Construct . (3) Sample . (4) Output .
We make a few observations on the distributions resulting from the smoothing mechanism . By construction, sampling from is efficient. can be written as a mixture distribution whose components are product measures parameterized by a subsample of . has components, which is generally quite large (e.g., for bagging with replacement). This makes evaluating the density (or mass) at a point a priori intractable. For a large number of norm-based smoothing mechanisms (e.g., Gaussian), the product measure induced by reduces to a well-understood measure over the full dataset space identified with (e.g., ).
Concrete instantiations We motivate our smoothing scheme with a few concrete instantiations. Natural choices of are bagging (with or without replacement) or Poisson subsampling. Natural choices for include Gaussian, Laplace, Uniform, or discrete noise, but we can also accommodate more exotic noises such as the norm-based noises of Yang et al. [2020]. Most often will be a flipping distribution for some alphabet size , but we can also accommodate structured noises for a Markovian transition matrix .
The smoothing mechanisms of several prior works can be recovered for suitable choices of , , . RAB [Weber et al., 2023] takes as a point mass on the original dataset (no subsampling) and sets . Jia et al. [2021] take as bagging with replacement with no feature or label noise. BagFlip [Zhang et al., 2022] considers bagging with replacement and coupled feature-label noise and , where notably the feature and label alphabets are the same size and use the same flipping probability.
4.2 Certifying predictions: overview
Core challenges The main technical challenge we face is how to certify robustness for such a large class of general smoothing methods against the adversaries defined in Section 3.2. Prior works applying randomized smoothing to data poisoning or backdoor attacks [Weber et al., 2023, Jia et al., 2021, Zhang et al., 2022] apply techniques introduced by Cohen et al. [2019], who frame certification as a hypothesis testing problem and construct Neyman–Pearson tests to derive tight certificates. Unfortunately, this path is only accessible for simple smoothing schemes and threat models, and does not scale to our setting: the likelihood ratio structure of M is complicated due to its combinatorial mixture structure and is typically only directly tractable for simple distributions such as the discrete noises of Zhang et al. [2022]. Furthermore, changing the mechanisms , , or the threat model , , a priori requires a laborious new derivation of the certification condition by hand.
What we desire instead is a generic way to automatically construct the certification conditions given the threat model and the smoothing mechanism . All relevant information can be derived for each component independently, and different combinations can be composed automatically with basic computational rules. It turns out that such a procedure is possible if we turn to a certain dual formulation of Randomized Smoothing, first considered by Dvijotham et al. [2020] for the evasion setting in the language of f-divergences. We start by introducing some preliminaries.
4.3 Certification via convex optimization
Define a specification as a bounded measurable , and call it robustly certified at w.r.t. if for every (Definition A.1). For convex with (a generator), the induced -divergence is (Definition B.1). Given generators with bounds , define (Definition A.2).
We use the following result of Dvijotham et al. [2020], stated in full in Theorem A.2. Let denote lower and upper bounds on the majority and runner-up predicted probabilities from , respectively, and write
We couple train and test noise mechanisms for simplicity; decoupling them is conceptually straightforward.
. Then, every specification consistent with is robustly certified w.r.t. iff the solution to the following problem is non-negative:
Robustness certification in the sense of Definition A.1 is related to our own robustness notion (Definition 3.1). Writing and taking specifications , for all iff every with is robustly certified at w.r.t. . We state and prove the formal statement in Theorem D.1.
In working with Equation (1), it suffices to choose any for every , with the tightest choice being
One can use any f-divergence for which an upper bound on Equation (2) is available. The most interesting cases are the hockey-stick divergences, due to their characterization of tight certificates (Theorem A.3), and the Rényi divergences, due to their nice tensorization properties (Lemma B.6).
4.4 Computing divergence bounds
Under Theorems A.2 and D.1, the problem of certifying robustness for at reduces to establishing a bound for suitable . The technical challenge is grappling with the complex structure of : subsampling through induces a mixture with combinatorially many components, and noising through makes each component a product measure. Our analysis proceeds in two steps: first, we reduce the combinatorial structure of the mixture distribution to a lower-dimensional problem, and second, we analyze divergences between paired product components.
Bounding divergences for mixtures The first key observation for bounding divergences is that the components of any and share mixing weights when paired by subsample, which interact nicely with . Moreover, despite a combinatorial number of components, the components can often be grouped together, which gives us the following bound:
Theorem 4.1 (Reorganized Joint Convexity Bound). Let and be mixtures with shared mixing weights . Suppose there is a partition of indices and a sequence of nonnegative real numbers such that for all and all , . Then one has for , where .
We prove Theorem 4.1 in Appendix D, along with an analogue for Rényi divergences (Corollary D.1). Theorem 4.1 does not depend on the specific geometry of the feature or label noise and only uses pairing of components and joint convexity of . The grouping of components is important computationally, as it reduces the sum to a tractable number of terms. For our noises, the component bound depends on only through the number of corrupted indices. Grouping by leaves only a few terms, e.g., for bagging and for bagging without replacement. This trick can be viewed as an extension to -divergences of earlier techniques that partition the output space into regions of constant likelihood ratio [Lee et al., 2019, Bojchevski et al., 2020, Zhang et al., 2022].
4.5 Bounding component divergences
It remains to find the bounds . Consider a fixed corruption of , and apply Theorem 4.1. Writing for an un-noised subsampled input, we obtain the component pairs with determined by . A small complication is that the are coupled through , so we relax the problem slightly and take over all corruptions of that are feasible given group (for example, a component might correspond to with corrupted examples). This is tight when some attains every component supremum simultaneously.
Adjacency parameters The supremum is natively over a high-dimensional space. However, for sufficiently symmetrical noises, the divergence between depends only on a low-dimensional adjacency parameter , in the sense that every -divergence can be written in the form for some depending on . One way to see this is by the invariance of -divergences under bimeasurable bijections (Lemma B.3). As a concrete example, for Gaussian noise any -divergence depends only on the separation .
Table 1: Divergence bounds derived in Appendix G. Here is the adjacency parameter of Definition G.1 and . Notation , and are defined in Appendix G.
| Noise | Adjacency | ||
|---|---|---|---|
| Unif() | |||
| Lap() | |||
Worst-case pairs A priori, Equation (2) admits a different maximizer for each . In most cases, this is fortunately not the case. Write when for every generator . We show that is entirely determined by the Hockey-stick envelope (Lemma G.1): iff for all . In such cases, a single generates every simultaneously. This property also composes nicely under product measures (Lemma G.2), which is useful for combining feature and label flipping. We show that such a pair exists for Gaussian and Uniform noise under all norms, for flipping noise under , and for Laplace noise under and norms. For For Laplace noise under , the behavior is more complicated, requiring special treatment (Appendix G.4).
Worst-case pairs, when they exist, reduce divergence bound computation to optimizing the adjacency parameter. For Gaussian noise this corresponds to maximizing the perturbation, which is easy. For Uniform noise the problem is nontrivial, and we must resort to a loose relaxation (Appendix G.3).
Composition under products Our framework involves applying independent noise (between features and labels within an example, and independence between examples), which requires us to understand -divergences between product measures. Rényi divergences are attractive here due to their nice tensorization properties (Lemma B.6) and can be computed immediately from components. We show in Lemma G.3 how to compute Hockey-stick divergences in closed form via the formula . This is especially useful for modeling dirty-label adversaries, where the corresponding noise can be written as a product of a label flipping measure and a continuous noise (e.g., ).
Numerical computation Gaussian, flipping, and Uniform noise have hockey-stick profiles computable in closed-form once their worst-case adjacency parameter is known. For Laplace noise the profile involves repeated self-convolution of the log likelihood ratio distribution (which has no nice closed form), so we compute it with numerical integration techniques.
Worked example Consider , , and . Let be bagging with replacement of samples, and let , so that has components. Under an adversary, a component with corrupted samples has adjacency parameter , which is attained at maximal corruption magnitude. Since under , Theorem 4.1 gives , where depends on (e.g., ; see Table 1). If we also model a backdoor trigger, we can replace by to give in the sum. For label-flipping adversaries and randomized labels, we can use Lemma G.3 to compute as a weighted sum of Gaussian hockey-stick values at thresholds (Theorem G.5).
5 Evaluation
We present several applications of our framework to data poisoning and backdoor poisoning attacks. Our experiments focus on image classification on the MNIST [Lecun et al., 1998] and CIFAR10 [Krizhevsky, 2009] datasets, in addition to the class-subsampled variants MNIST-17 and CIFAR10-02 [Zhang et al., 2022, Weber et al., 2023]. We train ensembles of size and for MNIST and CIFAR10, respectively. We use confidence level .
5.1 feature adversaries

(a) adversary, .

(b) adversary, .

(c) adversary, .
Figure 1: Certified accuracies on MNIST for clean-label triggerless attacks under different adversaries. The budget in each case is calibrated to correspond to the same budget, which has the effect that Gaussian noise certifies the same radius across all curves.
Setup We consider a setting in which the attacker corrupts at most training examples, each by at most . The test sample and labels are not corrupted. We instantiate as bagging and compare Gaussian, Laplace, and Uniform feature noise. We also evaluate pure bagging [Jia et al., 2021] and Gaussian noise without subsampling [Weber et al., 2023] as baselines.
No prior method makes effective use of both the and constraints. For example, Jia et al. [2021] only subsample and pessimistically assume that a single retained poison compromises the learner, while Weber et al. [2023] do not subsample data. Zhang et al. [2022] use discrete noise that only works under an constraint, and cannot certify more than bagging in : while constraints can be converted into (looser) constraints for , they cannot convert into nontrivial constraints.
For , we compare with the certificate obtainable from the RAB defense [Weber et al., 2023], which adds Gaussian noise to the entire training set without bagging. RAB's certificate can be used in our threat model by computing the maximum admissible perturbation under our threat model. In particular, an bound can be converted into an bound by taking or , respectively, and with poisoned examples we obtain the full dataset bound .
Findings We make several observations on the clean-label poisoning robustness reported in Figure 1. First, pure bagging always attains a higher non-robust certified accuracy, which makes sense since adding noise to data should only reduce classifier accuracy. Second, uniform noise is competitive only for and for moderate poisoning amounts (< 1.2%). This finding corroborates Yang et al. [2020], who find in the evasion setting that Gaussian noise yields the largest certified accuracies for and , whereas Uniform noise works best for . Laplace noise is only competitive for adversaries at high poisoning rates, where it marginally beats Gaussian noise for .
We show the dependence on for MNIST, MNIST-17, CIFAR10, and CIFAR10-02 in Figure 2 when training under Gaussian noise. In this case, the advantage of constraining deteriorates quickly: on MNIST, the certified radius is substantially larger for , but by the certificate nearly matches that at (corresponding to the bagging certificate of Jia et al. [2021]).
5.2 Label flipping and backdoor adversaries
Setup We study the impact of different threat models on certifiable robustness. We consider two main attacker settings: joint feature-label attacks and joint train-test (backdoor) attacks. In both settings, the adversary can corrupt at most training examples and, for each corrupted sample, modify features up to distance in . In feature-label attacks, the adversary can additionally corrupt the label. In backdoor attacks, the adversary also corrupts the test sample with test budget .
Findings We report the robustness tradeoffs for different datasets. The label-flipping adversary is reported in Table 2, and the backdoor adversary is reported in Table 3.
Our method significantly outperforms RAB under backdoor adversaries. On MNIST-17, while RAB reaches trivial certified accuracy after , our method retains over certified accuracy at . The improvement is due to bagging: with high probability, we retain only a small number of poisoned samples, whereas RAB retains all poisoned samples. For RAB to certify comparable poisoned radii, it would need to train with , which would destroy predictive performance, whereas for our method still yields large certificates.
Table 2: Robustness tradeoff for joint feature & label adversaries at poisoned fractions , with and budget (MNIST, MNIST-17) or 0.5 (CIFAR10, CIFAR10-02). Bag sizes and noise scales are fixed per dataset (Table 7). Label noise retains the true label with .
| R (%) | MNIST | MNIST-17 | CIFAR10 | CIFAR10-02 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0.5 | 1 | 1.5 | 0 | 1 | 2.5 | 3.5 | 0 | 0.05 | 0.1 | 0.15 | 0 | 0.8 | 1.6 | 2.4 | |
| Bagging | 82.3 | 56.8 | 31.9 | 12.0 | 99.1 | 98.0 | 0.0 | 0.0 | 32.5 | 14.7 | 5.3 | 1.1 | 78.3 | 64.4 | 40.2 | 2.4 |
| Ours, | 81.2 | 50.0 | 23.5 | 5.1 | 98.7 | 96.6 | 48.6 | 0.0 | 22.3 | 9.8 | 3.3 | 0.6 | 66.9 | 48.5 | 26.6 | 0.6 |
| Ours, | 78.7 | 44.8 | 17.9 | 3.7 | 98.8 | 93.0 | 35.3 | 5.3 | 16.7 | 6.4 | 1.7 | 0.1 | 64.2 | 45.4 | 27.5 | 3.4 |
Table 3: Robustness tradeoff for clean label backdoor adversaries on MNIST, MNIST-17, CIFAR10, and CIFAR10-02 at different poisoned fractions . The constraint is on MNIST and MNIST-17 and on CIFAR10 and CIFAR10-02. are as in Table 7. RAB trains on the full training set.
| R (%) | MNIST | MNIST-17 | CIFAR10 | CIFAR10-02 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0.1 | 0.5 | 1 | 0 | 0.5 | 1 | 2 | 0 | 0.02 | 0.06 | 0.1 | 0 | 0.2 | 0.4 | 0.6 | |
| RAB, | 74.1 | 0.0 | 0.0 | 0.0 | 95.9 | 0.0 | 0.0 | 0.0 | 18.4 | 0.0 | 0.0 | 0.0 | 63.5 | 0.0 | 0.0 | 0.0 |
| RAB, | 66.5 | 0.0 | 0.0 | 0.0 | 94.7 | 0.0 | 0.0 | 0.0 | 19.3 | 0.0 | 0.0 | 0.0 | 67.5 | 0.0 | 0.0 | 0.0 |
| Ours, | 48.6 | 42.2 | 20.5 | 5.0 | 92.9 | 88.0 | 76.6 | 41.8 | 6.8 | 5.6 | 3.8 | 2.5 | 40.9 | 34.4 | 27.5 | 20.2 |
| Ours, | 41.9 | 36.6 | 17.8 | 6.2 | 91.3 | 86.1 | 76.1 | 45.4 | 8.7 | 7.9 | 6.5 | 5.3 | 54.0 | 51.4 | 48.7 | 45.8 |

(a) MNIST
(b) MNIST-17
(c) CIFAR10
(d) CIFAR10-02
Figure 2: Certified accuracy versus poisoning fraction at each per-example budget , under an adversary with Gaussian feature noise. for MNIST and for CIFAR10.
When is more noise useful? Aggressive noise erases corruptions, which corresponds to larger certified radii via smaller divergence bounds, but also degrades the base learner, lowering the vote confidence. In general, two training-data noising strategies exist: either we use aggressive plain bagging (hoping to throw away bad examples), or we try to recover performance from retained bad examples by adding additional noise to them. It is therefore important to understand how different noises affect the resulting certificates.
As a simple example, consider corruptions with Gaussian noise. To keep the component divergences small, the noise level must grow with the adversary budget . If becomes large, the input becomes impossible to classify, and the base learner accuracy will drop dramatically. In this regime, it is preferable to use no feature noising at all and rely on pure bagging to provide certificates.
Label noising is especially delicate (Table 2): we only observe improvements over the plain bagging method for binary classification datasets MNIST-17 and CIFAR10-02. This is intuitive: whereas features can be noised individually while still preserving high information content taken over the full input, the label serves as the only supervision signal for the learning task, so noising it is especially destructive. Still, label flipping can be effective for sufficiently easy tasks: on MNIST-17, we observe certified radius out to 3.5% of the training dataset achieved by aggressive feature and label noising compared with the plain bagging baseline.
5.3 Comparison with prior works
Our method recovers the exact certificates of Zhang et al. [2022] under all threat models and smoothing strategies they consider (Appendix E.3, Figure 3), and those of Jia et al. [2021] for replacement adversaries (Appendix E.2).
Another useful finding is that, by writing down the hockey stick divergences in closed-form, we are able to implement certification for a fixed bound in a much more efficient compared with BagFlip's preprocessing cost when . Notably, we depend on only through . Our formulation is also amenable to parallelized precomputation across all desired , whereas the linear recurrence of Zhang et al. [2022] is not.
Because BagFlip couples the feature space to the label space, it can only certify dirty-label attacks when and when labels are flipped with the same distribution as features. This in particular means it cannot certify dirty-label attacks in the multi-class setting if the features are binary. Our framework, in contrast, handles both of these cases directly. We are able to compute certificates in a setting where the label noise differs from the feature flipping noise, or where the number of distinct feature values differs from the number of classes.

Figure 3: Tightness of our certificate with BagFlip's.
6 Conclusion
We provide a randomized smoothing framework for certified robustness against backdoor and data poisoning attacks. Our framework decomposes the threat model into independent axes bounding corruption magnitudes, and applies composite noise comprising data subsampling, feature noising, and label flipping. We reduce certification in this regime to a convex program over f-divergence constraints and show how to compute the corresponding constraint sets. Our constraint computation leverages reorganized joint convexity to efficiently handle the mixture structure induced by subsampling and uses general, composable principles to accommodate a wide range of smoothing measures. We demonstrate this generality by certifying, for the first time, , , and adversaries on models trained with Gaussian, Laplace, Uniform, and discrete noise.
Limitations and open questions Our method trains thousands of base learners for sound prediction estimation. We mitigate this cost with an efficient parallelized training implementation, but future methods might seek efficient closed-form solutions such as those considered in prior work [Rosenfeld et al., 2020, Weber et al., 2023]. Our method does not exploit properties specific to the dataset or base learner. Future work should consider whether using such information can yield stronger certificates. An interesting remaining challenge is to precisely characterize the structural properties of optimal noising schemes for complex backdoor poisoning threat models. For example, we do not understand the tradeoff between subsampling and data noising very well. Finally, learner-based robustness properties (such as data-smoothness) might be leveraged to obtain even tighter certificates.
Acknowledgments
This work was supported by NSF awards CNS-2312875 and CNS-2331081, the U.S. Army Combat Capabilities Development Command Army Research Laboratory (DEVCOM ARL) under Cooperative Agreement Number W911NF-24-2-0115, and by a grant from Good Ventures Foundation.
References
Hojjat Aghakhani, Dongyu Meng, Yu-Xiang Wang, Christopher Kruegel, and Giovanni Vigna. Bullseye polytope: A scalable clean-label poisoning attack with improved transferability. In 2021 IEEE European Symposium on Security and Privacy (EuroS&P), pp. 159–178, 2021. doi: 10.1109/EuroSP51992.2021.00021.
Anish Athalye, Nicholas Carlini, and David Wagner. Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples. In Jennifer Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 274–283. PMLR, July 2018. URL https://proceedings.mlr.press/v80/athalye18a.html.
Borja Balle and Yu-Xiang Wang. Improving the Gaussian mechanism for differential privacy: Analytical calibration and optimal denoising. In Jennifer Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 394–403. PMLR, July 2018. URL https://proceedings.mlr.press/v80/balle18a.html.
Aleksandar Bojchevski, Johannes Gasteiger, and Stephan Günnemann. Efficient robustness certificates for discrete data: Sparsity-aware randomized smoothing for graphs, images and more. In Hal Daumé III and Aarti Singh (eds.), Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pp. 1003–1013. PMLR, July 2020. URL https://proceedings.mlr.press/v119/bojchevski20a.html.
Ruoxin Chen, Zenan Li, Jie Li, Junchi Yan, and Chentao Wu. On collective robustness of bagging against data poisoning. In Kamalika Chaudhuri, Stefanie Jegelka, Le Song, Csaba Szepesvari, Gang Niu, and Sivan Sabato (eds.), Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pp. 3299–3319. PMLR, July 2022. URL https://proceedings.mlr.press/v162/chen22k.html.
C. J. Clopper and Egon S. Pearson. The use of confidence or fiducial limits illustrated in the case of the binomial. Biometrika, 26(4):404–413, December 1934. ISSN 0006-3444. doi: 10.1093/biomet/26.4.404. URL https://doi.org/10.1093/biomet/26.4.404.
Jeremy Cohen, Elan Rosenfeld, and Zico Kolter. Certified adversarial robustness via randomized smoothing. In Kamalika Chaudhuri and Ruslan Salakhutdinov (eds.), Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 1310–1320. PMLR, June 2019. URL https://proceedings.mlr.press/v97/cohen19c.html.
Imre Csiszár and Paul C. Shields. Information theory and statistics: A tutorial. Foundations and Trends in Communications and Information Theory, 1(4):417–528, November 2004. ISSN 1567-2190. doi: 10.1561/0100000004. URL https://doi.org/10.1561/0100000004.
Samuel Drews, Aws Albarghouthi, and Loris D'Antoni. Proving data-poisoning robustness in decision trees. In Proceedings of the 41st ACM SIGPLAN Conference on Programming Language Design and Implementation, PLDI 2020, pp. 1083–1097, New York, NY, USA, 2020. Association for Computing Machinery. ISBN 9781450376136. doi: 10.1145/3385412.3385975. URL https://doi.org/10.1145/3385412.3385975.
Krishnamurthy (Dj) Dvijotham, Jamie Hayes, Borja Balle, Zico Kolter, Chongli Qin, Andras Gyorgy, Kai Xiao, Sven Gowal, and Pushmeet Kohli. A framework for robustness certification of smoothed classifiers using f-divergences. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=SJlKrkSFPH.
Jonas Geiping, Liam H Fowl, W. Ronny Huang, Wojciech Czaja, Gavin Taylor, Michael Moeller, and Tom Goldstein. Witches' brew: Industrial scale data poisoning via gradient matching. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=01olnfLIbD.
Lukas Gosch, Xichuan Chen, Yan Scholten, and Stephan Günnemann. Certifying graph neural networks against label and structure poisoning. In Forty-third International Conference on Machine Learning, 2026. URL https://openreview.net/forum?id=kQuv05gaNr.
Tianyu Gu, Kang Liu, Brendan Dolan-Gavitt, and Siddharth Garg. Badnets: Evaluating backdooring attacks on deep neural networks. IEEE Access, 7:47230–47244, 2019. doi: 10.1109/ACCESS.2019.2909068.
Zayd Hammoudeh and Daniel Lowd. Provable robustness against a union of adversarial attacks. Proceedings of the AAAI Conference on Artificial Intelligence, 38(19):21134–21142, March 2024. doi: 10.1609/aaai.v38i19.30106. URL https://ojs.aaai.org/index.php/AAAI/article/view/30106.
Jinyuan Jia, Xiaoyu Cao, and Neil Zhenqiang Gong. Intrinsic certified robustness of bagging against data poisoning attacks. Proceedings of the AAAI Conference on Artificial Intelligence, 35(9):7961–7969, May 2021. doi: 10.1609/aaai.v35i9.16971. URL https://ojs.aaai.org/index.php/AAAI/article/view/16971.
Jinyuan Jia, Yupei Liu, Xiaoyu Cao, and Neil Zhenqiang Gong. Certified robustness of nearest neighbors against data poisoning and backdoor attacks. Proceedings of the AAAI Conference on Artificial Intelligence, 36(9):9575–9583, June 2022. ISSN 2159-5399. doi: 10.1609/aaai.v36i9.21191. URL http://dx.doi.org/10.1609/aaai.v36i9.21191.
Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009.
Y. Lecun, L. Bottou, Y. Bengio, and P. Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. doi: 10.1109/5.726791.
Mathias Lecuyer, Vaggelis Atlidakis, Roxana Geambasu, Daniel Hsu, and Suman Jana. Certified robustness to adversarial examples with differential privacy. In 2019 IEEE Symposium on Security and Privacy (SP), pp. 656–672, 2019. doi: 10.1109/SP.2019.00044.
Guang-He Lee, Yang Yuan, Shiyu Chang, and Tommi Jaakkola. Tight certificates of adversarial robustness for randomly smoothed classifiers. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. URL https://proceedings.neurips.cc/paper_files/paper/2019/file/fa2e8c4385712f9a1d24c363a2cbe5b8-Paper.pdf.
Alexander Levine and Soheil Feizi. Deep partition aggregation: Provable defenses against general poisoning attacks. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=YUGG2tFuPM.
Bai Li, Changyou Chen, Wenlin Wang, and Lawrence Carin. Certified adversarial robustness with additive noise. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. URL https://proceedings.neurips.cc/paper_files/paper/2019/file/335cd1b90bfa4ee70b39d08a4ae0cf2d-Paper.pdf.
Friedrich Liese and Igor Vajda. On divergences and informations in statistics and information theory. IEEE Transactions on Information Theory, 52(10):4394–4412, 2006. doi: 10.1109/TIT.2006.881731.
Shijie Liu, Andrew C. Cullen, Paul Montague, Sarah M. Erfani, and Benjamin I. P. Rubinstein. Enhancing the antidote: Improved pointwise certifications against poisoning attacks. Proceedings of the AAAI Conference on Artificial Intelligence, 37(7):8861–8869, June 2023. doi: 10.1609/aaai.v37i7.26065. URL https://ojs.aaai.org/index.php/AAAI/article/view/26065.
Yuzhe Ma, Xiaojin Zhu, and Justin Hsu. Data poisoning against differentially-private learners: Attacks and defenses. In Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence, IJCAI-19, pp. 4732–4738. International Joint Conferences on Artificial Intelligence Organization, July 2019. doi: 10.24963/ijcai.2019/657. URL https://doi.org/10.24963/ijcai.2019/657.
Ilya Mironov. Rényi differential privacy. In 2017 IEEE 30th Computer Security Foundations Symposium (CSF), pp. 263–275, 2017. doi: 10.1109/CSF.2017.11.
Jerzy Neyman and Egon Sharpe Pearson. On the problem of the most efficient tests of statistical hypotheses. Philosophical Transactions of the Royal Society of London, Series A: Containing Papers of a Mathematical or Physical Character, 231(694-706):289–337, February 1933. ISSN 0264-3952. doi: 10.1098/rsta.1933.0009. URL https://doi.org/10.1098/rsta.1933.0009.
Yury Polyanskiy and Yihong Wu. Information Theory: From Coding to Learning. Cambridge University Press, 2025.
Keivan Rezaei, Kiarash Banihashem, Atoosa Chegini, and Soheil Feizi. Run-off election: Improved provable defense against data poisoning attacks. In Andreas Krause, Emma Brunskill, Kyunghyun Cho, Barbara Engelhardt, Sivan Sabato, and Jonathan Scarlett (eds.), Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pp. 29030–29050. PMLR, July 2023. URL https://proceedings.mlr.press/v202/rezaei23a.html.
Elan Rosenfeld, Ezra Winston, Pradeep Ravikumar, and Zico Kolter. Certified robustness to label-flipping attacks via randomized smoothing. In Hal Daumé III and Aarti Singh (eds.), Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pp. 8230–8241. PMLR, July 2020. URL https://proceedings.mlr.press/v119/rosenfeld20b.html.
Mahalakshmi Sabanayagam, Lukas Gosch, Stephan Günnemann, and Debarghya Ghoshdastidar. Exact certification of (graph) neural networks against label poisoning. In Y. Yue, A. Garg, N. Peng, F. Sha, and R. Yu (eds.), International Conference on Learning Representations, volume 2025, pp. 25663–25691, 2025. URL https://proceedings.iclr.cc/paper_files/paper/2025/file/401aa72e0e3be680348a5b0ffdb1a5aa-Paper-Conference.pdf.
Aniruddha Saha, Akshayvarun Subramanya, and Hamed Pirsiavash. Hidden trigger backdoor attacks. Proceedings of the AAAI Conference on Artificial Intelligence, 34(07):11957–11965, April 2020. ISSN 2159-5399. doi:10.1609/aaai.v34i07.6871. URL http://dx.doi.org/10.1609/aaai.v34i07.6871.
Hadi Salman, Jerry Li, Ilya Razenshteyn, Pengchuan Zhang, Huan Zhang, Sebastien Bubeck, and Greg Yang. Provably robust deep learning via adversarially trained smoothed classifiers. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. URL https://proceedings.neurips.cc/paper_files/paper/2019/file/3a24b25a7b092a252166a1641ae953e7-Paper.pdf.
Aman Saxena, Jan Schuchardt, Yan Scholten, and Stephan Günnemann. Provable robustness against backdoor attacks via the primal-dual perspective on differential privacy, May 2026. URL https://arxiv.org/abs/2605.21780.
Ali Shafahi, W. Ronny Huang, Mahyar Najibi, Octavian Suciu, Christoph Studer, Tudor Dumitras, and Tom Goldstein. Poison frogs! targeted clean-label poisoning attacks on neural networks. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 31. Curran Associates, Inc., 2018. URL https://proceedings.neurips.cc/paper_files/paper/2018/file/22722a343513ed45f14905eb07621686-Paper.pdf.
Philip Sosnin, Mark Niklas Mueller, Maximilian Baader, Calvin Tsay, and Matthew Robert Wicker. Certified robustness to data poisoning in gradient-based training. Transactions on Machine Learning Research, 2025. ISSN 2835-8856. URL https://openreview.net/forum?id=9WHifn9ZVX.
Hossein Souri, Liam Fowl, Rama Chellappa, Micah Goldblum, and Tom Goldstein. Sleeper agent: Scalable hidden trigger backdoors for neural networks trained from scratch. In S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh (eds.), Advances in Neural Information Processing Systems, volume 35, pp. 19165–19178. Curran
Associates, Inc., 2022. doi: 10.52202/068431-1393. URL https://proceedings.neurips.cc/paper_files/paper/2022/file/79eec295a3cd5785e18c61383e7c996b-Paper-Conference.pdf.
Jacob Steinhardt, Pang Wei Koh, and Percy S Liang. Certified defenses for data poisoning attacks. In I. Guyon, U. Von Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc., 2017. URL https://proceedings.neurips.cc/paper_files/paper/2017/file/9d7311ba459f9e45ed746755a32dcd11-Paper.pdf.
Wenxiao Wang, Alexander J Levine, and Soheil Feizi. Improved certified defenses against data poisoning with (deterministic) finite aggregation. In Kamalika Chaudhuri, Stefanie Jegelka, Le Song, Csaba Szepesvari, Gang Niu, and Sivan Sabato (eds.), Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pp. 22769–22783. PMLR, July 2022. URL https://proceeding.s.mlr.press/v162/wang22m.html.
Stanley L. Warner. Randomized response: A survey technique for eliminating evasive answer bias. Journal of the American Statistical Association, 60(309):63–69, 1965. doi: 10.1080/01621459.1965.10480775. URL https://www.tandfonline.com/doi/abs/10.1080/01621459.1965.10480775. PMID: 12261830.
Maurice Weber, Xiaojun Xu, Bojan Karlaš, Ce Zhang, and Bo Li. RAB: Provable robustness against backdoor attacks. In 2023 IEEE Symposium on Security and Privacy (SP), pp. 1311–1328, 2023. doi: 10.1109/SP46215.2023.10179451.
Chulin Xie, Yunhui Long, Pin-Yu Chen, Qinbin Li, Sanmi Koyejo, and Bo Li. Unraveling the connections between privacy and certified robustness in federated learning against poisoning attacks. In Proceedings of the 2023 ACM SIGSAC Conference on Computer and Communications Security, CCS '23, pp. 1511–1525, New York, NY, USA, 2023. Association for Computing Machinery. ISBN 9798400700507. doi: 10.1145/3576915.3623193. URL https://doi.org/10.1145/3576915.3623193.
Greg Yang, Tony Duan, J. Edward Hu, Hadi Salman, Ilya Razenshteyn, and Jerry Li. Randomized smoothing of all shapes and sizes. In Hal Daumé III and Aarti Singh (eds.), Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pp. 10693–10705. PMLR, July 2020. URL https://proceedings.mlr.press/v119/yang20c.html.
Yuhao Zhang, Aws Albarghouthi, and Loris D' Antoni. BagFlip: A certified defense against data poisoning. In S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh (eds.), Advances in Neural Information Processing Systems, volume 35, pp. 31474–31483. Curran Associates, Inc., 2022. URL https://proceedings.neurips.cc/paper_files/paper/2022/file/cc19e4ffde5540ac3fcda240e6d975cb-Paper-Conference.pdf.
Yuqing Zhu, Jinshuo Dong, and Yu-Xiang Wang. Optimal accounting of differential privacy via characteristic function. In Gustau Camps-Valls, Francisco J. R. Ruiz, and Isabel Valera (eds.), Proceedings of The 25th International Conference on Artificial Intelligence and Statistics, volume 151 of Proceedings of Machine Learning Research, pp. 4782–4817. PMLR, March 2022. URL https://proceedings.mlr.press/v151/zhu22c.html.
A Extended Background on Randomized Smoothing
A.1 Tightness of Randomized Smoothing
Historically, several analytical approaches have been applied to derive sound robustness guarantees under randomized smoothing procedures. Originally, the differential privacy guarantees of mechanisms like adding Gaussian noise were used to derive sound but slack bounds on the certified radius [Lecuyer et al., 2019]. Other, tighter, but still slack bounds were derived by analyzing connection between Renyi divergence and certified robustness Li et al. [2019]. Cohen et al. [2019] were the first to derive provably optimal robustness certificates by analyzing the connection between robustness certification and hypothesis testing. Salman et al. [2019] derived the same tight certificate as a consequence of a nonlinear Lipschitz continuity property of Weierstrass transforms.
Dvijotham et al. [2020] extend the results of Li et al. [2019] to formulate general robustness certification as a convex optimization problem. This optimization problem involves bounding various statistical divergences between noised versions of the clean and corrupted algorithm inputs. The general formulation not tight under most choices of divergence. However, Dvijotham et al. [2020] demonstrate a connection with hockey-stick divergences which can recover optimal certificates in the general case. Moreover, hockey-stick divergences are connected to differential privacy (specifically, -approximate differential privacy), thereby connecting privacy, convex optimization and hypothesis testing together as tools for randomized smoothing certification.
A.2 f-Divergences
In this section we present the certified robustness framework of Dvijotham et al. [2020], based on convex programming. Dvijotham et al. [2020] present three main results important for our work. The first result, Theorem A.1, characterizes robustness of a specification under f-divergence constraints in terms of a convex program. The second result, Theorem A.2, characterizes the robustness over a broader space of specifications, aligning with the more typical certified robustness setting. The third results, Theorem A.3, demonstrates that under the setting of Theorem A.2, the Hockey-stick divergences of all orders are sufficient to recover tight certificates in the original primal certification problem.
Definition A.1 (Specification; robust certification). A specification is a bounded measurable function . We say is robustly certified at with respect to if for all .
Definition A.2 (f-divergence constraint set). For convex with , the -divergence from to is . Given a collection of functions each defining an -divergence, and to each an associated bound , define the -constraint set as
Theorem A.1 (Dvijotham et al. [2020]). Let be as in Definition A.2. For , define and denote its convex conjugate by . A specification is robustly certified at with respect to (in the sense of Definition A.1) if and only if the optimal value of the convex program
is non-negative.
Theorem A.2 (Dvijotham et al. [2020]). Let be as in Definition A.2, and let satisfy . Define the specification class
Every is robustly certified at with respect to if and only if the optimal value of the convex program
is non-negative, where and are interpreted as probability distributions.
Theorem A.3 (Dvijotham et al. [2020]). Let be as in Definition A.1. Define for all and let be defined as
Define the constraint set
Then, is information-limited robustly certified at with respect to if and only if is information-limited robustly certified at with respect to . Thus, the optimal information-limited certificate in this case can be obtained by applying the information-limited certificate of Theorem A.2 to .
In our setting and , so the quantity in Theorem A.3 is the hockey-stick profile
B Background on -divergences
In this section we formally define -divergences and state some useful facts for computing with them. We state here only the most essential results for understanding our derivations; a more complete treatment can be found in, e.g., Csiszár & Shields [2004], Liese & Vajda [2006] or Polyanskiy & Wu [2025, ch. 7]. Additionally, we state and prove a few additional useful lemmata.
Definition B.1 (f-divergence). Let be convex with , and take by convention
Let be two probability measures on a measurable space . If then the -divergence from to is defined as
where is a Radon–Nikodym derivative. More generally, let be any common dominating measure. Then, writing and , we may define
Equation (11) does not depend on the choice of common dominating measure , and moreover when gives the same result as Equation (10). We call the function the generator of the -divergence .
Table 4: -divergences and associated generators and integral form, with and .
| -Divergence | Regime | Generator | Integral form |
|---|---|---|---|
| Total variation | |||
| Hockey-stick | |||
| Kullback–Leibler | |||
| Squared Hellinger | |||
| Hellinger | |||
| Pearson | |||
| Neyman |
Unnormalized hockey-stick divergences We write
(12) f-divergences from likelihood ratios If we define the likelihood and log-likelihood ratios
we can rewrite Equation (11) in the form
Rényi divergences and the Hellinger integral The generator is convex for every , and defines the Hellinger divergence of order , . The Hellinger integral of order is
with the convention that if and . The Rényi divergence of order is related via the monotone transformation:
Note is not, strictly speaking, an -divergence, since does not vanish at 1. Writing for the log-likelihood ratio, , which is the moment generating function of under evaluated at . By taking limits, one may also define the Rényi divergences at orders :
In general, it is more convenient to state the associated Rényi divergence rather than the raw Hellinger divergence , due to the nice tensorization and continuity properties of (see Lemma B.6).
Special cases The most useful -divergences are the hockey stick divergences (due to their association with tight certificates via Theorem A.3) and the Rényi divergences (due to their attractive computational properties; see, e.g., Lemma B.6). Moreover, several of the divergences in Table 4 can be expressed in terms of a hockey stick or Rényi divergence of an appropriate order. We have the following relationships: , , .
Practical considerations Practically speaking, the relationships between divergences in Table 4 mean we should utilize the Hockey-stick divergences directly whenever possible, and otherwise simply compute the Rényi divergences of all orders (which is useful when tight Hockey-stick divergences are inaccessible). Other specific divergences, like and , restate information already encoded in the Rényi divergences of the appropriate orders.
Definition B.2 (Perspective function). Let be a generator as in Definition B.1 with the usual conventions for and . The perspective of is the function given by
Lemma B.1 (Properties of perspective functions). is jointly convex and positively homogeneous, i.e., for every . Consequently is subadditive:
Moreover admits the representation
where is the convex conjugate of , and for the supremum is attained exactly at those .
Definition B.3 (Convex Conjugate). For a function , its convex conjugate is defined by .
Lemma B.2 (Basic properties of f-divergences). Let be probability measures and f a generator as in Definition B.1.
(i) (Nonnegativity.) . If is strictly convex at , then if and only if .
(ii) (Reversal.) With the conjugate generator , one has .
(iii) (Cancellation of common parts.)
(iv) (Joint convexity.) Let and suppose and for probability measures . Then .
(v) (Perspective representation.) for common dominating .
(vi) (Variational representation.) With the convex conjugate of f,
Lemma B.3 (Data-processing inequality). Let be a Markov kernel from to , and write for the pushforward . Then for every generator ,
Equality holds whenever is induced by a bimeasurable bijection so that , and more generally whenever is a sufficient statistic for .
Lemma B.4 (Reversal of Hockey-Stick divergences). Fix probability measures on , and . Define the dual parameter , extended to in the usual way. Then one has the following relationship:
In particular, the TV distance is symmetric since it corresponds to the self-dual . Moreover, the Hockey-Stick profile for over is entirely determined by the profile of the reversed pair for .
Lemma B.5 (Integral representation by Hockey-stick divergences). Let be a generator as in Definition B.1, finite on , and let denote the Lebesgue-Stieltjes measure of its right derivative , that is, the unique Borel measure on with for . Then for all ,
Lemma B.6 (Tensorization Properties for -Divergences). For product measures and on the same product space, for every . Furthermore, .
As a result of Lemma B.6, the divergences of Table 4 obtained by manipulating a Rényi-type divergence themselves possess nice tensorization properties. We document these and more tensorization properties in Table 5. In addition, one has upper bounds on product measures for Hockey-stick and TV divergences, although these bounds are not tight in general.
Table 5: Tensorization of -divergences under product measures. Throughout, and are product measures on a common product space.
| Divergence | Tensorization | Notes | |
| Hellinger integral | |||
| Rényi | |||
| Kullback-Leibler | case above | ||
| Squared Hellinger | case above | ||
| Pearson | case above | ||
| Neyman | Lemma B.2(ii) w/ | ||
| Hockey-stick | |||
| Total variation |
B.1 Additional lemmata
In this section we state and prove some additional useful lemmata regarding various -divergences.
Lemma B.7 (f-divergence between measures with shared components). Let be probability measures on , let be any dominating measure, and write and . Define the overlap (up to a -null set). Suppose for every measurable . Then, denoting , one has and moreover for every generator as in Definition B.1,
Proof. Taking gives and hence . Set
so that with . Evaluating the divergence via Lemma B.2(v) gives
To conclude, note , and take for which .
Corollary B.1 (Hockey-stick envelope for measures with common component). In the setting of Lemma B.7, for every ,
where . In particular, whenever , independently of .
Proof. The generator has and , so .
The significance of Lemma B.7 is that for distributions exhibiting “simple” likelihood ratio behavior, the TV distance encodes the entire hockey stick envelope (indeed, any -divergence), and in particular this means via Theorem A.3 that the information-limited certificate is strictly a function of the TV distance between those distributions.
C Detailed Comparison with Prior Work
C.1 Threat model and mechanism comparison
Table 6 expresses the threat model and smoothing mechanism of several prior certified poisoning defenses in our notation and describes whether our framework recovers their certificate.
RAB RAB bounds a single aggregate perturbation applied to the entire training dataset. Strictly speaking, our threat model of Section 3.2 does not capture theirs, since in RAB an adversary may spread their corruption over all training examples. Given our threat model with corrupted examples and budget , an outer RAB approximation may be obtained by taking the aggregate bound . In the case of backdoor attacks we can arrive at a similar bound. This is how we use their bound in Section 5. Under their own threat model, our certification procedure still recovers their certificate if we compute the divergences directly: the noise induces a single Gaussian pair (Definition G.3) at distance with closed form hockey-stick divergence (Theorem G.2). This certificate reduces to the closed form of Cohen et al. [2019].
Bagflip BagFlip's adversary is mostly recoverable under our threat modeling. The only nuance is in their treatment of label-flipping adversaries. First, they require that the finite label space and feature space coincide, . Then, they treat the label as an extra feature and reduce certification to the feature-only case. In particular, a single budget is shared between the features and label. In this case, we can technically recover their threat model by taking on the “merged” feature-label space.
If we start with our label-flipping threat model, , we might ask how the resulting certificate compares to BagFlip's (which would take ). First, observe that is more restrictive in the sense that our adversary must place one of its corruptions on the label, or not at all, whereas BagFlip's adversary could reallocate a label corruption into an extra feature corruption. Despite this, it turns out that the resulting certificates are identical. Since features and labels share the alphabet and the flipping kernel, the divergences depend only on the number of changed coordinates (Theorem G.4), and both worst cases corrupt coordinates.
This simplification fails if or if the feature and label noises differ (for example, to enable stronger noise on features than labels), in which case our framework can still compute tight certificates and is notably more general than Zhang et al. [2022].
Table 6: Threat models and smoothing mechanisms of prior randomized smoothing works expressed in the notation of Sections 3 and 4
| Work | Threat vector | Mechanism (II, , ) | Certificate |
|---|---|---|---|
| Jia et al. [2021] | bagging, none, none | identical (Theorem E.1) | |
| Rosenfeld et al. [2020] | full set, none, flipping | tight | |
| Zhang et al. [2022] | bagging, flipping, flipping | identical (Theorem E.2) | |
| Weber et al. [2023] | aggregate on | full set, Gaussian, none | identical |
We can obtain provably tight certificates, but must estimate the vote probabilities with an ensemble. Rosenfeld et al. [2020] give an efficient, loose closed form for learners trained with linear regression.
Under their threat model, the certificate reduces to the standard Gaussian certificate of Cohen et al. [2019], which is already understood in Dvijotham et al. [2020].
C.2 Comparison with Saxena et al. [2026]
Saxena et al. [2026] develop a randomized smoothing-based backdoor defense from the DP perspective. They view the joint train-inference procedure as a randomized mechanism composed of a stack of two private algorithms.
We note several differences between our works. We do not make any assumptions about properties of the learner, like privacy, instead placing assumptions on, and then noising, the input data. It is these data noising schemes we analyze in this work, using techniques to handle subsampling, noise products, and then the individual noise factors. In contrast, the analysis of Saxena et al. [2026] is placed on understanding the composition of DP mechanisms. Our threat modeling is more expressive in its per-example budgets for replacement adversaries, handling arbitrary constraints and label corruptions, whereas Saxena et al. [2026] focuses primarily on symmetric set distance adversaries (corresponding to the standard adjacency relation notion in DP), with one notable exception being a special case for feature adversaries and Gaussian noise.
One interesting connection between our work and the methods of Saxena et al. [2026] is in the use of the hockey-stick profile, also called the privacy profile in the DP literature, to characterize the robustness condition. Whereas Saxena et al. [2026] use the language and tools of DP, we formulate our results here in the language of f-divergences and convex optimization.
To demonstrate the connection, we derive one of the results of Saxena et al. [2026] in our language. Saxena et al. [2026] consider a “randomized DPA” mechanism (motivated by [Levine & Feizi, 2021]) which works as follows. DPA assigns each training record to one of N buckets by some fixed rule (e.g., index or hashing) and trains one model per bucket. In the randomized view, the mechanism samples one bucket uniformly at random and trains a model on it. In our notation, this means taking to be uniform over N disjoint buckets with no feature or label noise, and the test input to be noised by kernel .
Theorem C.1 (DPA with test-time noise; Theorem D.4 of Saxena et al. [2026]). Let be uniform over pairwise disjoint index buckets . Let noise be applied only to the test sample. Suppose the corruption changes records in at most buckets, and let for all admissible test corruptions. Then, for every ,
Equality holds if exactly r buckets are changed, the test perturbation attains , and the sub-datasets and (for corrupted j) are pairwise distinct.
Proof. Apply Theorem 4.1 with two groups corresponding to corrupted and uncorrupted buckets. For an uncorrupted bucket, the component divergence reduces to divergence between test components (Lemma B.2(iii)). For a corrupted bucket, the component pair is singular and its hockey stick is simply . Combining these terms with the mixing weights and gives the bound. If the equality conditions hold, the component supports are disjoint, and the bound is attained by Corollary E.1.
The advantage of the randomized DPA mechanism is that, because the partition size N is small, and because no feature or label noise is added to training data, the training can be done once for all buckets and re-used for arbitrarily many certifications (inference on a sampled model must still be performed). Another interesting observation is that DPA can be used to obtain bounds for symmetric set difference adversaries who can add or remove training samples. For example, if bucket assignment is performed by hashing the training example (as done in Levine & Feizi [2021]), one has for replaced training examples.
D Deferred proofs
D.1 Equivalence of robustness conditions
Theorem D.1 (Robustness characterization). Fix base learner , smoothing mechanism , input , and threat vector . Write . For each , define the specification by . Then the following are equivalent:
-
for every .
-
For every , the specification is robustly certified at with respect to .
In particular, either condition implies -robustness of at w whenever the certified margins are strict.
Proof. Fix and . By linearity of expectation together with the definition of the smoothed classifier,
(24)
Suppose (1) holds; that is, for every , we have that . Then for every we have , so by Equation (24) . Since every element of is of the form for some , it follows that each is robustly certified at with respect to .
On the other hand, suppose (1) does not hold. Then there exists some and with . Then Equation (24) gives , so that is not robustly certified in the sense of Definition A.1 and condition (2) fails.
Finally, if the certified margins are strict, i.e., for all and all , then is the unique maximizer of , and we recover robustness in the desired sense of Definition 3.1.
D.2 Proof of Theorem 4.1
Proof. The result follows by applying joint convexity of (Lemma B.2(iv)) and rearranging terms according to the partition:
Corollary D.1 (Rényi mixture bound). With the setting in Theorem 4.1, the Rényi divergence satisfies the following LogSumExp bound:
for all . Moreover, given and in the setting of Theorem 4.1, we have the reorganized bound
Proof. We first note that Equation (26) follows straightforwardly from Equation (25) due to monotonicity of log and exp.
We prove Equation (25) for the cases and separately.
Case 1: The Rényi divergence is related to the -divergence generated by by , where in particular joint convexity of and monotonicity of give the bound
Using the fact that , we get
where the final step follows since .
Case 2: The Rényi divergence is related to the -divergence generated by by , where in particular joint convexity of and monotonicity of give the bound
Using the fact that , we get
where the final step follows since .
E Tightness of certificates
Since Cohen et al. [2019] proved optimality of their certificate for Randomized Smoothing with Gaussian noise, it has been customary to pair derivation of certified guarantees with an analysis of the tightness of the resulting certificate. In the ideal case, one can prove that a given Randomized Smoothing certificate is tight in the following precise sense. Given an input , the certification procedure determines a robustness region at which the input is robust for all where ). We can say that the region is tight if, for any , there exists a “worst-case” input and base algorithm (subject to some constraints determined by evaluating at ) with the property that . In the information-limited setting of Theorem A.2, is constrained by the aggregated vote probabilities . In the full-information setting of Theorem A.1, more information about the vote distribution can be used.
Turning to our framework, our analysis introduces slack at two key steps. First, we replace the induced constraint set of of Theorem D.1 by a convex outer approximation . Second, we replace the exact divergence bounds by analytical upper bounds of Theorem 4.1.
The first source of slack corresponds to the convex relaxation itself, and is already reasonably well-understood. By Theorem A.3, if the exact Hockey-stick profile (see Equation (9)) is available at all orders , then the resulting certificate is tight in the information-limited setting. This means no procedure that observes only the vote statistics , can certify a larger region without further assumptions on the base learner .
Thus, to understand the tightness of our certificates, we should understand the error introduced by Theorem 4.1 and how it affects certification. For mixture distributions and on a shared space, define the joint-convexity slack
In this appendix, we seek to understand the second source of slack arising from our use of the joint convexity bound Theorem 4.1, and how it affects the resulting certificates generated by our framework. This analysis can be broken into several steps. Appendix E.1 characterizes exactly as the information gained by releasing the mixture component labels along with the noised observation. In particular, the joint convexity bound is exact in precisely the cases when the mixture component label can be recovered from the noised observation. Appendices E.2 and E.3 show that the smoothing schemes of two prior works, Jia et al. [2021] and Zhang et al. [2022], satisfy this hypothesis, and thus we recover their certificates exactly.
To be precise, slackness could also enter through the reorganization process of Theorem 4.1. However, in the cases we consider, this reorganization is exact.
E.1 Joint-convexity slack from label recovery
Throughout this subsection fix mixtures and on with common weights , let be a common dominating measure for , and write and .
Sampling from is a two-stage process: first, draw index , then, draw . The mixture reflects the law of marginalized over . For purposes of understanding the slack , it is useful to also define the labeled pair :
Definition E.1 (Labeled mixture). The labeled mixtures of and are the probability measures on
We write , for the projection onto the observation .
Note that is a deterministic Markov kernel with and .
Lemma E.1 (Additivity of labeled mixtures). For every generator f as in Definition B.1,
Proof. The measure dominates and , with densities and . By the perspective representation (Lemma B.2(v)) and positive homogeneity of (Lemma B.1),
Combining Lemma E.1 with the data-processing inequality (Lemma B.3) applied to recovers Theorem 4.1:
In particular,
Equation (29) states that the slack is precisely the difference in -divergence between labeled and unlabeled mixtures. In our setting the index is the retained index sequence .
Corollary E.1 (Exactness for identifiable mixtures). If the sets are pairwise disjoint up to -null sets, then for every generator , that is, .
Proof. Let for and arbitrary elsewhere, and define . Each is supported only on , so and . Applying Lemma B.3 to and to gives . The right hand side is by Lemma E.1.
E.2 Tightness of pure subsampling
We use these results to recover the bagging certificate of Jia et al. [2021] as a special case of our framework. Take and as the feature and label smoothing mechanisms (that is, no noise is added to features or labels). Call an input and corruption record-distinct if the records of are pairwise distinct, the corrupted records , , are pairwise distinct, and the clean and corrupted records are disjoint.
Theorem E.1 (Exactness for pure subsampling). Let subsample without noise and let be record-distinct. Write for the probability that the subsample retains a corrupted record. Then, for every generator ,
So Theorem 4.1 is exact, and the Hockey-stick profile is
Proof. If does not contain a corrupted index, then . Otherwise, contains at least one corrupted record, so for every . By record-distinctness, it follows that and for . Therefore, the component supports of the component pairs are pairwise disjoint, and exactness follows from Corollary E.1. For Equation (30), observe that the mixtures agree on their intersection , and so we may apply Lemma B.7 with overlap mass .
Corollary E.2 (Recovery of bagging certificate). In the setting of Theorem E.1, write . Then is robustly certified at with respect to if and only if
For constraining only , under size-k sampling with replacement and without replacement.
Proof. Substituting into the objective of Theorem A.3, we get whenever and , giving optimal value of in Equation (6).
A noteworthy condition for our tightness proof was record-distinctness. In the usual randomized smoothing setting [Cohen et al., 2019, Jia et al., 2021, Zhang et al., 2022] this is a mild assumption, as the certificates are derived without using additional information about the input. If record-distinctness does not hold (either due to repetition in S or impossibility of choosing an appropriate ), we cannot directly apply Lemma B.7 to obtain the worst-case (although it remains a valid upper bound).
E.3 Recovering BagFlip's certificate
In Appendix E.2, we exploited Corollary E.1 to obtain a tight certificate based on the TV distance in the case of pure bagging. Once feature or label noise is introduced, the mixture components are no longer identifiable. Thus, in principle, the slack Equation (27) is nontrivial.
However, it turns out that Zhang et al. [2022] compute the certificate only for the label-released mixture (see Zhang et al. [2022, Appendix A]), and thus Corollary E.1 does apply to the setting actually considered by BagFlip. This means two things. First, the certificates obtained within our framework match the certificates of Zhang et al. [2022] exactly in the analytical sense. Second, the certificate of Zhang et al. [2022] may not be tight in the sense that base learners that do not use the mixture component label (which is true of BagFlip's learners) are actually more robust than the certificate guarantees.
Theorem E.2 (Recovery of BagFlip certificate). Consider the BagFlip instantiation taking , , uniform on , and , the flipping measures of Definition G.5 with rate . Let , denote the labeled mixture of as in Definition E.1. Then the bound of Theorem 4.1, applied with partition of by the number of retained corrupted examples, evaluates to
where for any with , given in closed form by Equation (65). Consequently, the certificate obtained by applying Theorem A.3 to the profile given by Equation (32) coincides with the radius of Zhang et al. [2022, Thm. 5.1].
Proof. Conditioned on the sampled indices , the pair consists of two flipping measures on whose parameters disagree in exactly coordinates, where . By Theorem G.4 the component divergence is determined as a function of , so the regrouping step preserves the exact joint convexity bound. Thus, we recover the exact Hockey-stick envelope , , and via Theorem A.3 the optimal information-limited certificate.
F Methodology Details
F.1 Training
Datasets We train models on MNIST, CIFAR10, as well as binary classification tasks derived from them. MNIST-17 uses the MNIST digits 1 and 7, and CIFAR10-02 uses the CIFAR10 classes 0 and 2 (airplane and bird). The training and test sets have 60,000 and 10,000 examples on MNIST, 13,007 and 2,163 on MNIST-17, 50,000 and 10,000 on CIFAR10, and 10,000 and 2,000 on CIFAR10-02. We report certified accuracy on the full test set. Pixel values are divided by 255, which puts every feature in [0, 1], and we apply no further normalization or standardization. on MNIST and on CIFAR10.
Architectures On MNIST datasets, the base learner is a small convolutional network consisting of two convolutions with 16 and 32 channels, respectively, each followed by ReLU activation and average pooling, then a hidden layer of width 64 with ReLU, and finally a linear output layer. We use dropout of 0.25 and 0.5 before each linear layer. On the CIFAR10 datasets, we use the ResNet-20 of Jia et al. [2021] modified to use group normalization (at most eight groups) and weight-standardized convolutions. These modifications are due to our parallel training implementation which does not support the running statistics of batch normalization. Networks in all experiments are trained from random initializations.
Optimization All training uses the Adam optimizer with learning rate and runs for 200 epochs with batch size 16. We use weight decay of on MNIST and on CIFAR10. On CIFAR10, the learning rate is multiplied by 0.1, 0.01, 0.001, and 0.0005 from epochs 80, 120, 160, and 180, following BagFlip [Zhang et al., 2022]. Models trained on the full training set (for the RAB baseline) use 20 epochs with batch size 128 on MNIST and MNIST-17, and 10 epochs with batch size 64 on CIFAR10 and CIFAR10-02.
Augmentation On MNIST, we use random translations of up to 2 pixels and cutout. On CIFAR10, we use random translations of up to 4 pixels and horizontal flips. In addition, each training batch receives Gaussian noise whose standard deviation is drawn uniformly from [0, 1], motivated by the augmentation of Zhang et al. [2022], and disabled for plain bagging experiments on CIFAR10 and CIFAR10-02.
F.2 Mechanisms and configurations
Mechanisms All ensembles use bagging with replacement. The feature noise scale is calibrated to a constant coordinate-wise standard deviation: Gaussian noise , Laplace noise , and uniform noise . The feature noise is Gaussian unless stated otherwise. In the joint feature and label experiments, label noise keeps the original label with probability , with on MNIST and CIFAR10 and on MNIST-17 and CIFAR10-02. The backdoor experiments do not use label noise.
Ensembles Every ensemble uses base models on MNIST and MNIST-17, and base models on CIFAR10 and CIFAR10-02.
feature adversaries The experiments of Section 5.1 use and on MNIST and MNIST-17, and on CIFAR10, and and on CIFAR10-02. In Figure 1, the Gaussian, Laplace and uniform curves use this configuration, the bagging curve uses with no noise, and RAB uses on the full training set. Figure 2 uses the configuration of each dataset.
Label flipping and backdoor adversaries Table 7 lists the bag sizes and noise scales of Tables 2 and 3. In Table 2, bagging uses the same k as our method. In Table 3, RAB uses the and of our method on the full training set.
F.3 Confidence intervals
Certification in our framework requires high-confidence bounds on teh vote probabilities of the smoothed classifier. We estimate them from N votes of an ensemble using the following confidence interval.
Table 7: Bag sizes and noise scales of Table 2 and Table 3.
| Dataset | Joint feature & label | Backdoor | ||||
|---|---|---|---|---|---|---|
| MNIST | 30 | 0.25 | 0.5 | 300 | 0.75 | 1.0 |
| MNIST-17 | 30 | 0.5 | 1.0 | 100 | 0.75 | 1.0 |
| CIFAR10 | 200 | 0.2 | 0.35 | 1000 | 0.5 | 0.75 |
| CIFAR10-02 | 25 | 0.35 | 0.5 | 100 | 0.35 | 0.5 |
Algorithm 1 TRAINUNDERMECHANISM
Input: Training set , learning algorithm , mechanism , number of models
Output: Base models
1: for do 2: Sample 3: Sample with and 4: 5: end for 6: return
Lemma F.1 (Clopper–Pearson Interval [Clopper & Pearson, 1934]). Let be independent, identically distributed Bernoulli random variables with mean , and let . Fix a failure probability , and let denote the -quantile of the Beta distribution with shape parameters . Define
with the conventions when and when . Then, with probability at least , . In particular, the one-sided upper confidence bound satisfies .
More precisely, we use SimuEM as in Jia et al. [2021], which applies a Bonferroni correction over all classes and the test points. Each bound thus has failure probability and the full test-set failure probability is bounded by via the union bound.
F.4 Algorithms
Algorithms 1 and 2 follow Jia et al. [2021, Algorithm 1] and Weber et al. [2023, Algorithms 1 and 2]. We perform certification following Dvijotham et al. [2020, Algorithm 2] with hockey-stick constraints of all orders.
G Bounding divergences
The core technical challenge of our method is to derive the divergence bounds
for various inputs , smoothing mechanisms , threat models , and generators . Via Theorem 4.1, the problem reduces to bounding divergences between the paired components of the mixture induced by . Fixing mixture component , this decomposes into two steps.
The first step is to argue that the maximum attainable divergence is exhibited by some worst-case perturbation of the subsampled input , so that we may write
Algorithm 2 CERTIFY
Input: Base models , test examples , feature noise mechanism , per-example budgets , confidence level
Output: Predicted label and certified number of corrupted examples for each test example
1: for in do 2: Sample for 3: counts for 4: top two indices in counts 5: 6: 7: Output and , or ABSTAIN if no is certified 8: end for
for some pair of probability measures , where is the joint feature-and-label noising mechanism. Note that and do not necessarily correspond exactly with the joint input and constraint set ; for example, likely depends on . For reasons we will describe later, the two main desiderata are that the same pair works for every , and that such pairs compose across the factors of . We handle this step in Appendix G.1.
The second step is to compute the full set of divergences for . This is typically straightforward once are known. We handle this step in Appendix G.2, where we work out closed-form divergences for Uniform, Flipping, Gaussian, and Laplace measures by hand. We also show how to construct product measures using these measures as building blocks, and reduce divergence computation to a one-dimensional numerical computation.
Together, the above steps are sufficient to derive bounds for Uniform, Gaussian, and Flipping measures, as well as product combinations of them, under all feature-label constraints. In some cases the procedure does not work so cleanly. Informally speaking, if the smoothing geometry does not mesh with the perturbation geometry, no single pair need exist. This arises for Laplace feature noise under general norms with , which we treat separately in Appendix G.4.
G.1 Finding worst-case adjacent distributions
Adjacency parameters The left side of Equation (35) optimizes over a high-dimensional set. In many cases the divergence depends only on some lower-dimensional “sufficient statistic” computable from , motivating the following definition.
Definition G.1 (Adjacency parameter). Let be a noising mechanism over space . An adjacency parameter is a map such that, for every generator , there exists a function such that for all .
Writing , Equation (35) becomes
which is often simpler when is low-dimensional. How low-dimensional can be is governed by symmetry of the constraint set under the noise . By Lemma B.3, is invariant to invertible transformations. So, if is a transform with for every , the divergence can only depend on those qualities of the pair invariant under . Taking Gaussian measures as an example, can be taken to be any Euclidean isometry, leaving .
Worst-case pairs Equation (37) may have a different maximizer for each . Ideally, however, this is not the case. Define the binary relation if and only if, for every generator , . Similarly, call a worst-case for if for every .
It can be convenient to characterize worst-case measures through their likelihood ratios. We have the following lemmata, which will become useful later.
This is similar to the concept of a dominating pair [Zhu et al., 2022] in the privacy literature.
Lemma G.1 (Hockey-stick characterization of ). Let and be measures on the same space. Then
Proof. Each is itself a generator, which gives the forward implication. Conversely, is nonnegative in Lemma B.5, so a uniform bound on is preserved into .
Lemma G.2 (Product composition of worst-case pairs). For each , let be measures on with and . Then . In particular, if is a worst case parameter for each , then is worst case for the product measure.
Proof. Replacing by one index at a time forms a sequence from to . Thus, by transitivity of , it suffices to prove the case where the two products differ only in a single factor (WLOG, the first): for all .
Group the factors and , and let denote their likelihood ratio. Applying Lemma G.3 with as the first factor and using Equation (38), we have
Since was arbitrary, the claim follows from Lemma G.1.
G.2 Bounds between adjacent smoothing measures
In this appendix we derive Hockey-stick and Rényi divergences for the distributions arising in our analysis.
General Strategy We show how to compute when and are adjacent measures. In these computations, may be interpreted as the clean distribution, and the corrupted one. Each computation proceeds by writing down the distribution of under and evaluating Equation (14).
Lemma G.3 (Hockey-stick for product measures). Let and and write and for the likelihood ratios under and , respectively. Then, for every ,
Proof. Using for , we have
The final equality holds since .
Corollary G.1. Suppose , , and that takes finitely many values for . Let be set of values of , and let . Then for every ,
Moreover, if , then .
Proof. Apply Lemma G.3 with the first factor and take the sum over the values of . The final claim holds by taking to be a point mass, so .
Corollary G.1 allows us to fully understand the hockey stick profile of any measure constructed from discrete factors combined with a factor whose entire profile is known. The relevant application below is to construct joint feature-and-label noises which combine discrete label flipping with continuous feature noise (e.g., Definition G.6).
The convolution in Equation (40) in general can be computationally expensive if many factors are tensored together. The number of discrete likelihood ratio values is upper-bounded by the product . Thankfully, for the noises we consider, the likelihood ratio values collapse onto a lattice, greatly simplifying the computation.
Smoothing measures We now catalog the smoothing measures used in our work and their associated divergences.
Definition G.2 (Uniform measure). Let and . Given , the associated Uniform measure is the product measure
We say that two Uniform measures on with the same and data are -adjacent if
Theorem G.1 (Divergences for adjacent uniform measures). Let be -adjacent Uniform measures on . Then
Proof. and have densities which evaluate to on their supports and 0 everywhere else. Thus the likelihood ratio satisfies the hypotheses of Lemma B.7, so we may write for any generator . The overlap region defining can be seen to be of length on each coordinate, which has mass under of . Thus with probability , completing the proof.
Definition G.3 (Gaussian measure). Let and . Given , the associated Gaussian measure is the standard isotropic Gaussian measure:
We say that two Gaussian measures on the same space and same parameter with data and , respectively, are -adjacent if .
Theorem G.2 (Divergences for adjacent Gaussian measures). Let and be -adjacent Gaussian measures on . Then
Proof. Equations (48) to (51) are well-known; see Mironov [2017] for Equation (48) and Balle & Wang [2018] for Equation (50). Equation (49) follows by taking the limit in Equation (48), and Equation (51) follows by taking in Equation (50) and applying the identity .
Definition G.4 (Laplace measure). Let and . Given , the associated Laplace measure is the product measure
We say that two Laplace measures on the same space and same parameter with data and , respectively, are -adjacent if
taken in nonincreasing order.
Theorem G.3 (Divergences for adjacent Laplace measures). Let be t-adjacent Laplace measures on . For notational convenience, for and define the quantities
where we define by the limit . Under , the likelihood ratio factorizes as where each is independent and
Then, we have that
If has a single nonzero coordinate, then for all ,
For general t, the Hockey-stick divergence can be obtained numerically by convolving m copies of the distribution in Equation (55).
Proof. We first exhibit the likelihood ratio structure from Equation (55). That the likelihood ratio factorizes into is clear from the product measure structure of . WLOG we can assume , , and . Write for the densities of , respectively. Each coordinate has
We would like to understand the distribution of the variable under . On the endpoints we see that
recovering the first and last identities in Equation (55). For the points , we note that the map is differentiable with differentiable inverse , so we may apply the change of coordinates formula to arrive at the density
Noting that , we recover .
Rényi and KL divergences Evaluating the Hellinger integral for a single coordinate via Equation (55) gives
Computing the latter expectation gives
Multiplying through by recovers the expression . The case for follows by recomputing the integral directly and noting . Finally, taking and summing over coordinates (applying Lemma B.6) yields Equation (57). It can be verified that taking the limit yields Equation (57).
Hockey-stick divergence Suppose . Cancelling identical factors (Lemma B.2(iii)), we need only compute . By Equation (55) for , we see that is nondecreasing in with range . Hence, for , we have the set
Integrating over these regions gives
Using , we compute the (unnormalized) hockey-stick directly as
When , everywhere and . When , we have everywhere and . Combining all three cases (and re-normalizing) yields Equation (58). Taking yields Equation (59).
Definition G.5 (Flipping Measure). Let be an integer alphabet size, , and . We define the flipping measure
We say that two flipping measures on the same space are s-adjacent if
Theorem G.4 (Divergences for Adjacent Flipping Measures). Let
be s-adjacent flipping measures on . For notational convenience define the quantities
and
Then
(66) where is the distribution defined by
Proof. Without loss of generality, we may relabel coordinates so that for , and otherwise. Write and By definition, assigns mass to and mass to every other symbol. is defined similarly, swapping for .
Tensorizing Divergences First, we point out that the Rényi divergence Equation (63) follows from Tensorization (Lemma B.6) since and decompose as product measures. In particular, we need only understand the component-wise divergences for , and we may recover . For , , and so writing down the likelihood ratio for a single component takes one of three values:
We can then compute the expectation over :
from which it follows
allowing us to conclude
Computing proceeds similarly by using Equation (70) and evaluating
Using tensorization of KL gives the identify from Equation (64).
Hockey Stick Divergence To compute the Hockey Stick Divergence we must understand the entire likelihood ratio distribution holistically. For , define the random distances
\delta^{\prime}:=\|\widetilde{y}^{(s)}-y^{\prime}^{(s)}\|_{0} \tag{72}where and are the respective projections onto the first coordinates. Define the signed random difference . Notably, since and only disagree in the first coordinates, the difference is determined entirely by the projection of , , and onto the first coordinates. That is, .
For any given , we can write
Thus the likelihood ratio is given by
d takes values in , and so there are exactly distinct likelihood ratio value regions. Now, from Equation (73), we would like to understand the law for under . We start by expressing as the result of a biased random walk:
We can understand the law for using the theory of probability generating functions (PGFs). If is a discrete integer-values random variable taking values in with mass function , the PGF for is defined as
The PGF for is thus . The PGF for a sum of independent random variables is simply a product the PGFs for the variables, and thus the PGF for is given by
We recover the probability by extracting the coefficient of the term, in this case computed as
where the inner probability corresponds to choosing choices of , choices of , and choices of in the random walk.
Knowing the law for under , we recover regions of constant likelihood ratio, one for each , and each of which has likelihood ratio . To compute the Hockey Stick divergence, we must also understand the law for under , defined by
Luckily, moving from to under a given is straightforward to understand. Using the same random walk formulation gives inverted step probabilities, and pushing through the PGF gives . Extracting coefficients, we see that
Moreover, itself admits a certain multiplicative symmetry simplifying the expression further. For a fixed , satisfying , we have
From Equation (82) we can simply swap the labels of and to get the constraint , and plugging into Equation (68) and combining Equation (79) gives us the identity
All that remains is to integrate the divergence loss over the region . Defining the sets for each , we see that partitions the outcome space, and in particular integrating over can be done by integrating over each and taking the sum. Since the likelihood ratio is constant on each , this amounts to isolating the satisfying and summing the corresponding masses. We see that
Defining , we conclude
TV Distance The TV distance follows directly from setting in Equation (65) and observing that . ☐
The Flipping Measure of Definition G.5 has an interesting history. It is essentially a C-ary randomized response [Warner, 1965], well-studied in both the DP and randomized smoothing literatures [Mironov, 2017, Lee et al., 2019, Bojchevski et al., 2020, Dvijotham et al., 2020, Zhang et al., 2022]. Mironov [2017] computes the , case; see Table II in that work. The general Rényi divergence Equation (63) appears in Appendix A.10 of Dvijotham et al. [2020], but they do not derive the corresponding divergence which can yield tighter certificates via Theorem A.3. Lee et al. [2019] and Zhang et al. [2022] both operate implicitly with the Hockey Stick divergences by way of the Neyman-Pearson Lemma characterization of optimal certificates, although these works elude an efficient closed-form expression and instead compute with a runtime-suboptimal partitioning algorithm with runtime (the practical impacts of which are discussed in [Dvijotham et al., 2020]). Bojchevski et al. [2020] consider flipping measures and identify the likelihood ratio partition structure that allows us to obtain the closed-form Equations (65) and (66), but do not explicitly write down the closed-form divergence.
Definition G.6 (Gaussian–Flipping Measure). Let , an integer alphabet size , , and . For , define the flipping measure
on . Given and , the associated Gaussian–Flip measure is the product measure on
We say that two Gaussian–Flip measures on the same space and same parameters , with data and , respectively, are -adjacent if
The Gaussian–Flipping measure of Definition G.6 has two main applications within our framework. First, it allows joint smoothing of features and labels for dirty-label data poisoning adversaries. Second, it allows smoothing over feature spaces that combine continuous feature representations with discrete ones, for example of the form for some discrete space . In such a setting a data sample can be noised by applying continuous noise (e.g., Gaussian) to the continuous features and discrete noise (e.g., flipping) to the categorical features.
Theorem G.5 (Divergences for Adjacent Gaussian–Flipping Measures). Let
be -adjacent Gaussian–Flip measures on . Define , , . For , let be the law of Equation (68) and define the tilted threshold
Then
Proof. Rényi and KL divergences. Applying tensorization (Lemma B.6), the result follows by adding the Gaussian values of Theorem G.2 and the flipping values of Theorem G.4.
Hockey-stick divergence. Apply Lemma G.3 with the flipping block as the first factor. Under the flipping factor of , the likelihood ratio equals with probability , so , where the Gaussian term is . Subtracting gives Equation (94).
TV Divergence. The TV Divergence bound follows from taking in Equation (94).
G.3 Worst-case Uniform parameters
In this appendix we derive the worst-case Uniform noise adjacency parameter under different constraints. Luckily, Uniform noise admits a low-dimensional adjacency parameter (Definition G.2). By the proof of Theorem G.1, for every generator , which is nondecreasing in . Hence, the optimization problem Equation (37) is always maximized at the maximum attainable . This reduces the problem to maximizing under an constraint.
Write . For a budget , write and . Define the quantity
so that . Evidently is nondecreasing in , so we seek to maximize subject to the constraint . If , the adversary can shift one coordinate by , in which case the supports are disjoint, in which case for every . We therefore assume .
Theorem G.6 (Worst-case Uniform parameter). Let , and write for Uniform measures on with radius . Define . Then , where
-
, attained at ;
-
, attained at ;
-
for and , we have
Proof. We start with the case . Since is convex with , for any with , we have and , so that . In particular, if is nonzero in more than one coordinate, we can obtain a larger objective by merging coordinates. Via inductive argument, the objective is maximized at . The corresponding maximum is .
Now, the case when . This case is easy, since is increasing in each coordinate, we need only maximize each coordinate independently to obtain .
Finally, the case when . For , we have the series representation , which gives the bound . Every coordinate satisfies , so
By Hölder's inequality, and , giving the upper bound. For the lower bound, we can take so that . We conclude that
where the final inequality uses that .
G.4 Worst-case Laplace parameters
To bound worst-case divergences for Laplace noise, we must solve Equation (37) applied to Theorem G.3. Unlike other noises like Gaussian or Uniform, the adjacency parameter for Laplace noise is the list-valued t in Equation (53). Concretely, in this appendix we attempt to solve (or bound)
Throughout this appendix we write and for the measure centered at , and take .
We summarize our findings here. The and cases are solvable exactly for all -divergences. For , the argument is straightforward: every divergence is monotone in each coordinate , so is maximized at . The result for is stated in Theorem G.7. For , the divergence is maximized when the adversary concentrates their perturbation in a single coordinate. The result for is stated in Theorem G.8.
Technical lemmas We first present some technical lemmas which will help us understand the structure of Laplace noise.
Lemma G.4 (Coordinate-wise monotonicity). For , . In particular, whenever coordinate-wise.
Proof. By Equation (38) it suffices to compare the Hockey-stick profiles at every , which are determined by Equation (58) as . By inspection, this quantity is nondecreasing in for every , which gives the first claim.
The second claim follows from the first by applying Lemma G.2 for each coordinate.
The following technical lemma characterizes the Hockey-stick behavior under an constraint when the adversary splits the perturbation between two coordinates.
Lemma G.5. Let and write . Let be -adjacent Laplace measures on . Then, for every ,
while for and for . In particular, , so for every , with equality if and only if .
Proof. First, when , the corresponding results hold since almost surely by Theorem G.3. Fix , and write and for the marginals of for the common marginal of , and for the likelihood ratio of .
Applying Lemma G.3 to (with as the first factor), we have
where by Equation (58),
Since , the branches of Equation (100) entering into the expectation depend on and . The first line applies exactly when ; that is, , and the third exactly when ; that is, .
By Theorem G.3, we have , so under , it follows that is distributed with mass at , mass at , and density on . Integrating the measure gives, for ,
We have four meaningful cases depending on the ordering of .
Case In this case only the second line of Equation (100) applies, so
In this case .
Case In this case the first line of Equation (100) applies on and the second on the rest, so
In this case .
Case In this case the third line of Equation (100) applies on and the second on the rest, so
In this case .
Case In this case and are related by swapping coordinates. By Lemma B.3 both sides of Equation (99) are symmetric in and , so we can reduce to the case handled above.
In all four cases since and . For the final comparison, Equation (58) with gives for . This is Equation (99) when .
The property that ultimately allows us to characterize Laplace noise for adversaries is Schur convexity. Recall that we say is majorized by , written , if the two have equal sums and every prefix sum of the coordinates of when listed in nonincreasing order is at most the corresponding sum for . If the prefix-sum condition holds but the sums of and may differ, we say is weakly submajorized by , written .
Lemma G.6 (Schur convexity in Laplace parameter). For every generator , the map is Schur convex. In particular, if , then .
Proof. Suppose . As a property of the majorization relation, it holds that there exists a sequence such that each adjacent pair differs only a single pair of coordinates and with . Thus, it is sufficient to prove the result only for the case when differ in a single coordinate pair with and .
Applying Equation (99) on the two swapped coordinates for and , with and fixed , we see that because is nondecreasing in . In particular, the pair generates a smaller Hockey-stick divergence under Lemma G.5.
Finally, applying Lemma G.2, we conclude that .
constraints
Theorem G.7 (Worst-case Laplace parameter). Let with . Then , and the maximizing Equation (98) is and for every generator . In particular
and is obtained by convolving copies of the distribution in Equation (55) at and evaluating Equation (14).
Proof. The constraint is exactly coordinate-wise. By Lemma G.4, we have . Equation (101) follows by evaluating Equation (56) at .
constraints
Theorem G.8 (Worst-case Laplace parameter). Let with . Then, . In particular, the maximizing Equation (98) is and, for every ,
with determined by Lemma B.4.
Proof. Suppose first that exactly. Then , since the two have equal sums and the largest partial sum of is , which dominates every partial sum of . Lemma G.6 therefore gives . If instead , apply the above to obtain and then Lemma G.4 in the single coordinate to obtain . Since and agree in all coordinates but the first, canceling common factors (Lemma B.2(iii)) identifies the pair with the scalar pair , proving the first claim. Equation (102) then follows from Equations (56) and (58) evaluated at .
constraints For , no single t maximizes the Hockey-stick divergences of all orders simultaneously. We instead bound every admissible t by a dominating parameter, which concentrates the perturbation into as few coordinates as the budget allows.
Theorem G.9 (Dominating Laplace parameter). Let and with . Let and . Then . In particular, for every generator , and the right-hand side is obtained by convolving copies of the distribution in Equation (55) at . For , .
Proof. Every coordinate satisfies , and by Hölder's inequality . Listing in nonincreasing order, the sum of its largest coordinates is therefore at most for and at most for . These are exactly the prefix sums of , so . As a property of weak majorization, there exists with coordinate-wise and . Lemma G.4 gives , and Lemma G.6 gives .