               COSDA: Counterfactual-based Susceptibility Risk Framework for Open-Set Domain Adaptation

+∞, p → 1 in this paper. First, we define r = E(x,y)∼T [I(x, y) ∈
                                                                / supp(S)], then using Hölder’s Inequality, we have
                                    "                                                                  #
              eT (c) =      E                  E           E       E I (h1 (c) ̸= y) I (h2 (c) ̸= y)
                         (x,y)∼TX      c∼PtG (C|X=x) h1 ∼ρ h2 ∼ρ
                                                 "                                                              #
                                       T (x, y)
                     =     E                                 E           E    E I (h1 (c) ̸= y) I (h2 (c) ̸= y)
                         (x,y)∼S       S(x, y)         c∼PtG (C|X=x) h1 ∼ρ h2 ∼ρ                                                (36)
                                                               "                                                            #
                     + E(x,y)∼T [I(x, y) ∈
                                         / supp(S)]                     E          E    E I (h1 (c) ̸= y) I (h2 (c) ̸= y)
                                                                 c∼PtG (C|X=x) h1 ∼ρ h2 ∼ρ

                     ≤ lim (βq (T ∥S)eS (c)) + reT \S (c),
                         q→∞



                                             eT (c′ ) ≤ lim βq (T ∥S)eS (c′ ) + ret\s (c′ )                                     (37)
                                                          q→∞

Rewrite r(et\s (c) − et\s (c′ )) as πt\s (X, Y ). Then we have

                                                             1
                                             SRT (c, c′ ) <    (dT (c) − dTX (c′ ))
                                                             2 X
                                                           + lim βq (T ∥S)(eS (c) − eS (c′ ))                                   (38)
                                                               q→∞

                                                           + πt\s (X, Y )

Then we can get the result of Theorem 2.

B.4. Proof of Corollary 1
First, we introduce the PAC-Bayesian theorem (Catoni, 2007), which gives the usual bound on the empirical risk.
Lemma 2. For domain S/T , any set of voters H , any prior γ over H, any risk R : H → [0, 1], any real number c > 0,
                                                                 n
with a probability at least 1 − δ over the choice of {(xi , yi )}i=1 ∼ T , we have for all ρ on H:

                                         E  E R(ρ, x, y)
                                   (x,y)∼S/T h∼ρ
                                                                                                                                (39)
                                             " n                                         #
                                         c    1X                         KL(ρ∥γ) + ln 1δ
                                    ≤                 E R(ρ, xi , yi ) +                   .
                                      1 − e−c n i=1 h∼ρ                      n×c

Following the same setting of lemma 2, we have: with prior γC , there exists a probability of at least 1 − δ over Dt =
       nt
{(xi )}i=1 ∼ TX ,
                                                                      2KL(ρ∥γC ) + ln 1δ
                                                                                         
                                                   c
                         ∀ρ on H,dTX (ρ, c) ≤            dDt (ρ, c) +                       ,
                                               1 − e−c                      nt × c
                                                                                                                   (40)
                                                                     2KL(ρ∥γC ) + ln 1δ
                                                                                       
                                                 c
                                  eS (ρ, c) ≤           eDs (ρ, c) +                      ,
                                              1 − e−c                     ns × c
                                                                                             n
with prior γC′ , there exists a probability of at least 1 − δ over Ds = {(xi , yi )}i=1
                                                                                     s
                                                                                        ∼ S,

                                                                             2KL(ρ∥γC′ ) + ln 1δ
                                                                                                 
                                                   ′  c                 ′
                           ∀ρ on H,dTX (ρ, c ) ≤            dDt (ρ, c ) +                           ,
                                                  1 − e−c                         nt × c
                                                                                                                                (41)
                                                                            2KL(ρ∥γC′ ) + ln 1δ
                                                                                               
                                                    c
                                   eS (ρ, c′ ) ≤          e D  (ρ, c ′
                                                                       )  +                       ,
                                                 1 − e−c     s
                                                                                 ns × c

Then, we obtain the following generalization bound defined with respect to the empirical estimates of the target disagreement
                                                                                    ns                          nt
and the source joint error: with a probability at least 1 − δ over Ds = {(xi , yi )}i=1 ∼ TX and Dt = {(xi )}i=1     ∼ TX , let

                                                                        16
