We generalize the PAC learning problem of finding an hypothesis from a finite hypothesis family to the one from a countable hypothesis family.
Problem Setting
X : \mathcal{X}: X : the input space.
Y ≐ { − 1 , 1 } : \mathcal{Y} \doteq \{-1, 1\}: Y ≐ { − 1 , 1 } : the output space.
Z ≐ X × Y : \mathcal{Z} \doteq \mathcal{X} \times \mathcal{Y}: Z ≐ X × Y : the product space of X \mathcal{X} X and Y \mathcal{Y} Y .
D : \mathcal{D}: D : an unknown distribution defined on X × Y \mathcal{X} \times \mathcal{Y} X × Y .
H : \mathcal{H}: H : an countable family of hypothesis, s.t., each h ∈ H h \in \mathcal{H} h ∈ H is a function from X \mathcal{X} X to Y \mathcal{Y} Y .
ℓ : Y × Y → [ 0 , 1 ] \ell: \mathcal{Y} \times \mathcal{Y} \rightarrow [0, 1] ℓ : Y × Y → [ 0 , 1 ] , a loss function that takes two points in Y \mathcal{Y} Y and outputs a value between 0 0 0 and 1 1 1 .
L D ( h ) : L_\mathcal{D} (h): L D ( h ) : the expected loss of a hypothesis h h h is defined as
L D ( h ) = E ( x , y ) ∼ D [ ℓ ( h ( x ) , y ) ]
L_\mathcal{D} (h) = \mathbb{E}_{ (x, y) \sim \mathcal{D} } [ \ell( h(x), y) ]
L D ( h ) = E ( x , y ) ∼ D [ ℓ ( h ( x ) , y )] where ( x , y ) ∼ D (x, y) \sim \mathcal{D} ( x , y ) ∼ D implies that the pair ( x , y ) ∈ Z (x, y) \in \mathcal{Z} ( x , y ) ∈ Z is sampled according to the distribution D \mathcal{D} D .
h ∗ ≐ arg min h ∈ H L D ( h ) : h^* \doteq \arg\min_{h \in \mathcal{H} } L_\mathcal{D} (h): h ∗ ≐ arg min h ∈ H L D ( h ) : the hypothesis that minimize the expected loss.
μ h : \mu_h: μ h : an alias for L D ( h ) L_\mathcal{D} (h) L D ( h ) , when the distribution D \mathcal{D} D discussed in the context is unique.
B ( μ h , ϵ ) ≐ { r ∈ R : ∣ r − μ h ∣ < ϵ } : B(\mu_h, \epsilon) \doteq \{ r \in \mathbb{R} : |r - \mu_h | < \epsilon \}: B ( μ h , ϵ ) ≐ { r ∈ R : ∣ r − μ h ∣ < ϵ } : an open ball, which is an open interval in R \mathbb{R} R centered at μ h \mu_h μ h with length 2 ϵ 2 \epsilon 2 ϵ , where ϵ > 0 \epsilon > 0 ϵ > 0 .
S ∼ D n : S \sim \mathcal{D}^n: S ∼ D n : a set of n n n i.i.d samples drawn from D \mathcal{D} D , where n ∈ N + n \in \mathbb{N}^+ n ∈ N + is some positive integer. In particular, when S ∼ D n S \sim \mathcal{D}^n S ∼ D n , it can be represented as
S = { ( x 1 , y 1 ) , ( x 2 , y 2 ) , . . . , ( x n , y n ) : ( x i , y i ) ∼ D , ∀ i ∈ [ n ] } .
S = \{ (x_1, y_1), (x_2, y_2), ..., (x_n, y_n) : (x_i, y_i) \sim \mathcal {D}, \forall i \in [n] \}.
S = {( x 1 , y 1 ) , ( x 2 , y 2 ) , ... , ( x n , y n ) : ( x i , y i ) ∼ D , ∀ i ∈ [ n ]} . We also view S S S as a point in Z n \mathcal{Z}^n Z n .
L S ( h ) ≐ 1 ∣ S ∣ ∑ ( x , y ) ∈ S ℓ ( h ( x ) , y ) : L_{S}(h) \doteq \frac{1}{ |S| } \sum_{ (x, y) \in S } \ell( h(x) , y ) : L S ( h ) ≐ ∣ S ∣ 1 ∑ ( x , y ) ∈ S ℓ ( h ( x ) , y ) : the empirical loss of a hypothesis h h h on a sample set S S S .
Given a h ∈ H h \in \mathcal{H} h ∈ H , its restriction on C ⊂ X \mathcal{C} \subset \mathcal{X} C ⊂ X is a function h S h_S h S defined on S S S , such that
h C ( x ) = h ( x ) , ∀ x ∈ C
h_\mathcal{C} (x) = h(x), \forall x \in \mathcal{C}
h C ( x ) = h ( x ) , ∀ x ∈ C
The restriction of H \mathcal{H} H on C \mathcal{C} C is the set of possible restriction of a function in H \mathcal{H} H to C \mathcal{C} C
H C = { h C : C → Y : h ∈ H }
\mathcal{H}_\mathcal{C} = \{ h_\mathcal{C} : \mathcal{C} \rightarrow \mathcal{Y} : h \in \mathcal{H} \}
H C = { h C : C → Y : h ∈ H } As Y = { − 1 , + 1 } \mathcal{Y} = \{ -1, +1 \} Y = { − 1 , + 1 } , the set of possible functions defined on C \mathcal{C} C is bounded by 2 n 2^{n} 2 n . Hence,
∣ H C ∣ ≤ 2 n .
|\mathcal{H}_\mathcal{C} | \le 2^{n}.
∣ H C ∣ ≤ 2 n .
The growth function Π H ( n ) : N + → N + \Pi_{\mathcal{H} } (n): \mathbb{N}^+ \rightarrow \mathbb{N}^+ Π H ( n ) : N + → N + of H \mathcal{H} H is defined as
Π H ( n ) = max C ⊂ X , ∣ C ∣ = n ∣ H C ∣
\Pi_{\mathcal{H} } (n) = \max_{\mathcal{C} \subset \mathcal{X}, |C| = n} | \mathcal{H}_\mathcal{C} |
Π H ( n ) = C ⊂ X , ∣ C ∣ = n max ∣ H C ∣ Ideally, we would like to find h ∗ h^* h ∗ . The problem is difficult, as
The space X × Y \mathcal{X} \times \mathcal{Y} X × Y could be infinite.
The distribution D \mathcal{D} D is unknown.
To deal with the possibly infinite space X × Y \mathcal{X} \times \mathcal{Y} X × Y and the unknown distribution D \mathcal{D} D , we investigate H \mathcal{H} H on a finite sample set S S S . Due to the randomness inherited in sampling S S S , we allow our solution to be approximate and to make error. For a given pair of parameters of ϵ > 0 \epsilon > 0 ϵ > 0 and δ > 0 \delta > 0 δ > 0 , we relax the goal to designing an ( ϵ , δ ) (\epsilon, \delta) ( ϵ , δ ) -learning algorithm A A A that returns an h ′ h' h ′ , that is
ϵ \epsilon ϵ -approximate: μ h ′ ≤ μ h ∗ + ϵ \mu_{h'} \le \mu_{h^*} + \epsilon μ h ′ ≤ μ h ∗ + ϵ ,
probably correct: A A A return an h ′ h' h ′ that does not satisfies the above condition with probability at most δ \delta δ .
Combined, A A A should return an ϵ \epsilon ϵ -approximate solution h ′ h' h ′ with probability at least 1 − δ 1 - \delta 1 − δ .
The Algorithm
An ( ϵ , δ ) (\epsilon, \delta) ( ϵ , δ ) approximate algorithm A A A
Draw a set S S S of n = n = n = samples independently from D \mathcal{D} D .
Return an h ′ h' h ′ such that
h ′ = arg min h ∈ H L S ( h )
h' = \arg\min_{h \in \mathcal{H} } L_{S} (h)
h ′ = arg h ∈ H min L S ( h )
A key result of the algorithm states that L S ( h ) L_S(h) L S ( h ) is a good approximation of μ h \mu_h μ h for all h ∈ H h \in \mathcal{H} h ∈ H simultaneously.
Theorem. If n ≥ n \ge n ≥ , then
Pr S ∼ D n [ ∃ h ∈ H : L S ( h ) ∉ B ( μ h , ϵ / 2 ) ] ≤ δ
\Pr_{S \sim \mathcal{D}^n } [ \exists h \in \mathcal{H} : L_S(h) \notin B(\mu_h, \epsilon / 2 ) ] \le \delta
S ∼ D n Pr [ ∃ h ∈ H : L S ( h ) ∈ / B ( μ h , ϵ /2 )] ≤ δ
An immediate corollary is that h ′ h' h ′ is ϵ \epsilon ϵ -approximate with probability at least 1 − δ 1 - \delta 1 − δ :
μ h ′ ≤ L S ( h ′ ) + ϵ 2 ≤ L S ( h ∗ ) + ϵ 2 ≤ μ h ∗ + ϵ .
\mu_{h'} \le L_S(h') + \frac{\epsilon}{2} \le L_S(h^*) + \frac{\epsilon}{2} \le \mu_{h^*} + \epsilon.
μ h ′ ≤ L S ( h ′ ) + 2 ϵ ≤ L S ( h ∗ ) + 2 ϵ ≤ μ h ∗ + ϵ . Proof of The Theorem
The proof relies on a technique called double sampling. Alongside with S S S , we create another sample set S ′ ∼ D n S' \sim \mathcal{D}^n S ′ ∼ D n independently, termed the "ghost sample". Let
S = { ( x 1 , y 1 ) , ( x 2 , y 2 ) , . . . , ( x n , y n ) }
S = \{ (x_1, y_1), (x_2, y_2), ..., (x_n, y_n) \}
S = {( x 1 , y 1 ) , ( x 2 , y 2 ) , ... , ( x n , y n )} and
S ′ = { ( x 1 ′ , y 1 ′ ) , ( x 2 ′ , y 2 ′ ) , . . . , ( x n ′ , y n ′ ) } .
S' = \{ (x_1', y_1'), (x_2', y_2'), ..., (x_n', y_n') \}.
S ′ = {( x 1 ′ , y 1 ′ ) , ( x 2 ′ , y 2 ′ ) , ... , ( x n ′ , y n ′ )} . Then, we define
σ : \sigma: σ : a random swap that exchanges the i i i -th (i ∈ [ n ] i \in [n] i ∈ [ n ] ) element of S S S and S ′ S' S ′ independently with probability 0.5. Call the resulting sample sets σ S \sigma S σ S and σ S ′ \sigma S' σ S ′ . Let σ S [ i ] \sigma S[i] σ S [ i ] (σ S ′ [ i ] \sigma S'[i] σ S ′ [ i ] ) be the i i i -th element of σ S [ i ] \sigma S[i] σ S [ i ] (σ S ′ [ i ] \sigma S'[i] σ S ′ [ i ] ). SoPr [ σ S [ i ] = ( x i , y i ) ∧ σ S ′ [ i ] = ( x i ′ , y i ′ ) ] = 0.5 Pr [ σ S [ i ] = ( x i ′ , y i ′ ) ∧ σ S ′ [ i ] = ( x i , y i ) ] = 0.5
\Pr \left[
\sigma S [i] = (x_i, y_i) \wedge
\sigma S'[i] = (x_i', y_i')
\right] = 0.5 \\
\Pr \left[
\sigma S [i] = (x_i', y_i') \wedge
\sigma S'[i] = (x_i, y_i)
\right] = 0.5
Pr [ σ S [ i ] = ( x i , y i ) ∧ σ S ′ [ i ] = ( x i ′ , y i ′ ) ] = 0.5 Pr [ σ S [ i ] = ( x i ′ , y i ′ ) ∧ σ S ′ [ i ] = ( x i , y i ) ] = 0.5
We use the gap of ∣ L σ S ( h ) − L σ S ′ ( h ) ∣ |L_{\sigma S} (h) - L_{\sigma S'} (h)| ∣ L σ S ( h ) − L σ S ′ ( h ) ∣ as a proxy of ∣ L S ( h ) − μ h ∣ |L_S(h) - \mu_h| ∣ L S ( h ) − μ h ∣ . This enables us to focus on finite sets S S S and S ′ S' S ′ without worrying about the infinite size of H \mathcal{H} H .
For convenience, we use Pr S [ ⋅ ] \underset{S}{\Pr}[\cdot] S Pr [ ⋅ ] (Pr S ′ [ ⋅ ] \underset{S'}{\Pr}[\cdot] S ′ Pr [ ⋅ ] ) as shorthand for Pr S ∼ D n [ ⋅ ] \underset{S \sim \mathcal{D}^n}{\Pr}[\cdot] S ∼ D n Pr [ ⋅ ] (Pr S ′ ∼ D n [ ⋅ ] \underset{S' \sim \mathcal{D}^n}{\Pr}[\cdot] S ′ ∼ D n Pr [ ⋅ ] ). The road map of our proof is as follows.
Lemma 1.
Pr S [ ∃ h : L S ( h ) ∉ B ( μ h , ϵ ) ] ≤ 2 max S , S ′ ∈ Z n Pr σ [ ∃ h : ∣ L σ S ( h ) − L σ S ′ ( h ) ∣ ≥ ϵ 2 ]
\Pr_{S}[ \exists h : L_S(h) \notin B(\mu_h, \epsilon ) ] \le 2 \max_{S, S' \in \mathcal{Z}^n } \Pr_\sigma \left[ \exists h : |L_{ \sigma S} (h) - L_{ \sigma S' } (h) | \ge \frac{\epsilon}{2} \right]
S Pr [ ∃ h : L S ( h ) ∈ / B ( μ h , ϵ )] ≤ 2 S , S ′ ∈ Z n max σ Pr [ ∃ h : ∣ L σ S ( h ) − L σ S ′ ( h ) ∣ ≥ 2 ϵ ]
On the left hand side of the inequality, the probability measures the event of a random set S S S sampling from D \mathcal{D} D . On the right hand side, we can pick a fixed pair of S S S and S ′ S' S ′ that maximize
Pr σ [ ∃ h : ∣ L σ S ( h ) − L σ S ′ ( h ) ∣ ≥ ϵ 2 ] ,
\Pr_\sigma \left[ \exists h : |L_{ \sigma S} (h) - L_{ \sigma S' } (h) | \ge \frac{\epsilon}{2} \right],
σ Pr [ ∃ h : ∣ L σ S ( h ) − L σ S ′ ( h ) ∣ ≥ 2 ϵ ] , and the probability measures the event of the random swap σ \sigma σ . Fixing S S S and S ′ S' S ′ significantly simplifies the structure of H \mathcal{H} H . By Hoeffding inequality and union bound, we will prove that
Lemma 2. For any fixed pair of S , S ′ ∈ Z n S, S' \in \mathcal{Z}^n S , S ′ ∈ Z n ,
Pr σ [ ∃ h : ∣ L σ S ( h ) − L σ S ′ ( h ) ∣ ≥ ϵ 2 ] ≤ 2 Π H ( 2 n ) exp ( − n 2 ϵ 2 2 )
\Pr_\sigma \left[ \exists h : |L_{ \sigma S} (h) - L_{ \sigma S' } (h) | \ge \frac{\epsilon}{2} \right] \le 2 \Pi_\mathcal{H} (2n) \exp( - \frac{n^2 \epsilon^2 }{2} )
σ Pr [ ∃ h : ∣ L σ S ( h ) − L σ S ′ ( h ) ∣ ≥ 2 ϵ ] ≤ 2 Π H ( 2 n ) exp ( − 2 n 2 ϵ 2 )
Proof of Lemma 1.
The proof of Lemma 1 consists of three steps.
Step 1
Pr S [ ∃ h : L S ( h ) ∉ B ( μ h , ϵ ) ] ≤ 2 Pr S , S ′ [ ∃ h : L S ( h ) ∉ B ( μ h , ϵ ) ∧ L S ′ ( h ) ∈ B ( μ h , ϵ / 2 ) ] .
\Pr_{S}[ \exists h : L_S(h) \notin B(\mu_h, \epsilon ) ] \le 2 \Pr_{S , S'} [ \exists h : L_S (h) \notin B(\mu_h, \epsilon ) \wedge L_{S'} (h) \in B(\mu_h, \epsilon / 2) ].
S Pr [ ∃ h : L S ( h ) ∈ / B ( μ h , ϵ )] ≤ 2 S , S ′ Pr [ ∃ h : L S ( h ) ∈ / B ( μ h , ϵ ) ∧ L S ′ ( h ) ∈ B ( μ h , ϵ /2 )] .
Proof. By Hoeffding inequality, for a fixed h ∈ H h \in \mathcal{H} h ∈ H , when n ≥ 2 ϵ 2 ln 4 n \ge \frac{2}{\epsilon^2} \ln 4 n ≥ ϵ 2 2 ln 4
Pr S ′ [ L S ′ ( h ) ∉ B ( μ h , ϵ / 2 ) ] ≤ 2 exp ( − 2 n ( ϵ 2 ) 2 ) = 2 exp ( − n ϵ 2 2 ) ≤ 1 2
\Pr_{S'} [ L_{S'} (h) \notin B(\mu_h, \epsilon / 2) ] \le 2 \exp \left(- 2 n \left( \frac{\epsilon }{ 2 } \right)^2 \right) = 2 \exp \left( - \frac{n \epsilon^2}{2} \right) \le \frac{1}{2}
S ′ Pr [ L S ′ ( h ) ∈ / B ( μ h , ϵ /2 )] ≤ 2 exp ( − 2 n ( 2 ϵ ) 2 ) = 2 exp ( − 2 n ϵ 2 ) ≤ 2 1 It follows that
Pr S , S ′ [ ∃ h : L S ( h ) ∉ B ( μ h , ϵ ) ∧ L S ′ ( h ) ∈ B ( μ h , ϵ / 2 ) ] ≥ 1 2 Pr S [ ∃ h : L S ( h ) ∉ B ( μ h , ϵ ) ]
\Pr_{S , S'} [ \exists h : L_S (h) \notin B(\mu_h, \epsilon ) \wedge L_{S'} (h) \in B(\mu_h, \epsilon / 2) ]
\ge
\frac{1}{2} \Pr_{S}[ \exists h : L_S(h) \notin B(\mu_h, \epsilon ) ]
S , S ′ Pr [ ∃ h : L S ( h ) ∈ / B ( μ h , ϵ ) ∧ L S ′ ( h ) ∈ B ( μ h , ϵ /2 )] ≥ 2 1 S Pr [ ∃ h : L S ( h ) ∈ / B ( μ h , ϵ )] □ \square □
Remark: Mathematically, I don't know how to make prove this step rigorously. Suppose that for every i ∈ [ n ] i \in [n] i ∈ [ n ] , we know that the events E i E_i E i and F i F_i F i are measurable and independent. If Pr [ F i ] ≥ 1 / 2 \Pr[ F_i ] \ge 1 / 2 Pr [ F i ] ≥ 1/2 , then Pr [ E i ∧ F i ] ≥ 1 / 2 \Pr[ E_i \wedge F_i ] \ge 1 / 2 Pr [ E i ∧ F i ] ≥ 1/2 . But, can we claim that
Pr [ ∪ ( E i ∧ F i ) ] ≥ 1 2 Pr [ ∪ E i ] .
\Pr[ \cup (E_i \wedge F_i) ] \ge \frac{1}{2} \Pr[ \cup E_i ].
Pr [ ∪ ( E i ∧ F i )] ≥ 2 1 Pr [ ∪ E i ] . Step 2
Pr S [ ∃ h : L S ( h ) ∉ B ( μ h , ϵ ) ∧ L S ′ ( h ) ∈ B ( μ h , ϵ / 2 ) ] ≤ Pr S , S ′ [ ∃ h : ∣ L S ( h ) − L S ′ ( h ) ∣ ≥ ϵ 2 ]
\Pr_{S} [ \exists h : L_S (h) \notin B(\mu_h, \epsilon ) \wedge L_{S'} (h) \in B(\mu_h, \epsilon / 2) ]
\le
\Pr_{S, S'} \left[ \exists h : |L_S (h) - L_{S'} (h) | \ge \frac{\epsilon}{2} \right]
S Pr [ ∃ h : L S ( h ) ∈ / B ( μ h , ϵ ) ∧ L S ′ ( h ) ∈ B ( μ h , ϵ /2 )] ≤ S , S ′ Pr [ ∃ h : ∣ L S ( h ) − L S ′ ( h ) ∣ ≥ 2 ϵ ]
Proof . Observe that
{ ∃ h : L S ( h ) ∉ B ( μ h , ϵ ) ∧ L S ′ ( h ) ∈ B ( μ h , ϵ / 2 ) } ⊂ { ∃ h : ∣ L S ( h ) − L S ′ ( h ) ∣ ≥ ϵ 2 } .
\{ \exists h : L_S (h) \notin B(\mu_h, \epsilon ) \wedge L_{S'} (h) \in B(\mu_h, \epsilon / 2) \}
\subset
\left\{ \exists h : |L_S (h) - L_{S'} (h) | \ge \frac{\epsilon}{2} \right\}.
{ ∃ h : L S ( h ) ∈ / B ( μ h , ϵ ) ∧ L S ′ ( h ) ∈ B ( μ h , ϵ /2 )} ⊂ { ∃ h : ∣ L S ( h ) − L S ′ ( h ) ∣ ≥ 2 ϵ } . By monotonicity of probability, we finish the proof.
□ \square □
Step 3
Pr S , S ′ [ ∃ h : ∣ L S ( h ) − L S ′ ( h ) ∣ ≥ ϵ 2 ] ≤ max S , S ′ ∈ Z n Pr σ [ ∃ h : ∣ L σ S ( h ) − L σ S ′ ( h ) ∣ ≥ ϵ 2 ]
\Pr_{S, S' } \left[ \exists h : |L_S (h) - L_{S'} (h) | \ge \frac{\epsilon}{2} \right]
\le
\max_{S, S' \in \mathcal{Z}^n } \Pr_\sigma \left[ \exists h : |L_{ \sigma S} (h) - L_{ \sigma S' } (h) | \ge \frac{\epsilon}{2} \right]
S , S ′ Pr [ ∃ h : ∣ L S ( h ) − L S ′ ( h ) ∣ ≥ 2 ϵ ] ≤ S , S ′ ∈ Z n max σ Pr [ ∃ h : ∣ L σ S ( h ) − L σ S ′ ( h ) ∣ ≥ 2 ϵ ]
Proof. We claim that σ S \sigma S σ S and σ S ′ \sigma S' σ S ′ have the same joint distribution as S S S and S ′ S' S ′ (if S , S ′ ∼ D n S, S' \sim \mathcal{D}^n S , S ′ ∼ D n ). For points ∀ Z , Z ′ ∈ Z n \forall Z, Z' \in \mathcal{Z}^n ∀ Z , Z ′ ∈ Z n , by symmetry, it holds that
Pr S , S ′ [ S = Z , S ′ = Z ′ ] = Pr S , S ′ , σ [ σ S = Z , σ S ′ = Z ′ ]
\Pr_{S, S'} [ S = Z, S' = Z'] = \Pr_{S, S', \sigma} [ \sigma S = Z, \sigma S' = Z']
S , S ′ Pr [ S = Z , S ′ = Z ′ ] = S , S ′ , σ Pr [ σ S = Z , σ S ′ = Z ′ ] The right hand side can be viewed as the successful probability of the following experiment:
Sample independently S ∼ D n S \sim \mathcal{D}^n S ∼ D n and S ′ ∼ D n S' \sim \mathcal{D}^n S ′ ∼ D n .
For each i ∈ [ n ] i \in [n] i ∈ [ n ] , exchange the i i i -th elements of S S S and S ′ S' S ′ independently with probability 0.5 0.5 0.5 .
After the random swap, σ S = Z \sigma S = Z σ S = Z and σ S ′ = Z ′ \sigma S' = Z' σ S ′ = Z ′ .
Now, ∀ E ⊂ Z 2 n \forall \mathcal{E} \subset \mathcal{Z}^{2n} ∀ E ⊂ Z 2 n , it holds that
Pr S , S ′ [ ( S , S ′ ) ∈ E ] = Pr S , S ′ , σ [ ( σ S , σ S ′ ) ∈ E ] = E S , S ′ [ Pr σ [ ( σ S , σ S ′ ) ∈ E ] ∣ S , S ′ ] ≤ max S , S ′ ∈ Z n Pr σ [ ( σ S , σ S ′ ) ∈ E ]
\begin{aligned}
\Pr_{S, S'} [ (S, S') \in \mathcal{E} ]
&= \Pr_{S, S', \sigma} [ (\sigma S, \sigma S') \in \mathcal{E} ] \\
&= \mathbb{E}_{S, S'} [ \Pr_\sigma [(\sigma S, \sigma S') \in \mathcal{E} ] \mid S, S' ] \\
&\le \max_{S, S' \in \mathcal{Z}^n } \Pr_\sigma [(\sigma S, \sigma S') \in \mathcal{E} ]
\end{aligned}
S , S ′ Pr [( S , S ′ ) ∈ E ] = S , S ′ , σ Pr [( σ S , σ S ′ ) ∈ E ] = E S , S ′ [ σ Pr [( σ S , σ S ′ ) ∈ E ] ∣ S , S ′ ] ≤ S , S ′ ∈ Z n max σ Pr [( σ S , σ S ′ ) ∈ E ] Replacing E \mathcal{E} E with the set { Z , Z ′ ∈ Z n : ∃ h : ∣ L Z ( h ) − L Z ′ ( h ) ∣ ≥ ϵ 2 } \{Z, Z' \in \mathcal{Z}^n : \exists h : |L_Z (h) - L_{Z'} (h) | \ge \frac{\epsilon}{2} \} { Z , Z ′ ∈ Z n : ∃ h : ∣ L Z ( h ) − L Z ′ ( h ) ∣ ≥ 2 ϵ } finishes the proof.
□ \square □
Proof of Lemma 2.
Let
S = { ( x 1 , y 1 ) , ( x 2 , y 2 ) , . . . , ( x n , y n ) }
S = \{ (x_1, y_1), (x_2, y_2), ..., (x_n, y_n) \}
S = {( x 1 , y 1 ) , ( x 2 , y 2 ) , ... , ( x n , y n )} and
S ′ = { ( x 1 ′ , y 1 ′ ) , ( x 2 ′ , y 2 ′ ) , . . . , ( x n ′ , y n ′ ) } .
S' = \{ (x_1', y_1'), (x_2', y_2'), ..., (x_n', y_n') \}.
S ′ = {( x 1 ′ , y 1 ′ ) , ( x 2 ′ , y 2 ′ ) , ... , ( x n ′ , y n ′ )} . be a pair of fixed sample sets. Define the set C = { x 1 , x 2 , . . . , x n , x 1 ′ , x 2 ′ , . . . , x n ′ } ⊂ X \mathcal{C} = \{ x_1, x_2, ..., x_n, x_1', x_2', ..., x_n' \} \subset \mathcal{X} C = { x 1 , x 2 , ... , x n , x 1 ′ , x 2 ′ , ... , x n ′ } ⊂ X (with duplicates removed). The size of C \mathcal{C} C is bounded by 2 n 2n 2 n and therefore the size of restriction of H \mathcal{H} H on C \mathcal{C} C is bounded by Π H ( 2 n ) \Pi_\mathcal{H} (2n) Π H ( 2 n ) .
First, fix a hypothesis h h h . For all i ∈ [ n ] i \in [n] i ∈ [ n ] , define a i = ∣ ℓ ( h ( x i ) , y i ) − ℓ ( h ( x i ′ ) , y i ′ ) ∣ ≤ 1 a_i = |\ell( h( x_i ), y_i) - \ell( h( x_i' ), y_i' ) | \le 1 a i = ∣ ℓ ( h ( x i ) , y i ) − ℓ ( h ( x i ′ ) , y i ′ ) ∣ ≤ 1 and let V i ∈ { − 1 , 1 } V_i \in \{-1, 1\} V i ∈ { − 1 , 1 } be a random variable with equal probability:
Pr [ V i = − 1 ] = Pr [ V i = 1 ] = 0.5
\Pr[ V_i = -1 ] = \Pr[ V_i = 1] = 0.5
Pr [ V i = − 1 ] = Pr [ V i = 1 ] = 0.5 If we apply a random swap σ \sigma σ to ( S , S ′ ) (S, S') ( S , S ′ ) , then L σ S ( h S ) − L σ S ′ ( h S ) L_{ \sigma S} (h_S) - L_{ \sigma S' } (h_S) L σ S ( h S ) − L σ S ′ ( h S ) has the same distribution as ∑ i ∈ [ n ] 1 n a i V i \sum_{i \in [n] } \frac{1}{n} a_i V_i ∑ i ∈ [ n ] n 1 a i V i . Since
E [ ∑ i ∈ [ n ] 1 n a i V i ] = ∑ i ∈ [ n ] 1 n a i E [ V i ] = 0 ,
\mathbb{E} \left[ \sum_{i \in [n] } \frac{1}{n} a_i V_i \right] = \sum_{i \in [n] } \frac{1}{n} a_i \mathbb{E}[ V_i ] = 0,
E i ∈ [ n ] ∑ n 1 a i V i = i ∈ [ n ] ∑ n 1 a i E [ V i ] = 0 , by Hoeffding inequality,
Pr σ [ ∣ L σ S ( h ) − L σ S ′ ( h ) ∣ ≥ ϵ 2 ] = Pr [ ∣ ∑ i ∈ [ n ] 1 n a i V i − 0 ∣ ≥ ϵ 2 ] ≤ 2 exp ( − 2 ∑ i ∈ [ n ] a i 2 ( n ϵ 2 ) 2 ) ≤ 2 exp ( − n 2 ϵ 2 2 )
\begin{aligned}
\Pr_\sigma \left[ |L_{ \sigma S} (h) - L_{ \sigma S' } (h) | \ge \frac{\epsilon}{2} \right]
&= \Pr \left[ \left| \sum_{i \in [n] } \frac{1}{n} a_i V_i - 0 \right| \ge \frac{\epsilon}{2} \right] \\
&\le 2 \exp \left( - \frac{ 2 }{ \sum_{i \in [n] } a_i^2 } \left( \frac{n \epsilon}{2} \right)^2 \right) \\
&\le 2 \exp \left( - \frac{n^2 \epsilon^2 }{2} \right)
\end{aligned}
σ Pr [ ∣ L σ S ( h ) − L σ S ′ ( h ) ∣ ≥ 2 ϵ ] = Pr i ∈ [ n ] ∑ n 1 a i V i − 0 ≥ 2 ϵ ≤ 2 exp ( − ∑ i ∈ [ n ] a i 2 2 ( 2 n ϵ ) 2 ) ≤ 2 exp ( − 2 n 2 ϵ 2 ) The last inequality follows from that ∑ i ∈ [ n ] a i 2 ≤ n \sum_{i \in [n] } a_i^2 \le n ∑ i ∈ [ n ] a i 2 ≤ n .
Since for each h ∈ H h \in \mathcal{H} h ∈ H , it has the same behavior on C \mathcal{C} C as some function in H C \mathcal{H}_\mathcal{C} H C . We can apply union bound on H C \mathcal{H}_\mathcal{C} H C .
Pr σ [ ∃ h : ∣ L σ S ( h ) − L σ S ′ ( h ) ∣ ≥ ϵ 2 ] ≤ 2 ∣ H C ∣ exp ( − n 2 ϵ 2 2 ) ≤ 2 Π H ( 2 n ) exp ( − n 2 ϵ 2 2 )
\Pr_\sigma \left[ \exists h : |L_{ \sigma S} (h) - L_{ \sigma S' } (h) | \ge \frac{\epsilon}{2} \right] \le 2 |\mathcal{H}_\mathcal{C} | \exp \left( - \frac{n^2 \epsilon^2 }{2} \right) \le 2 \Pi_\mathcal{H} (2n) \exp \left( - \frac{n^2 \epsilon^2 }{2} \right)
σ Pr [ ∃ h : ∣ L σ S ( h ) − L σ S ′ ( h ) ∣ ≥ 2 ϵ ] ≤ 2∣ H C ∣ exp ( − 2 n 2 ϵ 2 ) ≤ 2 Π H ( 2 n ) exp ( − 2 n 2 ϵ 2 ) □ \square □
Reference
[1] Ethan Fetaya, "Lecture 02 - Introduction to Statistical Learning Theory", Weizmann Institute of Science, 2016
[2].R. Schapire and D. Bieber, “Lecture 05 - COS 511: Theoretical Machine Learning,”, Princeton University, 2013
← Back to all notes Back to top ↑