arXiv:2609.31351cs.LGSep 2026

Manuscript Offprint

arXiv:2609.31351

Progressive Memory Transformer: Memory-Aware Attention for Time-Series

Tord Sture Stangeland, Andreas Köhler, Steffen Mæland, Adín Ramíres Rivera

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Time-series carry structure simultaneously at multiple scales (fine-grained variation, mid-range motifs, and global properties) and downstream tasks operate at correspondingly different scales. Most existing self-supervised learning approaches supervise representations globally via instance-level contrastive losses and limited temporal neighborhood supervision, but do not explicitly exploit the structural hierarchy. We propose a learning framework that explicitly enforces a structural hierarchy across three scales independently: a local objective for token continuity, a mid-range objective for window-level motifs, and a global objective for sequence-level agreement. Realizing this framework requires the backbone to expose a representation at each scale; we introduce Progressive Memory Transformer (PMT), which augments a transformer with writable, window-aligned memory that exposes the mid-range scale alongside the token and sequence-level representations conventional transformers already provide. Across seven UCR/UEA/UCI classification benchmarks, a cue-retention probe, and forecasting benchmarks, PMT learns representations that probe well at the global, mid-range, and local scales—strong low-label classification (1–5% labels), competitive forecasting performance across multiple horizons, and quantitative and qualitative evidence that memory states capture mid-range motifs.

1 Introduction

Time-series carry structure simultaneously at multiple scales: fine-grained variation within short windows, recurring patterns at intermediate ranges, and global properties of the whole sequence. Representations that are useful for downstream tasks must capture this structure at every scale where it exists, since downstream tasks (such as local forecasting, motif detection, and sequence-level classification) operate at correspondingly different scales.

Learning these multi-scale representations is not trivial. Conventional self-supervised learning (SSL) for time-series typically relies on global instance-level contrastive losses and limited temporal neighborhood supervision [1–5]—at the readout states shown in Fig. 1. Although these methods provide some temporal alignment, they do not explicitly exploit the underlying structural hierarchy of the signal. Consequently, the intermediate scale (where much of the meaningful temporal structure lives) is often shaped indirectly or destructively compressed (e.g., via max-pooling), rather than explicitly targeted through a dedicated representation interface—shown in gray in Fig. 1. Even

Code: https://github.com/dsb-ifi/pmt

Preprint.

architectures designed to propagate context across time (e.g., recurrent hidden states or read-only segment caches) treat their intermediate state as an internal optimization device rather than as a representation exposed to direct, scale-appropriate supervision. Furthermore, while recent memory-augmented transformers introduce persistent writable slots, they typically operate as global latent banks decoupled from any local temporal alignment, making them unsuitable for targeted mid-range supervision.

To address this, we propose a learning framework that explicitly enforces a structural hierarchy across three scales independently: token-level (fine-grained), mid-range (intermediate motifs), and sequence-level (global)—cf. Fig. 1. Realizing this framework requires the backbone to expose a representation at each scale. To this end, we introduce the Progressive Memory Transformer (PMT), which augments a transformer with a sample-specific, writable, window-aligned memory that exposes the mid-range scale alongside the token and sequence-level outputs that conventional transformers already provide. We use contrastive objectives at each scale, chosen to match the granularity of the representation: local within-window continuity at the token level, mid-range motif consistency at the memory level, and sequence-level agreement at the [CLS] level.

Contributions. (1) We propose a multi-scale contrastive learning framework for time-series that supervises representation at three scales independently: a token-level Hierarchical Gaussian Contrastive Loss (HGCL), a mid-range memory-state loss (PCL), and a sequence-level instance loss (ICL). (2) We introduce PMT, a memory-augmented transformer backbone whose window-aligned writable memory exposes the mid-range scale as a directly supervisable representation, complementing the token and sequence-level outputs of conventional transformers. (3) We evaluate the effectiveness of the resulting representations at three scales: forecasting on standard benchmarks for the local level, cue retention plus qualitative analysis for the mid-range level, and low-label linear-probe classification (1–5% labels) on seven UCR/UEA/UCI benchmarks for the global level, alongside fully supervised validations (Appendix E.1) demonstrating its utility across different tasks.

Figure

Figure 1: An illustration of the three levels of representation and how they capture distinct structural patterns. Shaded regions indicate expanding receptive fields. Exposing the intermediate representations (gray background) enables direct supervision at multiple scales, unlike standard global readouts.

References (27)