TL;DR
Multivariate Time Series (MTS) models rely heavily on the complex relationships between different data channels, yet existing interpretability tools treat entire data samples as a single unit. This paper introduces Channel-wise Influence (ChInf), a novel method to quantify the impact of individual channels on model performance. By leveraging ChInf, the authors achieve state-of-the-art results in MTS anomaly detection and demonstrate that massive MTS datasets can be aggressively pruned (removing up to 50-80% of channels) without losing predictive power.
What Problem Does This Paper Address?
In deep learning, "influence functions" are popular tools for determining how specific training samples affect a model's predictions on test data. However, when dealing with Multivariate Time Series (MTS)—like a network of hundreds of traffic sensors or a patient's ICU vitals—the channels (the individual sensors or variables) are just as important as the time steps.
Existing influence functions, such as TracIn, calculate influence at the sample level. They can tell you if a specific time window was important, but they cannot tell you which sensor within that window drove the model's behavior. Because channels in MTS have complex correlations and varying degrees of importance, treating them as a monolith leaves a massive blind spot. The authors tackle this by developing a way to estimate the counterfactual effect of individual channels on model performance.
Methods
The authors propose Channel-wise Influence (ChInf), adapting the mathematics of traditional influence functions to the channel level.
- The ChInf Matrix: To avoid the computationally ruinous task of calculating the full Hessian matrix, they use a first-order gradient approximation. They construct an $N \times N$ matrix where each element represents how much training on channel $i$ helps reduce the loss for channel $j$.
- Application 1 - Anomaly Detection: The authors use the diagonal of this matrix (the "self-influence" of a channel). Anomalous data is out-of-distribution, meaning the model's loss drops drastically if it trains on that specific anomaly. Therefore, channels with unusually high self-influence gradients are flagged as anomalies.
- Application 2 - Channel Pruning: To reduce dataset size, the authors rank channels by their self-influence. Because highly correlated channels have similar influence scores, they use equidistant sampling (picking channels at regular intervals from the ranked list) to extract a small, diverse, and representative subset of channels to train on, discarding the rest.
Datasets
- Anomaly Detection: Evaluated on standard benchmarks: SWaT, WADI, SMD, SMAP, and MSL.
- Forecasting & Data Pruning: Evaluated on datasets with high channel counts: Electricity (ECL) (321 channels), Solar-Energy (137 channels), Traffic (821 channels), as well as ETTh1 and ETTm1.
Key Insights and Ideas
- Self-Influence is a Natural Anomaly Detector: Anomalous channels stick out like sore thumbs in the gradient space. If a model's parameters are highly sensitive to a specific channel's input (high self-influence), that channel is likely malfunctioning or recording an anomaly.
- MTS Data is Highly Redundant: You don't need all 800+ sensors to predict traffic accurately. Many channels carry overlapping information. Identifying a core subset of channels is highly effective for compressing datasets.
- Channel Pruning > Sample Pruning: For time series, dropping time steps (sample pruning) breaks temporal dependencies and hurts performance. Dropping redundant columns (channel pruning) is a much safer and more effective way to reduce training costs.
- A New Metric for Model Evaluation: The number of channels a model needs to maintain its performance acts as a proxy for how well it models cross-channel dependencies. For instance, the paper found that the
iTransformermodel requires a larger subset of channels thanPatchTSTto maintain performance, indicating it is better at actually utilizing cross-channel information.
Key Results
- Anomaly Detection: ChInf-enhanced models ranked Top-1 across the board. For example, on the SMAP dataset, applying ChInf to a GCN-LSTM model boosted the F1 score from 42.6 (baseline) to 48.0. On SWaT, it achieved an 84.0 F1 score.
- Pruning Efficiency: On the Electricity dataset, ChInf pruning maintained near-baseline forecasting MSE (0.150 vs 0.148) using only 50% of the channels. On the massive Traffic dataset, it maintained performance using just 30% of the channels.
- Computational Speed: Because ChInf relies on a single gradient pass rather than combinatorial evaluations or retraining, it is orders of magnitude faster than post-hoc explainers. On the ECL dataset, computing channel weights took 0.071 seconds with ChInf, compared to 9 seconds for LIME and 146 seconds for SHAP.
Limitations and Future Work
- Limitations: The authors note that ChInf is highly effective for localized, channel-specific anomalies (like a broken sensor). However, it may be less effective for globally synchronized anomalies where all channels fail uniformly, as this doesn't induce distinct channel-wise influence patterns.
- Future Work: The authors plan to expand ChInf beyond anomaly detection and forecasting into other MTS tasks. They also suggest using these insights to design more data-efficient model architectures and to systematically clean up redundant existing datasets.
Summary updated