acceptodds
Published as a conference paper at NeurIPS 2026

CoLaX: Context-Aware Local Explanations for Time Series Classification

Kexuan Zhang, Paolo Frazzetto, Xiaobei Zou, Gustau Camps-Valls, Yang Tang

Abstract

Reliable deployment of time series classifiers in high-stakes domains requires explanations that capture the interplay between localized patterns and global temporal context. However, existing post-hoc methods often treat local features in isolation, failing to account for long-range dependencies. We propose CoLaX, a context-aware explanation framework that explicitly embeds local dynamics within a global temporal structure. By employing a principled context-conditioning mechanism, CoLaX models how global context modulates the importance of local patterns, revealing not only what is important but also when and why it matters. Extensive benchmarks demonstrate that CoLaX yields significantly more faithful and stable explanations than state-of-the-art baselines, demonstrating that joint local-global modeling is essential for reliable time-series interpretability.

Keywords:
Paris, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 4%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 3.67 over 3 reviews, above 4% of the others.
Reviewer_AFJ8OpenReview ↗
Rating
3
Clarity
3
Confidence
5
Originality
2
Quality
3
Significance
3
Read review
Summary

Time Series Classification is the important task in a wide range of domains, such as healthcare and environment. Although Deep Learning methods appear as highly accurate models for increasing number of classification and regression task, their complexity prevent interpretability of how they can make predictions. This hinder integration of Deep Learning to real-world scenarios when users need to trust the model. The paper focus on post-hoc explanation problem with a surrogate model that can capture local segments. Motivated from local activations alone focusing and ignore global temporal context in current explanation methods, the paper proposes a context-aware post-hoc explanation framework, that explicitly disentangle and recombine local and global representations in a dual-branch architecture, which provide interpretable explanations of temporal motifs influenced by the broader temporal context. Extensive experiments on 4 synthetic datasets, one real world dataset with explanation ground truth and UCR archive datasets show the proposed method called CoLaX provides explanations that is more faithful and more aligned with human annotated ground truth than other existing explanation methods.

Strengths and weaknesses

Quality

First, the problem defined in Section Method is clear for time series classification explanation, however, details for that lack of general case. Specifically, the saliency map R is not limited to size T only, it can be TxD for each feature is one score, for example Integrated Gradients (IG), can do that. Second, the method CoLAX is clearly described and easy to follow. Third, the method prove effectiveness in comprehensive datasets including synthetic datasets, ECG dataset with explanation ground truth with metrics AUPRC, AUP, and AUR, and occlusion-based perturbation to assess explanation faithfulness, however this seem lack an important metrics about robustness that are now is crucial in XAI and time series classification XAI community [A, B, C, D, E]. The baseline methods for comparison is also lack of comparison for [B, C, D, E, F] methods, which even can not compare empirically, but the authors should compare in terms of concepts especially about subsequence scores approaches. In terms of dataset, the authors only consider conduct on univariate time series synthetic/ECG/UCR, but do not show effectiveness on multivariate time series even this kind of dataset is mentioned in Section Method. This make confusion that the method is generally for both types and only focuses on univariate setting.

Clarity

The paper is clearly written. However, the most important concepts that motivate this work is not well defined. The first one is the local temporal patterns. As I understand, this is segments or subsequence, but I do not see explicit definitions in the paper, making readers need to guess each time the local patterns term come. The second concept is global context. Even, it can be understood by visualization in Figure 1, the first concept is easy to guess that is subsequence, however, the global context can not be easy to extract from the Figure 1. In caption, they say “global temporal structures”, I am not sure if it is global context or not. What I see from the Figure 1, global context seems an overall trend of time series but in the Figure 2, does it is still like a trend? This is not clear. Moreover, when I go through the method in Figure 2, the global context seems to be converted to weights for each local pattern (Global Weight Vector), then the global context seems to be can represented to explanation by only weights for each local pattern. In summary, reading until method’s description, I can not clearly understand what the global context is. An explicit clear definition with mathematical justification is necessary to improve clarity of this work for readers. Overall Objective’s loss hyperparameters seem not to be reported.

Significance

First, the method report evaluation of dataset with human annotated ground-truth for explanation, which is useful to researchers to access if the explanation is aligned with human’s perspective. However, it is not clear if deep learning model has the same explanation with human, if it is not, then significance in explanation evaluation can be misleading. Second, looking at the how the authors evaluate, the method’s insight of global context is not involved in the explanation presented to human, but only provide scores like ShapeX paper. It means that global context only improves scores of other existing methods rather than provide more insight into what human understand about the models. This is clearer if see the Figure 2, in (b) Inference Phase and Section 2.6 Post-hoc Explainability. In summary, the task and the problem is similar to ShapeX, and global context is a technique to improve problem defined in ShapeX. Third, the method does not provide unique data, unique conclusions about existing data, or a unique theoretical or experimental approach. What they provide is a better method with involving of global context to improve existing methods on existing problem. The claim about other methods focuses only on local pattern, and it is insufficient to explain why a pattern is predictive, is not well justified by empirical analysis, but only by comparison of the method with global context (CoLAX) and existing works with metrics. Although, the paper cites [30, 32] as justification but they are papers on time series forecasting, which is different from time series classification. Moreover, as I know, they are paper on how to use insight of global context to improve time series forecasting, but not about explanation. In summary, the paper appears only bring an intuition about lack of global context on existing methods without well justification, and show that if adding global context, then the explanation is better than other methods.

Originality

The method appears highly overlap with ShapeX in terms of methodology except global context integration. Specifically, Local Pattern Branch: It is quite similar to Shapelet Describe-and-Detect (SDD) Framework. I am not sure if it is a method come from ShapeX or proposed by the authors. Local Semantic Matching: This loss is similar to losses in the Section Shapelet Encoder and Training Losses in ShapeX paper. Post-hoc Explainability: This appear quite similar to Shapley Value Attribution for Shapelet-Driven Segments of ShapeX. In summary, the method CoLaX has overlapping parts except “Context-aware Modulation of Local Prototypes”. The relevant works is lack of [B, C, D, E, F]. The paper does not introduce novel tasks, problem framings, metrics but a method that advance the time series classification XAI field. The method’s novelty mostly come from how to combine a mechanism similar to ShapeX with a Context-aware Modulation of Local Prototypes. The method CoLaX’s Global Context Branch’s output is the Global Weight Vector, which raise a question about novel part of this method: If, we consider Global Weight Vector as trainable weights, ignore all process of Learnable Global Context, does it still work? Moreover, the outcome of global context module is only global weights, but they are not used in the last step about post-hoc explainability, which reveal that this model only improve how to choose local patterns better than existing methods.

References

[A] Agarwal, Chirag, et al. "Openxai: Towards a transparent evaluation of model explanations." Advances in neural information processing systems 35 (2022): 15784-15799.

[B] Sivill, Torty, and Peter Flach. "Limesegment: Meaningful, realistic time series explanations." International Conference on Artificial Intelligence and Statistics. PMLR, 2022.

[C] Tran, Viet-Hung, et al. "InteDisUX: intepretation-guided discriminative user-centric explanation for time series." Proceedings of the AAAI Conference on Artificial Intelligence. Vol. 39. No. 20. 2025.

[D] Chung, Hyunseung, et al. "Time is not enough: Time-frequency based explanation for time-series black-box models." Proceedings of the 33rd ACM International Conference on Information and Knowledge Management. 2024.

[E] Tran, Viet-Hung, et al. "Mix: a multi-view time-frequency interactive explanation framework for time series classification." Advances in Neural Information Processing Systems 38 (2026): 49181-49226.

[F] Jang, Hyeongwon, Changhun Kim, and Eunho Yang. "TIMING: Temporality-Aware Integrated Gradients for Time Series Explanation." Forty-second International Conference on Machine Learning.

Questions

Q1 (Originality): Can the authors compare to ShapeX in terms of technical parts and what are key differences of CoLaX to ShapeX in principle?

Q2 (Clarify): Can the authors define global context they mentioned explicitly with mathematic justification or literature supported from time series classification XAI?

Q3 (Quality): Can the authors provide robustness evaluation for CoLaX ?

Q4 (Significance): Can the authors show how model and human annotated explanations ground truth aligned with each other?

Q5 (Originality): Can authors compare their design with Global Weights as trainable weights and remove all global context part before that? It is not only about empirical results but also intuition how global context is important to generate weights rather than generating weights directly.

Limitations

Yes.

Paper formatting concerns

N/A.

Final justification

Thank you the authors to justify my concern on Q1 (Originality). I appreciated that the authors confirm my reading on technical details and show it can help explanation in some ways. However, the explanation of the authors is not clearly intuitive and without analysis and evidence, the claim seem can not be proved at the moment. I agree SHAPEX only find local segments but also have classification head in the end to aggregate all segments information into final decision. COLAX make it better with instance specific linear weights. However, the contribution, as I said previously, in my opinion, is only finding better segments. I also read other reviewers' comments. From that, I keep the score 3 (borderline reject) with the reason on Originality, that I agree the research gap of global context on TSC XAI but I think the technical novelty is still limited to incremental modification in the model to find segments.

Reviewer_VrWvOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

The authors propose COLAX (Context-Aware Local Explanations), a novel explanation method for time-series classification. Their key insight is to incorporate both local and global dynamics to generate model explanations.

Strengths and weaknesses

Strengths:

  • The paper is well-written and easy to follow.
  • The overall approach of incorporating global dynamics to enhance local prototype explanations is interesting and novel.
  • Overall good ablation studies and sensitivity analysis.

Weaknesses: The concerns below are mainly about making the empirical evaluation easier to trust, rather than about the core idea, which I find promising.

  • While the general method section is framed for multivariate time-series data, the experimental evaluation is set out mainly on univariate data, which limits the experimental setting and makes it difficult to assess how readily the method extends to the multivariate setting. It would help to either evaluate on a widely used multivariate clinical benchmark such as the MIMIC-3 ICU mortality dataset or to scope the claims to the univariate case; the former would provide a stronger demonstration of the method's general applicability.

  • I have two additional distinct concerns related to the evaluation:

(1) Choice of baseline methods. The proposed method is motif- and subsequence-based, whereas most baselines (DynaMask, IG, TIMEX, TIMEX++) are time-point attribution methods that are (potentially) at a disadvantage for the motif-based synthetic dataset. This makes parts of the comparison harder to interpret on equal footing. ShapeX is an appropriate baseline method; however, my concern is that the current set of baselines may inadvertently advantage COLAX. It would strengthen the core comparison to add a few motif/shapelet-based explainers, so the key results are measured against more comparable baseline methods.

(2) Dataset choice. The synthetic datasets are designed so that clear motifs exist, which favors a motif-based method by construction. Demonstrating the advantage only on motif-rich synthetic data again plays to the strengths of the proposed method relative to the other baseline methods (with the exception of ShapeX). It would help to acknowledge this explicitly as a limitation. One of the real-life ECG datasets used in this study is employed for atrial fibrillation (AF) classification, which, in itself, is arguably also heavily leaning towards being motif-based.

The authors apply their method to the UCR dataset, but this section occupies much less space in the paper (only a short paragraph, lines 220-224), with the majority of the results shown in the Appendix. One option the authors might consider is moving the UCR results into the main paper and relegating a subset of the synthetic experiments (e.g., MCC-H, MTC-H) to the appendix. This would provide more space to place the UCR results in the main part of the paper. Also, the authors could calculate the AUR for the least-saliency removal for each dataset (higher in this case is better), average these across all UCR datasets, and then report the averaged results for all methods across all datasets (with the exact numbers for specific datasets in the Appendix). This way, all methods are compared on all UCR datasets. Otherwise, it is harder to rule out the possibility that the UCR subset unintentionally favors the proposed method. The authors write (line 221-222): "We selected a representative subset spanning distinct domains [...] widely varying statistical properties, as shown in Figure 3". As Figure 3 shows only the corresponding AUROC degradation results, not the statistical properties, it is currently hard to follow the precise rationale for the selection.

Additional minor comment:

Figure 1: The highlighted prototypes for the blue, yellow, and orange regions in panel (b) seem to differ from the time series shown on top and below. So LP-1 shown on the time series above (for the stable one) differs from the corresponding one shown for the downward-trending time series (shown below). Line 495-496: Typo: DYNAMSK -> DYNAMASK

Questions

I would like the authors to address the weaknesses stated above (especially related to my concerns about the empirical comparison/evaluation).

Additionally, I would like to ask the following question:

  • Could the authors elaborate on how the short-term pattern (L_p) was set in the experiments? Also, how was the number of prototypes determined? This seems to me an important hyperparameter.
  • Could the authors also provide the training time next to the inference time for their proposed method? As their method consists of both a training phase and an inference phase. I presume that the training phase is computationally more expensive than the inference phase.
  • Lastly, the evaluation on the UCR dataset is only based on the least saliency removal. Can the author also provide additional results for removal of the top-k features first? This is important as these metrics could potentially disagree. Related to this, how are the least salient features masked? Are the values imputed with a zero baseline or a mean? Related to this, could the authors provide the AUR scores (calculated for the curves shown in the Figures, for instance Figure 3) (averaged across all UCR datasets). Additionally, can the authors add the corresponding results for the highest salient feature removal first approach for all methods on all UCR datasets?

I am open to raising my score if the authors address the concerns above, particularly the comparison/evaluation issues, which I think, upon adding, can strengthen the paper by making the evaluation more rigorous and fair.

Limitations

While the authors do state some limitations, I would recommend that they also discuss the additional computational cost of the method (already noted in line 496 of the paper). Two further limitations worth acknowledging explicitly are that the framework has so far been evaluated mainly on univariate datasets, and that most results are obtained on datasets with known motifs.

Paper formatting concerns

There are no major formatting issues.

Final justification

I thank the authors for the extensive rebuttal and the additional experiments and explanations given during the discussion phase.

I particularly appreciated the additional multivariate experiments, the additional UCR evaluation, and the additional explanation regarding the global context. With that being said, I still have some concerns about the paper's main claim that global context improves interpreting the local patterns by not also showing what is important but also when and why it matters (see Abstract). Yet, while the authors showed that, performance-wise, adding the global context aids (most prominently on the synthetic, motif-based experiments), I still miss an evaluation of this claim, where one shows that, for instance, ShapeX without a global context misattributes local patterns, whereas adding global context helps to correct that (CoLaX). The authors should either provide an additional evaluation supporting this claim, or change the wording accordingly. I advise the authors to work on this aspect in their revised manuscript.

I also thoroughly read the other reviewers' comments, and I think that the paper's contributions outweigh its limitations. At the end, for this reason, I decided to increase my score to 4 (borderline accept) from my initial rating of 3 (borderline accept) (thereby overwriting my concluding words comment regarding maintaining my score).

Reviewer_ctsZOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
4
Read review
Summary

The paper addresses a recognized limitation in post-hoc explanation methods for time series classification: existing local approaches (shapelet-based, prototype-based, and point-wise saliency methods) attribute predictions to isolated motifs without accounting for the global temporal context that conditions their meaning. The authors propose CoLaX, a dual-branch framework comprising a local pattern branch that learns a dictionary of short prototypes and a global context branch backed by a memory bank, combined through a gating mechanism in which the global representation modulates local prototype contributions. The framework is trained end-to-end, then frozen and used to guide segment-level Shapley perturbations of a separate black-box classifier. Evaluation spans four synthetic datasets, an ECG dataset, and a subset of the UCR archive.

Strengths and weaknesses

Strengths The motivation is clear and I think it's a real problem. Figure 1 makes the point well — same local prototype, different global context, different meaning. The intro and method are easy to follow and the contributions are stated up front, which I appreciated. The synthetic numbers are strong. CoLaX is best or tied-best in basically every cell of Table 1, and the 23.1% average AUPRC improvement (45.6% on MCC-E) lines up with the actual values.

The ablation (Table 3) is the strongest part of the paper for me. Removing the global branch drops MCC-E AUPRC from 0.933 to 0.290. The thing I liked is that the "Random Global Context" control still hurts performance, which is the right comparison to rule out "it's just more parameters."

The ECG5000 case study (Figures 5 and 13) is the most convincing qualitative bit. They argue CoLaX tracks the T-wave and QRS while ShapeX gets stuck on artifacts at the tail of the signal, and, to their credit, they actually explain why the tail is junk (length normalization to 140 steps adds edge/padding artifacts at the boundaries). So it's a real mechanism, not just "our plots look nicer."

Weakness: The real-world results are a lot weaker than the synthetic ones, and the writing kind of glosses over this. On ECG (Table 2), CoLaX only beats the second-best on AUPRC by 2.48%, and it actually loses to ShapeX on AUP (0.765 vs 0.840) and AUR (0.674 vs 0.696). But the text says CoLaX is "substantially" more robust, which is hard to square with being second on two of three metrics. And the appendix straight up admits "no single explanation model dominates" on UCR (C.3). That's honest, but it doesn't really match the confidence of the abstract. All the big margins are on synthetic data that by the authors' own description was basically built around the exact ambiguity CoLaX is designed for.

The "theoretical justification" (Appendix E) isn't really theory. It's the P(Y|X_local) vs P(Y|X_local, X_global) argument, which is fine as intuition, but it's literally labeled a "Conceptual Analogy" and there are no theorems or proofs anywhere. So calling the mechanism "principled" in the abstract is a bit much

There's a real gap between what the showcases show and what the paper claims, and this is the one that bugs me most. CoLaX trains its own classifier (Eq. 8 has its own head and classification loss) and then explains a separate frozen black box. But the main interpretability figures (5 and 13) are visualizing CoLaX's internal surrogate heads, and the authors themselves say (lines 549–550) this "does not directly measure post-hoc faithfulness to a black-box; rather, it demonstrates that CoLaX learns a higher-fidelity dictionary." So the most convincing qualitative evidence is about CoLaX's own representations, not about whether its explanations are faithful to the model it's supposed to explain. For something sold as a faithful post-hoc explainer, that's a problem. The Appendix G admission that CoLaX "primarily captures task-predictive concepts" and might miss spurious stuff the black box actually uses is basically the same issue from another direction.

Some of the core equations don't match up. Eq. 4 writes the gate as a per-prototype product (q·k_k^T), but Algorithm 1 (line 13) writes it as σ(diag(qK^T)/τ). Those should be the same and they're not, at least as written. Eq. 12 (global alignment loss) also has subscript notation that's hard to parse as typeset. None of this is fatal but the main equations should be clean.

Not sure the comparison is fully fair. CoLaX's branches get trained with a task loss on the labels, but baselines like IG and Dynamask don't have any training phase like that. It's not obvious CoLaX isn't getting an information advantage there, and the paper doesn't really address it.

Table 1 baselines look duplicated. Every baseline row (IG, Dynamask, WinIT, CoRTX, MILLET, TimeX, TimeX++, ShapeX) is identical between the MCC-E/MCC-H block and the MTC-E/MTC-H block only CoLaX changes across the two. Four supposedly different datasets, identical baseline numbers for all eight competitors. That's either a copy-paste error or something weird about how the baselines were run. Either way I'd want it cleared up before trusting the synthetic table

Questions

In table 1 why are all eight baselines identical across the MCC and MTC pairs? This is the main one.

Can you reconcile the gate in Eq. 4 with how it's written in Algorithm 1, line 13?

Since the surrogate-head visualizations don't measure black-box faithfulness (your own words), what's the direct evidence that the saliency maps are faithful to the frozen classifier and not just to CoLaX's own head?

Does training the branches with a task loss give CoLaX an info advantage over label-free baselines like IG and Dynamask? How do you keep it fair?

On ECG, ShapeX beats you on AUP and AUR, how does that fit with "substantially greater robustness"?

Limitations

The faithfulness gap is the most significant omission. The limitations note that CoLaX captures task-predictive concepts, but they don't fully connect this to the fact that the headline interpretability showcases (Figures 5, 13) visualize CoLaX's own surrogate heads, not the frozen black box. The paper concedes this in passing (lines 549–550), but it belongs squarely in the limitations: the strongest qualitative evidence measures CoLaX's representation quality rather than faithfulness to the model being explained. I'd encourage the authors to state this limitation explicitly.

The synthetic-vs-real-world performance gap should be acknowledged. The large margins are confined to synthetic data constructed around the exact local–global ambiguity CoLaX targets, while on ECG it is second to ShapeX on two of three metrics (AUP, AUR) and on UCR "no single model dominates" (C.3). The limitations would be more complete if they noted that the method's advantage is most pronounced in settings matching its design assumptions, and is narrower on real data.

Comparison fairness is not discussed as a limitation. CoLaX's branches are trained on labels, whereas baselines such as IG and Dynamask are not a potential information advantage that the authors should acknowledge and ideally address.

The "principled / theoretical" framing overstates Appendix E. The conditional-probability argument is explicitly a conceptual analogy with no formal results; a brief note that the justification is intuitional rather than proven would be appropriate.

The authors are admirably transparent and should not be penalized for it, but I'd encourage adding the faithfulness-evaluation limitation and the synthetic-vs-real-world caveat, which are the two most consequential gaps.

Paper formatting concerns

The paper formatting was good and it was easy to read

Final justification

Given the authors provided additional clarifications for the concerns, the error regarding duplicated entries and some issues regarding the lack of a complete standalone global explanations makes me keep my current score. I am leaning towards a borderline reject but am sticking to me original score due to substantial engagement from the authors during the discussion phase.

Comments on the paper

1 comment
Meta-review

There has been an active discussion, and the authors addressed satisfactorily the reviewers concerns. Now, two reviewers lean towards acceptance, while one towards rejection. I believe that the paper can be accepted as a poster.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.