                                    Optimal Information Retention for Time-Series Explanations

Proof.

                                                   p (x, y | xm )
                       Z     Z Z                                                       
                m
   I (X; Y | X ) =                   log                                         m
                                                                        p (x, y | x ) dxdy p (xm ) dxm
                        Xm      y    X         p (x | xm ) p (y | xm )
                                         p (x, y, xm ) p(x)p (xm )
                      Z    Z Z                                       
                    =             log                                    p (x, y, xm ) dxdydxm
                       Xm y X            p(x)p (y, xm ) p (x, xm )
                                          p (x, y, xm )            p (x, xm )
                      Z    Z Z                                                 
                    =               log                   − log                   p (x, y, xm ) dxdydxm
                       Xm y X            p(x)p (y, xm )          p(x)p (xm )
                                        p (x, y, xm )                                                p (x, xm )
                      Z    Z Z                                                        Z     Z
                                                                  m             m
                    =             log               m
                                                        p (x, y, x   ) dxdydx      −            log          m)
                                                                                                                p (x, xm ) dxdxm
                       X m  y X        p(x)p  (y, x   )                                X m   X      p(x)p  (x
                    = I X; Y, X M − I X; X M ,
                                                    
                                                                                                                               (31)
and since X m , as a sub-segment of X, cannot be directly used as input to f (·) for the different shapes. Therefore, X̂ =
g(X m ) is used as new input to quantify the conditional mutual information I (X; Y | X m ), assuming distribution(X̂) ∼
distribution(X). g is the generator function, i.e., one layer of MLP. Then, there are
                                                                                 
                           I (X; Y | X m ) ⇒ I X; Y | X̂ = I X; Y, X̂ − I X; X̂ .                              (32)
                                                                  
To minimize I (X; Y | X m ), we minimize the first term I X; Y, X̂ , while maximize the second term I(X; X̂). When
X̂ serves as the input generated by X m , the mutual information I(X; X̂) should ideally include only the information
contained in I(X; Y ). Otherwise,
                                redundant information may be introduced. Assuming X̂ has no overlap with the portions
of H(X | Y ), then I X; Y, X̂ = I (X; Y ), which is a constant independent of X̂.

For I(X; X̂), since X and X̂ share the effective information in X m , they can naturally regarded as the anchor sample
and the positive sample, respectively, in contrastive learning. Therefore, we employ the contrastive loss including three to
maximize the mutual information between X and X̂:
                                               N
                                          1 X                     exp (f (xi ) · f (x̂i ))
                             Lcont = −          log                                                 ,                       (33)
                                          N i=1     exp (f (xi ) · f (x̂i )) + exp f (xi ) · f x̂−
                                                                                                 j


where x̂−                                                               m
        j denotes the negative sample, which can be generated by h(X − X ), i.e., Gaussian noise imputation.

Summary. We have shown the objective function (30) derived from min I (X; Y | X m ). This completes the proof of
definition.

C. Pseudocode of adapt-STE

Algorithm 1 adapt-STE Estimator
 1: Input: Logits l, Forward temperature τ f , Backward temperature τ b , Updating rate η, Standard deviation σ, Upper
    bound of temperature τmax , Lower bound of temperature τmin
 2: Forward Pass:
 3:   Sample Gumbel noise: g ∼ Gumbel(0, 1)
 4:   Update forward temperature: τf = clip (τf − η · σ(l), τmin , τmax
                                                                     )
 5:   Compute relaxed logits for forward pass: p = softmax τlf + g
 6:   Compute discrete mask: m = arg max(p)
 7: Backward Pass:
 8:   Update backward temperature: τb = clip (τb + η · σ(l), τmin , τmax )
      Compute relaxed logits for backward pass using same Gumbel noise sample: pb = softmax τlb + g
                                                                                                        
 9:
10:   Compute gradient using pb instead of p
11:   Perform backpropagation using the relaxed gradients


                                                                   15
