PHYSICAL PDF PAGE 5 / 23

                             Efficient Robust Conformal Prediction via Lipschitz-Bounded Networks



defined for all ϵ ≥ 0 by                                                 Assumption 3.2.



            γ(ϵ) = PDtest Ytest ∈ C α,ϵ (Xtest )

                                                   

                                                             (10)        (A1) X ⊂ Rd is convex and closed (for some d ≥ 1);

                                                                         (A2) x ∈ X 7→ s(x, y) is continuous for all y ∈ Y.

                                                   

            γ(ϵ) = PDtest Ytest ∈ C α,ϵ (Xtest )             (11)



Noting that s(x, y) ≤ s(h(x, ϵ), y) ≤ s̄(x, y) and there-                The first condition (A1) is satisfied, e.g., for classical vector

fore C α,ϵ (·) ⊆ Cα (h(·, ϵ)) ⊆ C α,ϵ (·), we can see that               spaces used to represent images (such as RH·W ·3 , with H

γ(ϵ) ≤ γh (ϵ) ≤ γ(ϵ) for all ϵ ≥ 0. Therefore, though                    and W respectively the height and width of the images).

not used by vanilla CP, the sets C α,ϵ (Xtest ) and C α,ϵ (Xtest )       Importantly, the assumption is on the underlying space X

are instrumental in controlling the coverage under attack.               and not on the probability distribution over it. Therefore,

                                                                         in our application setting, it holds true even if the distri-

3.2. A Provable and Tight Control on γ and γ                             bution of images has a nonconvex support. The second

The question of bounding γ(ϵ) from below, i.e., guarantee-               condition (A2) is satisfied whenever the score is of the form

ing a minimal coverage of vanilla CP under attack, already               s(x, y) = ψ(f (x), y), for a continuous model f and some

appeared in Theorem 2 by Gendler et al. (2022). We how-                  continuous function u 7→ ψ(u, y). In our setting, the as-

ever realized that a subtle mathematical mistake (of an over-            sumption always holds true, due to both f and s(·, y) being

fitting flavor) was unfortunately left aside, which impacts              Lipschitz-continuous.3

the correctness of their guarantee; see Appendix A for de-               The main result of this section is the following.

tails. The same mistake was reproduced in the second part                Theorem 3.3. Suppose that Assumption 3.2 holds true. As-

of Proposition 5.1 by Zargarbashi et al. (2024).                         sume also that Dcal , Deval , Dtest are made of i.i.d. pairs

To overcome this overfitting-type issue, we work with an                 (Xi , Yi ). Let qα be the empirical quantile computed by

additional dataset Deval of m data points drawn i.i.d. from              vanilla CP using Dcal , and let m ≥ 2 be the number of

the same distribution but independently from Dcal . Denote               points in Deval .

these points by (Xi , Yi )1≤i≤m .                                        Let δ ∈ (0, 1) and set δ ′ = δ/(2m − 2). Then, for any

Let 1 denote the indicator function. We define empirical                 attack function h and almost every Dcal ,

counterparts (based on Deval ) of γ(ϵ) and γ(ϵ) as follows:                                                                    

for all ϵ ≥ 0,                                                           PDeval ∀ϵ > 0, γ −m

                                                                                             (ϵ, δ ′

                                                                                                     ) ≤ γ h (ϵ) ≤ γ +

                                                                                                                     m (ϵ, δ ′

                                                                                                                               )  ≥ 1 − δ,

                            m                                                                                                         (16)

                         1 X

             γ m (ϵ) =         1{Yi ∈ C α,ϵ (Xi )}           (12)        where the probability is over the random draw of Deval .4

                         m i=1

                            m                                            The proof follows by combining γ(ϵ) ≤ γh (ϵ) ≤ γ(ϵ) with

                       1 X

             γ m (ϵ) =       1{Yi ∈ C α,ϵ (Xi )}             (13)        Theorems B.2 and B.3 in Appendix B (applied with the

                       m i=1                                             risk level δ/2), followed by a union bound. These theo-

                                                                         rems are similar in spirit to the DKW inequality (Dvoretzky

To account for statistical deviations, next we work with                 et al., 1956; Massart, 1990) or variants (Vapnik & Chervo-

slightly corrected estimators studied earlier, e.g., by Lang-            nenkis, 1974; Anthony & Shawe-Taylor, 1993), which are

ford & Schapire (2005). For m ≥ 1, p ∈ [0, 1], and                       useful concentration inequalities to estimate an unknown

                                        Pk

0 ≤ k ≤ m, we write Fm,p (k) = j=0 m

                                                 j          j

                                               j p (1 − p) for           cumulative distribution function based on i.i.d. samples. In

the cumulative distribution function of the Binomial(m, p)               particular, we borrow arguments from Ducoffe et al. (2020,

distribution. For any attack budget ϵ ≥ 0 and any risk level             Theorem 1), combined with a careful treatment of disconti-

δ ∈ (0, 1), we define                                                    nuity points of γ and γ.

                   n                                      o

  γ+

                                                    

   m  (ϵ, δ) = max  p  ∈  [0, 1] : F  m,p  mγ m (ϵ)   ≥ δ     (14)       Interpretation Our result provides a probabilistic guar-

                       n                                           o     antee for robustness under adversarial attacks of arbitrary

  γ−

                                                            

   m

      (ϵ, δ) = 1−max     p ∈  [0,  1] : F m,p m(1−γ   m

                                                       (ϵ))   ≥  δ       budgets. Specifically, for any calibration set Dcal and any

                                                             (15)        attack function h (regardless of the norm), the coverage

                                                                         under attack γh is bounded by γ − m

                                                                                                              and γ +

                                                                                                                    m with probabil-

Though technical at first sight, these estimators are tailored           ity 1 − δ over the randomness in the holdout set Deval ,

for the binomial distribution and thus tighter than, e.g., high-         simultaneously for all perturbation budgets ϵ > 0. This

probability bounds obtained from Hoeffding’s bound. Given

                                                                             3

γ m (ϵ) and γ m (ϵ), they can be efficiently computed with a                   Note that, in this section, we do not assume that x 7→ s(x, y)

binary search (by monotonicity of p 7→ Fm,p (k)).                        is smooth (beyond continuity), contrary to scores obtained after

                                                                         randomized smoothing.

Next we work under the following mild assumptions on the                     4

                                                                               In more formal terms, the probability PDeval (·) is conditional

input space X and the non-conformity score s(x, y).                      to Dcal , and our inequality holds almost surely.



                                                                     5

