PHYSICAL PDF PAGE 15 / 23

                            Efficient Robust Conformal Prediction via Lipschitz-Bounded Networks



compact subset K ⊂ X and two real numbers ρ > 0 and δ ∈ (0, ϵ) such that



                       γ(ϵ − δ) = P (s̄ϵ−δ (Xtest , Ytest ) ≤ qα )

                       ≤ P (Xtest ∈ K) · P (s̄ϵ−δ (Xtest , Ytest ) ≤ qα | Xtest ∈ K) + P (Xtest ∈

                                                                                                / K)

                       s(·,y) u.c. on K                                                             η

                             ≤      P (Xtest ∈ K) · P (s̄ϵ (Xtest , Ytest ) ≤ qα + ρ | Xtest ∈ K) +

                                                                                                    2

                                            h                                           ηi η

                       ≤ P (Xtest ∈ K) · P ( s̄ϵ (Xtest , Ytest ) ≤ qα | Xtest ∈ K) +      +

                                                                                        2     2

                       ≤ P (s̄ϵ (Xtest , Ytest ) ≤ qα ) + η

                       = γ(ϵ) + η









N.B. The proof is a little easier if s(·, y) is uniformly continuous on X (e.g. if X is compact or s(·, y) is Lipschitz). In that

case, there is no need to work conditionally on {Xtest ∈ K}.



B.2. Concentration of γ m around γ

Let Deval = (Xi , Yi )1≤i≤m be m ≥ 2 independent copies of (Xtest , Ytest ).

For ϵ > 0, let

                                                               m

                                                           1X

                                                γ m (ϵ) :=      1s (X ,Y )≤q .

                                                           n i=1 ϵ i i α



Let δ ∈ (0, 1). Since mγ m (ϵ) ∼ Binomial(m, γ(ϵ)), the estimator



                                     γ+

                                      m (ϵ, δ) := max {p ∈ [0, 1] : Binm,p (mγ m (ϵ)) ≥ δ} ,





where Binm,p is the c.d.f. of Binomial(m, p). This estimator satisfies (e.g., Theorem 3.3 by Langford & Schapire 2005),

for all ϵ ≥ 0 and δ ∈ (0, 1),

                                             P γ(ϵ) ≤ γ +

                                                                 

                                                         m (ϵ, δ) ≥ 1 − δ                                          (23)



Applying (23) m − 1 times with properly chosen values of ϵ (of a quantile flavor), and using the fact that both γ and γ +

                                                                                                                        m (·, δ)

are a.s. right-continuous and non-decreasing, we obtain the following “uniform” concentration inequality.

Theorem B.2. Assume that A1 and A2 from 3.2 hold true. Let (Xi , Yi )1≤i≤m be m ≥ 2 independent copies of (Xtest , Ytest ).

Then:

                                                                          

                                                              δ          1

                                P ∀ϵ ≥ 0, γ(ϵ) ≤ γ +  m (ϵ,         ) +      ≥ 1 − δ.

                                                            m−1         m



As seen in the proof below, γ and γ +

                                    m (·, δ) are right-continuous a.s., so that the above probability is well defined (the ∀ϵ can

be replaced with a countable ∀ϵk ).





Proof. We proceed in three steps.



Step 1: right-continuity of γ and γ +

                                    m (·, δ)





   • the fact that γ is right-continuous follows from Subsection B.1.



                                                                    1

                                                                      Pm

   • likewise, using this result with the empirical distribution m        i=1 δ(Xi ,Yi ) , we can see that the random function

     ϵ 7→ γ m (ϵ) is right-continuous, and thus locally constant to the right of any ϵ ≥ 0. This implies that ϵ 7→ γ +

                                                                                                                     m (ϵ, δ) is

     also right-continuous on [0, +∞).



                                                                3

