arXiv:2610.02822cs.LGOct 2026

Manuscript Offprint

arXiv:2610.02822

Adaptive Spectral-Koopman Dynamics Modeling for Temporal Domain Generalization

Tengxue Zhang, Yu Ke, Yang Shu, Chenchen Sun, Yisheng An, Chenjuan Guo, Bin Yang

ABSTRACT

Temporal Domain Generalization (TDG) has emerged to address real-world streaming data with distribution shifts over time. However, existing methods are either prone to overfitting to domain-specific noise in the data space or become overly complex and less interpretable in the parameter space. To bridge these gaps, we propose AdaSpecK, a spectral-Koopman framework with adaptive context extraction for TDG. To mitigate noise fitting to irregularly sampled domains, we introduce spectral-regularized Koopman dynamics modeling, which applies spectral-aware filtering in the latent space to extract denoised low-frequency trajectories and learn a Koopman operator to model the system dynamics in a linearized space. To model complex historical environments under non-stationarity, we design a context-informed heterogeneous pattern extraction mechanism. Specifically, we employ a target-conditioned attention module to attend to distinct past windows, producing a dynamic, target-specific historical summary. By constructing an environmental signature from the current evolutionary pattern, our model adaptively perceives which aspects of the past context are most informative for future prediction via a learned router. Extensive experiments on eight diverse classification and regression benchmarks demonstrate that AdaSpecK achieves state-of-the-art performance. The code and datasets are available at https://anonymous.4open.science/r/Ada-Spec-K.

1 INTRODUCTION

Conventional machine learning typically assumes that training and test data are independently and identically distributed (IID), which expects a model to generalize across training and test sets. However, this assumption is rarely satisfied in real-world applications where data often arrive as continuous streams and their underlying distributions shift dynamically over time (Han et al., 2024). For instance, in financial markets, trading behaviors evolve as economic conditions change; in social media, linguistic trends and topics shift rapidly over time. This phenomenon, known as concept drift (Lu et al., 2019; Wang et al., 2025), leads models trained on past data to degrade when deployed in distributionally shifted environments (Gama et al., 2014). This has motivated the emergence of Temporal Domain Generalization (TDG), which aims to leverage evolving historical data to build models capable of generalizing to near-future domains (Cai et al., 2024).

Existing approaches to TDG can be broadly categorized into data-centric and model-centric paradigms. Data-centric methods operate on the premise that temporal robustness can be achieved at the data or feature level. They employ strategies such as data augmentation (Liu et al., 2018) or generative modeling to simulate potential future distributions (Zeng et al., 2024), or leverage representation learning (Gong et al., 2019) to extract domain-invariant features and disentangle domain-shared features from domain-specific ones. In contrast, model-centric approaches focus on adapting to evolving domains by dynamically predicting or extrapolating model parameters. These methods utilize techniques such as gradient interpolation (Nasery et al., 2021) or probabilistic frameworks to characterize latent evolutionary dynamics within the parameter space (Cai et al., 2024; Yu et al., 2025). Despite these advances, several critical challenges remain unresolved, as shown in Figure 1:

Challenge 1: Time-irregularly distributed training domains lead to noise fitting when modeling domain characteristics. Unlike conventional forecasting tasks with regularly sampled data,

Figure

Figure 1: In TDG, training domains are often time-irregularly sampled; directly learning in the data space tends to overfit domain-specific noise, impairing generalization. Predicting future OOD domains requires modeling dynamic temporal patterns across evolving historical environments.

TDG often involves observations at irregular timestamps. This results in training domains that are sparsely and unevenly distributed across a continuous timeline. Directly learning a predictive model in the data space risks overfitting to domain-specific patterns or noise, hindering reliable generalization to future out-of-distribution (OOD) domains (Lu et al., 2019; Wang et al., 2025). Although some methods instead model temporal evolution in the parameter space, this introduces its own difficulties: the parameter space is inherently more abstract and higher-dimensional, and its performance is tightly coupled to the architecture and design choices of the predictive model itself. Furthermore, the dynamics governing how parameters evolve across irregular time steps are typically highly nonlinear and lack clear structural priors, making it unstable and prone to error.

Challenge 2: Data non-stationarity complicates the extraction of dynamic temporal patterns across historical environments. Temporal non-stationarity, manifested as shifting data distributions and evolving feature semantics, undermines the assumption of stable statistical regularities over time (Wang et al., 2023b). As a result, periodicity, seasonality, or recurring temporal structure that are readily captured under stationarity often become obfuscated or highly volatile. This renders traditional temporal modeling techniques often fail to generalize in real-world TDG scenarios (Gama et al., 2014). Moreover, future target domains may prioritize distinct contextual cues drawn from historical environments. For instance, some domains may place greater emphasis on long-term trends and macro-level patterns, while others may be highly sensitive to recent, short-term dynamics. Therefore, a robust TDG model should not only adapt to the continuous evolution of temporal patterns but also possess the flexibility to generalize across heterogeneous domain structures.

To address these challenges, we introduce AdaSpecK, a spectral-Koopman framework with adaptive context extraction for temporal domain generalization. To mitigate noise fitting to irregularly sampled training domains, we introduce spectral-regularized Koopman dynamics modeling. It applies spectral-aware filtering in the latent space to extract denoised low-frequency trajectories. By focusing on robust, slowly evolving signals, the model enhances resilience to irregular domain shifts and improves generalization to OOD scenarios. It then leverages a Koopman-style transition to model future time evolution and optimizes a Koopman operator that captures system dynamics in a linearized space. To address the difficulty of extracting historical information under non-stationarity, we design a context-informed heterogeneous pattern extraction mechanism. Specifically, we employ a target-conditioned attention module, which enables each future step to attend to distinct subsets of the historical windows. This effectively produces a dynamic, target-specific historical summary of past observations that adapts to the anticipated characteristics of the future domain. Furthermore, by constructing an environmental signature from the current evolutionary pattern, our model adaptively perceives which aspects of the past context are most informative for future prediction via a lightweight, learnable router. Overall, our main contributions are summarized as follows:

• We introduce spectral-regularized Koopman dynamics modeling, which applies spectral-aware filtering in a latent space to extract denoised low-frequency trajectories and learn a Koopman operator to model the system dynamics.

• We propose a context-informed heterogeneous pattern extraction mechanism that leverages target-conditioned attention to exploit the most relevant past for each prediction step, enabling the model to selectively integrate historical contexts through adaptive expert routing.

• Extensive experiments on eight diverse benchmarks that span five classification and three regression tasks show that AdaSpecK achieves state-of-the-art performance.

References (45)