|
Algorithm 1 Counterfactual Supervision-based Information Bottleneck (CSIB) |
|
Input:, , , , , and is an example randomly drawn from . |
|
Output: classifier , feature extractor . |
| Begin: |
-
1:
; ;
-
2:
-
3:
Apply IB-ERM method (Equation (12)) to and obtain and
-
4:
Apply SVD to as
-
5:
-
6:
;
-
7:
;
-
8:
;
-
9:
if is not empty then
-
10:
; ;
-
11:
while do
-
12:
-
13:
.append(z)
-
14:
-
15:
-
16:
end while
-
17:
-
18:
while do
-
19:
-
20:
;
-
21:
;
-
22:
;
-
23:
-
24:
end while
-
25:
end if
-
26:
if label() = label() then
-
27:
.append(r); .append()
-
28:
;
-
29:
Go to Step 2
-
30:
end if
-
31:
;
|
| End |