Manuscript Offprint
arXiv:2610.36393SpecLST: Spectral-Enhanced Long-Short Term Spatio-Temporal Multimodal Modeling for Traffic Forecasting
Kenan Kang, Matthew M.Y. Kuo, and Weihua Li
Abstract—Modeling multi-scale dynamics in urban road networks is essential for intelligent transportation systems but is often hindered by the computational cost of long-range historical context and the challenge of fusing heterogeneous modalities. Existing spatio-temporal frameworks face a trade-off between sequence length and memory overhead, while frequently neglecting the transient effects of exogenous factors such as road incidents and weather. To address these limitations, we propose SpecLST, a frequency-enhanced long-short-term spatio-temporal multimodal framework. SpecLST leverages a fast Fourier transform-based frequency-domain representation module to efficiently encode multi-week historical dependencies, bypassing the memory bottlenecks of standard attention mechanisms over raw long sequences. Heterogeneous context is integrated through attention-based fusion, followed by a sparse Mixture-of-Experts backbone with graph augmentation for spatio-temporal representation learning. Additionally, a frequency-enhanced residual head isolates high-frequency transients, improving sensitivity to abrupt traffic anomalies. At the 60-minute horizon, SpecLST achieves mean relative error reductions of 14.10% in MAE, 10.35% in RMSE, and 15.78% in MAPE across eight neural forecasting baselines and four datasets, with the dataset- and metric-specific average reductions ranging from 5.63% to 22.21%.
Index Terms—Traffic forecasting, spatio-temporal modeling, long-short term forecasting, mixture-of-experts, multimodal data fusion, Fourier transform.
I. INTRODUCTION
Accurate traffic forecasting underpins modern Intelligent Transportation Systems (ITS), supporting route guidance, congestion mitigation, and vehicle dispatching [1], [2]. It also drives operational tasks such as adaptive signal control, demand-responsive transit, and incident response. Multimodal data is now widely accessible, including PeMS loop detector readings, social media incident reports, and high-resolution weather feeds. As urbanization accelerates, traffic flow remains highly non-linear and non-stationary, which makes precise multi-horizon prediction difficult in practice. Different tasks demand different forecasting capabilities: signal control benefits from multi-week periodicity, incident response from fusing exogenous signals with traffic, and short-term replanning from rapid response to abrupt deviations. Current models rarely cover more than one of these at once.
Over the past decade, the field has shifted from statistical methods such as VAR [3] to deep learning. Spatio-Temporal Graph Neural Networks (STGNNs), such as DCRNN [4] and MTGNN [5], learn the non-Euclidean connectivity of road networks. More recent Transformer models, such as STAEformer [6] and LSTTN [7], extend the temporal receptive field through self-attention. Three bottlenecks remain. First, existing models face a “Context-Complexity Dilemma”: long-term history (e.g., several weeks) carries useful periodic priors, but the quadratic cost of self-attention restricts most models to roughly one hour of input. Second, although recent multimodal frameworks incorporate weather and calendar features [8], other exogenous signals such as social-media incidents and short-term weather volatility remain underused, and are rarely combined with long-history representations in a single architecture. Third, most backbones treat the short-term input as a smooth signal and respond slowly to abrupt, incident-driven deviations. The high-frequency content of recent observations, which can provide useful signatures of transient anomalies, is rarely modelled explicitly.
To bridge these gaps, we propose SpecLST, a novel spectral-enhanced spatio-temporal Mixture-of-Experts framework. The core philosophy of our approach is to decouple traffic patterns into stable periodic backbones and volatile transient residuals through a dual-branch spectral analysis. Concretely, SpecLST first maps two weeks of historical traffic into the frequency domain and represents it as a compact set of low-frequency coefficients, aligned with the recent short-term window through phase rotation. Because urban traffic exhibits strong daily and weekly periodicity, the Fourier basis is a natural fit: a small number of low-frequency coefficients can retain the dominant periodic information in the multi-week signal, allowing the model to avoid directly applying self-attention to raw long sequences while preserving the periodic structure that matters for forecasting. The resulting periodic embedding is then combined with short-term traffic, weather, calendar, and, where available, curated incident-event modalities through a dedicated attention-based context-fusion module before entering the spatio-temporal backbone. The backbone consists of stacked blocks that alternate feed-forward and sparse Mixture-of-Experts layers, with spatial attention operating on a fused adjacency that augments the static road topology with a learnable sparse component. Finally, a lightweight frequency-enhanced residual head (FRH) consumes the high-frequency
Kenan Kang and Matthew M.Y. Kuo are with the Department of Computer Science and Software Engineering, Auckland University of Technology, Auckland 1010, New Zealand (e-mail: kenan.kang@autuni.ac.nz; matthew.kuo@aut.ac.nz).
Weihua Li is with the Department of Data Science and Artificial Intelligence, Auckland University of Technology, Auckland 1010, New Zealand (e-mail: weihua.li@aut.ac.nz).
Corresponding author: Kenan Kang.
power spectrum of a separate recent window and produces a per-horizon, gated residual correction on top of the backbone's prediction, sharpening responsiveness to transient anomalies.
The main contributions of this paper are as follows:
• We propose SpecLST, to our knowledge the first traffic forecasting framework that jointly integrates a compact frequency-domain long-history representation, attention-based multimodal context fusion, and a per-horizon high-frequency residual head within a unified architecture.
• We extend the public PEMS-BAY22 traffic benchmark [9] with aligned exogenous context, including weather, calendar attributes, and sensor-level event annotations curated from social-media traffic reports through a two-stage LLM-assisted pipeline.
• We benchmark SpecLST on four real-world PeMS datasets against classical, graph-based, spectral, and Transformer-based baselines. The results show that SpecLST maintains competitive forecasting accuracy while reducing computational cost, especially in the multimodal PEMS-BAY22 setting.
The remainder of this paper is organized as follows. Section II reviews related work on graph-based, Transformer-based, and frequency-domain traffic forecasting methods. Section III details the proposed SpecLST framework and its components. Section IV presents the experimental setup, results, parameter sensitivity analyses, and ablation studies. Section V concludes the paper and outlines directions for future research.
A. Graph-based spatio-temporal models
Traffic forecasting over sensor networks is commonly formulated on a graph, where nodes correspond to detectors and edges encode physical proximity or learned dependencies. A major stream of research builds spatio-temporal neural networks by combining graph message passing with temporal sequence modeling. DCRNN integrates diffusion convolution (random-walk-based graph filtering) into an RNN encoder-decoder to capture directed spatial propagation and temporal evolution [4]. STGCN replaces recurrence with temporal gated convolutions and spatial graph convolutions, providing an efficient fully-convolutional alternative [12]. ASTGCN introduces spatial and temporal attention to adaptively emphasize correlated sensors and time steps, and explicitly models multi-period traffic patterns [13].
To reduce reliance on a predefined adjacency matrix, several studies have explored learning adaptive adjacency structures. Graph WaveNet learns an adaptive adjacency matrix via node embeddings and couples it with dilated temporal convolutions to capture long-range dependencies [14]. AGCRN further learns node-adaptive parameters and constructs a data-adaptive graph, improving robustness to imperfect topology priors [15].
However, diffusion-based graph models mainly describe traffic dynamics as propagation over the road network. This view can underrepresent node-intrinsic temporal patterns, such as local demand cycles or sensor-specific variations, that are not fully explained by neighboring sensors. To address this limitation, D2STGNN introduces a decoupled spatial-temporal framework with dynamic graph learning, achieving strong performance on multiple public benchmarks [16].
Overall, graph-based models have substantially advanced short-horizon accuracy, but most implementations still operate on limited temporal contexts and do not model heterogeneous exogenous signals such as weather, calendar, and incidents.
B. Transformer-based traffic forecasting
Inspired by the success of self-attention in sequence modeling, Transformer-based architectures have recently emerged as a powerful alternative to convolutional and recurrent paradigms in traffic forecasting. By leveraging attention mechanisms, these models provide enhanced efficiency in capturing complex temporal dependencies and spatial interactions.
STTN [17] integrates spatial and temporal attention within a unified Transformer framework, enabling joint modeling of node interactions and temporal dynamics. STGormer [18] further improves structural awareness by incorporating graph positional encoding into the attention computation, strengthening spatial dependency modeling.
To enhance adaptability to heterogeneous urban patterns, STAEformer [6] employs adaptive embeddings to dynamically adjust spatial representations. LSTTN [7] extends temporal receptive fields by incorporating long-horizon context modeling, demonstrating strong performance on datasets with extended historical inputs. More recently, PDFformer [19] introduces pattern-aware decomposition mechanisms to better capture diverse traffic regimes.
Overall, Transformer-based approaches have significantly improved predictive accuracy and modeling flexibility. However, most existing methods rely on full self-attention over raw temporal sequences, which lead to substantial computational overhead when handling long-term or multimodal inputs [20].
C. Frequency-domain modeling for time series and traffic
Frequency-domain modeling provides a complementary mechanism for representing periodicities and separating stable trends from high-frequency fluctuations. FEDformer incorporates seasonal-trend decomposition and Fourier-based frequency operators into a Transformer framework to better capture global structures and long-range dependencies with linear computational complexity [20]. Autoformer introduces an Auto-Correlation mechanism, efficiently computed via FFT, to capture period-based dependencies at the sub-series level while incorporating progressive series decomposition to improve long-term forecasting performance [21].
In traffic forecasting, spectral decompositions are often used to disentangle trend and event-like variations. STWave leverages the discrete wavelet transform to decompose traffic time series into trend (low-frequency) and event (high-frequency) components, effectively converting temporal signals into a multi-resolution frequency representation. Each component is then processed through dual-channel spatio-temporal encoders, and spatial correlations are captured using Efficient Spectral Graph Attention Networks [22]. By combining wavelet-based frequency decomposition with graph-based spatial modeling, STWave provides a compact and interpretable representation of both temporal periodicity and short-term fluctuations. Recent work has also attempted to unify spatial, temporal, and spectral modeling within a single attention framework. For example, STFAN introduces a space-time-frequency attention network that explicitly incorporates frequency-domain analysis into spatio-temporal learning, enabling joint modeling of hidden correlations across spatial, temporal, and spectral dimensions for improved mid- and long-term traffic forecasting [23].
However, existing frequency-domain traffic forecasting models primarily apply spectral transforms to traffic-only sequences over relatively short temporal windows. They rarely represent multi-week traffic history as a compact frequency-domain modality that can be jointly fused with heterogeneous exogenous information, such as weather, calendar, and incident signals. Consequently, the interaction between stable, long-term traffic patterns and short-term root-cause factors remains underexplored.
In comparison with existing approaches, several important differences distinguish SpecLST from prior frequency-domain traffic models. STWave decomposes recent traffic into trend and event channels via wavelets, but its high-frequency component is processed by a parallel encoder of comparable depth to the main branch rather than a lightweight residual refinement mechanism, and its design is not centered on a frequency-domain long-history representation. FEDformer replaces self-attention with Fourier operators on relatively short input sequences, while Autoformer employs FFT-based autocorrelation within short temporal windows. Neither framework maps multi-week traffic history into a compact set of low-frequency spectral tokens for multimodal fusion. To the best of our knowledge, SpecLST is the first traffic forecasting framework that jointly integrates (i) frequency-domain long-history representation for multi-week contextual modeling, (ii) attention-based multimodal fusion with weather, calendar, and incident information, and (iii) a per-horizon high-frequency residual head within a unified architecture.
III. METHODOLOGY
A. Problem definition and preliminary
We first define the notions of traffic network and multimodal data, and then formalize the traffic forecasting problem.
a) Definition 1. Traffic network: A traffic network is modeled as an undirected graph , where denotes the set of nodes with cardinality , and each node corresponds to a deployed sensor. The edge set has cardinality and encodes the spatial connectivity between sensors. The strength of this connectivity is quantified by an adjacency matrix , whose entries give the pairwise connection weights between nodes. The spatial position of each node is specified by its geographic coordinates .
b) Definition 2. Long-short term data: In this study, we utilize long-term traffic features and short-term multimodal data as inputs to the proposed multimodal forecasting model, where long-term historical context helps capture underlying periodic traffic patterns and short-term data enhances the modeling of dynamic characteristics.
where denotes the long-term historical traffic feature input, and represents the length of the long-term sequence.
where the modality set contains traffic, weather, and calendar, with events added when event data is available. denotes the short-term multimodal features input, and represents the length of the short-term sequence. represents the traffic features input. , where denotes the number of weather features. , where denotes the number of calendar features. , representing event features, is available only for datasets that provide sensor coordinates suitable for spatial alignment with incident reports.
Weather, calendar, and event inputs are treated as short-term contextual data because their effects are tied to the current forecasting horizon rather than to stable multi-week periodicity. Weather conditions can immediately alter road capacity and driving behavior, calendar attributes distinguish recurrent temporal regimes such as weekdays, weekends, and public holidays, and traffic events capture abrupt disruptions caused by incidents or road works. Combining these variables with recent traffic observations allows the model to explain short-term deviations from the long-term periodic baseline.
c) Definition 3. Traffic Forecasting: The traffic forecasting problem can be formulated as predicting traffic features, such as traffic flow or speed, H time steps into the future. This prediction is based on a historical long-short term sequence and the adjacency matrix A:
where denotes the predicted traffic features. For example, when the data are sampled every 5 minutes and , contains the next 60 minutes of predicted flow or speed for all sensors.
B. SpecLST Framework
The overall framework of SpecLST is illustrated in Fig. 1. The proposed SpecLST comprises four key components: (1) long-short term input token embedding, (2) multimodal feature fusion, (3) spatio-temporal MoE block, and (4) frequency-enhanced residual prediction head.
Specifically, long historical traffic is mapped by FFT into low-frequency tokens and aligned with the short-term window

Fig. 1. An overview of the SpecLST framework.
via phase rotation. Short-term modalities (traffic, weather, calendar, and optionally event) are embedded and fused with the FFT modality through attention-based context fusion. The fused embedding is passed to a stack of spatio-temporal blocks with alternating FFN and sparse MoE layers, where the spatial attention operates on the fused static and learnable adjacency. A frequency-enhanced residual head (FRH), driven by a separate recent window, produces a per-horizon high-frequency correction that is added to the backbone's prediction.
- Long-Short Term Input Token Embedding: The primary objective of the input embedding layer is to transform the heterogeneous and multimodal input data streams into a unified, high-dimensional state space. We categorize the input into three groups: (1) historical traffic features from a basic window of length T, (2) external context such as weather, calendar, and events, and (3) a low-frequency domain modality extracted from historical traffic features within a long window of length L.
Within the short-term feature set , traffic data , weather data , calendar data , and event data are each projected into a high-dimensional state space through their respective linear embedding layers:
where , , is the batch size, is the hidden dimension, and is the number of sensors.
Observing long-period traffic is beneficial for improving a model's ability to capture stable traffic patterns. However, directly feeding such long raw sequences (e.g., more than a week of data) into attention-based architectures substantially increases parameter and memory requirements. To mitigate this issue, we define the long-term representation using the discrete Fourier transform (DFT) and compute its coefficients efficiently with FFT, retaining the first K low-frequency components. These low-frequency components capture slowly varying periodic patterns, such as daily and weekly traffic cycles, while requiring far fewer tokens than the original long sequence. Following the standard DSP convention, we use lowercase x for time-domain signals and uppercase X for their frequency-domain coefficients. The retained coefficients are defined as:
where denotes the downsampled long-term traffic value of sample and sensor at index . The stride is the temporal downsampling factor applied to the long-term sequence before FFT, yielding an effective sequence length . In our experiments we set , giving for (two weeks of 5-minute samples). Here , , , and . The number of retained frequency bins is fixed for each dataset. The DC component ( ) is intentionally excluded because it encodes the sensor-wise mean speed over the long window and carries no information about periodic structure. This constant offset is implicitly recovered through the residual connections in the backbone.
Two complementary operations are then applied to the retained spectrum. First, a frequency-wise amplitude normalization rescales each harmonic by the cross-sensor mean of that same harmonic. This removes raw scale differences between sensors (e.g., highway mainlines and on-ramps consistently exhibit different absolute energy at the daily and weekly harmonics) while preserving the relative spectral shape that encodes periodic patterns. Second, each retained harmonic is projected back to the recent T time steps through a phase rotation, which evaluates the inverse-DFT contribution of harmonic k at temporal positions adjacent to the forecasting point. Together, these two operations turn K complex coefficients into a T-length, 2K-channel, phase-aware periodic embedding that aligns with and can be concatenated to the weather, calendar, event, and traffic embeddings.
We apply a frequency-wise amplitude normalization to normalize spectral energy across nodes:
where denotes the magnitude, and is the intrinsic spectral phase obtained from the complex argument of the FFT output, and is a small positive constant added for numerical stability.
Concretely, each retained harmonic is projected onto the recent T time steps via the phase rotation defined below:
where denotes the earliest step in the recent short-term window and denotes the step closest to the forecasting point.
The real and imaginary parts of are concatenated along the frequency dimension to form the FFT features over the long-term window:
where . This (Re, Im) representation is mathematically equivalent to retaining for each harmonic, but it allows the subsequent linear layer to learn arbitrary linear combinations of the two parts rather than committing to a particular trigonometric basis.
The resulting frequency spectral representation is used as an external modality, denoted as:
with .
- Multimodal Feature Fusion: External temporal and low-frequency embeddings are fused via the multi-head self-attention mechanism and projected to the model's hidden dimension by a context fusion module, forming the contextual features. Since and are global (sensor-agnostic) embeddings of shape , we broadcast them across the node dimension to obtain , so that all four modalities share the same shape. The four embeddings are then concatenated along the channel dimension and processed by multi-head self-attention:
where denotes concatenation along the channel dimension, denotes multi-head self-attention, and .
Then, traffic embeddings are fused with contextual features using a cross-attention mechanism. The traffic embeddings serve as the query, while the context vectors form the key and value:
where the three arguments correspond to the query, key, and value, respectively.
A gating mechanism is then employed after the cross-attention step to balance the contributions of the traffic and context-aware embeddings:
where is the sigmoid function, denotes element-wise multiplication, and . The gate controls the proportion of the context-aware branch in the fused embedding: recovers the pure traffic embedding , whereas delegates the representation to the context-aware branch . The bias of the gating Linear layer is initialized to zero so that at the start of training, ensuring that neither modality dominates before the model has learned the appropriate trade-off.
- Spatio-Temporal MoE Block: Our backbone follows the general spatio-temporal coupling structure proposed in our prior research [24] to model complex spatio-temporal dependencies. Each block adopts normalization and residual connections to stabilize deep representation learning. The temporal attention layer also uses multi-head self-attention with a causal lower-triangular mask, ensuring that the model's predictions at a given timestep depend only on itself and previous data, preserving autoregressive properties.
Relative to our prior STMMoE backbone [24], the components newly introduced in SpecLST are: (i) the FFT-based long-history branch and its phase-rotation alignment with the short-term window (Section III-B1), (ii) the learnable sparse graph augmentation on top of the static topology (this subsection), and (iii) the frequency-enhanced residual head with per-horizon gating (Section III-B4). The multimodal fusion module and the alternating FFN/MoE arrangement within stacked spatio-temporal blocks follow our previous design.
For the spatial attention layer, we extend the spatial modeling from a static topology to a learnable one. It dynamically constructs a spatial mask by fusing the static road network with a learned adjacency. Specifically, we let denote the static road-network adjacency. For all four datasets, is constructed from pairwise sensor distances using a thresholded Gaussian kernel, following common practice in DCRNN-style preprocessing. We introduce a global learnable sparse augmentation , parameterized as the outer product of two learnable node embedding vectors, that complements the road graph with a small number of additional connections. To preserve structural sparsity and avoid dense attention, the augmentation is constrained to static non-edges and sparsified by retaining only the top-k candidate edges per node, with k = 8 in all experiments. The "non-edge" constraint is a design choice rather than a strict structural requirement: it keeps the physical connectivity prior intact and assigns the learnable component the dedicated role of discovering non-local correlations (e.g., parallel corridors or shared upstream feeders) that the static topology does not encode. Down-weighting misleading static edges, where necessary, is handled implicitly by the attention layer that operates on top of . The fused adjacency is
where is a scalar learnable gate, parameterized by applying the sigmoid function to an unconstrained scalar parameter . The parameter is initialized as so that starts at 0.1, making the spatial mask rely primarily on the static topology at the beginning of training and preventing the learned augmentation from dominating before it is sufficiently optimized.
The core of the temporal and spatial MoE module is the MoE layer, which enhances model capacity and efficiency. We adopt a sparse MoE rather than a dense feed-forward network of comparable parameter count because traffic flow exhibits regime heterogeneity (e.g., free-flow vs. congested, weekday peaks vs. weekend valleys, incident-affected vs. regular sensors) that benefits from conditional computation: only a subset of experts is activated per token, allowing different experts to specialize in different spatio-temporal regimes while keeping the per-sample FLOPs bounded. To balance model capacity and avoid excessive sparsity, we alternate between standard Feed-Forward Network layers and sparse MoE layers within the stacked spatio-temporal blocks. When the MoE layer is used, a gating network dynamically routes each input token to a small subset of expert subnetworks, and the final output is obtained as a weighted aggregation of the selected expert outputs. To further ensure stable sparse routing, an auxiliary load-balancing loss is incorporated during training. This regularization term is defined based on the routing importance and the realized expert load after capacity-constrained dispatch, encouraging balanced expert usage and reducing the risk of expert collapse.
Formally, the total training objective is
where is the mean absolute error over all sensors and prediction horizons, and is the Switch-style load-balancing term computed as the product of the realized expert load (the fraction of tokens routed to expert ) and the mean routing probability assigned to expert over a batch. In all experiments we use experts with top-k routing ( ), an expert capacity factor of 1.25, and .
- Frequency Enhanced Residual Prediction Head: Short-term traffic variations often appear as high-frequency activity in recent observations, yet expanding the backbone's temporal receptive field to capture such dynamics is inefficient. To provide a lightweight correction signal, we introduce a frequency-enhanced residual head (FRH) that focuses specifically on high-frequency variations in a dedicated recent traffic window . Note that is a separate input slice from the short-term multimodal window of length . It covers only recent traffic for the residual correction. Unlike trend-event wavelet decompositions such as STWave, which process the high-frequency component through a parallel encoder of comparable depth to the main branch, FRH is a lightweight, per-horizon-gated residual head that adjusts the final prediction without altering the spatio-temporal backbone. The combination of (i) a power-spectrum input slice, (ii) a horizon-specific reliability gate, and (iii) a recent-window scope that is distinct from the multimodal short-term window is, to our knowledge, new among traffic-forecasting residual heads. An FFT is applied to this window to obtain its frequency-domain representation, after which we take the power spectrum and slice it to keep only the upper-frequency band:
where denotes the selected high-frequency band obtained by keeping a fixed percentage of the highest frequencies, and the right-hand side stacks the power-spectrum entries indexed by into a vector.
The use of the power spectrum here, rather than the complex coefficients used in the long-history branch, reflects the different role of the two modules. The long-history branch encodes periodic patterns whose phase carries timing information that must be preserved for alignment with the recent window. FRH, by contrast, is designed to flag the energy of recent high-frequency activity (e.g., abrupt slowdowns) regardless of phase, since the magnitude alone is sufficient to indicate that a transient event is present, while the precise timing of that event has already been captured by the short-term traffic embedding. The high-frequency band is taken as the upper third of the one-sided FFT bins.
The selected spectrum is then projected to a residual representation, and a horizon-specific learnable scalar is used to generate the gate that regulates its contribution:
where denotes the residual correction for prediction horizon h, and denotes the corresponding reliability gate.
Finally, the high-frequency residual produced by the MLP is injected into the model's prediction through a learnable gate, yielding the refined output at each prediction horizon :
FRH computes a lightweight residual for each sample, node, and prediction horizon using only a recent short window of traffic data, thereby incurring low computational cost. The resulting residual is further modulated by a learnable gate, ensuring that adjustments are only applied when high-frequency evidence is reliable. This design allows FRH to refine the backbone's predictions without altering its spatio-temporal structure or increasing its representational burden.
IV. EXPERIMENTS
In this section, we evaluate SpecLST on four large real-world traffic datasets. We begin with the experimental setup, including the datasets, the implementation environment, and the hyperparameter configurations. We then report comparisons with baselines, followed by parameter sensitivity analyses and ablation studies.
A. Datasets
-
Traffic data: We evaluate our model on four public real-world traffic datasets, all collected from the Caltrans Performance Measurement System (PeMS) with a 5-minute recording interval ([25]).
-
PEMS-BAY ([26]). This dataset consists of traffic speeds captured by 325 sensors on highways in the Bay Area. The data spans 6 months, from January 1, 2017 to May 31, 2017, totaling 52,116 time slices.
-
PEMS-BAY22 ([9]). This dataset consists of traffic flow and speed data collected from 325 sensors on highways in the Bay Area, spanning January 1, 2022 to June 30, 2022.
-
PEMS04 ([27]). This dataset comprises flow, speed, and occupancy from 307 sensors situated on 29 highways in District 04, California. The dataset covers the period from January 1, 2018 to February 28, 2018, totaling 16,992 time slices.
-
PEMS08 ([27]). This dataset includes three traffic features: flow, speed, and occupancy. It contains data from 170 sensors located on 8 highways in District 08, California. The data spans from July 1, 2016 to August 31, 2016, totaling 17,833 time slices.
To provide a fair comparison, the dataset division in this paper is kept consistent with prior work in the literature. For PEMS-BAY, the ratio of the training, validation, and test sets is 7:2:1, and for PEMS04, PEMS08, and PEMS-BAY22, it is 6:2:2. Among these benchmarks, PEMS-BAY22 provides the most recent Bay Area traffic observations in our evaluation.
- Context data: To enhance the predictive capability of our model, we incorporate multimodal context data alongside traffic measurements, including weather conditions, calendar attributes, and traffic event information. These variables are aligned with the short-term traffic window because they explain immediate deviations from regular traffic periodicity: rainfall or snow can reduce capacity within the current horizon, weekends and holidays alter demand patterns, and incidents can create sudden congestion waves near affected sensors. Weather data includes local temperature, precipitation, snowfall, and categorical weather condition codes obtained from meteorological stations within the study area. Calendar attributes capture temporal patterns through day-of-week indicators, weekend flags, and public holiday markers for each timestamp.
Event data is extracted from incident reports posted on the X platform (formerly Twitter) by three public accounts focusing on Bay Area traffic: @511SFBay , @caltransD4 , and @KCBSRadio . We strategically limit integration of event data to the PEMS-BAY22 dataset because manual event annotation is labor-intensive.
To transform unstructured social media text into structured event embeddings, we design a two-stage pipeline combining automated filtering with rule-based classification. First, we employ a locally deployed large language model (gpt-oss:20b) to eliminate non-traffic content and extract location descriptors from tweet text. These descriptors are geocoded through OpenStreetMap's Nominatim service , with coordinates validated against the study area's bounding box to ensure spatial accuracy. Second, a deterministic regular expression-based classifier maps incident descriptions to a five-level severity scale ( ), ranging from negligible disruptions ( ) to major blockages ( ). Events classified as (noise or non-impactful incidents) are discarded, while valid incidents ( ) are spatiotemporally aligned with traffic sensor data using a 1.0 km spatial radius and 5-minute temporal window. This conservative approach prioritizes precision over recall to minimize false incident-flow associations.
B. Baseline Models
We compare our method with a comprehensive set of classical and state-of-the-art baselines for traffic forecasting, including statistical models (VAR [3] and SVR [28]), graph-based recurrent networks (DCRNN [4], MTGNN [5], D STGNN [16], STWave [22]), and recent Transformer-based spatiotemporal architectures (STGormer [18], LSTTN [7], STTN [17], STAEformer [6]).
C. Experimental Environment and Hyperparameter Settings
Our model is implemented in PyTorch, and the final reported experiments and efficiency measurements are conducted on a Linux server equipped with a 12-core AMD Ryzen 9 CPU and an NVIDIA GeForce RTX 4080 SUPER GPU with 16GB of memory. NVIDIA Brev cloud GPU resources obtained through the NVIDIA Academic Grant Program were used to accelerate our exploration and to support rerunning multiple baseline models across datasets.
All datasets are sampled at a 5-minute interval. Following the long-range design in our implementation, the long-term traffic context for the FFT modality is set to two weeks, corresponding to 4032 time steps. The short-term multimodal input is set to 1 hour, which corresponds to 12 time steps. For the frequency-enhanced residual head, the recent traffic window is set to steps, corresponding to 2 hours at the 5-minute sampling interval. The prediction horizons are set to , corresponding to 15, 30, and 60 minutes ahead, respectively.
We train the model using the AdamW optimizer with an initial learning rate of and weight decay 0.01.
https://nominatim.openstreetmap.org/
https://www.nvidia.com/en-us/industries/higher-education-research/academic-grant-program/
The main architectural hyperparameters follow our implementation: hidden dimension 128, number of attention heads 8, and 6 spatio-temporal MoE blocks. The MoE module uses 12 experts with top-k = 2 routing.
Regarding the frequency-domain feature engineering, we distinguish between long-term periodicities and short-term transients through adaptive spectral thresholding. The demarcation between low- and high-frequency components is governed by the cumulative energy distribution of the power spectral density (PSD). Specifically, we perform an offline PSD analysis on the training dataset only, and select the smallest K that preserves 95% of the average cumulative spectral energy. Once determined, this dataset-specific K is kept unchanged for all validation and test experiments on the same dataset. Since each dataset is trained with an independent model configuration, the subsequent linear embedding layer operates on a fixed-dimensional spectral input for that dataset.
To complement these stable patterns, we introduce a dedicated branch to capture incident-triggered anomalies, which are typically manifested as high-frequency residuals. We extract these cues from the recent traffic window used by the frequency-enhanced residual head. By applying an FFT to this localized sequence and filtering with a high-pass filter that retains the upper one-third of the one-sided FFT bins, the model isolates rapid fluctuations from the underlying trend. The one-third cutoff is chosen to lie above the empirical knee of the cumulative power spectrum on the training data, where short-term variability begins to dominate over the daily and weekly periodicity already represented by the long-history branch. These high-frequency components are then projected as residual signals to the prediction head, enhancing the framework's sensitivity to sudden traffic bursts or accidents that traditional attention mechanisms might smooth over.
D. Experimental Results
In this section, we evaluate the proposed model from both accuracy and efficiency perspectives. While several baselines achieve strong results on specific datasets, our model consistently maintains competitive predictive performance with lower computational cost.
- Prediction Accuracy: Table I provides a comprehensive performance comparison of all models across four real-world datasets for prediction horizons of 15, 30, and 60 minutes. Overall, SpecLST performs competitively across all datasets and horizons.
It is worth noting that the comparison with LSTTN reveals a dataset-dependent trade-off. LSTTN achieves the best or near-best results on PEMS-BAY and PEMS04, confirming that subseries-based long-short temporal modeling remains a strong solution on several established benchmarks. SpecLST, however, obtains the best results on PEMS-BAY22 and leads most metrics on PEMS08, showing that frequency-domain long-context modeling provides an effective alternative when extended historical context and heterogeneous contextual inputs are considered together. This difference is also consistent with the model mechanisms: LSTTN preserves long-term information through learned subseries-level temporal representations, whereas SpecLST maps long historical traffic into a fixed set of low-frequency coefficients before fusion. As a result, SpecLST avoids maintaining long temporal feature maps in the main forecasting backbone, which helps explain its more favorable memory and training-time profile in the Pareto analysis on PEMS-BAY22, where it achieves the lowest average MAE with lower resource consumption than LSTTN.
Traditional statistical and machine learning methods, such as VAR and SVR, yield the least favorable results. This is primarily because these models rely on strong assumptions of linearity or stationarity, which fail to capture the highly nonlinear and non-stationary nature of urban traffic flow. Deep learning baselines that incorporate spatial dependencies, such as DCRNN and MTGNN, demonstrate marked improvements. By modeling the traffic network as a graph, they effectively capture inter-sensor correlations. More recent Transformer-based architectures, such as STTN, STGormer, STAEformer, and LSTTN, further improve prediction accuracy by capturing spatio-temporal dependencies.
E. Sensitivity Analysis
Table II summarizes the sensitivity results on PEMS-BAY22 as absolute differences from the corresponding reference settings.
As shown in Table II, yields consistent error reductions across all horizons and metrics relative to , whereas larger batch sizes produce mixed changes. Increasing the hidden dimension generally improves MAE and RMSE, with producing the largest reductions, while performs best in MAPE. Nevertheless, the additional gains beyond are metric-dependent, and is retained as a compact operating point to limit model size and computational cost. Regarding model depth, provides the strongest overall improvement, whereas deeper configurations yield inconsistent gains and occasionally increase RMSE. Accordingly, we use , , and in the reported model configuration.
F. Ablation Studies
All ablation studies are conducted on the PEMS-BAY22 dataset, with results reported as averages over three random seeds. By systematically removing individual components or input groups, we evaluate their impact on predictive accuracy. The tested settings are defined as follows:
leftmargin=1.5em
- w/o LAM: Removal of the learnable adjacency matrix, retaining only the static adjacency matrix derived from the road network.
• w/o AM: Removal of the adjacency matrix.
-
w/o CA: Removal of calendar features from the exogenous inputs.
-
w/o WE: Removal of weather features from the exogenous inputs.
-
w/o EV: Removal of event features from the exogenous inputs.
• traffic only: Removal of all exogenous modalities, leaving only traffic observations as short-term inputs.
TABLE I PREDICTION PERFORMANCE OF TRAFFIC FORECASTING MODELS ON FOUR DATASETS. BEST RESULTS ARE IN BOLD. SECOND-BEST RESULTS ARE UNDERLINED.
| Datasets | Methods | Horizon 3 | Horizon 6 | Horizon 12 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| MAE | RMSE | MAPE | MAE | RMSE | MAPE | MAE | RMSE | MAPE | ||
| PEMS-BAY | VAR | 1.90 | 4.13 | 3.92% | 2.47 | 5.57 | 5.36% | 3.42 | 7.60 | 7.75% |
| SVR | 1.52 | 3.55 | 3.48% | 1.85 | 4.41 | 4.43% | 2.34 | 5.61 | 6.00% | |
| DCRNN | 1.36 | 2.90 | 2.90% | 1.70 | 3.90 | 3.90% | 2.07 | 4.82 | 4.90% | |
| MTGNN | 1.33 | 2.79 | 2.81% | 1.65 | 3.74 | 3.75% | 1.94 | 4.49 | 4.62% | |
| STGNN | 1.24 | 2.60 | 2.58% | 1.55 | 3.52 | 3.49% | 1.85 | 4.30 | 4.37% | |
| LSTTN | 1.06 | 2.18 | 2.11% | 1.26 | 2.76 | 2.63% | 1.48 | 3.41 | 3.24% | |
| STTN | 1.27 | 2.70 | 2.61% | 1.69 | 3.83 | 3.70% | 2.26 | 5.18 | 5.39% | |
| STGormer | 1.36 | 2.92 | 2.90% | 1.69 | 3.92 | 3.81% | 1.96 | 4.58 | 4.56% | |
| STAEformer | 1.31 | 2.78 | 2.76% | 1.62 | 3.68 | 3.62% | 1.88 | 4.34 | 4.41% | |
| STWave | 1.42 | 3.00 | 3.09% | 1.80 | 4.03 | 4.20% | 2.18 | 4.94 | 5.43% | |
| SpecLST | 1.16 | 2.48 | 2.36% | 1.40 | 3.19 | 3.01% | 1.68 | 3.93 | 3.78% | |
| PEMS-BAY22 | VAR | 20.96 | 35.89 | 16.22% | 26.53 | 44.68 | 18.04% | 38.00 | 60.65 | 26.39% |
| SVR | 21.79 | 34.43 | 16.22% | 26.11 | 40.44 | 19.29% | 36.30 | 55.25 | 26.05% | |
| DCRNN | 17.59 | 33.89 | 12.65% | 19.74 | 39.05 | 14.41% | 22.38 | 43.37 | 18.33% | |
| MTGNN | 15.06 | 24.10 | 10.58% | 16.59 | 26.77 | 12.24% | 18.77 | 30.14 | 13.00% | |
| STGNN | 16.81 | 24.14 | 10.96% | 18.97 | 26.71 | 10.64% | 21.57 | 30.45 | 14.30% | |
| LSTTN | 13.65 | 23.71 | 9.48% | 15.36 | 26.60 | 11.56% | 17.10 | 29.72 | 13.20% | |
| STTN | 17.49 | 27.33 | 12.91% | 21.13 | 33.23 | 15.49% | 27.53 | 42.65 | 19.62% | |
| STGormer | 15.21 | 24.64 | 10.93% | 16.78 | 27.28 | 13.32% | 19.53 | 31.19 | 16.18% | |
| STAEformer | 14.24 | 24.39 | 9.70% | 15.60 | 27.20 | 10.54% | 17.71 | 30.86 | 12.15% | |
| STWave | 14.38 | 24.19 | 9.86% | 15.91 | 26.95 | 10.88% | 17.81 | 30.15 | 12.43% | |
| SpecLST | 13.19 | 23.17 | 9.41% | 14.13 | 25.39 | 10.06% | 15.61 | 28.54 | 11.26% | |
| PEMS04 | VAR | 23.79 | 37.18 | 14.23% | 28.77 | 44.31 | 17.27% | 39.67 | 59.72 | 24.15% |
| SVR | 27.80 | 43.70 | 19.71% | 32.91 | 51.05 | 23.00% | 43.80 | 67.24 | 30.04% | |
| DCRNN | 20.34 | 31.94 | 13.65% | 21.85 | 34.43 | 14.13% | 26.97 | 41.11 | 16.84% | |
| MTGNN | 17.97 | 27.97 | 12.75% | 18.73 | 28.92 | 13.31% | 19.73 | 30.23 | 13.81% | |
| STGNN | 17.44 | 28.64 | 11.64% | 18.28 | 30.10 | 12.10% | 19.55 | 31.99 | 12.82% | |
| LSTTN | 17.06 | 27.74 | 11.68% | 17.62 | 28.67 | 11.68% | 18.46 | 30.00 | 12.17% | |
| STTN | 19.72 | 31.68 | 12.85% | 21.70 | 34.59 | 13.87% | 25.17 | 39.35 | 15.68% | |
| STGormer | 17.73 | 29.10 | 11.84% | 18.61 | 30.61 | 12.39% | 20.00 | 32.69 | 13.54% | |
| STAEformer | 17.49 | 28.60 | 11.61% | 18.24 | 29.95 | 12.00% | 19.37 | 31.71 | 12.83% | |
| STWave | 17.55 | 28.83 | 11.82% | 18.42 | 30.25 | 12.63% | 19.70 | 32.14 | 13.37% | |
| SpecLST | 16.94 | 28.17 | 11.07% | 17.74 | 29.47 | 11.57% | 18.92 | 31.37 | 12.34% | |
| PEMS08 | VAR | 18.90 | 29.55 | 10.52% | 22.94 | 35.79 | 12.74% | 32.27 | 48.93 | 17.92% |
| SVR | 22.88 | 37.08 | 12.85% | 26.94 | 42.62 | 15.13% | 35.76 | 55.03 | 20.06% | |
| DCRNN | 15.64 | 25.48 | 10.04% | 17.69 | 27.63 | 11.38% | 22.51 | 34.21 | 14.17% | |
| MTGNN | 13.55 | 21.05 | 9.99% | 14.08 | 22.10 | 10.50% | 14.96 | 23.58 | 10.96% | |
| STGNN | 13.14 | 21.42 | 8.55% | 14.21 | 23.65 | 9.12% | 15.73 | 26.41 | 10.17% | |
| LSTTN | 13.17 | 21.89 | 8.63% | 13.71 | 22.89 | 9.09% | 14.54 | 23.47 | 9.77% | |
| STTN | 16.48 | 25.36 | 9.48% | 19.42 | 29.58 | 10.78% | 25.65 | 37.43 | 13.72% | |
| STGormer | 13.03 | 22.43 | 8.51% | 13.92 | 24.48 | 8.99% | 15.21 | 26.95 | 9.86% | |
| STAEformer | 12.87 | 21.60 | 8.33% | 13.56 | 23.44 | 8.90% | 14.91 | 25.91 | 9.86% | |
| STWave | 12.71 | 21.90 | 8.61% | 13.57 | 23.84 | 8.97% | 14.81 | 26.07 | 9.84% | |
| SpecLST | 12.39 | 20.84 | 7.96% | 13.16 | 22.35 | 8.44% | 14.34 | 24.26 | 9.24% | |
- w/o FRH: Removal of the frequency-enhanced residual head.
- w/o FFT: Removal of the long-history FFT branch.
- w/o Spectral: Removal of both spectral components, namely the FFT branch and frequency-enhanced residual head.
Table III examines the role of adjacency modeling. The learned adjacency yields the best results across all horizons. This indicates that the physical graph prior remains useful, but augmenting it with a sparse learnable structure better captures task-dependent non-local correlations that are not fully encoded by the original road network.
Table IV evaluates the contribution of exogenous modalities. Removing all contextual modalities produces the clearest degradation, confirming that multimodal information provides complementary cues beyond historical traffic alone. Among individual modalities, event information generally has the strongest influence on overall predictive performance, while weather and calendar features also contribute positively but with comparatively smaller effects. Moreover, the trends in RMSE and MAPE are not entirely identical to those in MAE, suggesting that different exogenous modalities affect differ-
TABLE II
SENSITIVITY RESULTS ON PEMS-BAY22 REPORTED AS ABSOLUTE DIFFERENCES FROM THE CORRESPONDING REFERENCE SETTINGS. NEGATIVE VALUES INDICATE IMPROVED PERFORMANCE, AND MAPE IS REPORTED IN PERCENTAGE POINTS. BEST RESULTS WITHIN EACH GROUP AND COLUMN ARE IN BOLD.
| Reference | Setting | H3 | H6 | H12 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| MAE | RMSE | MAPE | MAE | RMSE | MAPE | MAE | RMSE | MAPE | ||
| to | 8 | -0.054 | -0.126 | -0.23 | -0.063 | -0.130 | -0.18 | -0.090 | -0.117 | -0.35 |
| 16 | +0.016 | -0.074 | -0.08 | +0.012 | -0.076 | +0.02 | +0.029 | -0.060 | -0.06 | |
| 32 | +0.063 | -0.045 | +0.04 | +0.044 | -0.066 | +0.04 | +0.056 | 0.000 | -0.13 | |
| to | 128 | -0.145 | -0.083 | -0.31 | -0.210 | -0.142 | -0.50 | -0.259 | -0.187 | -0.56 |
| 256 | -0.154 | -0.096 | -0.40 | -0.241 | -0.197 | -0.56 | -0.307 | -0.235 | -0.64 | |
| 512 | -0.199 | -0.161 | -0.27 | -0.286 | -0.272 | -0.41 | -0.360 | -0.403 | -0.46 | |
| to | 2 | -0.142 | -0.198 | -0.03 | -0.129 | -0.166 | +0.01 | -0.197 | -0.260 | -0.09 |
| 4 | -0.148 | -0.119 | -0.16 | -0.180 | -0.128 | -0.16 | -0.253 | -0.181 | -0.14 | |
| 6 | -0.228 | -0.192 | -0.31 | -0.261 | -0.212 | -0.30 | -0.364 | -0.343 | -0.37 | |
| 8 | -0.073 | +0.106 | -0.18 | -0.081 | +0.167 | -0.20 | -0.181 | +0.112 | -0.34 | |
| 10 | -0.151 | -0.058 | -0.16 | -0.105 | +0.038 | -0.06 | -0.173 | -0.008 | -0.03 | |
| 12 | -0.141 | -0.094 | -0.23 | -0.188 | -0.150 | -0.20 | -0.269 | -0.267 | -0.28 | |
TABLE III
ADJACENCY MATRIX ABLATION EXPERIMENT RESULTS. BEST RESULTS PER COLUMN ARE IN BOLD.
| Method | Horizon 3 | Horizon 6 | Horizon 12 | ||||||
|---|---|---|---|---|---|---|---|---|---|
| MAE | RMSE | MAPE | MAE | RMSE | MAPE | MAE | RMSE | MAPE | |
| w/o LAM | 13.42 | 23.41 | 9.66% | 14.42 | 25.71 | 10.35% | 16.01 | 28.96 | 11.64% |
| w/o AM | 13.46 | 23.51 | 9.57% | 14.46 | 25.84 | 10.23% | 16.04 | 29.06 | 11.52% |
| Original | 13.19 | 23.17 | 9.41% | 14.13 | 25.39 | 10.06% | 15.61 | 28.54 | 11.26% |
TABLE IV
EXOGENOUS MODALITY ABLATION EXPERIMENT RESULTS. BEST RESULTS PER COLUMN ARE IN BOLD.
| Method | Horizon 3 | Horizon 6 | Horizon 12 | ||||||
|---|---|---|---|---|---|---|---|---|---|
| MAE | RMSE | MAPE | MAE | RMSE | MAPE | MAE | RMSE | MAPE | |
| w/o CA | 13.23 | 23.21 | 9.45% | 14.19 | 25.39 | 10.13% | 15.69 | 28.62 | 11.34% |
| w/o WE | 13.22 | 23.23 | 9.53% | 14.18 | 25.47 | 10.18% | 15.73 | 28.62 | 11.49% |
| w/o EV | 13.26 | 23.24 | 9.43% | 14.23 | 25.52 | 10.12% | 15.79 | 28.77 | 11.40% |
| traffic only | 13.35 | 23.27 | 9.51% | 14.32 | 25.55 | 10.21% | 15.88 | 28.77 | 11.46% |
| Original | 13.19 | 23.17 | 9.41% | 14.13 | 25.39 | 10.06% | 15.61 | 28.54 | 11.26% |
ent aspects of prediction quality rather than only improving average absolute error.
Table V isolates the contribution of different spectral components. The results show that removing any spectral component leads to performance degradation, demonstrating the benefit of spectral modeling for traffic prediction. Among the ablation settings, the model without FFT shows the greatest overall deterioration, highlighting the importance of frequency-domain information. In this ablation, w/o FFT means removing the long-history frequency branch and retaining the remaining short-term forecasting backbone, rather than replacing FFT with raw multi-week attention. This design choice is necessary because direct attention over raw long-history traffic has a memory cost growing quadratically with . SpecLST instead computes the FFT in , keeps low-frequency coefficients, and applies attention only over the short window , allowing multi-week historical context to be incorporated without raw long-sequence attention. Meanwhile, removing FRH or the spectral module also causes consistent, though comparatively milder, declines, suggesting that these components provide complementary improvements to the final performance.
Overall, the ablation results suggest that the long-history FFT branch provides the largest observed contribution to prediction accuracy, followed by the exogenous context inputs, especially event information. The learnable adjacency and FRH provide smaller but consistent gains, indicating that they mainly refine spatial dependency modeling and short-term transient correction.
G. Efficiency
To evaluate the practical utility of SpecLST, we perform a Pareto analysis on the PEMS-BAY22 dataset, comparing the trade-off between forecasting accuracy and resource consumption. The MAE value in this analysis is averaged over the three forecasting horizons .
In a Pareto analysis, lower-left points are preferable because they simultaneously reduce prediction error and resource usage. A model is on the Pareto frontier if no other model achieves both lower MAE and lower resource consumption. In Fig. 2, red circles denote Pareto-front models, blue circles denote non-front models, and LSTTN is marked separately
TABLE V SPECTRAL COMPONENT ABLATION EXPERIMENT RESULTS. BEST RESULTS PER COLUMN ARE IN BOLD.
| Method | Horizon 3 | Horizon 6 | Horizon 12 | ||||||
|---|---|---|---|---|---|---|---|---|---|
| MAE | RMSE | MAPE | MAE | RMSE | MAPE | MAE | RMSE | MAPE | |
| w/o FRH | 13.23 | 23.16 | 9.43% | 14.15 | 25.41 | 10.03% | 15.66 | 28.63 | 11.27% |
| w/o FFT | 13.48 | 23.47 | 9.61% | 14.55 | 25.86 | 10.34% | 16.33 | 29.34 | 11.71% |
| w/o Spectral | 13.61 | 23.60 | 9.77% | 14.68 | 26.03 | 10.47% | 16.55 | 29.67 | 11.94% |
| Original | 13.19 | 23.17 | 9.41% | 14.13 | 25.39 | 10.06% | 15.61 | 28.54 | 11.26% |

(a) Average MAE vs. memory usage.

(b) Average MAE vs. training time.
Fig. 2. Efficiency comparison using Pareto frontier analysis on PEMS-BAY22.
with a green triangle. In the memory-usage panel of Fig. 2, SpecLST lies at the accuracy-oriented end of the frontier: it achieves the lowest average MAE while maintaining a moderate memory footprint, despite using multimodal inputs and two weeks of historical context. STWave and DSTET occupy lower-memory frontier positions, but with higher prediction error. By contrast, LSTTN is highlighted as a non-front model: although it remains a strong accuracy competitor, it requires substantially more memory than SpecLST because its long-context module still maintains temporal feature maps derived from long historical sequences. Thus, SpecLST provides a stronger overall trade-off when accuracy, multimodal context, and memory feasibility are considered together.
Regarding temporal efficiency, the training-time panel of Fig. 2 shows a similar pattern. SpecLST remains the accuracy-oriented frontier point, while faster frontier models such as MTGNN achieve lower training time at the cost of higher prediction error. LSTTN achieves competitive accuracy but is far from the frontier because it requires a much longer training time due to its long-context temporal module. This indicates that the FFT representation does not merely reduce memory pressure. It also makes long-history multimodal forecasting practical without moving to the high-time regime of raw long-sequence models.
V. CONCLUSION AND FUTURE WORK
In this paper, we propose SpecLST, a frequency-enhanced long-short term spatio-temporal multimodal mixture-of-experts framework designed to address the challenges of high-dimensional multimodal fusion and long-range historical dependency modeling in urban traffic forecasting. By representing long historical traffic in the frequency domain through FFT, the model effectively captures periodic signatures from several weeks of context with low memory usage, bypassing the computational bottlenecks inherent in traditional self-attention mechanisms over raw long sequences. Experimental results across four real-world benchmarks show that the combination of frequency-domain long-context representation, attention-based context fusion, and high-frequency residual correction yields competitive predictive performance and favorable resource efficiency.
Empirically, SpecLST achieves the best results across all reported metrics and horizons on PEMS-BAY22, leads most metrics on PEMS08, and remains competitive with the strongest baselines on PEMS-BAY and PEMS04. It achieves the lowest average MAE while sitting on the favorable end of the Pareto frontier for both memory usage and training time, indicating that the frequency-domain long-history representation supports accuracy gains without the memory penalty of raw long-sequence attention. Ablation studies further confirm that each spectral and contextual component contributes a complementary signal, with the long-history FFT branch and the event modality providing the most substantial individual gains.
Several directions remain open for future research. First, the learnable graph augmentation in SpecLST is global and time-invariant. Replacing the outer-product parameterization of with an attention-derived adjacency conditioned on the latest T steps would allow the spatial structure to evolve in real time with traffic and capture transient correlations during peak hours or incidents. Second, beyond FFT, alternative long-history representation techniques, including wavelet transforms, discrete cosine transform (DCT)-based representations, or neural sequence summarization, may offer complementary ways to encode long-range context and non-stationary trends in heterogeneous modalities. Third, deep learning models struggle with cross-region generalization because their data-dependence inevitably reflects regional biases in network topology, mobility patterns, and data availability. Recent large language models have demonstrated strong generalization and zero-shot reasoning capabilities, which may provide useful priors for future traffic forecasting systems that need to adapt across regions with limited local supervision.
ACKNOWLEDGMENT
The authors acknowledge NVIDIA for providing Brev cloud GPU resources through the NVIDIA Academic Grant Program, which supported SpecLST model exploration and baseline reruns.
REFERENCES
[1] E. I. Vlahogianni, M. G. Karlaftis, and J. C. Golias, “Short-term traffic forecasting: Where we are and where we’re going,” Transportation Research Part C: Emerging Technologies, vol. 43, pp. 3–19, 2014, special Issue on Short-term Traffic Flow Forecasting. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S0968090X14000096
[2] H. Yuan and G. Li, “A survey of traffic prediction: from spatio-temporal data to intelligent transportation,” Data Science and Engineering, vol. 6, no. 1, pp. 63–85, 2021. [Online]. Available: https://doi.org/10.1007/s41019-020-00151-z
[3] H. Lütkepohl, New introduction to multiple time series analysis. Springer Science & Business Media, 2005.
[4] Y. Li, R. Yu, C. Shahabi, and Y. Liu, “Diffusion convolutional recurrent neural network: Data-driven traffic forecasting,” in International Conference on Learning Representations (ICLR), 2018. [Online]. Available: https://arxiv.org/abs/1707.01926
[5] Z. Wu, S. Pan, G. Long, J. Jiang, and C. Zhang, “Connecting the dots: Multivariate time series forecasting with graph neural networks,” in Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2020.
[6] H. Liu, Z. Dong, R. Jiang, J. Deng, J. Deng, Q. Chen, and X. Song, "Spatio-temporal adaptive embedding makes vanilla transformer sota for traffic forecasting," in Proceedings of the 32nd ACM International Conference on Information and Knowledge Management, ser. CIKM '23. New York, NY, USA: Association for Computing Machinery, 2023, pp. 4125–4129. [Online]. Available: https://doi.org/10.1145/3583780.3615160
[7] Q. Luo, S. He, X. Han, Y. Wang, and H. Li, “Lsttn: A long-short term transformer-based spatiotemporal neural network for traffic flow forecasting,” Knowledge-Based Systems, vol. 293, p. 111637, 2024. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S0950705124002727
[8] J. Zhu, Q. Wang, C. Tao, H. Deng, L. Zhao, and H. Li, “Ast-gcn: Attribute-augmented spatiotemporal graph convolutional network for traffic forecasting,” IEEE Access, vol. 9, pp. 35973–35983, 2021.
[9] S. Choi, N. Saunier, V. Z. Zheng, M. Trépanier, and L. Sun, “Scalable dynamic mixture model with full covariance for probabilistic traffic forecasting,” Transportation Science, vol. 59, no. 4, pp. 708–720, 2025. [Online]. Available: https://doi.org/10.1287/trsc.2024.0547
[10] D. A. Tedjopurnomo, Z. Bao, B. Zheng, F. M. Choudhury, and A. K. Qin, “A Survey on Modern Deep Neural Network for Traffic Prediction: Trends, Methods and Challenges,” IEEE Transactions on Knowledge & Data Engineering, vol. 34, no. 04, pp. 1544–1561, Apr. 2022. [Online]. Available: https://doi.ieeecomputersociety.org/10.1109/TKDE.2020.3001195
[11] X. Jiang, Y. Luo et al., “Graph neural network for traffic forecasting: A survey,” Expert Systems with Applications, 2022. [Online]. Available: https://dl.acm.org/doi/10.1016/j.eswa.2022.117921
[12] B. Yu, H. Yin, and Z. Zhu, “Spatio-temporal graph convolutional networks: A deep learning framework for traffic forecasting,” in Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence (IJCAI), 2018. [Online]. Available: https://www.ijcai.org/proceedings/2018/505
[13] S. Guo, Y. Lin, N. Feng, C. Song, and H. Wan, “Attention based spatial-temporal graph convolutional networks for traffic flow forecasting,” in Proceedings of the AAAI Conference on Artificial Intelligence, 2019. [Online]. Available: https://ojs.aaai.org/index.php/AAAI/article/view/3881
[14] Z. Wu, S. Pan, G. Long, J. Jiang, and C. Zhang, “Graph wavenet for deep spatial-temporal graph modeling,” in Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence (IJCAI), 2019. [Online]. Available: https://www.ijcai.org/proceedings/2019/264
[15] L. Bai, L. Yao, C. Li, X. Wang, and C. Wang, “Adaptive graph convolutional recurrent network for traffic forecasting,” in Advances in Neural Information Processing Systems (NeurIPS), 2020. [Online]. Available: https://arxiv.org/abs/2007.02842
[16] Z. Shao, Z. Zhang, F. Wang, W. Xu, J. Wang, Z. Zhang et al., "Decoupled dynamic spatial-temporal graph neural network for traffic forecasting," Proceedings of the VLDB Endowment, 2022. [Online]. Available: https://arxiv.org/abs/2206.09112
[17] M. Xu, W. Dai, C. Liu, X. Gao, W. Lin, G.-J. Qi, and H. Xiong, "Spatial-temporal transformer networks for traffic flow forecasting," arXiv preprint arXiv:2001.02908, 2020.
[18] H. Wang, J. Chen, T. Pan, Z. Dong, L. Zhang, R. Jiang, and X. Song, "Stgformer: Efficient spatiotemporal graph transformer for traffic forecasting," 2024. [Online]. Available: https://arxiv.org/abs/2410.00385
[19] J. Jiang, C. Han, W. X. Zhao, and J. Wang, “Pdformer: Propagation delay-aware dynamic long-range transformer for traffic flow prediction,” Proceedings of the AAAI Conference on Artificial Intelligence, vol. 37, no. 4, pp. 4365–4373, Jun. 2023. [Online]. Available: https://doi.org/10.1609/aaai.v37i4.25556
[20] T. Zhou, Z. Ma, Q. Wen, X. Wang, L. Sun, and R. Jin, “FEDformer: Frequency enhanced decomposed transformer for long-term series forecasting,” in Proceedings of the 39th International Conference on Machine Learning, ser. Proceedings of Machine Learning Research, K. Chaudhuri, S. Jegelka, L. Song, C. Szepesvari, G. Niu, and S. Sabato, Eds., vol. 162. PMLR, 17–23 Jul 2022, pp. 27268–27286. [Online]. Available: https://proceedings.mlr.press/v162/zhou22g.html
[21] H. Wu, J. Xu, J. Wang, and M. Long, “Autoformer: Decomposition transformers with Auto-Correlation for long-term series forecasting,” in Advances in Neural Information Processing Systems, 2021. [Online]. Available: https://arxiv.org/abs/2106.13008
[22] Y. Fang, Y. Qin, H. Luo, F. Zhao, B. Xu, L. Zeng, and C. Wang, "When spatio-temporal meet wavelets: Disentangled traffic forecasting via efficient spectral graph attention networks," in 2023 IEEE 39th International Conference on Data Engineering (ICDE), 2023, pp. 517–529.
[23] Q. Guo, Q. Tan, J. Tang, and B. Shi, “Unifying spatiotemporal and frequential attention for traffic prediction,” Scientific Reports, vol. 15, 01 2025.
[24] K. Kang, M. M. Y. Kuo, and W. Li, “Stmmoe: A spatio-temporal multimodal mixture-of-experts model for urban traffic prediction,” pp. 49–64, 2025.
[25] C. Chen, K. Petty, A. Skabardonis, P. Varaiya, and Z. Jia, "Freeway performance measurement system: Mining loop detector data," Transportation Research Record, vol. 1748, no. 1, pp. 96–102, 2001. [Online]. Available: https://doi.org/10.3141/1748-12
[26] Y. Huang, Y. Weng, S. Yu, and X. Chen, “Diffusion convolutional recurrent neural network with rank influence learning for traffic forecasting,” in 2019 18th IEEE International Conference On Trust, Security And Privacy In Computing And Communications/13th IEEE International Conference On Big Data Science And Engineering (TrustCom/BigDataSE), 2019, pp. 678–685.
[27] S. Guo, Y. Lin, N. Feng, C. Song, and H. Wan, “Attention based spatial-temporal graph convolutional networks for traffic flow forecasting,” Proceedings of the AAAI Conference on Artificial Intelligence, vol. 33, no. 01, pp. 922–929, Jul. 2019. [Online]. Available: https://ojs.aaai.org/index.php/AAAI/article/view/3881
[28] A. J. Smola and B. Schölkopf, “A tutorial on support vector regression,” Statistics and Computing, vol. 14, no. 3, pp. 199–222, 2004.