[Paper Review] Horizon Activation Mapping for Neural Networks in Time Series Forecasting
HAM provides a gradient-based, horizon-aware visualization to interpret and compare diverse neural network models for time series forecasting, agnostic to layer types. It analyzes causal and anti-causal gradient updates across horizon subseries to guide model selection and training decisions.
Neural networks for time series forecasting have relied on error metrics and architecture-specific interpretability approaches for model selection that don't apply across models of different families. To interpret forecasting models agnostic to the types of layers across state-of-the-art model families, we introduce Horizon Activation Mapping (HAM), a visual interpretability technique inspired by grad-CAM that uses gradient norm averages to study the horizon's subseries where grad-CAM studies attention maps over image data. We introduce causal and anti-causal modes to calculate gradient update norm averages across subseries at every timestep and lines of proportionality signifying uniform distributions of the norm averages. Optimization landscape studies with respect to changes in batch sizes, early stopping, train-val-test splits, architectural choices, univariate forecasting and dropouts are studied with respect to performances and subseries in HAM. Interestingly, batch size based differences in activities seem to indicate potential for existence of an exponential approximation across them per epoch relative to each other. Multivariate forecasting models including MLP-based CycleNet, N-Linear, N-HITS, self attention-based FEDformer, Pyraformer, SSM-based SpaceTime and diffusion-based Multi-Resolution DDPM over different horizon sizes trained over the ETTm2 dataset are used for HAM plots in this study. NHITS' neural approximation theorem and SpaceTime's exponential autoregressive activities have been attributed to trends in HAM plots over their training, validation and test sets. In general, HAM can be used for granular model selection, validation set choices and comparisons across different neural network model families.
Motivation & Objective
- Motivate a model-agnostic interpretability tool for time series forecasting that transcends architecture differences.
- Introduce Horizon Activation Mapping (HAM) to visualize gradient activity across horizon subseries.
- Study how architectural choices, training regimes, and dataset splits affect HAM profiles and model performance.
- Enable granular model selection and validation set decisions via horizon-focused gradient analyses.
Proposed method
- Define causal and anti-causal horizon subseries masks to backpropagate gradient-based losses.
- Compute gradient norm averages across subseries to visualize attention-like HAM plots inspired by grad-CAM.
- Introduce metrics like area under the curve relative to lines of proportionality and gradient equivariant points to quantify changes.
- Conduct optimization landscape studies by varying batch size, dropout, epochs, early stopping, and dataset splits.
- Apply HAM to multiple model families (NHITS, CycleNet, N-Linear, FEDformer, Pyraformer, SpaceTime, DDPM) across horizons (96, 192, 336, 720) on ETTm2."],
- research_questions
- [
- What gradient activity patterns do horizon-based HAM plots reveal across different model families for time series forecasting?
- How do training choices (batch size, dropout, early stopping, dataset splits) influence HAM curves and model performance?
- Can HAM guide architecture and training decisions to improve long-horizon forecasting?
- How do univariate vs multivariate settings affect HAM interpretations across model families?
- Do horizon size and model type interact to produce distinct causal/anti-causal activation dynamics?

Experimental results
Research questions
- RQ1What gradient activity patterns do horizon-based HAM plots reveal across different model families for time series forecasting?
- RQ2How do training choices (batch size, dropout, early stopping, dataset splits) influence HAM curves and model performance?
- RQ3Can HAM guide architecture and training decisions to improve long-horizon forecasting?
- RQ4How do univariate vs multivariate settings affect HAM interpretations across model families?
- RQ5Do horizon size and model type interact to produce distinct causal/anti-causal activation dynamics?
Key findings
- HAM plots reveal causal and anti-causal gradient activation differences across horizon subseries for different models.
- Dropout generally increases gradient magnitudes, especially for multivariate forecasting models.
- Batch size changes produce polynomial-like saturating trends in converged models and affect causal/anti-causal magnitudes.
- Early stopping reduces gradient magnitudes and shifts gradient equivariant points toward mid-horizon regions.
- Dataset splits influence HAMs, with training and validation sets showing distinct activation patterns and potential out-of-distribution signals.
- Architectural changes (normalization, cycle queue length) modulate HAMs and can correlate with performance changes.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.