               Optimal Information Retention for Time-Series Explanations


         Jinghang Yue 1 Jing Wang 1 2 Lu Zhang 1 Shuo Zhang 1 Da Li 1 Zhaoyang Ma 1 Youfang Lin 1 3


                          Abstract                                       1. Introduction
                                                                         The rapid advancements in deep learning have greatly im-
                                                                         proved the analysis of time-series data, excelling particu-
     Explaining deep models for time-series data is                      larly in capturing intricate temporal patterns and managing
     crucial for identifying key patterns in sensitive                   high-throughput datasets. However, their inherently multi-
     domains, such as healthcare and finance. How-                       layered and nonlinear architecture often renders them black-
     ever, due to the lack of a unified optimization                     box, prompting significant concerns regarding interpretabil-
     criterion, existing explanation methods often suf-                  ity and reliability in sensitive domains, such as healthcare
     fer from redundancy and incompleteness, where                       (Alqaraawi et al., 2020) and finance (Mokhtari et al., 2019).
     irrelevant patterns are included or key patterns are                For instance, explaining the temporal patterns and complex
     missed in explanations. To address this challenge,                  dynamics underpinning deep model predictions is essential
     we propose the Optimal Information Retention                        for understanding the physiological representation of dis-
     Principle, where conditional mutual information                     eases and enabling effective early warning systems (Di Mar-
     defines minimizing redundancy and maximizing                        tino & Delmastro, 2023).
     completeness as optimization objectives. We then
                                                                         Research on improving the interpretability of deep models
     derive the corresponding objective function the-
                                                                         for time series signals primarily focuses on local explana-
     oretically. As a practical framework, we intro-
                                                                         tions, aiming to identify critical temporal patterns by lo-
     duce an explanation framework ORTE, learning
                                                                         cating significant positions in time series signals. These
     a binary mask to eliminate redundant informa-
                                                                         approaches have attracted considerable interest due to their
     tion while mining temporal patterns of explana-
                                                                         ability to provide intuitive, data-driven insights, highlighting
     tions. We decouple the discrete mapping process
                                                                         which features are essential or irrelevant for specific down-
     to ensure the stability of gradient propagation,
                                                                         stream tasks. Some existing local explanation methods are
     while employing contrastive learning to achieve
                                                                         adaptations of approaches originally developed for computer
     precise filtering of explanatory patterns through
                                                                         vision (CV) and natural language processing (NLP). How-
     the mask, thereby realizing a trade-off between
                                                                         ever, Ismail et al. (2020) illustrates that saliency-based meth-
     low redundancy and high completeness. Exten-
                                                                         ods, such as Integrated Gradients (Baehrens et al., 2010),
     sive quantitative and qualitative experiments on
                                                                         Deep SHAP (Scott et al., 2017), and Feature Occlusion
     synthetic and real-world datasets demonstrate that
                                                                         (Zeiler & Fergus, 2014), fail to reliably and accurately iden-
     the proposed principle significantly improves the
                                                                         tify the temporal variation in feature importance within time
     accuracy and completeness of explanations com-
                                                                         series data. Others are tailored specifically for time-series
     pared to baseline methods. The code is available
                                                                         data. For example, Dynamask (Crabbé & Van Der Schaar,
     at https://github.com/moon2yue/ORTE public.
                                                                         2021) incorporates temporal dependencies by learning the
                                                                         effects of perturbation operators, enabling it to generate
                                                                         instance-specific importance scores for each feature at every
                                                                         time step. TIMEX (Queen et al., 2024) trains a surrogate
   1
                                                                         model to replicate the predictive behavior of a black-box
     School of Computer Science and Technology, Beijing Jiaotong         model, enabling the identification of important positions
University, Beijing, China 2 Key Laboratory of Big Data & Artifi-
cial Intelligence in Transportation (Beijing Jiaotong University),       and temporal patterns. However, these heuristic methods
Ministry of Education, Beijing, China 3 Beijing Key Laboratory of        lack a unified optimization framework and often overlook
Traffic Data Mining and Embodied Intelligence, Beijing, China.           the requirements for explanation completeness or low redun-
Correspondence to: Jing Wang <wj@bjtu.edu.cn>.                           dancy, posing challenges for identifying critical temporal
                                                                         patterns. As illustrated in Figure 1, the mixing of redundant
Proceedings of the 42 nd International Conference on Machine
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025              patterns makes critical patterns unable to be highlighted,
by the author(s).                                                        while incompleteness may cause missing patterns or even

                                                                     1
                                  Optimal Information Retention for Time-Series Explanations




             (a)                             (b)                               (c)                           (d)

Figure 1. The Venn Diagram of information retention. I(X; Y ) is defined as task-relevant effective information. (a) Ideal case: X m
only contains the same information as I(X; Y ). (b) Incompleteness case: The information of X m is a proper subset of I(X; Y ). (c)
Redundant case: The information of X m contains not only I(X; Y ), but also other information irrelevant to Y . (d) Mixed case: A
mixture of incompleteness and redundant cases.


pointing to wrong patterns.                                            for heuristic methods in generalizing to time series signals.
                                                                       Therefore, uniform optimization principles and practical
Information theory provides a novel perspective for explain-
                                                                       frameworks for time series signals are needed to be directly
ing the complex dynamics of deep models. Representative
                                                                       applied to improve the local interpretation of deep models.
approaches, such as the Information Bottleneck (IB) (Tishby
& Zaslavsky, 2015), focus on minimizing the mutual in-                 To address the above challenges, we propose the Optimal
formation I(X; Z) between the input X and the learned                  Information Retention Principle grounded in information
representation Z, while maximizing the mutual information              theory for precisely identifying explanatory temporal pat-
I(Y ; Z) between Z and the labels Y . The IB framework                 terns within time series. This principle encompasses three
structurally characterizes the learning process as a trade-off         criteria to guide the optimization of local explanations: i)
between compact representations and informational utility.             Semantic Information Retention, which aligns the predic-
TIMEX++ (Liu et al., 2024) highlights that many existing               tion distribution of the interpreter with the black-box model
interpretability metrics for time-series data are prone to triv-       to ensure fidelity of explanations; ii) Minimum Redundant
ial solutions and issues arising from distribution shifts. To          Information Retention, which minimizes the mutual infor-
address these challenges, an optimization objective for in-            mation between the input and the explanation under condi-
terpretability is derived from IB. Contrastive learning, on            tions unrelated to downstream tasks, thereby avoiding the
the other hand, centers on minimizing the distance between             inclusion of redundant information; iii) Maximum Effective
positive pairs in the embedding space while maximizing the             Information Retention, which ensures that after removing
distance between negative pairs (Dosovitskiy et al., 2014;             the explanatory temporal patterns, the mutual information
Khosla et al., 2020; Tian et al., 2020). For instance, train-          between the input and the label is minimized. This im-
ing models to maximize the mutual information of positive              plies that the input loses its predictive capability, thereby
pairs and minimize that of negative pairs aligns well with             guaranteeing the completeness of the explanation.
this framework (He et al., 2020). Rate reduction focuses
                                                                       Based on the Optimal Information Retention Principle, we
on compressing intra-class informational bits, ensuring that
                                                                       have derived objective functions for distribution alignment,
representations of different classes occupy highly uncorre-
                                                                       redundancy elimination, and information completeness, re-
lated linear subspaces (Yu et al., 2020; Chan et al., 2022).
                                                                       spectively. Furthermore, we propose an Optimal Informa-
CRATE (Yu et al., 2023) interprets the Transformer model
                                                                       tion Retention for Time-Series Explanations (ORTE) as
as a multi-layer stack of information compression and dis-
                                                                       a practical framework. Specifically, we first construct a
cretization processes, and introduces a simplified, white-box
                                                                       parametric network to learn a binary mask for filtering re-
version of the Transformer model. While these methods pro-
                                                                       dundant information from the input. We decouple the for-
vide insights into the learning process or objectives of deep
                                                                       ward mapping and backward gradient propagation processes
models from various perspectives, they are not designed to
                                                                       to mitigate the issue of gradient instability in binary mask
directly guide the optimization of local explanations. Due to
                                                                       learning. Then, we utilize the binary mask to construct
the dynamic nature of time series, redundant or incomplete
                                                                       positive and negative sample pairs and employ contrastive
local segments may represent different temporal patterns.
                                                                       learning to achieve a trade-off between low redundancy and
Additionally, the heterogeneity of data poses challenges

                                                                   2
                                 Optimal Information Retention for Time-Series Explanations

high completeness in the explanations. Additionally, we               The probability distribution of M can also be regarded as a
align the prediction distribution of the explanations with the        salient map (attribution map or importance map).
black-box model to ensure the fidelity of the explanations.
Our contributions are summarized as follows:                          2.2. Optimal Information Retention

   • We propose the Optimal Information Retention Prin-               For a task T whose goal is to predict label Y from the input
     ciple grounded in information theory to address the              X, the optimal sub-feature X m ∈ X should contain min-
     issues of redundancy and incompleteness in time series           imal irrelevant and maximum effective information to the
     interpretation, and theoretically derive the correspond-         mapping f : X → Y . In order to introduce the optimal
     ing objective functions.                                         explanations X m , we first investigate the possible cases of
                                                                      information retention within X m as shown in Figure 1. Ide-
   • We propose ORTE as a practical framework, which                  ally, the optimal explanation X m exclusively and entirely
     achieves a trade-off between low redundancy and high             contains the task-relevant information within X, denoted
     completeness in explanations by decoupling discrete              as Figure 1(a). Figure 1(b) shows the incompleteness in-
     mapping, contrastive learning, and distribution align-           formation case, where X m is a subset of I(X; Y ), failing
     ment.                                                            to fully explain the predictive behavior of f (X). This may
                                                                      manifest in the explanation as only highlighting partial frag-
   • We achieve state-of-the-art performance on eight syn-
                                                                      ments of the effective series. On the other hand, a redundant
     thetic and real-world time series datasets compared to
                                                                      information case occurs when X m not only includes the
     the latest competitive baselines and validate the utility
                                                                      necessary explanatory information but also incorporates ir-
     of each component.
                                                                      relevant information, as shown in Figure 1(c). This may
                                                                      lead to the mixing of irrelevant patterns, causing critical tem-
2. Optimal Information Retention Principle                            poral patterns to fail to be highlighted. Figure 1(d) involves
                                                                      a combination of incompleteness and redundant information
In this section, we first formally describe the formulation of
                                                                      within a single context, which may be a more challenging
time-series explanations based on classification task. Then,
                                                                      case. Both the inclusion of redundant information and the
we present a unified optimization principle for time-series
                                                                      absence of effective information can alter critical temporal
explanations, namely the principle of optimal information
                                                                      patterns, which is a key challenge in time-series explana-
retention. This principle comprises three criteria: semantic
                                                                      tions. Furthermore, explanations should remain faithful to
information retention, minimal redundant information reten-
                                                                      the pre-trained black-box model. To this end, we propose
tion, and maximal effective information retention. Based on
                                                                      the optimal information retention principle containing three
these criteria, we theoretically derive objective functions for
                                                                      criteria: Semantic Information Retention, Minimum Re-
optimizing time-series explanations.
                                                                      dundant Information Retention, and Maximum Effective
                                                                      Information Retention, as outlined below.
2.1. Problem Formulation
                                                                      Criteria 2.1. (Semantic Information Retention) To faith-
Time Series Classification. Given a time series dataset               fully reflect the predictive behavior f (X), X m should per-
                             N
D = (X, Y ) = {(xi , yi )}1 containing N pairs, X are                 form similar task-specific semantic consistency, as follows:
multivariate or univariate time series instances, and Y are
the corresponding labels. Each time series instance xi ∈                               min LJS (f (X), f (X m )) ,                (1)
RT ×D is composed of vectors collected by one (e.g., D =
1) or multiple sensors (e.g., D > 1), where T denotes the             where LJS denotes the Jensen-Shannon divergence.
length of time steps and D represents the number of sensors.
Each label yi belongs to one class of {1, 2, . . . , C}. A pre-       Criteria 2.1 ensures the fidelity of the explanation by align-
trained deep neural network (DNN) f is trained to classify            ing the distributions of f (X) and f (X m ). This avoids spuri-
the input instance xi into the maximum probability class,             ous correlations between the interpreter and the pre-trained
e.g., ŷi = argmax(f (xi )) ∈ C.                                      model, meaning that the identified key temporal patterns
Local explanation for time series. In this paper, we aim              are indeed the basis for the black-box model’s predictions.
to propose a mask generator g(f, x) to learn a binary mask            Furthermore, Semantic Information Retention also aligns
matrix M ∈ {0, 1}T ×D , which can retain the important                with the advantages of prediction consistency emphasized in
pieces of x, e.g., X m = X ⊙ M , where ⊙ is an element-               TIMEX (Queen et al., 2024) and the signal issue addressed
wise multiplication. In other words, X m are considered               in TIMEX++ (Liu et al., 2024).
more important than X ⊙ (1 − M ) for the classification               Criteria 2.2. (Minimum Redundant Information Retention)
task. Naturally, the ideal sub-features X m are expected to           The optimal sub-features X m should only contain the mu-
retain the most relevant information to the downstream task.          tual information shared by I(X; Y ), and include as little

                                                                  3
                                 Optimal Information Retention for Time-Series Explanations

                                                                                              m
information of X no relation to Y , as follows:                                   I (X; Y | X ), we minimize the first term
                                                                      To minimize
                                                                      I X; Y, X̂ , while maximize the second term I(X; X̂).
                    min I (X; X m | Y ) .                  (2)
                                                                      For the first term, when X̂ serves as the input generated
Although Criteria 2.2 provides an ideal direction for mini-           by X m , the mutual information I(X; X̂) should ideally
mizing redundant information, computing the conditional               include only the information contained in I(X; Y ). Other-
mutual information remains difficult for:                             wise, redundant information may be introduced. Assuming
                                       
                                             p (xm | x, y)
                                                                    X̂has no overlap   with the portions of H(X | Y ), then
          m
I (X; X | Y ) = Ep(x,y) Ep(xm |x,y) log
                                                                                  
                                                              ,       I X; Y, X̂ = I (X; Y ), which is a constant independent
                                              p (xm | y)
                                                          (3)         of X̂.
where p (xm | x, y) and p (xm | y) are intractable in DNN.
Considering X m = X ⊙ M , I (X; M | Y ) is served as the              For the second term, since X and X̂ share effective informa-
simplified form of I (X; X m | Y ). Furthermore, by relating          tion in X m , they can naturally regarded as the anchor sam-
it to the Kullback-Leibler divergence, there are                      ples and the positive samples, respectively, in contrastive
                                                                      learning. Therefore, we employ contrastive loss to maxi-
I (X; M | Y ) = Ep(x,y) [DKL (p(m | x, y)||p(m | y))] ,               mize the mutual information between X and X̂:
                                                            (4)
                                                                                    N
where I (X; X m | Y ) ∝ DKL (p(m | x, y)∥p(m | y)).                             1 X
Referring to the variational approaches (Miao et al.,                 Lct = −         {log[exp (f (xi ) · f (x̂i ))]
                                                                                N i=1
2022; Queen et al., 2024), M can be sampled following
                                                                                                         K
Bernoulli  distribution at each time step, i.e., p(m | x) =                                              X
                                                                                                               exp f (xi ) · f x̂−
                                                                                                                                   
Q                                                                     − log[exp (f (xi ) · f (x̂i )) +                           j    ]},
  t,d Bern(p t,d ), where pt,d denotes the probability that the
                                                                                                         j=1
value of x at time t and dimension d is retained.
                                           Q       Assuming                                                                    (8)
the desired distribution of p is p(m) = t,d Bern(r), the              where x̂−  denotes the  negative sample, which can be gener-
                                                                              j
derived objective function can be expressed as:
                                                                      ated by h(X − X M ), i.e., Gaussian noise imputation. The
 Lmask = E[DKL (p(m | x)∥q(m))]                                       detailed proof of (8) is provided in Appendix B.2.
         X            pt,d                   1 − pt,d (5)
       =    [pt,d log      + (1 − pt,d ) log         ],               3. ORTE Method
                       r                      1−r
            t,d
                                                                      We now present the Optimal Information Retention for
where r as the desired probability of q(m = 1) is a hyper-            Time-Series Explanations (ORTE), whose overview frame-
parameter in practice. The detailed proof of (5) is provided          work is illustrated in Figure 2. Based on the analysis in
in Appendix B.1.                                                      the previous section, ORTE describes a practical framework
Intuitively, the optimal X m should contain all the in-               for time-series explanations from the optimal information
formation relevant to Y . Assuming X m is removed,                    retention principle. ORTE includes three main blocks like
I (X; Y | X m ) → 0 indicates that H(X | X m ) completely             Adaptive Mask Generator (AMG), Contrastive Explanation
loses the information required to predict Y . To this end,            Separator (CES), and Predictive Distribution Aligner (PDA).
the formal definition of maximum effective information                Specifically, AMG learns a 0-1 occlusion matrix to mask
retention is as follows.                                              redundant information so that achieves the Minimum Re-
Criteria 2.3. (Maximum Effective Information Retention)               dundant Information Retention. CES employs contrastive
The optimal retention of sub-features X m should encom-               learning to trade off low redundancy and high complete-
pass as much task-relevant information from X as possible,            ness in the explanations, thereby achieving the Maximum
minimizing the risk of information omission, as follows:              Effective Information Retention. PDA aligns the prediction
                                                                      distribution of the explanations with the black-box model to
                    min I (X; Y | X m ) .                  (6)        ensure the Semantic Information Retention.

We pad the masked parts of X m to obtain X̂, ensur-                   3.1. Adaptive Mask Generator
ing consistency in dimensions while avoiding the Out-of-              According to the Minimum Redundant Information Reten-
Distribution (OOD). Furthermore, (6) can be decomposed                tion, the binary mask M ∈ {0, 1}T ×D reveals the inter-
as:                                                                   pretability of the time series, i.e., important segments are
       I (X; Y | X m ) ⇒                                              assigned {1} to be retained. The explanation generator
                                                     (7)        is performed through two steps to learn M : Probabilistic
       I X; Y | X̂ = I X; Y, X̂ − I X; X̂ .                           Generation Process and Discrete Mapping Process.

                                                                  4
                                Optimal Information Retention for Time-Series Explanations




Figure 2. Overview of ORTE method including three main blocks: Adaptive Mask Generator (AMG), Contrastive Explanation Separator
(CES), and Predictive Distribution Aligner (PDA).


Probabilistic Generation Process. The first process en-             pass is:
codes the input X as a probabilistic matrix P (M | X),
where pt1 ,d1 > pt2 ,d2 indicates xt1 ,d1 is more important                           ∂L   ∂L ∂m ∂p   ∂L ∂p
                                                                          backward:      =          ≈       ,                (11)
than xt2 ,d2 . As discussed by Queen et al. (2024), we em-                            ∂l   ∂m ∂p ∂l   ∂m ∂l
ploy an autoregressive transformer decoder and softmax
activations to output the probability of each temporal sen-         where Straight-Through Estimator (STE) (Bengio et al.,
sor pair. Additionally, to optimize the continuity of the           2013) is applied to allow gradients to propagate through the
distribution, we also introduce a continuous loss:                  logits, such as ∂m
                                                                                     ∂p ≈ 1. Although ST-GS solves the prob-
                                                                    lem of non-differentiable gradients in the discrete mapping
                         D T −1 q                                   process, it ignores the difference between forward and back-
                  1 XX                              2
       Lcon =                       (pt,d − pt+1,d ) .    (9)       ward propagation. Specifically, the forward propagation
                T ×D t=1d=1                                         requires the distribution of p to be sharp with the training
So the objective function for minimal redundant informa-            process so that extreme values are taken without signifi-
tion retention can be expressed as Lmrir = Lmask + Lcon .           cant bias. However, as discussed in Shah et al. (2024) the
Discrete Mapping Process. Mapping P from the contin-                backpropagation process of the fixed gradient limits the
uous space to the discrete binary space M suffers from              ability to model the data distribution. We propose adaptive
non-differentiable gradients. Queen et al. (2024) introduces        STE (adapt-STE) to alleviate the asymmetry of forward and
the Straight-Through Gumbel-Softmax (ST-GS) estimator               backward propagation:
(Jang et al., 2016) to bridge the gap between the forward
                                                                               τf = clip (τf − η · σ(l), τmin , τmax )
propagation mapping discrete distribution and the backward                                                                   (12)
derivation being non-differentiable. Let l denotes the unnor-                  τb = clip (τf + η · σ(l), τmin , τmax ) ,
malized logits of encoder outputs, the forward pass can be
summarized as:                                                      where τf and τb represent the temperature parameter of
                                                                  the forward propagation and backward propagation, respec-
                                        l                           tively. clip() restricts the upper and lower bound hyper-
              forward: p = softmax         +g
                                       τ                 (10)       parameters of τf and τb to be τmax and τmin , and η is the
                       m = arg max(p),                              updating rate and σ(l) is the standard deviation of l. A small
                                                                    τf ensures the sharpness of p in the forward propagation,
where τ represents the temperature parameter that controls          while a large τb ensures the faithfulness to l in the backward
the entropy of p, and g is randomly sampled noise from              propagation. The pseudocode of adapt-STE is summarized
Gumbel (0,1). Giving L as the loss function, the backward           in Appendix C

                                                                5
                                 Optimal Information Retention for Time-Series Explanations

3.2. Contrastive Explanation Separator                                datasets and four real-world datasets. Without loss of gener-
                                                                      ality, we employ the vanilla Transformer (Vaswani, 2017) as
As discussed in Section 2.3, maximizing the task-relevant
                                                                      a black-box classifier. Our goal is to explain this black-box
information shared by positive samples X̂ with input X, and
                                                                      model. Here we first introduce the experimental settings
minimizing the retention of valid information by negative
                                                                      including Datasets, Metrics, and Comparison Methods.
samples X̂ − is key to interpretation. To this end, we intro-
                                                                      Then the performance of the proposed method is compared
duce how to generate positive and negative sample pairs. As
                                                                      with baseline methods and an ablation study is conducted
discussed in TIMEX++ (Liu et al., 2024), it is essential to
                                                                      to validate the effectiveness of individual modules. Finally,
ensure the integrity of effective information while avoiding
                                                                      the ability of the optimal information retention principle to
out-of-distribution (OOD) issues. Therefore, we adopt the
                                                                      distinguish valid information from redundant information is
same generation strategy:
                                                                      experimentally verified. Refer to the Appendix D for more
                     X̂ = MLP(M, X),                      (13)        experimental details.

where X̂ ∈ RT ×D . Lsim = mse(X, X̂) is employed to                   4.1. Experimental Settings
ensure generalization and avoid overfitting. For negative
samples X̂ − , we filter out effective information through            Datasets. We evaluate our method on four carefully de-
reverse masking, while the masked portions are then filled            signed synthetic datasets with ground-truth annotations:
with Gaussian noise:                                                  FreqShapes, SeqComb-UV, SeqComb-MV, and LowVar
                                                                      (Queen et al., 2024). These datasets, encompassing both
                                                                      univariate and multivariate time series, inherently contain
             X̂ − = (1 − M ) ⊙ X + M ⊙ pad,             (14)          complex temporal dynamics. The goal of the explanation is
                                                                      to identify key segments that represent critical patterns in
                         2
                           
where pad ∼ N µ, σ . This effectively enhances the
discrepancy between positive and negative samples, thereby            the data. Additionally, we test on four real-world datasets:
facilitating a clearer distinction in the feature space. So           ECG - ECG arrhythmia detection (Moody & Mark, 2001);
the objective function for maximum effective information              PAM - human activity recognition (Reiss & Stricker, 2012);
retention can be expressed as Lmeir = αLct +βLsim , where             Epilepsy - EEG seizure detection (Andrzejak et al., 2001);
α and β are hyperparameters.                                          and Boiler - mechanical fault detection (Shohet et al., 2019).
                                                                      For the ECG dataset, we define the ground-truth explanation
3.3. Objective Function                                               as the QRS intervals associated with arrhythmia detection.
                                                                      Makowski et al. (2021) provides standard reference points
Predictive Distribution Aligner. The explanation should               for the detection of R, P, and T waves in ECG signals.
be faithful to the predictions of the black-box model. For
this purpose, we align the explained predictive distribution          Metrics. We employ two evaluation approaches. For expla-
with the pre-trained black-box model predictive distribution.         nations with ground truth annotations, we use the labeled
Referring to 1, the Jensen-Shannon divergence is minimized            explanations as a reference and quantify the results using
as the loss function to reduce the distribution difference.           Area Under Precision (AUP), Area Under Recall (AUR),
                                                                      and Area Under Precision-Recall Curve (AUPRC), which
The overall objective function for the learning process con-          combines AUP and AUR. For all three metrics, higher val-
sists of four terms. First, LJS aligns the explanation with the       ues indicate better performance. For explanations without
predictions of the black-box model, ensuring the retention            ground truth annotations, we follow an approach similar to
of semantic information. Second, Lmire filters redundant              Queen et al. (2024), where the bottom p-percentile of fea-
information by learning a masking matrix. Third, Lmeir de-            tures identified by the explainer is masked, and the change
composes the original data into positive and negative sample          in predictive Area Under Receiver Operating Characteristic
pairs, where contrastive learning is used to preserve effec-          Curve (AUROC) is measured.
tive information. Additionally, to enforce sparsity in the
masking, we introduce Lspr = ∥M ∥1 as a regularization                Comparison Methods. We have compared the proposed
term. The overall objective function is as follows:                   method with seven explainability methods, as follows: In-
                                                                      tegrated gradients (IG) (Baehrens et al., 2010) is widely
            L = LJS + Lmrir + Lmeir + γLspr ,             (15)        used for general interpretation; Dynamask (Crabbé & Van
                                                                      Der Schaar, 2021) and WinIT (Leung et al., 2021) are the
where γ is a hyperparameter.                                          time-series specific explanation methods; CoRTX (Chuang
                                                                      et al., 2023) is an explanation method based on contrastive
4. Experiments                                                        learning; SGT + Grad (Ismail et al., 2021) is an in-hoc inter-
                                                                      preter for time-series data; TIMEX (Queen et al., 2024) em-
In this section, we conduct experiments to study the per-             ploys a white-box model as an interpreter; and TIMEX++
formance of our proposed ORTE method on four synthetic

                                                                  6
                                 Optimal Information Retention for Time-Series Explanations


                   Table 1. Attribution explanation performance on univariate and multivariate synthetic datasets.
                                      FREQSHAPES                                                 SEQCOMB-UV
 METHOD              AUPRC               AUP                  AUR                   AUPRC            AUP                    AUR
 IG              0.7516±0.0032       0.6912±0.0028       0.5975±0.0020       0.5760±0.0022      0.8157±0.0023        0.2868±0.0023
 DYNAMASK        0.2201±0.0013       0.2952±0.0037       0.5037±0.0015       0.4421±0.0016      0.8782±0.0039        0.1029±0.0007
 WINIT           0.5071±0.0021       0.5546±0.0026       0.4557±0.0016       0.4568±0.0017      0.7872±0.0027        0.2253±0.0016
 CORTX           0.6978±0.0156       0.4938±0.0004       0.3261±0.0012       0.5643±0.0024      0.8241±0.0025        0.1749±0.0007
 SGT + GRAD      0.5312±0.0019       0.4138±0.0011       0.3931±0.0015       0.5731±0.0021      0.7828±0.0013        0.2136±0.0008
 TIMEX           0.8324±0.0034       0.7219±0.0031       0.6381±0.0022       0.7124±0.0017      0.9411±0.0006        0.3380±0.0014
 TIMEX++         0.8905±0.0018       0.7805±0.0014       0.6618±0.0019       0.8468±0.0014      0.9069±0.0003        0.4064±0.0011
 ORTE            0.9998±0.0001       0.8269±0.0014       0.8298±0.0020       0.9001±0.0025      0.9711±0.0006        0.4503±0.0031
                                     SEQCOMB-MV                                                      LOWVAR
 METHOD              AUPRC               AUP                  AUR                   AUPRC              AUP                  AUR
 IG              0.3298±0.0015       0.7483±0.0027       0.2581±0.0028       0.8691±0.0035      0.4827±0.0029        0.8165±0.0016
 DYNAMASK        0.3136±0.0019       0.5481±0.0053       0.1953±0.0025       0.1391±0.0012      0.1640±0.0028        0.2106±0.0018
 WINIT           0.2809±0.0018       0.7594±0.0024       0.2077±0.0021       0.1667±0.0015      0.1140±0.0022        0.3842±0.0017
 CORTX           0.3629±0.0021       0.5625±0.0006       0.3457±0.0017       0.4983±0.0014      0.3281±0.0027        0.4711±0.0013
 SGT + GRAD      0.4893±0.0005       0.4970±0.0005       0.4289±0.0018       0.3449±0.0010      0.2133±0.0029        0.3528±0.0015
 TIMEX           0.6878±0.0021       0.8326±0.0008       0.3872±0.0015       0.8673±0.0033      0.5451±0.0028        0.9004±0.0024
 TIMEX++         0.7589±0.0014       0.8783±0.0007       0.3906±0.0011       0.9466±0.0015      0.8057±0.0016        0.8332±0.0016
 ORTE            0.8314±0.0019       0.9011±0.0005       0.5632±0.0028       0.9637±0.0016      0.7390±0.0023        0.9057±0.0013


            Table 2. (Left) Attribution explanation performance on the ECG dataset. (Right) Results of ablation analysis.
                                      ECG                             ORTE                               ECG
 METHOD            AUPRC              AUP              AUR            ABLATIONS         AUPRC            AUP                AUR
 IG            0.4182±0.0014     0.5949±0.0023    0.3204±0.0012       FULL           0.7183±0.0019   0.8222±0.0021    0.5133±0.0016
 DYNAMASK      0.3280±0.0011     0.5249±0.0030    0.1082±0.0080       replace STE    0.6152±0.0007   0.7468±0.0008    0.4023±0.0012
 WINIT         0.3049±0.0011     0.4431±0.0026    0.3474±0.0011       w/o LJS        0.6946±0.0040   0.7941±0.0045    0.5208±0.0036
 CORTX         0.3735±0.0008     0.4968±0.0024    0.3031±0.0008       w/o Lct        0.5421±0.0032   0.7195±0.0028    0.4143±0.0019
 SGT + GRAD    0.3144±0.0010     0.4241±0.0024    0.2639±0.0013       w/o Lcon       0.7130±0.0037   0.8019±0.0037    0.4244±0.0021
 TIMEX         0.4721±0.0018     0.5663±0.0025    0.4457±0.0018       w/o Lsim       0.7017±0.0040   0.7951±0.0043    0.5187±0.0035
 TIMEX++       0.6599±0.0009     0.7260±0.0010    0.4595±0.0007       w/o Lspr       0.6907±0.0051   0.3507±0.0037    0.8185±0.0044
 ORTE          0.7183±0.0019     0.8222±0.0021    0.5133±0.0016



(Liu et al., 2024) is an improved version of TIMEX based              achieves an optimal trade-off between low redundancy and
on the information bottleneck principle.                              high completeness. When considering the global metric
                                                                      AUPRC, ORTE significantly improves ground-truth expla-
4.2. Performance on Synthetic and Real-world Datasets                 nations over TIMEX++, with improvements of 12.27% on
                                                                      FreqShapes, 6.29% on SeqComb-UV, 9.55% on SeqComb-
Synthetic datasets. As shown in Table 1, we compare                   MV, and 1.81% on LowVar. This aligns with our empha-
ORTE with existing competitive interpreters on both uni-              sized principle of optimal information retention. We also
variate and multivariate datasets. ORTE achieves the best             provide experimental results on CNN and LSTM in Ap-
performance in 10/12 cases (3 metrics across 4 datasets).             pendix E and visualizations in Appendix H.
Compared to the strongest baseline TIMEX++, ORTE im-
proves AUPRC by an average of 7.48%, AUP by 1.84%,                    Occlusion experiments on real-world datasets. To evalu-
and AUR by 22.27%. Compared to the second strongest                   ate the explanations of ORTE on real-world datasets lacking
baseline TIMEX, ORTE improves AUPRC by an average of                  ground-truth, we follow the approach of TIMEX (Queen
19.61%, AUP by 15.38%, and AUR by 22.33%. Previous                    et al., 2024) and TIMEX++ (Liu et al., 2024) by masking the
methods prioritized the precision of temporal pattern local-          bottom p-percentile of the salient features and measuring
ization but overlooked the completeness of explanations,              the change in prediction AUROC. As shown in Figure 3,
resulting in higher AUP but lower AUR. In contrast, ORTE              ORTE outperforms other methods on the PAM and Boiler


                                                                  7
                                                                 Optimal Information Retention for Time-Series Explanations

                           Random                 Dynamask        Timex                      Timex++           Ours
                                                    PAM                                                               Epilepsy                                                         Boiler
                                                                                                                                                                 0.9
                   0.95
                                                                                             0.95                                                                0.8
                   0.90
                                                                                                                                                                 0.7
Prediction AUROC




                                                                          Prediction AUROC




                                                                                                                                              Prediction AUROC
                   0.85                                                                      0.90
                   0.80                                                                                                                                          0.6
                   0.75                                                                      0.85                                                                0.5
                   0.70                                                                                                                                          0.4
                   0.65                                                                      0.80                                                                0.3
                   0.60                                                                      0.75                                                                0.2
                           0.75 0.8 0.85 0.9 0.925 0.95 0.975 0.99                                  0.75 0.8 0.85 0.9 0.925 0.95 0.975 0.99                            0.75 0.8 0.85 0.9 0.925 0.95 0.975 0.99
                                   Bottom Proportion Perturbed                                              Bottom Proportion Perturbed                                        Bottom Proportion Perturbed
                                           Figure 3. Occlusion experiments on real-world datasets. Higher values indicate better performance.

                           Random                 Dynamask        Timex                      Timex++           Ours

                   1.00
                                                    PAM                                                               Epilepsy                                                         Boiler
                                                                                             0.95                                                                0.9
                   0.95                                                                      0.90
                   0.90                                                                      0.85                                                                0.8
                                                                                             0.80                                                                0.7
Prediction AUROC




                                                                          Prediction AUROC




                                                                                                                                              Prediction AUROC
                   0.85                                                                      0.75
                   0.80                                                                      0.70                                                                0.6
                   0.75                                                                      0.65                                                                0.5
                   0.70                                                                      0.60                                                                0.4
                   0.65                                                                      0.55
                                                                                             0.50                                                                0.3
                   0.60                                                                      0.45                                                                0.2
                   0.55                                                                      0.40
                           0.75 0.8 0.85 0.9 0.925 0.95 0.975 0.99                                  0.75 0.8 0.85 0.9 0.925 0.95 0.975 0.99                            0.75 0.8 0.85 0.9 0.925 0.95 0.975 0.99
                                    Bottom Proportion Retained                                               Bottom Proportion Retained                                         Bottom Proportion Retained
                                            Figure 4. Insertion experiments on real-world datasets. Higher values indicate better performance.


                                1.0                                                           adapt STE                   4. The results show that ORTE achieves a lower AUPROC
                                                                                              STE
                                                                                                                          when inserting the bottom 75% of the salient features. As
                                0.8
                                                                                                                          the insertion percentage increases, the predicted AUROC
                                0.6
                                                                                                                          gradually improves. When the insertion ratio reaches 97.5%,
                                                                                                                          ORTE attains the highest AUPROC. This indicates that the
                          AUP




                                0.4                                                                                       most interpretable or informative features are concentrated
                                                                                                                          in the high-saliency features, further validating the claims
                                0.2                                                                                       of low redundancy and high completeness. In addition, the
                                                                                                                          Random baseline always maintains a high AUROC, which
                                0.0                                                                                       is because the random selection of features does not dis-
                                      FREQSHAPE     SEQCOMB-UV   SEQCOMB-MV                    LOWVAR
                                                                                                                          tinguish the salient or importance of features and contains
Figure 5. Comparison performance of AUP between adapt-STE                                                                 informative time points or segments.
and STE.
                                                                                                                          4.3. Ablation and Contrast Experiments
                                                                                                                          Results and Ablation Experiments on ECG Data. To di-
datasets, and performs comparably to the strongest base-                                                                  rectly demonstrate ORTE’s performance on real-world data,
line TIMEX++ on the Epilepsy dataset, both maintaining                                                                    we compared it with baseline methods in the application of
a high and stable level. Notably, ORTE demonstrates ex-                                                                   arrhythmia detection using electrocardiogram (ECG) data.
ceptional stability on the Boiler dataset, retaining a high                                                               As shown in Table 2, the attribution maps of ORTE exhibit
AUROC even after masking 97.5% of the bottom features.                                                                    state-of-the-art performance in identifying the relevant QRS
Furthermore, compared to other baseline methods, ORTE ex-                                                                 intervals driving arrhythmia diagnosis, outperforming the
hibits narrower error bars, indicating that the ORTE method,                                                              strongest baseline TIMEX++ by 8.85% (AUPRC), 13.25%
guided by the principle of optimal information retention,                                                                 (AUP), and 11.71% (AUR). Notably, ORTE achieves an
also achieves outstanding stability.                                                                                      overall improvement in both AUP and AUR, ensuring the
Insertion experiments on real-world datasets. As a com-                                                                   identification of larger segments of the QRS interval rather
plement to the occlusion experiments, the insertion experi-                                                               than individual time steps.
ment inserts features from bottom to top, as shown in Figure

                                                                                                                      8
                                 Optimal Information Retention for Time-Series Explanations

To validate the contribution of each component in the ORTE           Impact Statement
method, we conducted ablation experiments, as shown on
the right side of Table 2, where ”w/o” indicates the ab-             This paper presents work whose goal is to advance the field
sence of the relevant component. The results demonstrate             of Machine Learning. There are many potential societal
that adapt-STE improves AUPRC by 7.27% and AUR by                    consequences of our work, none which we feel must be
14.22%, proving the effectiveness of adapt-STE. We also              specifically highlighted here.
compared the performance of every term of the objective
function. Compared to the full model, the absence of other           References
loss functions leads to inferior explanations. The proposed
                                                                     Alqaraawi, A., Schuessler, M., Weiß, P., Costanza, E., and
ORTE effectively compensates for the limitations of individ-
                                                                       Berthouze, N. Evaluating saliency map explanations for
ual components, achieving an overall optimal explanation.
                                                                       convolutional neural networks: a user study. In Proceed-
Contrast Experiments of adapt-STE. We compare the                      ings of the 25th international conference on intelligent
performance of adapt-STE with STE on univariate and mul-               user interfaces, pp. 275–285, 2020.
tivariate datasets, as shown in Figure 5. The AUP values of
the four datasets show that adapt-STE is significantly better        Andrzejak, R. G., Lehnertz, K., Mormann, F., Rieke, C.,
than STE. Moreover, AUP is considered to be the more im-               David, P., and Elger, C. E. Indications of nonlinear deter-
portant evaluation metric. Especially in SeqComb-UV and                ministic and finite-dimensional structures in time series
SeqComb-MV, adapt-STE can detect the key time patterns                 of brain electrical activity: Dependence on recording re-
more accurately, which also verifies the better adaptation             gion and brain state. Physical Review E, 64(6):061907,
of adapt-STE to data diversity. The complete experiment                2001.
results are provided in Appendix G.                                  Baehrens, D., Schroeter, T., Harmeling, S., Kawanabe, M.,
                                                                       Hansen, K., and Müller, K.-R. How to explain individual
5. Conclusion                                                          classification decisions. The Journal of Machine Learning
                                                                       Research, 11:1803–1831, 2010.
This paper proposes an information-theoretic principle of
optimal information retention to guide the discovery of ex-          Bengio, Y., Léonard, N., and Courville, A. Estimating or
planatory temporal patterns in time series. It defines se-             propagating gradients through stochastic neurons for con-
mantic information, redundant information, and effective               ditional computation. arXiv preprint arXiv:1308.3432,
information, and derives corresponding objective functions.            2013.
Furthermore, we introduce ORTE as a practical implemen-
                                                                     Bento, J., Saleiro, P., Cruz, A. F., Figueiredo, M. A., and
tation of this principle. Experiments on synthetic and real-
                                                                       Bizarro, P. Timeshap: Explaining recurrent models
world datasets demonstrate that the proposed method signif-
                                                                       through sequence perturbations. In Proceedings of the
icantly outperforms competitive baseline approaches. We
                                                                       27th ACM SIGKDD conference on knowledge discovery
also believe that the optimal information retention principle
                                                                       & data mining, pp. 2565–2573, 2021.
proposed in this paper is applicable to the optimization and
improvement of future interpretability methods.                      Bhalla, U., Srinivas, S., and Lakkaraju, H. Discriminative
                                                                       feature attributions: bridging post hoc explainability and
Limitations. This study has two main limitations. First, the
                                                                       inherent interpretability. Advances in neural information
control of hyperparameters can affect instance-level expla-
                                                                       processing systems, 36:44105–44122, 2023.
nations, requiring trial and adjustment based on the type and
characteristics of the data. Second, the practical application       Bhatt, U., Xiang, A., Sharma, S., Weller, A., Taly, A., Jia,
of the optimal information retention principle to guide other          Y., Ghosh, J., Puri, R., Moura, J. M., and Eckersley, P.
interpretability methods requires further research. Extend-            Explainable machine learning in deployment. In Proceed-
ing it to gradient-based or mask-based explanation methods             ings of the 2020 conference on fairness, accountability,
could be an interesting direction.                                     and transparency, pp. 648–657, 2020.
                                                                     Chan, K. H. R., Yu, Y., You, C., Qi, H., Wright, J., and Ma, Y.
Acknowledgements                                                       Redunet: A white-box deep network from the principle of
This work was supported by the National Natural Science                maximizing rate reduction. Journal of machine learning
Foundation of China (Grant No. 62372031).                              research, 23(114):1–103, 2022.
                                                                     Chen, J., Song, L., Wainwright, M., and Jordan, M. Learn-
                                                                       ing to explain: An information-theoretic perspective on
                                                                       model interpretation. In International conference on ma-
                                                                       chine learning, pp. 883–892. PMLR, 2018.

                                                                 9
                                 Optimal Information Retention for Time-Series Explanations

Chen, X., Qiu, P., Zhu, W., Li, H., Wang, H., Sotiras, A.,             Guidotti, R., Monreale, A., Spinnato, F., Pedreschi, D., and
  Wang, Y., and Razi, A. Timemil: advancing multivariate                 Giannotti, F. Explaining any time series classifier. In
  time series classification via a time-aware multiple in-               2020 IEEE second international conference on cognitive
  stance learning. In Proceedings of the 41st International              machine intelligence (CogMI), pp. 167–176. IEEE, 2020.
  Conference on Machine Learning, pp. 7190–7206, 2024.
                                                                       He, K., Fan, H., Wu, Y., Xie, S., and Girshick, R. Mo-
Choi, E., Bahadori, M. T., Sun, J., Kulas, J., Schuetz, A., and          mentum contrast for unsupervised visual representation
  Stewart, W. Retain: An interpretable predictive model                  learning. In Proceedings of the IEEE/CVF conference on
  for healthcare using reverse time attention mechanism.                 computer vision and pattern recognition, pp. 9729–9738,
  Advances in neural information processing systems, 29,                 2020.
  2016.
                                                                       Hooker, S., Erhan, D., Kindermans, P.-J., and Kim, B. A
Chuang, Y.-N., Wang, G., Yang, F., Zhou, Q., Tripathi, P.,               benchmark for interpretability methods in deep neural
  Cai, X., and Hu, X. Cortx: Contrastive framework for                   networks. Advances in neural information processing
  real-time explanation. arXiv preprint arXiv:2303.02794,                systems, 32, 2019.
  2023.
                                                                       Ismail, A. A., Gunady, M., Corrada Bravo, H., and Feizi,
Crabbé, J. and Van Der Schaar, M. Explaining time series                S. Benchmarking deep learning interpretability in time
  predictions with dynamic masks. In International Con-                  series predictions. Advances in neural information pro-
  ference on Machine Learning, pp. 2166–2177. PMLR,                      cessing systems, 33:6441–6452, 2020.
  2021.
                                                                       Ismail, A. A., Corrada Bravo, H., and Feizi, S. Improving
Dabkowski, P. and Gal, Y. Real time image saliency for                   deep learning interpretability by saliency guided training.
  black box classifiers. Advances in neural information                  Advances in Neural Information Processing Systems, 34:
  processing systems, 30, 2017.                                          26726–26739, 2021.

                                                                       Jang, E., Gu, S., and Poole, B. Categorical repa-
Di Martino, F. and Delmastro, F. Explainable ai for clinical
                                                                         rameterization with gumbel-softmax. arXiv preprint
  and remote health applications: a survey on tabular and
                                                                         arXiv:1611.01144, 2016.
  time series data. Artificial Intelligence Review, 56(6):
  5261–5315, 2023.                                                     Jethani, N., Sudarshan, M., Aphinyanaphongs, Y., and Ran-
                                                                          ganath, R. Have we learned to explain?: How inter-
Doddaiah, R., Parvatharaju, P., Rundensteiner, E., and                    pretability methods can learn to encode predictions in
  Hartvigsen, T. Class-specific explainability for deep time              their interpretations. In International Conference on Arti-
  series classifiers. In 2022 IEEE International conference               ficial Intelligence and Statistics, pp. 1459–1467. PMLR,
  on data mining (ICDM), pp. 101–110. IEEE, 2022.                         2021.
Dosovitskiy, A., Springenberg, J. T., Riedmiller, M., and              Khosla, P., Teterwak, P., Wang, C., Sarna, A., Tian, Y., Isola,
  Brox, T. Discriminative unsupervised feature learning                  P., Maschinot, A., Liu, C., and Krishnan, D. Supervised
 with convolutional neural networks. Advances in neural                  contrastive learning. Advances in neural information
  information processing systems, 27, 2014.                              processing systems, 33:18661–18673, 2020.
Early, J., Cheung, G., Cutajar, K., Xie, H., Kandola, J., and          Langley, P. Crafting papers on machine learning. In Langley,
  Twomey, N. Inherently interpretable time series classi-                P. (ed.), Proceedings of the 17th International Conference
  fication via multiple instance learning. In The Twelfth                on Machine Learning (ICML 2000), pp. 1207–1216, Stan-
  International Conference on Learning Representations,                  ford, CA, 2000. Morgan Kaufmann.
  2024.
                                                                       Leung, K. K., Rooke, C., Smith, J., Zuberi, S., and Volkovs,
Fong, R., Patrick, M., and Vedaldi, A. Understanding deep                M. Temporal dependencies in feature importance for
  networks via extremal perturbations and smooth masks.                  time series predictions. arXiv preprint arXiv:2107.14317,
  In Proceedings of the IEEE/CVF international conference                2021.
  on computer vision, pp. 2950–2958, 2019.
                                                                       Liu, Z., Wang, T., Shi, J., Zheng, X., Chen, Z., Song,
Guidotti, R., Monreale, A., Giannotti, F., Pedreschi, D.,                L., Dong, W., Obeysekera, J., Shirani, F., and Luo, D.
  Ruggieri, S., and Turini, F. Factual and counterfactual                Timex++: Learning time-series explanations with infor-
  explanations for black box decision making. IEEE Intel-                mation bottleneck. arXiv preprint arXiv:2405.09308,
  ligent Systems, 34(6):14–23, 2019.                                     2024.

                                                                  10
                                Optimal Information Retention for Time-Series Explanations

Lundberg, S. A unified approach to interpreting model                Selvaraju, R. R., Cogswell, M., Das, A., Vedantam, R.,
  predictions. arXiv preprint arXiv:1705.07874, 2017.                  Parikh, D., and Batra, D. Grad-cam: Visual explana-
                                                                       tions from deep networks via gradient-based localization.
Makowski, D., Pham, T., Lau, Z. J., Brammer, J. C.,
                                                                       In Proceedings of the IEEE international conference on
 Lespinasse, F., Pham, H., Schölzel, C., and Chen, S. A.
                                                                       computer vision, pp. 618–626, 2017.
 Neurokit2: A python toolbox for neurophysiological sig-
 nal processing. Behavior research methods, pp. 1–8,                 Shah, R., Yan, M., Mozer, M. C., and Liu, D. Improv-
 2021.                                                                 ing discrete optimisation via decoupled straight-through
                                                                       gumbel-softmax. arXiv preprint arXiv:2410.13331, 2024.
Miao, S., Liu, M., and Li, P. Interpretable and generaliz-
 able graph learning via stochastic attention mechanism.             Shohet, R., Kandil, M., and McArthur, J.             Simu-
 In International Conference on Machine Learning, pp.                  lated boiler data for fault detection and classification,
 15524–15543. PMLR, 2022.                                              2019. URL https://dx.doi.org/10.21227/
Mokhtari, K. E., Higdon, B. P., and Başar, A. Interpreting            awav-bn36.
 financial time series with shap values. In Proceedings              Tian, Y., Sun, C., Poole, B., Krishnan, D., Schmid, C., and
 of the 29th annual international conference on computer               Isola, P. What makes for good views for contrastive
 science and software engineering, pp. 166–172, 2019.                  learning? Advances in neural information processing
Moody, G. B. and Mark, R. G. The impact of the mit-bih                 systems, 33:6827–6839, 2020.
 arrhythmia database. IEEE engineering in medicine and               Tishby, N. and Zaslavsky, N. Deep learning and the infor-
 biology magazine, 20(3):45–50, 2001.                                  mation bottleneck principle. In 2015 ieee information
Mujkanovic, F., Doskoč, V., Schirneck, M., Schäfer, P.,              theory workshop (itw), pp. 1–5. IEEE, 2015.
 and Friedrich, T. timexplain–a framework for explaining
                                                                     Tonekaboni, S., Joshi, S., Campbell, K., Duvenaud, D. K.,
 the predictions of time series classifiers. arXiv preprint
                                                                       and Goldenberg, A. What went wrong and when?
 arXiv:2007.07606, 2020.
                                                                       instance-wise feature importance for time-series black-
Qin, Y., Song, D., Chen, H., Cheng, W., Jiang, G., and                 box models. Advances in Neural Information Processing
  Cottrell, G. A dual-stage attention-based recurrent neu-             Systems, 33:799–809, 2020.
  ral network for time series prediction. arXiv preprint
                                                                     Vaswani, A. Attention is all you need. Advances in Neural
  arXiv:1704.02971, 2017.
                                                                       Information Processing Systems, 2017.
Queen, O., Hartvigsen, T., Koker, T., He, H., Tsiligkaridis,
 T., and Zitnik, M. Encoding time-series explanations                Yosinski, J., Clune, J., Nguyen, A., Fuchs, T., and Lipson,
  through self-supervised model behavior consistency. Ad-              H. Understanding neural networks through deep visual-
  vances in Neural Information Processing Systems, 36,                 ization. arXiv preprint arXiv:1506.06579, 2015.
  2024.                                                              Yu, Y., Chan, K. H. R., You, C., Song, C., and Ma, Y.
Räuker, T., Ho, A., Casper, S., and Hadfield-Menell, D. To-           Learning diverse and discriminative representations via
  ward transparent ai: A survey on interpreting the inner              the principle of maximal coding rate reduction. Advances
   structures of deep neural networks. In 2023 ieee confer-            in neural information processing systems, 33:9422–9434,
   ence on secure and trustworthy machine learning (satml),            2020.
   pp. 464–483. IEEE, 2023.                                          Yu, Y., Buchanan, S., Pai, D., Chu, T., Wu, Z., Tong, S.,
Reiss, A. and Stricker, D. Introducing a new benchmarked               Haeffele, B., and Ma, Y. White-box transformers via
  dataset for activity monitoring. In 2012 16th international          sparse rate reduction. Advances in Neural Information
  symposium on wearable computers, pp. 108–109. IEEE,                  Processing Systems, 36:9422–9457, 2023.
  2012.
                                                                     Zeiler, M. and Fergus, R. Visualizing and understanding
Ribeiro, M. T., Singh, S., and Guestrin, C. ” why should               convolutional networks. d. fleet, t. pajdla, b. schiele, & t.
  i trust you?” explaining the predictions of any classifier.          tuytelaars (eds.). computer vision–eccv 2014, 2014.
  In Proceedings of the 22nd ACM SIGKDD international
  conference on knowledge discovery and data mining, pp.
  1135–1144, 2016.
Scott, M., Su-In, L., et al. A unified approach to interpret-
  ing model predictions. Advances in neural information
  processing systems, 30:4765–4774, 2017.

                                                                11
                                Optimal Information Retention for Time-Series Explanations

A. Related Work
Deep Model Interpretability. Current efforts to enhance the interpretability of deep models primarily focus on exploring
the relationship between inputs and predictions or making the prediction process more transparent (Räuker et al., 2023).
Specifically, these research endeavors can be categorized into four primary directions: i) Employing visualization techniques
to reveal the response relationship between feature maps at any layer of the model and the input (Yosinski et al., 2015; Zeiler
& Fergus, 2014). ii) Extracting rules or feature interactions, such as leveraging attention mechanisms to understand the role
of each variable in predictions and identifying the main features driving the model (Choi et al., 2016; Qin et al., 2017). iii)
Simulating the predictive behavior of deep models with interpretable models, such as approximating the decision surface of
the model in the neighborhood of samples (Bhatt et al., 2020; Ribeiro et al., 2016; Guidotti et al., 2019). iv) Scoring the
importance of input data and visualizing attribution maps (saliency maps or importance maps), which is currently the most
active area of interpretability research, with representative methods like Integrated Gradients (IG) (Baehrens et al., 2010),
Grad-CAM (Selvaraju et al., 2017), and SHAP (Lundberg, 2017). v) Mask-based methods are devoted to learning a mask
matrix M , and the Hadamard products of the input and M are represented as the salient features (Dabkowski & Gal, 2017;
Chen et al., 2018; Fong et al., 2019). Jethani et al. point out that explanation methods suffer from computational efficiency,
inaccuracy, or lack of faithfulness. The lack of robustness of the underlying black-box models, especially to the erasure of
unimportant distractor features in the input is a key reason why certain attributions lack faithfulness (Bhalla et al., 2023).
ROAR (Hooker et al., 2019) points out that many popular interpretability methods produce feature importance estimates that
are no better than randomly assigned feature importance, and proposes an empirical measure of the approximate accuracy
of feature importance estimates in deep neural networks. Although various interpretation methods have been applied to
Computer Vision (CV) and Natural Language Processing (NLP), their application to time series often overlooks the modal
heterogeneity. For instance, redundancy or incompleteness in time series interpretation may represent different temporal
patterns.
Time Series Interpretability. Discriminative information in time series is often distributed across combinations of variables
or multiple time steps. Designing specialized interpretation methods based on these characteristics of time series signals is
the focus of current efforts (Doddaiah et al., 2022; Bento et al., 2021; Guidotti et al., 2020; Mujkanovic et al., 2020). A
representative approach employs attention maps as references for interpreting deep models of time series. For example,
WinIT (Leung et al., 2021) employs attention maps as references for feature importance, while Dynamask (Crabbé & Van
Der Schaar, 2021) applies regularization constraints to attention maps to achieve smooth temporal patterns. However,
these methods use zero-padding as a baseline for perturbation, which may generate out-of-distribution temporal patterns
(Tonekaboni et al., 2020). The recent application of multiple instance learning to time series tasks has provided new insights
for interpretability, i.e., Early et al. propose multiple instance learning for locally explainable time series classification,
which guarantees the intrinsic interpretability of the deep model without compromising the predictive performance. Chen
et al. have explored the feasibility of introducing multiple instance learning into time series tasks from the perspective
of information theory and weakly supervised learning. Another category of methods involves using surrogate models to
interpret pre-trained black-box models, such as TIMEX (Queen et al., 2024) and TIMEX++ (Liu et al., 2024). However,
TIMEX is limited by the out-of-distribution shifts of the surrogate model, while TIMEX++ overlooks the completeness of
temporal patterns, thus failing to capture the full temporal dynamics.
Explanations of Information Theory. Information theory provides a novel perspective for explaining the complex dynamics
of deep models. Representative methods include information bottleneck (Tishby & Zaslavsky, 2015), contrastive learning
(Dosovitskiy et al., 2014; Khosla et al., 2020; Tian et al., 2020), and rate reduction (Yu et al., 2020; Chan et al., 2022).
Among these, the information bottleneck is used to interpret the learning process of deep models, describing it structurally
as a trade-off between compact representation and information utility. Contrastive learning formalizes the pre-training
objective as minimizing the distance between positive pairs in the embedding space while maximizing the distance between
negative pairs, such as maximizing mutual information for positive samples and minimizing it for negative samples. Rate
reduction posits that deep models are stacks of information compression and discretization (Yu et al., 2023). Although these
methods offer insights into the foundational dynamics of deep models, they lack intuitive interpretability at the data level,
meaning they cannot directly guide the optimization of local explanations.

B. Technical Details from Section 2
We wish to reiterate the core contributions of our method from a technical perspective. Compared to heuristic interpretability
methods, we first propose an optimal information retention principle from an information theory perspective and then


                                                              12
                               Optimal Information Retention for Time-Series Explanations

construct a practical framework based on the principle. The principle provides optimization directions for explanations
across three levels: fidelity, low redundancy, and high completeness. The specific contributions of the principle are
three-fold:

  • We align the prediction distributions of the original time series and explanations within the pre-trained black-box model
    to ensure the fidelity of the explanation.

  • We employ variational methods to learn a mask matrix that follows Bernoulli distributions, masking task-irrelevant
    information to ensure low redundancy in the explanation.

  • We deconstruct the time series signal into positive and negative samples pairs, employing contrastive learning to
    ensure that positive samples contain task-relevant effective information while negative samples contain only irrelevant
    information, thereby ensuring the completeness of the explanation.

The second and third terms can naturally derive objective functions from the explicit conditional mutual information in the
optimal information retention principle, and we provide the corresponding proofs below.

B.1. Proof of Theorem 1
Minimum Redundant Information Retention. The optimal sub-features X m should only contain the mutual information
shared by I(X; Y ), and include as little information of X no relation to Y , as follows:

                                                     min I (X; X m | Y ) .                                              (16)

We aim to derive from I (X; X m | Y ) the objective function for optimizing time-series explanations:

                                    Lmask = E[DKL (p(m | x)∥q(m))]
                                            X            pt,d                   1 − pt,d                                (17)
                                          =    [pt,d log      + (1 − pt,d ) log          ].
                                                          r                      1−r
                                              t,d


Proof.
                                                            p (x, xm | y)
                                    Z Z       Z                                                   
                I (X; X m | Y ) =                   log                        p (x, xm
                                                                                         | y) dxdx m
                                                                                                       p(y)dy
                                 Y      XM X             p(x | y)p (xm | y)
                                                         p (xm | x, y)
                                Z Z          Z                                               
                                                                                 m            m
                             =                    log                    p (x, x   | y) dxdx      p(y)dy
                                 Y      XM X              p (xm | y)
                                                       p (xm | x, y)
                                Z Z        Z                        
                             =                  log                    p (x, xm , y) dxdxm dy                  (18)
                                 Y XM X                 p (xm | y)
                                                    p (xm | x, y)
                                                                  
                             = Ep(x,xm ,y) log
                                                     p (xm | y)
                                                              p (xm | x, y)
                                                                          
                             = Ep(x,y) Ep(xm |x,y) log                         ,
                                                               p (xm | y)
                           h        m
                                            i
                                      |x,y)
and we can view Ep(xm |x,y) log p(x
                                 p(xm |y)     as the Kullback-Leibler divergence of p(xm | x, y) and p(xm | y). So
             
I X; X M | Y can be rewritten as:

                              I X; X M | Y = Ep(x,y) [DKL (p(xm | x, y)||p(xm | y))]
                                          
                                                                                                                        (19)

where xm = x ⊙ m and (19) can be redefined as:

                                I (X; M | Y ) = Ep(x,y) [DKL (p(m | x, y)||p(m | y))] .                                 (20)

So there are
                                min I X; X M | Y ∝ min DKL (p(m | x, y)||p(m | y)).
                                                
                                                                                                                        (21)

                                                              13
                                Optimal Information Retention for Time-Series Explanations

Since p(m | y) is intractable, we introduce a variational approximation q(m | y) for this problem. We now proceed in two
steps. First, we deal with the DKL minimization problem without y as a conditional constraint. Considering that any point
mi,j ∈ RT ×D on M follows a Bernoulli distribution with value v = {0, 1}, so the distribution of M can be assumed as:
                                                              Y
                                                     q(m) =         Bern(r),                                             (22)
                                                              t,d


where r as the desired probability of v = 1 is a hyperparameter in practice. Similarly, we parameterize the learnable multiple
Bernoulli distribution of p(m | x) as:
                                                             Y
                                                  p(m | x) =     Bern(pt,d ),                                             (23)
                                                              t,d

where pt,d denotes the learned probability of xt,d is preserved.
Second, given the condition constraint y, the expected distribution q(m | y) or p(m | x, y) should implement the conditional
probability with y as a known term. We approximate the conditional constraint by considering the distributional consistency
of (y, ŷ) as a complement to the conditional probability, as follows:

                                      LJS (f (x), f (xm )) = E [DJS (f (x)∥f (xm ))] ,                                   (24)

where DJS represents the Jensen-Shannon (JS) divergence. And LJS (f (x), f (xm )) ≈ 0 is the ideal case. Combined with
the analysis in the first step, the objective function derived from min I (X; M | Y ) can be described as:

                               min E[DKL (p(m | x)∥q(m))], s.t. , LLC (f (x), f (xm )) ≈ 0.                              (25)

Since LJS (f (x), f (xm )) ≥ 0, so the constraint term combined in one function:

                                  min{E[DKL (p(m | x)∥q(m))] + LLC (f (x), f (xm ))},                                    (26)

where
                                                        X          pt,d                   1 − pt,d
                         E[DKL (p(m | x)∥q(m))] =        [pt,d log      + (1 − pt,d ) log          ].                    (27)
                                                                    r                      1−r
                                                        t,d

Furthermore, considering that the second term is the objective function corresponding to Semantic Information Retention,
(26) can be further simplified to the minimization of the objective function:

                                   Lmask = E[DKL (p(m | x)∥q(m))]
                                           X            pt,d                   1 − pt,d                                  (28)
                                         =    [pt,d log      + (1 − pt,d ) log          ].
                                                         r                      1−r
                                               t,d

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

B.2. Proof of Theorem 2
Maximum Effective Information Retention. The optimal retention of sub-features X m should encompass as much
task-relevant information from X as possible, minimizing the risk of information omission, as follows:

                                                     min I (X; Y | X m ) .                                               (29)

We aim to derive from I (X; Y | X m ) the objective function for optimizing time-series explanations:

                                           N
                                       1 X                     exp (f (xi ) · f (x̂i ))
                           Lcont = −         log                                                 .                     (30)
                                       N i=1     exp (f (xi ) · f (x̂i )) + exp f (xi ) · f x̂−
                                                                                              j


                                                              14
                                    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
                                 Optimal Information Retention for Time-Series Explanations

D. Exprimental Details
D.1. Description of Datasets
We evaluate our method on four carefully designed synthetic datasets with ground-truth annotations and four real-world
datasets. The number of samples, length, dimension, number of categories and tasks for all datasets are summarized in Table
3.
Synthetic Datasets. We employ four synthetic datasets with known ground-truth explanations proposed by Queen et al.
(2024) to investigate the ability to identify interpretable time patterns.

   • FreqShapes is a dataset designed for discerning the frequency of anomalous signal occurrences. It comprises four
     classes: Class 0 presents a downward pulse every 10 steps, Category 1 presents an upward pulse every 10 steps, Class 2
     presents a downward pulse every 17 steps, and Class 3 presents an upward pulse every 17 steps. The ground truth is
     explained by the positions of the ascending and descending peaks.
   • SeqComb-UV is a dataset tailored for distinguishing signal trends. It consists of four classes: Class 0 has no trend,
     Class 1 includes subsequences with an upward trend, Class 2 contains subsequences with a downward trend, and Class
     3 simultaneously encompasses both upward and downward subsequences. The ground truth is explained by identifying
     the locations of the subsequences that exhibit trends.
   • SeqComb-MV represents the multivariate version of SeqComb-UV. Subsequences with trends are randomly injected
     into the sensors. The ground truth is also explained by pinpointing the positions of the subsequences that exhibit trends.
   • LowVar is a dataset aimed at identifying regions of low variance that change over time within multivariate time
     series samples. It is divided into four classes: Class 0 identifies discriminant subsequences with a mean of -1.5 on
     sensor 0; Class 1 identifies discriminant subsequences with a mean of 1.5 on sensor 0; Class 2 identifies discriminant
     subsequences with a mean of -1.5 on sensor 1; and Class 3 identifies discriminant subsequences with a mean of 1.5 on
     sensor 1. The ground truth is explained by determining the locations of the discriminant subsequences.

Real-world Datasets. We employed four real-world datasets, among which only the ECG dataset has generated ground-truth
explanations.

   • ECG (Moody & Mark, 2001) is a dataset used for classifying cardiac arrhythmias. It includes three classes: normal
     readings (N), left bundle branch block beats (L), and right bundle branch block beats (R). The original dataset was
     segmented into 92,511 samples by windowing, each containing 360 time steps. We selected these because it is known
     that the L and R diagnoses depend on the QRS interval, which will serve as our ground-truth interpretation.
   • PAM (Reiss & Stricker, 2012) is a dataset utilized for discerning human activities. It encompasses 8 classes, each
     representing a different daily life activity. Every sample comprises 17 sensors with 600 consecutive observations,
     sampled at a frequency of 100 Hz, and the samples are roughly balanced across all 8 classes.
   • Epilepsy (Andrzejak et al., 2001) is an electroencephalogram (EEG) dataset designed to distinguish epileptic seizures.
     It contains two categories: seizure and non-seizure. Each sample lasts for 1 second and is sampled at a frequency of
     178 Hz.
   • Boiler (Shohet et al., 2019) is a dataset from an industrial setting. The learning task involves detecting mechanical
     failures in the blowdown valves of boilers. This dataset is particularly challenging due to its large dimensionality ratio,
     unlike other datasets that contain more time steps than sensors.


D.2. Description of Baselines
   • IG. (Baehrens et al., 2010) Integrated Gradients (IG) utilizes the gradients of a model to derive attribution maps
     for explanation. This method compares gradients to a baseline value and performs Riemann integration. Although
     Integrated Gradients is a classical explanation method, it does not incorporate inductive biases specific to time series.
   • SGT + Grad. (Ismail et al., 2021) This method employs Saliency Guided Training. During the training process,
     features with low gradients are masked to guide the model to focus on more significant regions for prediction.

                                                              16
                                Optimal Information Retention for Time-Series Explanations


                                   Table 3. The description of synthetic and real-world datasets.
    DATASET           # OF S AMPLES        L ENGTH        D IMENSION           C LASSES                     TASK
  F REQ S HAPES            6,100               50                   1                  4            M ULTI - CLASSIFICATION
 S EQ C OMB -UV            6,100               200                  1                  4            M ULTI - CLASSIFICATION
 S EQ C OMB -MV            6,100               200                  4                  4            M ULTI - CLASSIFICATION
     L OW VAR              6,100               200                  2                  4            M ULTI - CLASSIFICATION
       ECG                92,511               360                  1                  5            ECG CLASSIFICATION
       PAM                 5,333               600                  17                 8            ACTION RECOGNITION
    E PILEPSY             11,500               178                  1                  2            EEG CLASSIFICATION
     B OILER              160,719               36                  20                 2    M ECHANICAL FAULT DETECTION


   • Dynamask. (Crabbé & Van Der Schaar, 2021) This explainer is specifically constructed for time series and generates
     explanations using perturbation-based iterations. The method iteratively occludes each sample to learn a continuous
     mask. The goal is to morph the input time series into a carefully determined baseline value, thereby highlighting
     important temporal patterns.

   • WinIT. (Leung et al., 2021) Similar to Dynamask, this method is designed for time series and learns a mask matrix
     to achieve explanations. WinIT removes segments of the time series to measure the impact of features on the
     final prediction value. It considers feature dependencies across time steps and uses a generative model to alleviate
     Out-of-Distribution (OOD) issues.

   • CoRTX. (Chuang et al., 2023) This method is an explainer that leverages contrastive learning to approximate SHAP
     values. Originally developed for computer vision, we adopted a custom version implemented in A, aiming for the time
     series encoder and explanation generator to work in concert.

   • TIMEX. (Queen et al., 2024) This method trains an interpretable surrogate to mimic the behavior of a pre-trained
     time series model. It addresses the model fidelity issue by introducing model behavior consistency. It preserves the
     relationships in the latent space induced by the pre-trained model and those induced by TIMEX, learning a discrete
     mask matrix to explain time series.

   • TIMEX++. (Liu et al., 2024) This method investigates from an information-theoretic perspective how existing
     interpretability methods may be affected by trivial solutions and distribution shift problems. To tackle these issues,
     TIMEX++ employs the information bottleneck principle to revise the objective function of TIMEX. This method is
     currently the most competitive baseline approach.


D.3. Description of Metrics
As described by Crabbé & Van Der Schaar (2021), we employ AUP and AUR to evaluate the efficacy of explanation methods.
As described above, let the binary mask matrix M ∈ {0, 1}T ×D be the explanation of any black-box models for time series,
and let Q ∈ {0, 1}T ×D be the ground-truth mask matrix. If Qt,d = 1, then the feature of xt,d is salient; Otherwise Qt,d = 0,
then the feature of xt,d is task-irrelevant. We aim to convert the mask into an estimator as follows:
                                                                (
                                                                    1    if Mt,d ≥ τ
                                                 Q̂t,d (τ ) =                                                                 (34)
                                                                    0    else.

Consider the saliency index obtained by the truth value and explanation method separately:

                                         A = {(t, d) ∈ [1 : T ] × [1 : D] | Qt,d = 1},
                                                                                                                              (35)
                                     Â(τ ) = {(t, d) ∈ [1 : T ] × [1 : D] | Q̂t,d (τ ) = 1}.

                                                                    17
                                          Optimal Information Retention for Time-Series Explanations

The precision and recall curves that map each threshold to precision and recall scores are as follows:

                                                                                                |A ∩ Â(τ )|
                                                        P : (0, 1) −→ [0, 1] : τ 7−→                                ,
                                                                                                   |Â(τ )|
                                                                                                                                                                      (36)
                                                                                     |A ∩ Â(τ )|
                                                        R : (0, 1) −→ [0, 1] : τ 7−→              .
                                                                                         |A|

So AUP and AUR can be derived by:
                                                                                Z 1
                                                                        AUP =           P(τ )dτ,
                                                                                    0
                                                                                Z 1                                                                                   (37)
                                                                        AUR =           R(τ )dτ.
                                                                                    0


D.4. Description of Black-box Hyperparameters
In order to fairly compare the effectiveness of interpretation methods, it is necessary to ensure that the parameters of the
pre-trained black-box models are consistent. To this end, we refer to the parameter settings of Liu et al. (2024) as shown in
Table 4.


              Table 4. Training parameters for transformer-based predictors across all ground-truth and real-world datasets.
    PARAMETER        F REQ S HAPE      S EQ C OMB -UV    S EQ C OMB -MV    L OW VAR     ECG     PAM      E PILEPSY        B OILER   WAFER     F REEZER R EGULAR     WATER
  L EARNING RATE        0.001              0.001               0.0005       0.001       0.002   0.001     0.0001           0.001     0.0001        0.0001           0.002
  W EIGHT DECAY          0.1                0.01               0.001         0.01       0.001   0.001      0.001           0.001      0.001         0.001           0.001
      E POCHS            100                200                 1000         120         500     100        300             500        200           300             500
    N UM . LAYERS         1                   2                   2           1           1      1             1             1         1              1               1
          dh             16                  64                 128           32         64      72           16            32        16             16               64
      D ROPOUT           0.1                0.25                0.25         0.25       0.1     0.25          0.1          0.25       0.1            0.1             0.1
 N ORM . EMBEDDING       NO                 NO                  NO           Y ES       Y ES    NO            NO           Y ES       NO             NO              Y ES




D.5. Description of ORTE Hyperparameters
Table 5 summarizes the parameter settings for ORTE, where α is utilized to regulate the impact of contrastive learning
on the interpretability effect. When α is optimized, it preserves more complete interpretable temporal patterns, avoiding
the loss of valuable information. β is employed to prevent overfitting and enhance generalization capabilities on test data.
γ ensures the sparsity of explanations while also serving as a supplement to low redundancy. η, τmax and τmin are the
hyperparameters corresponding to adapt-STE, where we adopted the same parameter settings to ensure applicability to
different datasets. All the experiments are performed on Ubuntu 18.04.6 LTS and 4 GPU NVIDIA GeForce RTX 2080.


                       Table 5. Training parameters for ORTE across all ground-truth and real-world experiments.
   PARAMETER            F REQ S HAPE           S EQ C OMB -UV            S EQ C OMB -MV          L OW VAR               ECG         PAM        E PILEPSY      B OILER
 L EARNING RATE                0.001                    0.001                 0.002                 0.005               0.0005      0.0005       0.0005           0.0001
    BATCH SIZE                   64                       64                    64                    64                  16           32          32               32
 W EIGHT DECAY                 0.001                    0.001                 0.001                0.0001               0.0001       0.001        0.001           0.001
   S CHEDULER                  Y ES                     Y ES                   NO                    NO                   NO          NO          Y ES             Y ES
     E POCHS                     50                       50                   100                   100                   5          100          50               50
          r                      0.5                     0.5                   0.5                     0.5                0.5        0.1          0.5               0.5
          η                     0.01                    0.01                  0.01                     0.01              0.01        0.01        0.01              0.01
        τmax                      3                       3                     3                       3                  3          3            3                 3
        τmin                      1                       1                     1                       1                  1          1            1                 1
         α                      10.0                     5.0                  10.0                     1.0               10.0        10.0         2.0              10.0
         β                       1.0                     1.0                   1.0                     2.0                1.0        1.0          1.0               1.0
         γ                      0.05                    0.05                  0.05                     0.05              0.05        0.01        0.005            0.001



                                                                                18
                                 Optimal Information Retention for Time-Series Explanations

D.6. Description of classification Performance
Excellent classification performance is a necessary guarantee for evaluating the effectiveness of explanations. To objectively
compare interpretation methods, we employ the vanilla Transformer (Vaswani, 2017) as the black-box classifier. Table 6
summarizes the classification performance of the Transformer on four synthetic datasets and four real-world datasets. The
results show outstanding performance on all datasets except for dataset Boiler, with both AUP and AUR exceeding 0.9. The
reason is that dataset Boiler is more challenging due to its larger dimension-to-length ratio, unlike the other datasets, which
contain more time steps than sensors.


                      Table 6. The performance of transformer-based predictors for time series classification.
                          DATASET                     F1               AUPRC               AUROC
                          F REQ S HAPES        0.9692±0.0055         0.9936±0.0026      0.9980±0.0008
                          S EQ C OMB -UV       0.9412±0.0057         0.9789±0.0034      0.9923±0.0011
                          S EQ C OMB -MV       0.9270±0.0548         0.9445±0.0510      0.9792±0.0194
                          L OW VAR             0.9854±0.0044         0.9978±0.0006      0.9992±0.0003
                          ECG                  0.9211±0.0311         0.9463±0.0320      0.9709±0.0165
                          PAM                  0.8876±0.0064         0.9312±0.0044      0.9785±0.0015
                          E PILEPSY            0.9260±0.0114         0.9383±0.0079      0.9630±0.0135
                          B OILER              0.8363±0.0178         0.8214±0.0263      0.8901±0.0348



E. Additional Experiments on CNN and LSTM
We now study the applicability of ORTE across different black-box model architectures. Specifically, we conducted
experiments on both convolutional neural networks (CNN) and long-short term memory (LSTM) networks, which are
specifically structured as follows:

  • CNN: 3 layer CNN + MLP + meanpool.

  • LSTM: 3 layer bidirectional LSTM + MLP + mean of last hidden states.

The classification Performance of CNN and LSTM are summarized in Table 7 and Table 8, respectively.


                         Table 7. The performance of CNN-based predictors for time series classification.
                          DATASET                     F1               AUPRC               AUROC
                          F REQ S HAPES        0.9910±0.0071         0.9997±0.0007      0.9999±0.0002
                          S EQ C OMB -MV       0.9833±0.0171         0.9981±0.0024      0.9993±0.0009
                          ECG                  0.9178±0.0119         0.9466±0.0136      0.9682±0.0052



                        Table 8. The performance of LSTM-based predictors for time series classification.
                          DATASET                     F1               AUPRC               AUROC
                          F REQ S HAPES        0.9798±0.0141         0.9976±0.0018      0.9992±0.0007
                          S EQ C OMB -MV       0.9332±0.1052         0.9473±0.1057      0.9824±0.0348
                          ECG                  0.7907±0.1594         0.8095±0.1362      0.8303±0.1389

We compared ORTE with five competitive baseline methods: IG, Dynamask, WinIT, TIMEX, and TIMEX++. Table
9 summarizes the experimental performance of ORTE for explaining CNN models on both univariate and multivariate
synthetic datasets. Table 10 summarizes the experimental performance of ORTE for explaining CNN models on ECG
datasets as real-world applications. Overall, the interpretation effectiveness of ORTE shows significant improvement
compared to competitive baseline methods. Specifically, relative to the currently most competitive interpretation method

                                                                19
                                Optimal Information Retention for Time-Series Explanations

TIMEX++, the AUP of ORTE increases by 36.86%, 0.31%, and 13.62% on datasets FreqShapes, Seqcomb-MV, and C,
respectively. Furthermore, AUPRC respectively improved by 9.46%, 0.51%, and 26.23%, which aligns with the trade-off
between low redundancy and high completeness advocated in this paper.


             Table 9. Explainer results with CNN predictor on F REQ S HAPES and S EQ C OMB -MV synthetic datasets.
                                   F REQ S HAPES                                           S EQ C OMB -MV
 M ETHOD           AUPRC               AUP                 AUR              AUPRC                AUP                  AUR
 IG            0.9905±0.0007      0.8777±0.0009      0.7056±0.0017        0.5979±0.0027     0.8858±0.0014      0.2294±0.0013
 DYNAMASK      0.2574±0.0008      0.4432±0.0032      0.5257±0.0015        0.4550±0.0016     0.7308±0.0025      0.3135±0.0019
 W IN IT       0.5321±0.0018      0.6020±0.0025      0.3966±0.0017        0.5334±0.0011     0.8324±0.0020      0.2259±0.0020
 T IME X       0.7489±0.0046      0.4966±0.0033      0.7916±0.0021        0.7016±0.0019     0.7670±0.0012      0.4689±0.0016
 T IME X++     0.9134±0.0014      0.6066±0.0011      0.7952±0.0014        0.7822±0.0012     0.8896±0.0005      0.3434±0.0012
 ORTE          0.9998±0.0001      0.8302±0.0013      0.9997±0.0001        0.7862±0.0023     0.8924±0.0005      0.3928±0.0020



                                Table 10. Explainer results with CNN predictor on ECG dataset.
                                                                    ECG
                                M ETHOD          AUPRC              AUP              AUR
                                IG            0.4949±0.0010    0.5374±0.0012    0.5306±0.0010
                                DYNAMASK      0.4598±0.0010    0.7216±0.0027    0.1314±0.0008
                                W IN IT       0.3963±0.0011    0.3292±0.0020    0.3518±0.0012
                                T IME X       0.6401±0.0010    0.7458±0.0011    0.4161±0.0008
                                T IME X++     0.6726±0.0010    0.7570±0.0011    0.4319±0.0012
                                ORTE          0.8490±0.0018    0.8601±0.0016    0.4079±0.0012


Similarly, Table 11 summarizes the experimental performance of ORTE for explaining LSTM models on both univariate and
multivariate synthetic datasets. Table 12 summarizes the experimental performance of ORTE for explaining LSTM models
on ECG datasets as real-world applications. The experimental results for LSTM are also outstanding, especially on the
multivariate dataset Seqcomb-MV, where AUPRC improved by 92%, AUP by 23.85%, and AUR by 27.25%, respectively.


            Table 11. Explainer results with LSTM predictor on F REQ S HAPES and S EQ C OMB -MV synthetic datasets.
                                   F REQ S HAPES                                           S EQ C OMB -MV
 M ETHOD           AUPRC               AUP                 AUR              AUPRC                AUP                  AUR
 IG            0.9282±0.0016      0.7775±0.0010      0.6926±0.0017        0.2369±0.0020     0.5150±0.0048      0.3211±0.0032
 DYNAMASK      0.2290±0.0012      0.3422±0.0037      0.5170±0.0013        0.2836±0.0021     0.6369±0.0047      0.1816±0.0015
 W IN IT       0.4171±0.0016      0.5106±0.0026      0.3909±0.0017        0.3515±0.0014     0.6547±0.0026      0.3423±0.0021
 T IME X       0.9903±0.0002      0.7887±0.0008      0.7963±0.0013        0.1298±0.0017     0.1307±0.0022      0.4751±0.0015
 T IME X++     0.9939±0.0002      0.7413±0.0009      0.8428±0.0008        0.4052±0.0038     0.6804±0.0052      0.3519±0.0021
 ORTE          0.9999±0.0000      0.8573±0.0011      0.9993±0.0003        0.7780±0.0019     0.8427±0.0004      0.4478±0.0015



                               Table 12. Explainer results with LSTM predictor on ECG dataset.
                                                                    ECG
                                M ETHOD          AUPRC              AUP              AUR
                                IG            0.5037±0.0018    0.6129±0.0026    0.4026±0.0015
                                DYNAMASK      0.3730±0.0012    0.6299±0.0030    0.1102±0.0007
                                W IN IT       0.3628±0.0013    0.3805±0.0022    0.4055±0.0009
                                T IME X       0.6057±0.0018    0.6416±0.0024    0.4436±0.0017
                                T IME X++     0.6512±0.0011    0.7432±0.0011    0.4451±0.0008
                                ORTE          0.7372±0.0019    0.7817±0.0020    0.5672±0.0018



                                                              20
                                                    Optimal Information Retention for Time-Series Explanations

F. Computation Cost
We evaluated the computation cost of interpretability methods on two real-world datasets (PAM and Epilepsy), as detailed in
Table 13. Table 13 compares our method (ORTE) with four baseline approaches (IG, Dynamask, TIMEX, and TIMEX++)
in terms of parameters (M), FLOPs (G), and Inference Runtime (s). Compared with TIMEX and Timex++, our inference
time is slightly longer due to the double-STE to implement the regulation of discrete maps, but all three are in the same rank,
i.e., less than 1 second. IG and Dynamask require longer inference time, which is consistent with expectations since both
methods operate recursively on a single sample, while our method requires only one forward propagation.

                                                               Table 13. Comparison of computational costs.
                          Method                                  PAM                                                          Epilepsy
                                         Param(M) FLOPS(G) Inference runtime(s) Param(M) FLOPS(G) Inference runtime(s)
                          IG                  -              -               8.7837 ± 0.1862                 -               -               23.9806 ± 1.5245
                          Dynamask            -              -              458.4144 ± 32.5353               -               -               979.5168 ± 2.8082
                          TimeX            0.0620         6.5404              0.2475 ± 0.1072             0.0169          0.3546              0.2545 ± 0.1162
                          TimeX++          2.7012         8.6530              0.2451 ± 0.1013             0.0601          0.4487              0.2586 ± 0.1176
                          ORTE             2.7097         6.7700              0.4914 ± 0.0053             0.0645          0.3585              0.5858 ± 0.0439



G. Contrast Experiments of adapt-STE
To further validate the effectiveness of adapt-STE, we compared the performance of adapt-STE and STE on four datasets:
FreqShapes, SeqComb-UV, SeqComb-MV, and LowVar. As shown in Figure 6, adapt-STE significantly outperforms STE in
metrics of AUPRC, AUP, and AUR. Particularly in AUP, adapt-STE demonstrates higher explanation accuracy, which is
considered a more critical metric. Compared to STE, adapt-STE exhibits a lower AUR on dataset FreqShapes, which may
be attributed to an imbalance between low redundancy and high completeness, resulting in the omission of some effective
information.

        1.0                        adapt STE                          1.0                                          adapt STE         1.0                        adapt STE
                                   STE                                                                             STE                                          STE
        0.8                                                           0.8                                                            0.8

        0.6                                                           0.6                                                            0.6
AUPRC




                                                                                                                               AUR
                                                                AUP




        0.4                                                           0.4                                                            0.4

        0.2                                                           0.2                                                            0.2

        0.0                                                           0.0                                                            0.0
              FREQSHAPE   SEQCOMB-UV   SEQCOMB-MV     LOWVAR                FREQSHAPE   SEQCOMB-UV   SEQCOMB-MV    LOWVAR                  FREQSHAPE   SEQCOMB-UV   SEQCOMB-MV   LOWVAR
                               (a)                                                           (b)                                                            (c)


Figure 6. Comparison performance between adapt-STE and STE. (a) Comparison performance of AUPRC. (b) Comparison performance
of AUP. (c) Comparison performance of AUR.


H. Visual Comparison and Analysis
To facilitate a more intuitive comparison of various explanation methods, we have visualized the saliency maps of these
methods. We randomly selected three samples from four datasets, each accompanied by ground truth explanations, to
qualitatively analyze the effectiveness of the explanation methods through comparison with the ground truth. As shown in
Figures 7-10, the results on datasets FreqShapes, SeqComb-UV, SeqComb-MV, and LowVar are visualized respectively.
Each column represents a sample, and each row corresponds to an explanation method, with the bottom row representing the
ground truth explanation. In the figures, darker colors indicate more significant features, with the ground truth explanation
being the ideal result. As shown in Figure 7, our method accurately highlights the downward spikes, which are fundamental
to category judgment. In contrast, baseline methods suffer from issues of redundancy or incompleteness. For instance,
TIMEX highlights too many time steps, causing irrelevant information to mix with explanatory temporal patterns, thereby
failing to achieve effective interpretation. Conversely, Dynamask omits a significant amount of valid information, failing

                                                                                             21
                               Optimal Information Retention for Time-Series Explanations

to meet the requirement for completeness and resulting in the absence of critical temporal patterns. Similarly, in Figure
8, our method accurately highlights sub-segments with distinct trends. IG and TIMEX++ include excessive redundant
background information, while Dynamask and TIMEX miss important trend segments. Figures 9 and 10 demonstrate the
performance of the explanation methods on multivariate data. Notably, complex coupling relationships between variables
make interpretation more challenging. Our method shows greater adaptability, further validating the advantages of the
optimal information retention principle.




                                                           22
Optimal Information Retention for Time-Series Explanations




Figure 7. Visualization of explanations on FreqShapes dataset.


                              23
Optimal Information Retention for Time-Series Explanations




Figure 8. Visualization of explanations on SeqComb-UV dataset.


                             24
Optimal Information Retention for Time-Series Explanations




Figure 9. Visualization of explanations on SeqComb-MV dataset.


                             25
Optimal Information Retention for Time-Series Explanations




  Figure 10. Visualization of explanations on LowVar dataset.


                              26
