 Certification for Differentially Private Prediction in Gradient-Based Training


             Matthew Wicker * 1 2 Philip Sosnin * 1 Igor Shilov 1 Adrianna Janik 3 Mark N. Mueller 4 5
                         Yves-Alexandre de Montjoye 1 Adrian Weller 6 Calvin Tsay 1


                         Abstract                                    Differential privacy (DP) has emerged as a primary tool for
      We study private prediction where differential pri-            understanding and mitigating the leakage of private user in-
      vacy is achieved by adding noise to the outputs                formation when deploying machine learning models (Dwork
      of a non-private model. Existing methods rely                  et al., 2006). Differential privacy provides a probabilistic
      on noise proportional to the global sensitivity of             guarantee on the amount of information an adversary can ex-
      the model, often resulting in sub-optimal privacy-             tract from model predictions or parameters (Ji et al., 2014).
      utility trade-offs compared to private training. We            The most popularly deployed algorithm for achieving DP
      introduce a novel approach for computing dataset-              in machine learning is private training, e.g., with DP-SGD
      specific upper bounds on prediction sensitivity by             (Abadi et al., 2016), which privatizes the learning process
      leveraging convex relaxation and bound propa-                  such that the final model parameters come with a DP guar-
      gation techniques. By combining these bounds                   antee. Private training does come with some considerable
      with the smooth sensitivity mechanism, we signif-              drawbacks: privacy parameters must be fixed prior to train-
      icantly improve the privacy analysis of private pre-           ing, leading to potentially costly training re-runs, and DP
      diction compared to global sensitivity-based ap-               training may bias model performance in unintended (and po-
      proaches. Experimental results across real-world               tentially harmful) ways, e.g., with respect to discrimination
      datasets in medical image classification and nat-              (Fioretto et al., 2022).
      ural language processing demonstrate that our                  One alternative to private training is private prediction,
      sensitivity bounds are can be orders of magnitude              which achieves differential privacy by adding noise to the
      tighter than global sensitivity. Our approach pro-             outputs of a non-private model (Dwork & Feldman, 2018).
      vides a strong basis for the development of novel              Unlike private training, private prediction allows users to
      privacy preserving technologies.                               dynamically adjust their privacy budget depending on the
                                                                     privilege of the user or sensitivity of the application. Ad-
                                                                     ditionally, private prediction can be readily applied to even
1. Introduction                                                      the most complex training configurations such as federated
                                                                     learning. Despite these appealing properties, current private
Modern machine learning systems have shown significant               prediction algorithms have been observed to have an em-
promise across diverse domains such as medical imaging,              pirically unfavorable privacy-utility trade-off compared to
autonomous driving, and sentiment analysis (Bommasani                differentially private training (van der Maaten & Hannun,
et al., 2021). The potential use of such systems in situations       2020). Yet, recent studies have concluded that the privacy
that require the use of human data for training has led to an        analysis given by current private prediction algorithms can
increase in data privacy concerns (Song et al., 2017; Carlini        be substantially improved (Chadha et al., 2024).
et al., 2023). Ensuring that machine learning models meet
rigorous privacy guarantees is a necessary prerequisite for          In this work, we present a novel framework that enables
responsible deployment (Gadotti et al., 2024).                       tighter privacy analysis when employing private prediction.
                                                                     We observe that a primary source of looseness in private
  *
   Equal contribution 1 Department of Computing, Imperial Col-       prediction is the use of the global prediction sensitivity—the
lege London, London, UK 2 The Alan Turing Institute, Lon-            largest change in prediction between any two observable
don, UK 3 Accenture Labs, Dublin, Ireland 4 Department of Com-       datasets—when privatizing model outputs. Our approach
puter Science, ETH Zurich, Zurich, Switzerland 5 LogicStar.ai,
Zurich, Switzerland 6 Department of Engineering, University of       addresses this by using advances in non-convex optimiza-
Cambridge, Cambridge, UK. Correspondence to: Calvin Tsay             tion and bound propagation (Wicker et al., 2022) in order
<c.tsay@imperial.ac.uk>.                                             to compute upper-bounds on the local sensitivity of a given
                                                                     prediction. This involves computing the set of all reachable
Proceedings of the 42 nd International Conference on Machine         predictions when any arbitrary set of k points is added or
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025
by the author(s).                                                    removed from the provided dataset. Using our bounds on

                                                                 1
                                          Certification for Differentially Private Prediction



                               Model Training                   Trained                        Model                        Queries
                                  (SGD)                        Parameters                    Predictions
            Private                                                                                                        Privatized
            Dataset                                                                                                        Predictions
                              Abstract Gradient             Parameter-Space              Smooth Sensitivity
                                  Training                      Bounds                       Bounds
       Training Time                                                                                                           Inference Time
                                                                                                           Trust Barrier



Figure 1. Overview of the approach (1) A model is trained using stochastic gradient descent. (2) AGT is used to compute parameter space
bounds for up to k arbitrary removals/additions to the dataset. (3) A certification procedure is used to bound the smooth sensitivity of a
model prediction. (4) The smooth sensitivity is used to release the model prediction privately.


a prediction’s local sensitivity, we show that we are able              Yu et al., 2022). As a result, several works seek more spe-
to leverage bounds from smooth sensitivity (Nissim et al.,              cific, and thus sharper, privacy guarantees. For example,
2007) to provide tighter guarantees of differential privacy             Nissim et al. (2007) and Liu et al. (2022) use notions of local
compared with the standard approach of using the global                 sensitivity to produce tighter bounds. In Ligett et al. (2017),
sensitivity. Empirically, we compare our approach to private            the authors privately search the space of privacy-preserving
prediction with private training using DP-SGD (Abadi et al.,            parameters to tune performance on a given dataset, while in
2016) and ensemble-based private prediction approaches                  Yu et al. (2022) the authors propose individual differential
similar to PATE (Papernot et al., 2016). We consider a                  privacy, which can compute tighter privacy bounds for given
series of synthetic and real-world benchmarks including                 individuals in the dataset. Unlike this work, these rely solely
medical imaging and natural language processing. Across                 on private training e.g., DP-SGD (Abadi et al., 2016).
all tested datasets we find cases where our approach enables
                                                                        We consider private prediction where one is interested in
substantially tighter privacy analysis. We believe that this
                                                                        privatizing the output predictions of a model (Liu et al.,
novel verification-centric framework represents a promising
                                                                        2019). While PATE’s noisy softmax may be interpreted
avenue for tightening the privacy analysis of private predic-
                                                                        in this light (Papernot et al., 2016), private prediction has
tion methods and for the development of new of privacy
                                                                        been investigated largely in the context of learning theory
preserving technologies. In summary this paper makes the
                                                                        (Bassily et al., 2018; Nandi & Bassily, 2020). In practice,
following contributions:
                                                                        it is found that training-time privacy such as DP-SGD is
• We provide a novel algorithm for bounding the reachable               preferable to prediction-time privacy (van der Maaten &
  set of model parameters given a bound k on the num-                   Hannun, 2020). However, recent audits have discussed a
  ber of individuals that can be added/removed from the                 significant lack of tightness in private prediction approaches
  dataset. These bounds may be of independent interest to               (Chadha et al., 2024). Our framework presents a novel
  developing new privacy preserving technologies.                       tightening of the privacy analysis of private prediction and,
                                                                        to the best of our knowledge, this work provides the first
• We use our bound on reachable model parameters to                     verification-centric approach to private prediction which
  bound the local sensitivity of any model prediction, and              will hopefully enable even more progress in this direction.
  we prove necessary upper bounds on the smooth sensitiv-               We detail further related works in Appendix A.
  ity to provide tighter privacy analysis.
• We validate our bounds with extensive experiments on a                3. Preliminaries
  variety of datasets from medical imaging and sentiment
  classification including fully connected, convolutional,              3.1. Differential Privacy
  and large language models. We find that our approach                  Differential privacy has become a widely recognized stan-
  offers bounds that can be orders of magnitude tighter than            dard that offers robust privacy guarantees for algorithms
  global sensitivity.                                                   that analyze databases.
                                                                        Definition 3.1 ((ϵ, δ)-Differential Privacy (Dwork et al.,
2. Related Works                                                        2014)). A randomized mechanism M is (ϵ, δ)-differentially
DP has enabled the adoption of privacy-preserving machine               private if, for all pairs of adjacent datasets x, y ∈ D and any
learning in a variety of industries (Dwork et al., 2014),               S ⊆ Range(M),
yet post-hoc audits have revealed a gap between attacker
                                                                                  P M(x) ∈ S ≤ eϵ P M(y) ∈ S + δ
                                                                                                           
strength and guarantees offered by DP (Carlini et al., 2022;                                                                                    (1)

                                                                    2
                                             Certification for Differentially Private Prediction

In this work, we define distances between datasets using                   3.2. Private Prediction
the Hamming distance d(x, y), which equals the number of
                                                                           The private prediction setting focuses on ensuring the pri-
entries in which x and y differ. Adjacent datasets are those
                                                                           vacy of a machine learning model’s predictions. Specifically,
where d(x, y) = 1. The parameter ϵ, known as the privacy
                                                                           this approach assumes that a potential adversary does not
budget, controls the privacy loss of M.
                                                                           have direct access to the model itself but is limited to making
A deterministic query f on a database x ∈ D can be made                    a fixed number of queries, Q, to the model.
differentially private by adding noise calibrated to the sensi-
                                                                           Notation. We denote a machine learning model as a para-
tivity of the function.
                                                                           metric function f θ : Rn → Y with parameters θ ∈ Θ,
Definition 3.2 (Global Sensitivity (Dwork et al., 2014)). A                which maps from features x ∈ Rn to labels y ∈ Y. We
function f : D → Rn has global (ℓ1 ) sensitivity                           consider supervised learning in the classification setting
                                                                           with a labeled dataset D = {(x(i) , y (i) )}N
                                                                                                                       i=1 . The model
             GS(f ) =       max         ∥f (x) − f (y)∥1         (2)       parameters are trained, starting from some initialization
                         x,y:d(x,y)≤1
                                                                           θ′ , using a gradient-based algorithm, denoted as M , as
                                                                           θ = M (f, θ′ , D). In other words, given a model, initial-
Releasing the result of the query plus additive noise drawn                ization, and dataset, the training function M returns the
from a Laplace distribution with scale GS(f )/ϵ satisfies                  “trained” parameters θ. In this paper, we consider only the
(ϵ, 0) differential privacy. Although this mechanism en-                   binary classification setting of Y = {0, 1}, though the re-
sures differential privacy, the global sensitivity represents              sults can be generalized to the multi-class setting.
the worst case sensitivity over all datasets, which may not
reflect the function’s sensitivity at a particular instance. Al-           For a given query point x, the private prediction setting
                                                                                                                                  ′

ternative measures of sensitivity have been proposed, such                 is concerned with releasing the prediction f M (f,D,θ ) (x)
as the local sensitivity:                                                  while satisfying Definition 3.1. For ease of exposition, we
                                                                                                                       ′
                                                                           will use the shorthand fx (D) = f M (f,D,θ ) (x) to denote
Definition 3.3 (Local Sensitivity (Dwork et al., 2014)). For               the prediction of the model at a point x, where differential
f : D → Rn , the local sensitivity at a point x ∈ D is                     privacy must be ensured with respect to the training dataset
                                                                           D.
             LS(f, x) =      max        ∥f (x) − f (y)∥1         (3)
                           y:d(x,y)≤1                                      Prediction Sensitivity. To release the predictions of the
                                                                           model while preserving privacy, one can employ the follow-
Unfortunately, the local sensitivity is not itself a private               ing response mechanism. We assume a no-box setting, i.e.,
quantity and cannot be used directly to achieve differential               we take the output of the model, fx (D), to be a binary label
privacy. However, Nissim et al. (2007) proposed a smooth                   of the model’s prediction. To privatize the response, one
upper bound on the local sensitivity that can be used to cali-             releases
brate noise while satisfying differential privacy. Formally,                               (
the maximum local sensitivity at a distance k is:                                             1 if fx (D) + Lap(1/ϵ) > 0.5,
                                                                                   R(x) =                                            (6)
                                                                                              0 otherwise.
Definition 3.4 (Maximum Local Sensitivity, (Nissim et al.,
2007)). The maximum local sensitivity at a distance k is
                                                                           This mechanism satisfies Definition 3.1, as the global sensi-
given by
                                                                           tivity GS(fx ) is equal to 1.
              Ak (f, x) = max LS(f, y)                (4)
                               y:d(x,y)≤k                                  Subsample-and-Aggregate. Subsample-and-aggregate
                                                                           mechanisms, such as the one employed by PATE (Papernot
We can now define the smooth sensitivity in terms of                       et al., 2016), are the current state-of-the-art in private predic-
Ak (f, x):                                                                 tion. In this setting, the data are partitioned into T disjoint
Definition 3.5 (Smooth Sensitivity, (Nissim et al., 2007)).                subsets, with T models {f (i) }Ti=1 , trained separately on
The β-smooth sensitivity of a function f at a point x ∈ D is               each subset. The models are then deployed as an ensemble
                                                                           voting classifier g with the following private aggregation
                SSβ (f, x) = max+ e−βk Ak (f, x)                 (5)       mechanism,
                               k∈N                                                                                        
                                                                                                                             2
                                                                                      g(x) = arg max nj (x) + Lap                         (7)
Taking directly from Nissim et al. (2007), the randomized                                          j                         ϵ
algorithm that returns f (x) + Cauchy 6 SSβ (f, x)/ϵ is
                                                      

(ϵ, 0)-differentially private1 for β ≤ ϵ/6.                                where nj (x) = |{i : i ∈ [T ], f (i) (x) = j}| are the label
                                                                           counts for a class j. This response mechanism satisfies
   1
       For a 1-dimensional query f .                                       (ϵ, 0)-differential privacy.

                                                                       3
                                       Certification for Differentially Private Prediction

Composition. For a given inference budget of Q queries,               Formally, we wish to upper-bound the following optimiza-
the total privacy loss can be computed using composition              tion problem:
theorems (Dwork et al., 2014). Standard composition states
that the repeated application of Q (ϵ, δ)-differentially pri-                max
                                                                               ′
                                                                                 ∥fx (D) − fx (D′ )∥1         s.t. d(D, D′ ) ≤ k       (8)
                                                                              D
vate queries satisfies (Qϵ, Qδ)-differential privacy. Ad-
                                                                      If the above problem is upper bounded by 0, then we can con-
vanced composition allows the same queries to satisfy
   ′ ′                                       ′          ′             clude that the prediction is stable at a distance k. However,
p, δ + Qδ) differentialϵ privacy, where δ > 0 and ϵ =
(ϵ
              ′                                                       optimizing over the space of all datasets D′ is practically
    2Q ln (1/δ )ϵ + Qϵ (e − 1). When Q is small, standard
                                                                      intractable. Rather than working in the space of datasets,
composition may yield a smaller privacy loss than advanced
                                                                      we introduce the concept of valid parameter-space bounds,
composition. In our experiments, we choose the composi-
                                                                      which enables efficient certification of the above optimiza-
tion theorem that results in the smallest privacy loss.
                                                                      tion problem.
                                                                      Definition 4.3 (Valid Parameter-Space Bounds). Let f be
4. Methodology and Computations                                       a model trained on a dataset D via a training algorithm M
In this section, we outline a novel framework, termed Ab-             with parameter initialization θ′ . A domain T k ⊆ Θ is said
stract Gradient Training (AGT), for bounding the sensitivity          to be a valid parameter-space bound at a distance k if and
of predictions made by a trained machine learning model.              only if: M (f, θ′ , D′ ) ∈ T k for all D′ : d(D, D′ ) ≤ k.
Proofs of all theorems are given in Appendix D. In particu-
                                                                      This definition requires that the parameters obtained by
lar, AGT uses reachability analysis of the training process
                                                                      training on a dataset D′ , located at a distance ≤ k from
to certify the following property:
                                                                      D, must lie within the set T k . However, the converse does
Definition 4.1 (Prediction Stability). Let f be a machine             not hold, as T k may over-approximate the true reachable
learning model trained on a dataset D and queried at a                parameter space.
point x. The prediction fx (D) is said to be stable at a
                                                                      Using this definition we can shift the certification from rely-
distance k if ∥fx (D) − fx (D′ )∥1 = 0 for all datasets D′
                                                                      ing on computations over the set of all perturbed datasets to
with d(D, D′ ) ≤ k.
                                                                      being over an (over-approximated) parameter-space domain
Intuitively, this means that adding or removing up to k               T k . In particular we have:
entries in the training dataset cannot change the outcome of          Lemma 4.4. For any valid parameter-space bounds T k sat-
the prediction at the point x. Any distance k for which a             isfying Definition 4.3, proving that ∀θ ∈ T k , ∥f θ (x) −
                                                                               ′
prediction is stable implies the following result.                    f M (f,θ ,D) (x)∥1 = 0 suffices as proof that ∀D′ :
                                                                                                ′  ′               ′
                                                                      d(D, D′ ) ≤ k, ∥f M (f,θ ,D ) (x) − f M (f,θ ,D) (x)∥1 = 0.
Lemma 4.2. For any k satisfying Definition 4.1, the maxi-
mum local sensitivity at a distance of k − 1 is zero. That is,        While it is infeasible to bound (8) by working in the space of
Ak−1 (fx , D) = 0.                                                    datasets, Lemma 4.4 defines corresponding properties that
                                                                      can be bounded straightforwardly starting with a parameter
In the remainder of this section, we first introduce the notion       set T . Certifying for a given x that f θ (x) is constant for any
of valid parameter space bounds, and show how they can                θ ∈ T is discussed in more detail in Section 4.3.
be used to certify whether a given distance k satisfies Defi-
nition 4.1. We then present an algorithmic framework for              4.2. Computing Valid Parameter-Space Bounds
efficiently computing parameter-space bounds. In Section 5,
we show how these results can be used to improve privacy              This section presents the core of our framework: an algo-
accounting or performance in the private prediction setting.          rithm that can compute valid parameter space bounds for any
                                                                      gradient-based training algorithm2 . We call this algorithm
4.1. Certification of Prediction Stability via Parameter              Abstract Gradient Training and present it in Algorithm 1.
     Space Bounds                                                     We start by introducing two assumptions. First, for expo-
Determining whether a prediction from a general machine               sitional purposes, we assume that parameter bounds T k
learning model satisfies Definition 4.1 is a non-trivial task         take the form of an interval: [θL , θU ] s.t. ∀i, [θL ]i ≤ [θU ]i .
and may be computationally intractable for many classes               This can be relaxed to linear constraints for more expressive
of models. Instead, our focus is on soundly answering the             parameter bounds at the cost of increased computational
question “Is the prediction fx (D) stable at a distance k?”.          complexity. Second, we assume that the parameter initial-
Importantly, this approach allows us only to certify that             ization θ′ and data ordering are both arbitrary, but fixed. The
the property holds for a given k; it does not enable us to               2
                                                                           Here we present AGT only for stochastic gradient descent, but
conclude that the property fails to hold when certification is        our framework is applicable to other first-order training procedures,
not possible.                                                         such as those based on momentum.

                                                                  4
                                          Certification for Differentially Private Prediction

Algorithm 1 A BSTRACT G RADIENT T RAINING FOR C OMPUTING VALID PARAMETER -S PACE B OUNDS
 1: input: f - model, θ′ - init. params., D - dataset, E - epochs, α - learning rate, k - # of additions/removals, γ - clipping parameter.
 2: output: θ - nominal SGD parameter, [θL , θU ] - valid parameter space bound for up to k additions/removals.
 3: θ ← θ′ ; [θL , θU ] ← [θ′ , θ′ ]                                                   // Initialize nominal parameter and interval bounds.
 4: for E-many epochs do
 5: for each batch B ⊂ D do
                    1    X
                                Clipγ ∇θ L f θ (x), y
                                                     
 6:      ∆θ ←                                                                               // Compute the nominal SGD parameter update.
                  |B|
                     (x,y)∈B
 7:      θ ← θ −α∆θ                                                                                    // Update the nominal parameter.
                   1
                     X      h               i                             
                                     θ̃
 8:      ∆Θ ←                                      e B) ≤ k, θ̃ ∈ [θL , θU ]
                        Clipγ ∇θ̃ L f (x̃), ỹ | d(B,                                               // Define the set of descent directions.
                 |B|
                   e                                                         
                        (x̃,ỹ)∈B
                                e
 9:     Compute ∆θL , ∆θU s.t. ∆θL ⪯ ∆θ ⪯ ∆θU             ∀∆θ ∈ ∆Θ                  // Compute bounds on the possible descent directions.
10:      θL ← θL − α∆θU ; θU ← θU − α∆θL                                                     // Update the reachable parameter interval.
11:   end for
12: end for
13: return θ, [θL , θU ]



latter assumption on data ordering is purely an expositional            Theorem 4.6 (Bounding the descent direction). Given a
                                                                                                              b
convenience that is relaxed in Appendix D.3.
                                                                                                 
                                                                        nominal batch B = x(i) , y (i) i=1 with batch size b, a
Algorithm 1 proceeds by soundly bounding the effect of                  parameter set [θL , θU ] and clipping level γ, the parameter
the worst-case removals and/or additions for each batch en-             update vector
countered during training. We therefore have the following                        1        X                 h                         i
theorem, which is proved in Appendix D:                                   ∆θ =                          Clipγ ∇θ L f θ (x̃(i) ), ỹ (i)
                                                                                 |B|
                                                                                  e
                                                                                     (x̃(i) ,ỹ(i) )∈Be
Theorem 4.5. Given a model f , dataset D, arbitrary but
fixed initialization, θ′ , bound on the number of added or              is bounded element-wise by
removed individuals, k, and learning hyper-parameters in-                                                             
cluding: batch size b, number of epochs E, and learning                                 1          n ob
                                                                                                     (i)
                                                                                ∆θL =       SEMin δL            − kγ1d
rate α, Algorithm 1 returns valid parameter-space bounds                                b     b−k          i=1
on the stochastic gradient training algorithm, M , that sat-                            1
                                                                                                  n      o b
                                                                                                                       
                                                                                                      (i)
isfy Definition 4.3.                                                            ∆θU =       SEMax δU            + kγ1d
                                                                                        b     b−k           i=1

We note that the clipping procedure Clipγ in Algorithm 1                for any perturbed batch B    e derived from B by adding up
is a truncation operator that clamps all elements of its input          to k and removing up to k data-points. The terms δL , δU
                                                                                                                                (i) (i)
to be between −γ and γ, while leaving those within the                  are sound bounds that account for the worst-case effect of
range unchanged. This is distinct from the ℓ2 -norm clipping            additions/removals in any previous iterations. That is, they
typically employed by privacy-preserving mechanisms such                bound the gradient given any parameter θ⋆ ∈ [θL , θU ] in
as DP-SGD (Abadi et al., 2016). In this work, we chose                                           (i)             (i)
                                                                        the reachable set, i.e. δL ≤ δ (i) ≤ δU for all
to use the truncation operator as it is more amenable to
bound-propagation.                                                               n      h                       i                o
                                                                          δ (i) ∈ Clipγ ∇θ̃ L f θ̃ (x(i) ), y (i) | θ̃ ∈ [θL , θU ] .
The set ∆Θ = {· | d(B,    e B) ≤ k, θ̃ ∈ [θL , θU ]} (line 8)
represents the set of all possible descent directions that can
be reached at this iteration under up to k additions or re-             The operations SEMaxa and SEMina in the above the-
movals from each batch. In particular, θ̃ accounts for any              orem correspond to taking the sum of the element-wise
k removals from and/or additions to each previously seen                top/bottom-a elements. These operations are discussed in
batch (via valid parameter-space bounds), while B     e repre-          more detail in Appendix D.4.
sents the effect of k removals/additions from the current               Computing Gradient Bounds. Many of the computations
batch. Computing this set exactly is not tractable, so we               in Algorithm 1 are typical computations performed during
instead compute an element-wise, over-approximated, lower               stochastic gradient descent. However, lines 8-9 involve
and upper bound ∆θL , ∆θU using the procedure in Theo-                  bounding non-convex optimization problems. In particular,
rem 4.6. These bounds are then combined with θL , θU using              bounding the descent directions using Theorem 4.6 requires
sound interval arithmetic to produce a new valid parameter-                       (i) (i)
                                                                        bounds δL , δU on the gradients of a machine learning
space bound.                                                            model f (x, θ) w.r.t. perturbations about θ. We note that

                                                                    5
                                        Certification for Differentially Private Prediction

solving problems of the form min {· | x ∈ [xL , xU ]} has              times that of standard approaches.
been well-studied in the context of adversarial robustness
                                                                       Limitations. Algorithm 1 can derive valid bounds for the
certification (Huchette et al., 2023; Tsay et al., 2021) with
                                                                       parameter space of any gradient-based training algorithm.
extensions that are applicable to our setting (Gowal et al.,
                                                                       However, the tightness of these bounds depends heavily
2018; Wicker et al., 2020; 2022). All details of computing
                                                                       on the specific architecture, hyperparameters, and training
gradient bounds for neural network models using IBP can be
                                                                       process employed. In particular, the bound propagation
found in Appendix B. This approach can also be generalized
                                                                       between consecutive iterations assumes the worst-case ad-
to cover non-neural network machine learning models.
                                                                       ditions and removals at every parameter index. As a result,
                                                                       achieving meaningful guarantees with this method may ne-
4.3. Algorithm Analysis and Discussion                                 cessitate training with larger batch sizes or fewer epochs
Certification of Prediction Stability. Lemma 4.4 estab-                than usual. Moreover, some loss functions, such as multi-
lishes that once we have our parameter bounds (i.e., from Al-          class cross-entropy, result in especially loose interval re-
gorithm 1), we can bound (8) and therefore decide whether              laxations. Consequently, AGT tends to provide weaker
the given prediction is stable at a distance k. This is done           guarantees for multi-class problems compared to binary
by propagating the input x through the neural network with             classification tasks. We anticipate that future developments
the interval from Algorithm 1 as the networks parameters               in tighter bound-propagation methods, such as those lever-
(e.g., as in Wicker et al. (2020)), which produces an interval         aging more expressive abstract domains, could address these
over output space. It is then straightforward to compute               limitations.
the largest distance between elements of this output inter-
val, or, in the case of classification, the largest change in          5. Improved Private Prediction using Smooth
the prediction, e.g., if the prediction changes (Gowal et al.,            Sensitivity
2018). Following Lemma 4.4, these computations produce
an upper bound on the optimization problem (8), which we               The previous section outlined a framework for certifying
will use for tighter privacy analysis in subsequent sections.          whether a prediction from a model f at a point x is stable
                                                                       for up to k removals or additions to the training dataset. In
Computing the Maximum Stable Distance. As we will
                                                                       this section, we outline how these certificates can be used to
discuss below, finding any k for which Definition 4.1 holds
                                                                       bound the smooth sensitivity, and improve the performance
suffices to improve the performance of private prediction
                                                                       of private prediction mechanisms. Proofs of all theorems
mechanisms. However, the tightest privacy guarantees are
                                                                       are given in Appendix D.
obtained by computing the largest distance k satisfying
Definition 4.1. Therefore, it seems that one must run Algo-
rithm 1 for all k ∈ {1, . . . , |D|}, which incurs a significant       5.1. Prediction Sensitivity using Smooth Sensitivity
computational cost. In practice, however, we find that the             In this section, we describe how to use certificates of pre-
majority of the privacy benefits can be achieved with fewer            diction stability to upper-bound the smooth sensitivity of
than 10 runs of Algorithm 1. We explore this relationship              a binary classifier f . In particular, we have the following
further in Appendix C.                                                 result:
Computational Complexity. To analyze the time complex-                 Theorem 5.1. Let fx (D) denote the prediction of a binary
ity of our algorithm in comparison to standard stochastic gra-         classifier trained on a dataset D at a point x. If fx (D) is
dient descent (SGD), we focus on the operations described              stable at a distance of k ′ , then the following provides an
                                                             (i)       upper bound on the β-smooth sensitivity:
in Theorem 4.6. First, computing the gradient bounds δL
       (i)                                                                                                                   ′
and δU for each sample i in the batch using interval propa-                  SSβ (fx , D) = max e−βk Ak (fx , D) ≤ e−βk           (9)
gation requires at most four times the cost of regular training                               k∈N+

(see Appendix B). Once the bounds are computed, selecting
the top or bottom k gradient bounds has a time complexity              To establish this result, we observe that Ak (fx , D) is a
of O(b), where b is the batch size. Thus, the time complex-            monotonically increasing function of k and assumes values
ity for a single run of Algorithm 1 is a constant factor times         only in {0, 1}, meaning it behaves as a step function with
the complexity of standard training.                                   respect to k. Since the exponential term e−βk is monoton-
                                                                       ically decreasing, their product achieves its maximum at
Empirically, we observe that a single run of AGT incurs                k ⋆ = min{k : Ak (fx , D) = 1}. By Lemma 4.2, if k ′ is sta-
a wall-clock time that is 2–4 times that of regular training.          ble, then k ⋆ > k ′ − 1. Consequently, the smooth sensitivity
As noted above, fewer than 10 runs of Algorithm 1 are                  is bounded above by exp(−βk ′ ). For the detailed proof of
generally sufficient to achieve most of the privacy benefits,          Theorem 5.1, refer to Appendix D.
leading to a total training and inference penalty of 20–40
                                                                       Theorem 5.1 is trivially satisfied when k ′ = 0, resulting

                                                                   6
                                                     Certification for Differentially Private Prediction

                                      Blobs                                        OctMNIST                                                     IMDB
             1.0
                                                              0.8                                                      0.7
  Accuracy


             0.8
                                                                                                                       0.6                         Non-private
                                                              0.6                                                                                  Pred. Sens. (GS)
             0.6                                                                                                                                   Pred. Sens. (SS)
                                                                                                                       0.5
                   10 −2      10 −1           10 0     10 1         10 −2        10 −1           10 0        10 1            10 −2      10 −1          10 0      10 1
                                                                            Privacy Loss per Query (²)
                    Figure 2. Private prediction accuracy for a single model using global sensitivity vs our smooth sensitivity bounds.


in SSβ (fx , D) = GS(fx ). However, significantly tighter                                    of the dataset D. Let gx denote the (non-private) ensemble
bounds on the smooth sensitivity can be achieved for any                                     aggregation function as defined in (11), queried at a point
prediction certified as stable at a distance k ′ using Algo-                                 x. If the prediction of each classifier f (i) (x) is stable at a
rithm 1. These tighter bounds can then be leveraged to                                       distance of k (i) , then:
calibrate noise and release predictions through the follow-
ing response mechanisms.                                                                                                AK−1 (gx , D) = 0,                            (12)
                                                                                             where K = i∈Sn k (i) + n − 1 and Sn is the set of in-
                                                                                                             P
Corollary 5.2. Suppose a prediction fx (D) is stable at a
distance of k ′ . Then, the following response mechanism                                     dices corresponding to the n classifiers
                                                                                                                             l                 m smallest
                                                                                                                                        with the
satisfies (ϵ, 0)-differential privacy:                                                                         (i)             |n1 (x)−n0 (x)|
                                                                                             stable distances k . Here, n =           2         is half the
                        (                                                                    distance between the vote counts.
                         1 if fx (D) + z > 0.5,
              R(x) =                                 (10)
                         0 otherwise,                                                        Combining Corollary 5.2 and Theorem 5.3, we find that we
                                                                                             can privatize the ensemble response function (11) adding
where z ∼ Cauchy 6 exp(−ϵk ′ /6)/ϵ .
                                  
                                                                                             noise drawn from a Cauchy(6 exp(−ϵK/6)/ϵ) distribu-
                                                                                             tion.
When k ′ ≫ 1, Corollary 5.2 enables a substantial reduction
in the noise added to predictions compared to mechanisms
that rely on global sensitivity.

5.2. Subsample and Aggregate using Smooth Sensitivity
In this section, we propose a private aggregation mechanism
using the smooth sensitivity. As before, we first partition the
dataset into T disjoint subsets and train a binary classifier                                           fθ
f (i) on each. At any query point x, we compute the (non-
private) ensemble voting response g, defined as:
                                                                                                               10 −6            10 −4   10 −2      10 0
                                                                                                                    Smooth Sensitivity Bound
                       (
                        1 if n1 (x) ≥ n0 (x)
               g(x) =                                      (11)                              Figure 3. We use the “blobs” dataset to visualize our smooth sensi-
                        0 otherwise
                                                                                             tivity bounds for ϵ = 1.0. The red line shows the model’s decision
where nj (x) = |{i : i ∈ [T ], f (i) (x) = j}| are the label                                 boundary.
counts for a class j.
Consider the stable distancelof the responsem g. In particular,                              6. Experiments
we note that at least n = |n1 (x)−n  2
                                       0 (x)|
                                              votes must be
                                                                                             In this section, we present experimental validation of our
flipped to cause the overall ensemble response g to change.                                  proposed private prediction mechanisms. Comprehensive
Suppose that each prediction f (i) (x) is stable up to some                                  details on datasets, models, training configurations, and
distance k (i) . Then, the number of entries in the original                                 additional results can be found in Appendix E. We evaluate
dataset D that must be changed to cause n votes to flip                                      our approach across three binary classification tasks:
is at least the sum of the n smallest stable distances k (i) .                               Blobs – Training a logistic regression on a “blobs” dataset
Formally, we have the following result:                                                      generated from isotropic Gaussian distributions.
Theorem 5.3. Consider an ensemble comprising T classi-                                       Medical Imaging – Fine-tuning the final dense layers of
fiers f (i) , i = 1, . . . , T , each trained on a disjoint subset                           a convolutional neural network to distinguish an unseen

                                                                                         7
                                                                     Certification for Differentially Private Prediction

                                                    Blobs                                           OctMNIST                                                IMDB
                        1.00
                                                                                                                                        0.70
             ² = 1.00
                                                                               0.80                                                                             Non-private
                        0.75                                                                                                                                    Subs. & Agg. (GS)
                                                                                                                                        0.60                    Subs. & Agg. (SS)
                                                                               0.60
  Accuracy




                        1.00
                                                                                                                                        0.70
             ² = 0.10




                                                                               0.75
                                                                                                                                        0.60
                        0.50                                                   0.50                                                     0.50
                               0       10          20   30          40    50          0    10           20          30    40      50           0   10      20     30     40     50
                                                                                                 Ensemble Size (T)
                                   Figure 4. Private prediction accuracy as a function of ensemble size using global vs smooth sensitivity.

                                        Blobs                                     OctMNIST                                             IMDB
              1.0
                                                                                                                    0.7                                         DP-SGD
                                                                    0.8
  Accuracy




                                                                                                                                                                Subs. & Agg. (GS)
              0.8
                                                                                                                                                                Pred. Sens. (GS)
                                                                                                                    0.6
                                                                    0.6                                                                                         Subs. & Agg. (SS)
              0.6
                                                                                                                                                                Pred. Sens. (SS)
                                                                                                                    0.5
                        10 1                10 2             10 3              10 1       10 2               10 3              10 1        10 2     10 3
                                                                           Inference Budget (Q)
Figure 5. Private accuracy as a function of number of queries (Q) for a total privacy budget of (ϵ, δ) = (10.0, 10−5 ). An ensemble size of
T = 25 is used for both subsample and aggregate mechanisms.


diseased class in retinal OCT images.                                                                    argmax mechanism. However, as the ensemble size grows,
Sentiment Classification – Training a neural network to                                                  the amount of data available to each member decreases, re-
perform sentiment analysis using GPT-2 embeddings of the                                                 sulting in Algorithm 1 yielding relatively weaker bounds
IMDB movie reviews dataset.                                                                              for each individual member. This effect is somewhat mit-
                                                                                                         igated by the summation of certified stable distances in
Smooth Sensitivity Visualization. In Figure 3 we plot                                                    Theorem 5.3, causing our method’s performance to remain
our bounds on smooth sensitivity for two different datasets:                                             relatively stable or degrade only gradually as ensemble size
one where the data are easily separable (left panel) and one                                             increases. Future work could address this limitation by
where the data are overlapping (right panel). Given that                                                 incorporating tighter bound propagation procedures or by
our bounds are dataset specific, we find that our bounds on                                              proposing a mechanism that takes advantage of our bounds
smooth sensitivity generally suffer when the data are non-                                               only when they are tighter than global sensitivity.
separable or when little data are available. We will observe                                             Comparison with Private Training. Finally, we com-
these two factors throughout our experimental evaluation.                                                pare the accuracy of our private prediction mechanisms
Tightening Private Prediction in a Single Model. Fig-                                                    to differentially private training (DP-SGD). Previous re-
ure 2 shows the performance of the prediction sensitivity                                                search has found that differentially private training generally
mechanism using both global sensitivity and our smooth                                                   achieves a better privacy-utility trade-off than private pre-
sensitivity bounds. We observe that our bounds can maintain                                              diction (van der Maaten & Hannun, 2020). Consequently,
noise-free accuracy levels for a privacy budget ϵ up to an                                               private prediction is often reserved for Student-Teacher set-
order of magnitude lower than the accuracy obtained using                                                tings, where only a limited number of queries are made to
global sensitivity. The effect is most pronounced when the                                               the Teacher model to conserve the privacy budget (Paper-
data are separable (“Blobs”) or when the dataset contains a                                              not et al., 2016). This trend is evident in Figure 5, which
large number of training examples (“IMDB”).                                                              depicts model accuracy as a function of inference budget
                                                                                                         for a fixed privacy loss. Private prediction performs well
Tightening Private Prediction in Ensembles. We illus-                                                    for a small number of queries and outperforms private train-
trate the performance of our proposed private aggregation                                                ing on OctMNIST and IMDB for fewer than 100 queries,
mechanism in Figure 4. The plots show private accuracy                                                   but deteriorates rapidly as the number of queries increases.
for ϵ = 1.0 (top) and ϵ = 0.1 (bottom) as a function of                                                  In the single-model setting, our smooth sensitivity bounds
ensemble size. For smaller ensembles (T ≤ 20), our mech-                                                 offer significant improvements over global sensitivity and
anism performs comparably to, or better than, the noisy

                                                                                                    8
                                       Certification for Differentially Private Prediction

using them increases the maximum number by an order                  proach to other privacy settings (Jordon et al., 2018; Yu
of magnitude compared with any other method on IMDB.                 et al., 2022). Additionally, we highlight that advances in
Nonetheless, the highest accuracy is typically achieved with         aggregation mechanisms or in improved certification tech-
large ensembles using global sensitivity.                            niques may lead to even greater improvements when used
                                                                     in the framework we present.
Use In Teacher Models. While we focus on the setting of
issuing private predictions, our tighter bounds may be used
in the semi-supervised private learning setting proposed in          Impact Statement
PATE (Papernot et al., 2016). To understand our approach
                                                                     This paper presents work whose goal is to advance the field
in this setting we re-run the experimental setup from Fig-
                                                                     of Machine Learning. There are many potential societal
ure 5, using a privacy budget of (ϵ, δ) = (10, 10−5 ) to label
                                                                     consequences of our work, none which we feel must be
Q = 100 data points held out from the training dataset
                                                                     specifically highlighted here.
(which we assume to be our ”public” unlabeled dataset). We
emphasize that training a student model does fix the privacy
budget and which privacy budget is selected will have a              References
significant effect on the results. Once this is done, result-        Abadi, M., Chu, A., Goodfellow, I., McMahan, H. B.,
ing teacher-generated labels are then used to train a student          Mironov, I., Talwar, K., and Zhang, L. Deep learning
model. Our findings indicate that the student model’s per-            with differential privacy. In Proceedings of the 2016 ACM
formance under each mechanism aligns with the accuracy                SIGSAC Conference on Computer and Communications
levels observed at the corresponding inference budget in Fig-         Security, pp. 308–318, 2016.
ure 5, thus confirming that our bounds are effective in this
setting. We highlight that this preliminary results could be         Bassily, R., Thakkar, O., and Guha Thakurta, A. Model-
strengthened and expanded by considering the combination               agnostic private learning. Advances in Neural Information
of our approach with other tighter accounting approaches               Processing Systems, 31, 2018.
(Papernot et al., 2018; Malek Esmaeili et al., 2021).
                                                                     Bommasani, R., Hudson, D. A., Adeli, E., Altman, R.,
                                                                       Arora, S., von Arx, S., Bernstein, M. S., Bohg, J., Bosse-
Table 1. Performance of different teacher mechanisms across            lut, A., Brunskill, E., et al. On the opportunities and risks
datasets.
                                                                       of foundation models. arXiv preprint arXiv:2108.07258,
                                                                       2021.
 Teacher Mechanism          Blobs    OctMNIST        IMDB
 Single model, GS            82.8        12.7         54.4           Bourtoule, L., Chandrasekaran, V., Choquette-Choo, C. A.,
 Single model, SS            99.8        18.7         73.5             Jia, H., Travers, A., Zhang, B., Lie, D., and Papernot,
 Subsample & agg., GS        99.5        14.1         73.0             N. Machine unlearning. In 2021 IEEE Symposium on
 Subsample & agg., SS        98.1        19.8         71.7             Security and Privacy (SP), pp. 141–159. IEEE, 2021.
 DP-SGD                       1.0        81.2         70.5
                                                                     Carlini, N., Chien, S., Nasr, M., Song, S., Terzis, A., and
                                                                       Tramer, F. Membership inference attacks from first prin-
                                                                       ciples. In 2022 IEEE Symposium on Security and Privacy
7. Conclusion                                                          (SP), pp. 1897–1914. IEEE, 2022.
In this work, we propose a framework for computing valid
                                                                     Carlini, N., Ippolito, D., Jagielski, M., Lee, K., Tramer, F.,
bounds on a machine learning model’s parameters under
                                                                       and Zhang, C. Quantifying memorization across neural
the addition or removal of up to k data points. By certify-
                                                                       language models. In The Eleventh International Confer-
ing prediction stability, we leverage these parameter-space
                                                                       ence on Learning Representations, 2023.
bounds to derive upper bounds on the smooth sensitivity
of model predictions. Our results demonstrate the use of             Chadha, K., Jagielski, M., Papernot, N., Choquette-Choo,
our bounds in improving the performance of private predic-             C., and Nasr, M. Auditing private prediction. arXiv
tion. This framework represents a foundational step towards            preprint arXiv:2402.09403, 2024.
developing new certification-based techniques for privacy
preserving machine learning.                                         Dwork, C. and Feldman, V. Privacy-preserving predic-
                                                                      tion. In Conference On Learning Theory, pp. 1693–1702.
Future Directions. While in this work we establish the                PMLR, 2018.
use of certification to improve privacy analysis, there are
many important future directions to explore including the            Dwork, C., McSherry, F., Nissim, K., and Smith, A. Cal-
combination of certification with tighter aggregation mech-           ibrating noise to sensitivity in private data analysis. In
anisms (Papernot et al., 2018) or the adoption of this ap-            Theory of Cryptography: Third Theory of Cryptography

                                                                 9
                                       Certification for Differentially Private Prediction

  Conference, TCC 2006, New York, NY, USA, March 4-7,                   accuracy constrained erm. Advances in Neural Informa-
  2006. Proceedings 3, pp. 265–284. Springer, 2006.                     tion Processing Systems, 30, 2017.

Dwork, C., Roth, A., et al. The algorithmic foundations of            Liu, A., Shen, X., Li, Z., Liu, G., Xu, J., Zhao, L., Zheng,
 differential privacy. Foundations and Trends® in Theo-                 K., and Shang, S. Differential private collaborative web
 retical Computer Science, 9(3–4):211–407, 2014.                        services qos prediction. World Wide Web, 22:2697–2720,
                                                                        2019.
Fioretto, F., Tran, C., Van Hentenryck, P., and Zhu, K. Dif-
  ferential privacy and fairness in decisions and learning            Liu, X., Kong, W., and Oh, S. Differential privacy and
  tasks: A survey. arXiv preprint arXiv:2202.08187, 2022.               robust statistics in high dimensions. In Conference On
                                                                        Learning Theory, pp. 1167–1246. PMLR, 2022.
Gadotti, A., Rocher, L., Houssiau, F., Creţu, A.-M., and
  de Montjoye, Y.-A. Anonymization: The imperfect sci-                Maas, A. L., Daly, R. E., Pham, P. T., Huang, D., Ng,
  ence of using data while preserving privacy. Science                 A. Y., and Potts, C. Learning word vectors for sen-
 Advances, 10(29):eadn7053, 2024.                                      timent analysis. In Proceedings of the 49th Annual
                                                                       Meeting of the Association for Computational Linguis-
Gehr, T., Mirman, M., Drachsler-Cohen, D., Tsankov, P.,
                                                                       tics: Human Language Technologies, pp. 142–150, Port-
  Chaudhuri, S., and Vechev, M. Ai2: Safety and robustness
                                                                       land, Oregon, USA, June 2011. Association for Com-
  certification of neural networks with abstract interpreta-
                                                                       putational Linguistics. URL http://www.aclweb.
  tion. In 2018 IEEE Symposium on Security and Privacy
                                                                       org/anthology/P11-1015.
 (SP), pp. 3–18. IEEE, 2018.
                                                                      Malek Esmaeili, M., Mironov, I., Prasad, K., Shilov, I., and
Gowal, S., Dvijotham, K., Stanforth, R., Bunel, R., Qin,
                                                                       Tramer, F. Antipodes of label differential privacy: Pate
  C., Uesato, J., Arandjelovic, R., Mann, T., and Kohli,
                                                                       and alibi. Advances in Neural Information Processing
  P. On the effectiveness of interval bound propagation
                                                                       Systems, 34:6934–6945, 2021.
  for training verifiably robust models. arXiv preprint
  arXiv:1810.12715, 2018.                                             Müller, M. N., Eckert, F., Fischer, M., and Vechev, M. Certi-
Guo, C., Goldstein, T., Hannun, A., and Van Der Maaten,                 fied training: Small boxes are all you need. arXiv preprint
  L. Certified data removal from machine learning models.               arXiv:2210.04871, 2022.
  arXiv preprint arXiv:1911.03030, 2019.                              Nandi, A. and Bassily, R. Privately answering classifica-
Huang, Y. and Canonne, C. L. Tight bounds for ma-                       tion queries in the agnostic pac model. In Algorithmic
  chine unlearning via differential privacy. arXiv preprint             Learning Theory, pp. 687–703. PMLR, 2020.
  arXiv:2309.00886, 2023.
                                                                      Neel, S., Roth, A., and Sharifi-Malvajerdi, S. Descent-to-
Huchette, J., Muñoz, G., Serra, T., and Tsay, C. When                  delete: Gradient-based methods for machine unlearning.
  deep learning meets polyhedral theory: A survey. arXiv                In Algorithmic Learning Theory, pp. 931–962. PMLR,
  preprint arXiv:2305.00241, 2023.                                      2021.

Ji, Z., Lipton, Z. C., and Elkan, C. Differential privacy and         Nguyen, T. T., Huynh, T. T., Nguyen, P. L., Liew, A. W.-C.,
   machine learning: a survey and review. arXiv preprint               Yin, H., and Nguyen, Q. V. H. A survey of machine
   arXiv:1412.7584, 2014.                                               unlearning. arXiv preprint arXiv:2209.02299, 2022.

Jordon, J., Yoon, J., and Van Der Schaar, M. PATE-GAN:                Nissim, K., Raskhodnikova, S., and Smith, A. Smooth
  generating synthetic data with differential privacy guar-             sensitivity and sampling in private data analysis. In Pro-
  antees. In International Conference on Learning Repre-                ceedings of the 39th Annual ACM Symposium on Theory
  sentations, 2018.                                                     of Computing, pp. 75–84, 2007.

Katz, G., Barrett, C., Dill, D. L., Julian, K., and Kochender-        Papernot, N., Abadi, M., Erlingsson, U., Goodfellow, I.,
  fer, M. J. Reluplex: An efficient SMT solver for verifying            and Talwar, K. Semi-supervised knowledge transfer for
  deep neural networks. In Computer Aided Verification:                 deep learning from private training data. arXiv preprint
  29th International Conference, CAV 2017, Heidelberg,                  arXiv:1610.05755, 2016.
  Germany, July 24-28, 2017, Proceedings, Part I 30, pp.
  97–117. Springer, 2017.                                             Papernot, N., Song, S., Mironov, I., Raghunathan, A., Tal-
                                                                        war, K., and Erlingsson, U. Scalable private learning with
Ligett, K., Neel, S., Roth, A., Waggoner, B., and Wu, S. Z.             pate. In International Conference on Learning Represen-
  Accuracy first: Selecting a differential privacy level for            tations, 2018.

                                                                 10
                                      Certification for Differentially Private Prediction

Radford, A., Wu, J., Child, R., Luan, D., Amodei, D.,                Yousefpour, A., Shilov, I., Sablayrolles, A., Testuggine, D.,
  Sutskever, I., et al. Language models are unsupervised               Prasad, K., Malek, M., Nguyen, J., Ghosh, S., Bharadwaj,
  multitask learners. OpenAI blog, 1(8):9, 2019.                       A., Zhao, J., Cormode, G., and Mironov, I. Opacus: User-
                                                                       friendly differential privacy library in PyTorch. arXiv
Rump, S. M. Fast and parallel interval arithmetic. BIT
                                                                       preprint arXiv:2109.12298, 2021.
  Numerical Mathematics, 39:534–554, 1999.
                                                                     Yu, D., Kamath, G., Kulkarni, J., Liu, T.-Y., Yin, J., and
Sekhari, A., Acharya, J., Kamath, G., and Suresh, A. T. Re-
                                                                       Zhang, H. Individual privacy accounting for differen-
  member what you want to forget: Algorithms for machine
                                                                       tially private stochastic gradient descent. arXiv preprint
  unlearning. Advances in Neural Information Processing
                                                                       arXiv:2206.02617, 2022.
  Systems, 34:18075–18086, 2021.
Song, C., Ristenpart, T., and Shmatikov, V. Machine learn-
  ing models that remember too much. In Proceedings of
  the 2017 ACM SIGSAC Conference on Computer and
  Communications Security, pp. 587–601, 2017.
Sosnin, P. and Tsay, C. Scaling mixed-integer program-
  ming for certification of neural network controllers using
  bounds tightening. arXiv preprint arXiv:2403.17874,
  2024.
Tsay, C., Kronqvist, J., Thebelt, A., and Misener, R.
  Partition-based formulations for mixed-integer optimiza-
  tion of trained ReLU neural networks. Advances in
  Neural Information Processing Systems, 34:3068–3080,
  2021.
van der Maaten, L. and Hannun, A. The trade-offs of private
  prediction. arXiv preprint arXiv:2007.05089, 2020.
Wicker, M., Huang, X., and Kwiatkowska, M. Feature-
 guided black-box safety testing of deep neural networks.
 In Tools and Algorithms for the Construction and Anal-
 ysis of Systems: 24th International Conference, TACAS
 2018, Held as Part of the European Joint Conferences on
 Theory and Practice of Software, ETAPS 2018, Thessa-
 loniki, Greece, April 14-20, 2018, Proceedings, Part I 24,
 pp. 408–426. Springer, 2018.
Wicker, M., Laurenti, L., Patane, A., and Kwiatkowska,
 M. Probabilistic safety for Bayesian neural networks. In
 Conference on Uncertainty in Artificial Intelligence, pp.
 1198–1207. PMLR, 2020.
Wicker, M., Heo, J., Costabello, L., and Weller, A. Ro-
 bust explanation constraints for neural networks. arXiv
 preprint arXiv:2212.08507, 2022.
Xu, K., Shi, Z., Zhang, H., Wang, Y., Chang, K., Huang,
  M., Kailkhura, B., Lin, X., and Hsieh, C. Automatic
  perturbation analysis for scalable certified robustness and
  beyond. Advances in Neural Information Processing
 Systems, 2020.
Yang, J., Shi, R., and Ni, B. MedMNIST classification de-
  cathlon: A lightweight AutoML benchmark for medical
  image analysis. In IEEE 18th International Symposium
  on Biomedical Imaging (ISBI), pp. 191–195, 2021.

                                                                11
                                       Certification for Differentially Private Prediction

A. Related Works
DP has enabled the adoption of privacy-preserving machine learning in a variety of industries (Dwork et al., 2014), yet
post-hoc audits have revealed a gap between attacker strength and guarantees offered by DP (Carlini et al., 2022; Yu et al.,
2022). As a result, several works seek more specific, and thus sharper, privacy guarantees. For example, Nissim et al. (2007)
and Liu et al. (2022) use notions of local sensitivity to produce tighter bounds. In (Ligett et al., 2017), the authors privately
search the space of privacy-preserving parameters to tune performance on a given dataset, while in (Yu et al., 2022) the
authors propose individual differential privacy, which can compute tighter privacy bounds for given individuals in the dataset.
Unlike this work, these rely solely on private training e.g., DP-SGD (Abadi et al., 2016).
On the other hand, DP can additionally provide bounds in the setting of machine unlearning (Sekhari et al., 2021; Huang &
Canonne, 2023). In such cases, it is more likely that guarantees are not tight due to the assumption that individuals can be
both added and removed, rather than just removed (Huang & Canonne, 2023). The gold standard for unlearning (which
incurs no error) is retraining. Yet, keeping the data on hand poses a privacy concern (Dwork et al., 2014), and retraining can
be prohibitively costly (Nguyen et al., 2022). If one admits the privacy cost of storing and tracking all data, then retraining
costs can be limited (Bourtoule et al., 2021). Existing unlearning without retraining are either restricted to linear (Guo et al.,
2019) or strongly convex models (Neel et al., 2021).
The privacy setting most similar to the one adopted in this paper is the differential private prediction setting where we are
interested in only privatizing the output predictions of a model (Liu et al., 2019). The PATE method may be interpreted
in this light (Papernot et al., 2016), but largely this setting has been investigated in the context of learning theory (Bassily
et al., 2018; Nandi & Bassily, 2020). In practice, it is found that training-time privacy such as DP-SGD is preferable to
prediction-time privacy (van der Maaten & Hannun, 2020). This work can be viewed as proving tighter bounds on the
private prediction setting, which allows private prediction to display some benefits over training-time privacy.
The approaches that are computationally similar to the framework established in this paper come from adversarial robustness
certification (Katz et al., 2017; Gehr et al., 2018) or robust training (Gowal et al., 2018; Müller et al., 2022). These
approaches typically utilize methods from formal methods (Katz et al., 2017; Wicker et al., 2018) or optimization (Huchette
et al., 2023; Tsay et al., 2021). Most related to this work are strategies that provide guarantees over varying both model
inputs and parameters (Wicker et al., 2020; Xu et al., 2020), as well as work on robust explanations that bound the input
gradients of a model (Wicker et al., 2022). Despite some methodological relationships, none of the above methods can apply
to the general training setting without the proposed framework and are unable to make statements about differential privacy.

B. Interval Bound Propagation
In this section, we provide details of the interval bound propagation procedure required to compute the gradient bounds
required by Theorem 4.6 in the context of neural network models. We define a neural network model f θ : Rn0 → RnK with
                               K
parameters θ := (W (i) , b(i) ) i=1 to be a function composed of K layers:

                                                                                          
                                        ẑ (k) = W (k) z (k−1) + b(k) ,   z (k) = σ ẑ (k)



where z (0) := x, f θ (x) := ẑ (K) , and σ is the activation function, which we take to be ReLU.
The standard back-propagation procedure for computing the gradients of the loss L w.r.t. the parameters of the neural
network is given by


                                   ∂L               ⊤ ∂L         ∂L                      ∂L
                                                 (k)                                 (k)
                                          =   W                 ,          = H    ẑ       ◦ (k)
                                 ∂z (k−1)              ∂ ẑ (k)   ∂ ẑ (k)                  ∂z
                                    ∂L       ∂L             ⊤       ∂L       ∂L
                                      (k)
                                          = (k) z (k−1) ,                   = (k)
                                  ∂W        ∂ ẑ                    ∂b(k)     ∂ ẑ


where H(·) is the Heaviside function, and ◦ is the Hadamard product.

                                                                12
                                       Certification for Differentially Private Prediction

Interval Arithmetic Let us denote intervals over matrices as A := [AL , AU ] ⊆ Rn×m such that for all A ∈ A, AL ≤
A ≤ AU . We define the following interval matrix arithmetic operations:

                                            Addition: A + B ∈ [A ⊕ B] ∀A ∈ A, B ∈ B
                                        Matrix mul.: A × B ∈ [A ⊗ B] ∀A ∈ A, B ∈ B
                                  Elementwise mul.: A ◦ B ∈ [A ⊙ B] ∀A ∈ A, B ∈ B

Each of these operations can be computed using standard interval arithmetic in at most 4× the computational cost of its
non-interval counterpart. For example, interval matrix multiplication can be computed efficiently using Rump’s algorithm
(Rump, 1999). We denote interval vectors as a := [aL , aU ] with analogous operations.
We will now describe the procedure for propagating intervals through the forward and backward passes of a neural network
to compute valid gradient bounds.

Bounding the Forward Pass Given these interval operations, for any input x ∈ x and parameters W (k) ∈ W (k) ,
b(k) ∈ b(k) , k = 1, . . . , K, we can compute intervals
                                                                                        
                                      ẑ (k) = W (k) ⊗ z (k−1) ⊕ b(k) , z (k) = σ ẑ (k)

such that f θ (x) ∈ ẑ (K) . The monotonic activation function σ is applied element-wise to both the lower and upper bound of
its input interval to obtain a valid output interval. Here we consider only neural networks with ReLU activations, although
the interval propagation framework is applicable to many other architectures.

Bounding the Loss Gradient Since we are in a classification setting, we will consider a standard cross entropy loss.
Given the output logits of the neural network, ẑ (K) = f θ (x), the categorical cross entropy loss function is given by
                                                                 X
                                              L ẑ (K) , y = −          yi log pi
                                                                     i

where
                                                                        −1
                                                                      
                                                              (K)   (K) 
                                                      X
                                                pi =   exp ẑj − ẑi
                                                        j


is the output of the softmax function and y is a one-hot encoding of the true label. The gradient of the cross entropy loss L
with respect to ẑ (K) is given by
                                                                 
                                                   ∂L ẑ (K) , y
                                                                   =p−y
                                                      ∂ ẑ (K)
                                                     h          i
                                                        (K) (K)
The output of p = softmax(ẑ (K) ) given any ẑ (K) ∈ ẑL , ẑU   is bounded by

                                                                        −1
                                                      h     i  h      i
                                                         (K)       (K)
                                                 X
                                       [pL ]i =   exp ẑU     − ẑL      ,
                                                                     j          i
                                                    j
                                                                         −1
                                                     h      i  h       i
                                                         (K)        (K)
                                                X
                                       [pL ] = 
                                            i     exp ẑ       − ẑ
                                                                L
                                                                           .
                                                                           U
                                                                     j          i
                                                    j


Therefore, an interval over the gradient of the loss L with respect to ẑ (K) is given by

                                                 ∂L (ẑ, y)
                                                              = [pL − y, pU − y]
                                                    ∂ ẑ
                                                                13
                                                           Certification for Differentially Private Prediction

Bounding the Backward Pass Wicker et al. (2022) use interval arithmetic to bound derivatives of the form ∂L/∂z (k)
and here we extend this to additionally compute bounds on the derivatives w.r.t. the parameters. Specifically, we can
back-propagate ∂L/∂ ẑ (K) (computed above) to obtain

                                                                     ∂L        
                                                                                     (k)
                                                                                         ⊤      ∂L
                                                                     (k−1)
                                                                             =   W          ⊗
                                                                  ∂z                            ∂ ẑ (k)
                                                                      ∂L                       ∂L
                                                                         (k)
                                                                             = H ẑ (k) ⊙
                                                                    ∂ ẑ                        ∂z (k)
                                                                     ∂L          ∂L        
                                                                                               (k−1)
                                                                                                      ⊤
                                                                             =          ⊗    z
                                                                   ∂W (k)      ∂ ẑ (k)
                                                                      ∂L         ∂L
                                                                         (k)
                                                                             =
                                                                    ∂b         ∂ ẑ (k)
where H(·) applies the Heaviside function to both the lower and upper bounds of the interval, and ◦ is the Hadamard product.
The resulting intervals are valid bounds for each partial derivative, that is

                                                                   ∂L       ∂L     ∂L      ∂L
                                                                         ∈       ,      ∈
                                                                  ∂W (k)   ∂W (k) ∂b(k)   ∂b(k)

for all W (k) ∈ W (k) , b(k) ∈ b(k) and k = 1, . . . , K.

C. Bounding the Smooth Sensitivity

                                                     1.00
                                    Test Set Sensitivity




                                                                                         Avg. Smooth Sensitivity
                                                     0.75                                Global sensitivity

                                                     0.50

                                                     0.25
                                                              0         10        20         30        40          50
                                                                             Number of k values, | |
Figure 6. Effect of |K| on the tightness of the smooth sensitivity bound for the GTP-2 sentiment classification task (ϵ = 1.0).

Theorem 5.1 provides a procedure for bounding the smooth sensitivity of a binary classifier f queried at a point x.
Specifically, any k ′ for which the prediction fx (D) is certified to be stable provides an upper bound on the smooth sensitivity
                        ′
SS β (fx , D) ≤ e−βk . It is clear that the tightest upper bound is obtained by certifying the prediction to be stable for the
                   ′
largest possible k . Therefore, we employ the following procedure for finding the largest stable k using AGT:

  1. Choose a set of values K = {ki }M
                                     i=1 and compute the corresponding parameter-space bounds using Algorithm 1.

  2. At a query point x, find the largest k ′ ∈ K for which fx (D) is stable (e.g. via binary or linear search).

The set K should be chosen according to the available computational budget. A more fine-grained set of k’s will achieve
tighter sensitivity bounds, as k ′ will fall closer to k ⋆ , on average. On the other hand, increasing the number of k values
increases the computational complexity at both training time (running Algorithm 1 for each k) and at inference time (finding
k ′ via binary search).
In practice, the set K should be chosen with greater density for smaller values of k, as the improvement in the tightness of
the bound is more pronounced for lower values of k due to the exponential decay. Specifically, going from k ′ = 1 to k ′ = 2
results in a significantly greater improvement than, for example, refining the bound between k ′ = 51 and k ′ = 52.
Furthermore, for sufficiently large values of k, it is often the case that the resulting bounds do not certify any points within
the domain, rendering the inclusion of such large k values unnecessary. Consequently, it is advantageous to prioritize smaller

                                                                                    14
                                            Certification for Differentially Private Prediction

k values in the set K, where the improvement in the bound is substantial, while avoiding the inclusion of excessively large k
values that offer diminishing returns both in terms of bound improvement and computational efficiency.
Figure 6 illustrates how increasing the number of k values affects the tightness of our bounds. Even when |K| = 1 (i.e., AGT
is run for a single value of k), the smooth sensitivity bound is already tighter than the global sensitivity. As the number of k
values increases, the smooth sensitivity bound becomes progressively tighter. However, after |K| ≈ 10, the gains diminish,
indicating that running AGT for a small number of k values is sufficient to capture most of the privacy benefits.

D. Proofs
D.1. Proof of Lemma 4.2
Proof. Suppose Ak−1 (fx , D) > 0. Then, by the definition of Ak−1 , ∃Y : d(D, Y ) ≤ k − 1 with LS(fx , Y ) > 0. This
implies
                                  ∃Y, Y ′ : d(Y, Y ′ ) ≤ 1, ∥fx (Y ) − fx (Y ′ )∥1 > 0.                         (13)
By the triangle inequality, we have
                                                 d(D, Y ′ ) ≤ d(D, Y ) + d(Y, Y ′ ) ≤ k.                                   (14)
                 ′                                                                                         ′
Since both Y, Y are a distance ≤ k from D, we have that fx (D) = fx (Y ) = fx (Y ) by Definition 4.1. Therefore,
∥fx (Y ) − fx (Y ′ )∥1 = 0, which is a contradiction.

D.2. Proof of Lemma 4.4
Proof. Let                                                                   ′
                                              ∀θ ∈ T k , ∥f θ (x) − f M (f,θ ,D) (x)∥1 = 0.                                (15)
                                                                                               ′   ′              ′
Now, suppose there exists a dataset D′ such that d(D, D′ ) ≤ k and ∥f M (f,θ ,D ) (x) − f M (f,θ ,D) (x)∥1 > 0. By
Definition 4.3, the parameters of the model trained on D′ must lie within the valid parameter space bounds T k , i.e.
                                                                                                    ′
M (f, θ′ , D′ ) ∈ T k . However, this would contradict (15), as it requires ∥f θ (x) − f M (f,θ ,D) ∥1 = 0 for all θ ∈ T k .
                                                  ′  ′                ′
Therefore, (15) suffices as a proof that ∥f M (f,θ ,D ) (x) − f M (f,θ ,D) (x)∥1 = 0 for all D′ : d(D, D′ ) ≤ k.

D.3. Proof of Theorem 4.5
Here we provide a proof of correctness for our algorithm (i.e., proof of Theorem 4.5) as well as a detailed discussion of the
operations therein.
First, we recall the definition of valid parameter space bounds (Definition 4.3 in the main text):

                       θiL ≤     min        M (f, θ′ , D′ )i ≤ M (f, θ′ , D)i ≤      max M (f, θ′ , D′ )i ≤ θiU            (16)
                               D ′ ∈T (D)                                         D ′ ∈T (D)

As well as the iterative equations for stochastic gradient descent:
                                                                      1     X
                                                                                     ∇θ L f θ (x), y
                                                                                                       
                                    θ ← θ − α∆θ,             ∆θ ←                                                          (17)
                                                                     |B|
                                                                           (x,y)∈B

For ease of notation, we assume a fixed data ordering (one may always take the element-wise maximums/minimums over
the entire dataset rather than each batch to relax this assumption).
Now, we proceed to prove by induction that Algorithm 1 maintains valid parameter space bounds on each step of gradient
descent. We start with the base case of θL = θU = θ′ according to line 1, which are valid parameter-space bounds. Our
inductive hypothesis is that, given valid parameter space bounds satisfying Definition 4.3, each iteration of Algorithm 1
(lines 4–8) produces a new θL and θU that satisfy also Definition 4.3.
First, we observe that lines 4–5 simply compute the normal forward pass. Second, we note that lines 6–7 compute
valid bounds on the descent direction for all possible poisoning attacks within T (D). In other words, the inequality
∆θL ≤ ∆θ ≤ ∆θU holds element-wise for any possible batch B̃ ∈ T (D). Combining this largest and smallest possible
update with the smallest and largest previous parameters yields the following bounds:

                                               θL − α∆θU ≤ θ − α∆θ ≤ θU − α∆θL

                                                                    15
                                        Certification for Differentially Private Prediction

which, by definition, constitute valid parameter-space bounds and, given that these bounds are exactly those in Algorithm 1,
we have that Algorithm 1 provides valid parameter space bounds as desired.

D.4. Proof of Theorem 4.6
Proof. The nominal clipped descent direction for a parameter θ is the averaged, clipped gradient over a training batch B,
defined as
                                                                  b
                                                             1X             h i
                                                     ∆θ =           Clipγ δ (i)
                                                             b i=1
                                                                        
where each gradient term is given by δ (i) = ∇θ L f θ x(i) , y (i) . Our goal is to bound this descent direction for the case
when (up to) k points are removed or added to the training data, for any θ ∈ [θL , θU ]. We begin by bounding the descent
direction for a fixed, scalar θ, then generalize to all θ ∈ [θL , θU ] and to the multi-dimensional case (i.e., multiple parameters).
We present only the upper bounds here; analogous results apply for the lower bounds.
Bounding the descent direction for a fixed, scalar θ. Consider the effect of removing up to k data points from batch B.
Without loss of generality, assume the gradient terms are sorted in descending order, i.e., δ (1) ≥ δ (2) ≥ · · · ≥ δ (b) . Then,
the average clipped gradient over all points can be bounded above by the average over the largest b − k terms:
                                                 b                      b−k
                                              1X         h i        1 X          h i
                                       ∆θ =         Clipγ δ (i) ≤           Clipγ δ (i)
                                              b i=1               b − k i=1

This bound corresponds to removing the k points with the smallest gradients.
Next, consider adding k arbitrary points to the training batch. Since each added point contributes at most γ due to clipping,
the descent direction with up to k removals and k additions is bounded by
                           b                         b−k                           b
                                                                                                   !
                       1X           h i
                                      (i)        1 X            h i 1
                                                                  (i)
                                                                                  X          h i
                                                                                               (i)
                             Clipγ δ       ≤             Clipγ δ      ≤      kγ +      Clipγ δ
                       b i=1                  b − k i=1                  b        i=1

where the bound now accounts for replacing the j smallest gradient terms with the maximum possible value of γ from the
added samples.
Bounding the effect of a variable parameter interval. We extend this bound to any θ ∈ [θL , θU ]. Assume the existence of
              (i)
upper bounds δU on the clipped gradients for each data point over the interval, such that
                                            h       ′             i
                                 (i)
                               δU ≥ Clipγ ∇θ′ L f θ (x(i) ), y (i)       ∀ θ′ ∈ [θL , θU ].

Then, using these upper bounds, we further bound ∆θ as
                                                                  b
                                                                                   !
                                                    1             X          h i
                                                                               (i)
                                               ∆θ ≤        kγ +         Clipγ δU
                                                    b             i=1

                                 (i)
where, as before, we assume δU are indexed in descending order.
Extending to the multi-dimensional case. To generalize to the multi-dimensional case, we apply the above bound
component-wise. Since gradients are not necessarily ordered for each parameter component, we introduce the SEMaxn
operator, which selects and sums the largest n terms at each index. This yields the following bound on the descent direction:
                                                             n ob                
                                                  1              (i)
                                          ∆θ ≤        SEMax δU           + kγ1d
                                                  b     b−k          i=1


which holds for any θ ∈ [θL , θU ] and up to k removed and replaced points.
We have established the upper bound on the descent direction. The corresponding lower bound can be derived by reversing
the inequalities and substituting SEMax with the analogous minimization operator, SEMin.

                                                                16
                                         Certification for Differentially Private Prediction

D.5. Proof of Theorem 5.1
Proof. We start by noting the following properties of the maximum local sensitivity of the prediction of a binary classifier f
at a point x:
                                          Ak (fx , D) = ′ max′      LS(fx , D′ )                                          (18)
                                                                   D :d(D,D )≤k


   • Ak (fx , D) takes only values in {0, 1}, since |fx (D) − fx (D′ )| ∈ {0, 1}.

   • Ak (fx , D) is monotonically increasing in k.

Therefore, Ak (fx , D) takes the form of a step function:
                                                                      (
                                                     k                    1 if k ≥ k ⋆ ,
                                                   A (fx , D) =                                                             (19)
                                                                          0 otherwise,

for some k ⋆ = min{k : Ak (fx , D) = 1}. We now relate this to the definition of β-smooth sensitivity.

                                       SSβ (fx , D) = max+ e−βk Ak (fx , D) = max+ s(k)                                     (20)
                                                             k∈N                                 k∈N

where                                                          (
                                                                   e−βk     if k ≥ k ⋆ ,
                                                    s(k) =                                                                  (21)
                                                                   0        otherwise.
Note that the exponential term is monotonically decreasing in k since β > 0. Therefore, the maximum value of s(k) is
                                            ⋆
attained at k ⋆ , giving SSβ (fx , D) = e−βk . Now, we have that
                                                                                         ⋆
                                          ∀k̂ : k̂ ≤ k ⋆ ,     SSβ (fx , D) = e−βk ≤ e−β k̂                                 (22)
                                                                                                       ′
Suppose the prediction fx (D) is stable at a distance k ′ . By Lemma 4.2, this tells us that Ak −1 (fx , D) = 0. Therefore,
k ⋆ > k ′ − 1 ⇒ k ⋆ ≥ k ′ . By (22), this gives us the following valid upper bound
                                                                             ⋆               ′
                                                  SSβ (fx , D) = e−βk ≤ e−βk .                                              (23)



D.6. Proof of Corollary 5.2
Proof. We recall from Section 3 the following response mechanism for a 1-dimensional query fx (D):
                                                                 β
                                                                            
       If β ≤ ϵ/6, the algorithm that returns fx (D) + Cauchy 6 SS (f
                                                                    ϵ
                                                                      x ,D)
                                                                              is (ϵ, 0)-differentially private.

We note that any upper bound on SSβ (fx , D) can be used in place of the true smooth sensitivity, as increasing the scale
of the noise cannot degrade the privacy of the mechanism. By Theorem 5.1, if fx (D) is stable for some distance k ′ , then
                    ′
SSβ (fx , D) ≤ e−βk
                   . Setting β to
                                 its maximum value in the above mechanisms, and substituting our bound gives us that
                     6 exp(−ϵk′ /6)
fx (D) + Cauchy            ϵ          satisfies (ϵ, 0)-differential privacy.

D.7. Proof of Theorem 5.3
Proof. Let g be a non-private voting ensemble made up of T binary classifiers f (i) , i = 1, . . . , T , each trained on disjoint
subsets of the dataset D. We assume that each binary classifier prediction at the point x is stable up to some distance k (i) .
We define the binary vote counts at a query point x as

                                          n0 (x) = |{i : i ∈ {1, . . . , T }, f (i) (x) = 0}|                               (24)
                                                                                   (i)
                                          n1 (x) = |{i : i ∈ {1, . . . , T }, f          (x) = 1}|                          (25)

                                                                      17
                                         Certification for Differentially Private Prediction

such that n0 (x) + n1 (x) = T . Let the response of the ensemble classifier trained on the dataset D at the point x be
                                                       (
                                                         1 if n1 (x) ≥ n0 (x)
                                             gx (D) =                                                                            (26)
                                                         0 if n1 (x) < n0 (x)

We wish to lower bound the distance for which gx is stable with respect to additions or removals from the dataset D.
                                                                                   l                m
The number of votes that must be flipped to cause gx to change is given by n = |n1 (x)−n  2
                                                                                             0 (x)|
                                                                                                     , i.e. at least half the distance
between the vote counts. Now consider the number of additions or removals from D that is required to cause at least n votes
to flip.
Since each individual classifier f (i) is stable at a distance of k (i) , an adversary has to modify at least K = i∈Sn k (i)
                                                                                                                           P
entries of D to cause n votes to flip. Here Sn is the set of indices corresponding to the n classifiers with the smallest stable
distances k (i) .
This suffices as a proof that gx is stable at a distance of K. Additionally, by Lemma 4.2, gx (D) being stable at a distance of
K implies
                                                        AK−1 (gx , D) = 0.                                                 (27)



E. Experimental Details and Further Results
In this section, we provide the full experimental details for the results in Section 6. All experiments are run on a server with
2x AMD EPYC 9334 CPUs and 2x NVIDIA L40 GPUs. Code to reproduce our experiments is available at [redacted for
anonymity]. Where stated, all DP-SGD (ϵ, δ) values are computed using the Opacus libary (Yousefpour et al., 2021).
For each dataset, we provide the number of epochs, learning rate (α), learning rate decay factor (η), and batchsize (b).
Learning rate decay is applied using a standard learning rate schedule αn = α/(1 + ηn).

E.1. Blobs Dataset
In Figure 3, we examine a dataset consisting of 3,000 samples drawn from two distinct isotropic Gaussian distributions.
The objective is to predict the distribution of origin for each sample in a supervised learning task. To highlight the dataset-
dependent nature of our bounds, we vary both the cluster means and standard deviations. We train a single-layer neural
network with 128 hidden neurons using AGT and visualise the resulting smooth sensitivity bounds. The model is trained
for four epochs with hyperparameters set to b = 3000, α = 1.0, η = 0.6, and γ = 0.06. A full set of bounds is computed
for values of k in K = {1, . . . , 100}. As discussed in Appendix C, running the complete range of k values is unnecessary
for achieving privacy gains; a carefully selected subset would be preferable in practical applications. Using these privacy
bounds, we determine the maximum stable k ⋆ ∈ K for each point in a grid over the domain. This value is then used to
compute a bound on the smooth sensitivity, which we present as a heat map.
In Figures 2, 4, and 5, our goal is to use the smooth sensitivity bounds computed above to improve private prediction in both
the single model and ensemble settings. Here we use the “separable” blobs dataset with 5000 samples and train a logistic
regression classifier. To facilitate tight bound propagation, we use the maximum batchsize of b = 5000/T for each of the
T members of the ensemble and other hyperparameters the same as the above. We apply the global sensitivity or smooth
sensitivity mechanisms to the same nominal models / ensembles.

E.2. Retinal OCT Image Classification
Next, we consider another dataset with larger scale inputs: classification of medical images from the retinal OCT (OctMNIST)
dataset of MEDMNIST (Yang et al., 2021). We consider binary classification over this dataset, where a model is tasked with
predicting whether an image is normal or abnormal (the latter combines three distinct abnormal classes from the original
dataset).
The model comprises two convolutional layers of 16 and 32 filters and an ensuing 100-node dense layer, corresponding to
the ‘small’ architecture from (Gowal et al., 2018). To demonstrate our framework, we consider a base model pre-trained
on public data and then fine-tuned on new, privacy-sensitive data, corresponding to the 7754 Drusen samples (a class of

                                                                 18
                                              Certification for Differentially Private Prediction

                        1.0                                                           1.0
   Stable Predictions                                                                          0.88                          0.88        0.84
                        0.8                                                           0.8                                                         0.76
     Proportion of




                                                                           Accuracy
                        0.6                                                           0.6                                                                     0.56
                        0.4                                                           0.4
                        0.2                                                           0.2                                                                Pre-trained
                                                                                                                                                         accuracy
                        0.0                                                           0.0
                              0   50       100          150         200                          4.0                         2.0         1.0      0.5          0.1
                                       Distance (k)                                                                              Clipping Level (γ)

Figure 7. Performance of the fine-tuned classifier on the unseen diseased class (Drusen). Left: Proportion of the test set queries certified to
be stable at a distance of k. Performance on new diseased class in OCT-MNIST Fine-Right: Prediction accuracy on the Drusen class.


abnormality omitted from initial training). First, we train the complete model excluding this using standard stochastic
gradient descent. We then fine-tune only the dense layer weights to recognise the new class, with a mix of 50% Drusen
samples per batch. We aim to ensure privacy only with respect to the fine-tuning data. The hyper-parameters used for
fine-tuning using AGT are E = 4, α = 0.06, η = 0.5; the batchsize is chosen to be the maximum possible for each ensemble
size T .
Figure 7 shows the performance of the fine-tuned classifier on the (previously unseen) Drusen class. The pre-trained model
achieves around 50% on the new disease (i.e. akin to random guessing). After fine-tuning, the accuracy on the Drusen data
ranges from approximately 0.6 up to 0.88 after fine-tuning. The final utility is highly dependent on the value of the clipping
level γ. Decreasing the value of γ reduces the accuracy of the model, but increases the proportion of points for which
we can provide certificates of stability. In our experiments in the main text, we choose a value of γ = 1.0, as a trade-off
between utility and certification tightness. We note that for small values of k, our framework is able to provide certificates of
prediction stability for well over 90% of test-set queries.

E.3. IMDB Movie Reviews
                                                                                            Proportion w/ Guarantees




                                                                                                                       1.0
Finally, we consider fine-tuning GPT-2 (Radford et al., 2019) for
                                                                                                                                                                       k = 10
sentiment analysis on the large-scale (40,000 samples) IMDb movie                                                      0.8
                                                                                                   (+ Accuracy)




review dataset (Maas et al., 2011). In this setup, we assume that                                                                                                      k = 25
                                                                                                                       0.6
GPT-2 was pre-trained on publicly available data, distinct from the
data used for fine-tuning, which implies no privacy risk from the pre-                                                 0.4                                             k = 50
trained embeddings themselves. Under this assumption, we begin
by encoding each movie review into a 768-dimensional vector using
                                                                                                                       0.2
                                                                                                                                     Nominal accuracy                  k = 100
GPT-2’s embeddings.                                                                                                    0.0
                                                                                                                             0      10     20    30      40     50
We then train a fully connected neural network consisting of 1 × 100                          Training Iteration
nodes, to perform binary sentiment classification (positive vs negative
reviews). Figure 8 shows how the nominal accuracy and the proportion      Figure 8. Proportion of test set queries certified to be
of certified data points evolve over the course of training. Although     stable at a distance of k for the IMDB sentiment classi-
the initial accuracy is equivalent to random chance, fine-tuning allows   fication task.
us to reach an accuracy close to 0.80, while simultaneously preserving
strong privacy guarantees using AGT. Each training run of the sentiment classification model with AGT takes approximately
55 seconds, compared to 25 seconds when using standard, un-certified, training in pytorch. We note that our guarantees
weaken with increased training time, indicating that stronger privacy guarantees can be obtained by terminating training
early. In our experiments in the main text we choose to train with hyperparameters E = 3, α = 0.2, η = 0.5, γ = 0.04,
using the maximum possible batchsize available to each ensemble member.




                                                                      19
                                        Certification for Differentially Private Prediction

E.4. Additional Ablations: American Express Default Prediction
In order to understand the performance of Algorithm 1 in deeper net-
works, we turn to the American Express default prediction task. This
tabular dataset3 comprising 5.4 million total entries of real customer                      10 6




                                                                               Batch Size
data asks models to predict whether a customer will default on their
credit card debt. We train networks of varying depth with each layer
having 128 hidden nodes. We highlight that fully connected neural
networks are generally not competitive in these tasks, thus their ac-                       10 5
curacy is significantly below competitive entries in the competition.
However, this massive real-world dataset in a privacy-critical domain
enables us to test the scalability of our approach. In particular, we note
                                                                                                   1     2         3         4
in Section 4.3 that as batch size tends to infinity, our bounds become                                 Network Depth
arbitrarily tight. On the other hand, since we employ interval bound
propagation to bound the model gradients in Algorithm 1, our bounds           Figure 9. Minimum batch size required provide certifi-
weaken super-linearly as they propagate through deeper networks               cates of prediction stability at a distance of k = 50 for
(Wicker et al., 2020).                                                        at least 95% of the AMEX test data.

Figure 9 shows the smallest batch sizes that allow us to train networks of varying depth with guarantees of prediction stability
at a distance of k = 50 for at least 95% of test set inputs. Our approach requires a batch size of over one million to provide
these guarantees for 4-layer neural networks. Ignoring the effect of this large batch size on performance for the sake of
this particular case study, this example highlights that tightly bounding the model gradients, e.g., though bounds-tightening
approaches (Sosnin & Tsay, 2024), will prove an important line of future research.




   3
       See www.kaggle.com/competitions/amex-default-prediction/; accessed 05/2024

                                                                20
