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

in Appendix B.                                                      3.2. Susceptibility Risk Modelling
Based on Exogeneity and Monotonicity, the identifiable dis-         This section presents the Susceptibility Risk Estimator (SRE)
tribution of Eq. (1) is described by the following lemma,           for representation learning in the target domain. First, we
which is defined as susceptibility.                                 introduce a concept, Probability of Intervention Relevance
Lemma 1 (Probability of susceptibility ((Pearl, 2009))). If         (PIR), which is used to quantify the probability of Y after
C is exogenous relative to Y , and Y is monotonic relative          C has been intervened.
to C, then the probability that Y is susceptible to C is            Definition 2 (Probability of Intervention Relevance (PIR)).
                                                                    Given a test domain T , if E ⊥ C, and E ⊥ Y | C, the
             Pr(Y = y|C = c) − Pr(Y = y|C = c′ )                    probability of intervention relevance (PIR) is defined as:
      PS =                                       .       (2)
                    1 − Pr(Y = y|C = c′ )
                                                                                 P IRt (c′ ) = Pt (Y = y|C = c′ ),                       (4)
                                                                    and the Probability of Observational Relevance (POR) is
The proof of lemma 1 is established by the logical analysis         defined as:
carried out by Pearl (Pearl, 2009). A characteristic with a                     P ORt (c) = Pt (Y = y | C = c).        (5)
higher P S typically encompasses more significant causal
information. Appendix A presents examples to illustrate             Then, we define the estimation of Susceptibility risk.
where the susceptibility is high and where it is low. Fur-          Proposition 1 (Susceptibility Risk (SR)). Observational
thermore, susceptibility risk, compared to traditional causal       relevance risk Ot (c) and the intervened relevance risk
effect evaluations (Pearl, 2009), proves to be more effec-          Ot (c′ ) are defined as:
tive in identifying core causal features. This indicates that                Ot (c) =         E         E         P (Y ̸= y | c),        (6)
                                                                                         (x,y)∼T c∼Pt (C|x)
susceptibility risk functions as a more discerning indicator
                                                                            Ot (c′ ) =        E         E         P (Y ̸= y | c′ ).      (7)
for identifying causal links, hence improving the model’s                                (x,y)∼T c′ ∼Pt (C′ |x)
capacity to concentrate on critical causal information.
                                                                    Then, susceptibility risk SRt based on Lemma 1 is formally
Additionally, causality posits the Semantic Separability as-
                                                                    defined and we derived a new formulation of SRt as:
sumption of features, meaning that features with distinct
semantics maintain a certain distance and a certain feature                 SRt (c, c′ ) = 1 − P S := Ot (c) − Ot (c′ ).   (8)
does not correspond to multiple semantic meanings simulta-          The induction is detailed in Appendix B.1.
neously. To meet this condition, we define the stability loss
LSTA (Yang et al., 2024) as follows:                                3.3. OSDA Risk Framework with Susceptibility
                                      ′
                  LSTA = ϵ − ∥c − c ∥2 .                 (3)        In this section, we introduced several theorems to gain an
where ϵ represents the degree of intervention on the causal         evaluable upper bound for SRt .
features. LSTA indicates that the semantic meaning is dis-          Linking open-set recognition risks and closed-set classi-
tinguishable between c and c′ , requiring that the degree of        fication risks.
intervention must be sufficiently large to induce semantic
changes in features, thereby avoiding inherently unstable           Assume supp(S) is the shared support set; the target do-
learning.                                                           main in OSDA has a subsample set {X, Y } ∈  / supp(S).
                                                                    Therefore, SRt can be rewritten as:
                                                                    Theorem 1. Given the source domain distribution S and
3. Methodology                                                      the target domain distribution TX , the susceptibility risk on
                                                                    the test domain SRt (c, c′ ) can be expressed as:
3.1. Learning Setup                                                                                            
                                                                     SRT c, c′ =
                                                                              
                                                                                          E       [I(x, y) ∈ supp(S)]           E
Assume that we have the labeled source data Ds =                                      (x,y)∼T                             c∼Pt (C|X=x)
{Xs , Ys } = {(xsi , ysi )}ni=1
                             s
                                ∼ S and unlabeled target                   P (Y ̸= y | C = c) −          E
data Dt = {Xt } = {(xti )}ni=1   t
                                    ∼ TX , where S is the                                        c′ ∼Pt (C′ |X=x)

                                                                          P (Y ̸= y | C′ = c′ ) + E(x,y)∼T [I(x, y) ∈
                                                                                               
joint probability distribution of the source domain, T is                                                           / supp(S)]
the marginal distribution of the target domain, with ns and
                                                                          
                                                                                 E      P (Y ̸= K + 1 | C = c)−
nt indicating the size of the source and target datasets, re-               c∼Pt (C|X=x)
spectively. Open-set Domain Adaptation (OSDA) allows                                                                        
the source label space Ys = {1, ..., K} and the target label                     E′           P (Y ̸= K + 1 | C′ = c′ )
                                                                           c′ ∼Pt (C |X=x)
space Yt = {Ys , K + 1}, where K + 1 denotes the un-
                                                                           := πt∧s (X, Y ) + πt\s (X, Y ),
known class. Given the i.i.d. samples drawn from S and TX ,                                                                              (9)
the goal of OSDA is to train a model that can classify the          where supp(S) is the support set of the source domain dis-
samples from the known classes and recognize the samples            tribution. Pt (X, Y ∈
                                                                                        / supp(S)) shares the same idea as the
from the unknown class correctly.                                   Open Space Risk (Scheirer et al., 2012), quantifying how

                                                                3
