Fourier Basis Mapping for Forecasting
- Fourier Basis Mapping (FBM) is a time-frequency learning framework that reinterprets Fourier coefficients into cosine and sine basis functions to retain both global cycles and local temporal details.
- It addresses limitations of traditional Fourier forecasting by resolving issues like inconsistent starting cycles, series length problems, and loss of temporal context.
- FBM variants—from linear to Transformer-based approaches—demonstrate competitive forecasting accuracy across diverse datasets by integrating explicit time-frequency mappings.
Searching arXiv for the FBM paper and closely related time-series forecasting work. Fourier Basis Mapping (FBM) is a time-frequency learning framework for time series forecasting that treats the Fourier transform explicitly as a basis-function expansion rather than as a purely spectral preprocessing step. In this formulation, the real and imaginary parts of Fourier coefficients are reinterpreted as coefficients of cosine and sine basis functions at tiered frequency levels, and are then mapped in a joint time-frequency space to produce forecasts. The framework is intended to address limitations attributed to existing Fourier-based forecasting methods—specifically inconsistent starting cycles, inconsistent series length issues, imprecise interpretation of frequency components, and loss of temporal information—while remaining plug-and-play with linear, MLP-based, and Transformer-based predictors by modifying only the first initial projection layer (Yang et al., 13 Jul 2025).
1. Conceptual basis and problem setting
FBM begins from a basis-functions view of the discrete Fourier transform. For a real-valued time series, the Fourier spectrum is not treated merely as amplitude or phase; instead, its real and imaginary parts are tied directly to cosine and sine bases. This yields explicit frequency features while preserving temporal characteristics.
The framework is motivated by two criticisms of prior Fourier-based forecasting pipelines. First, they are described as suffering from inconsistent starting cycles and inconsistent series length issues. Second, they are described as failing to interpret frequency components precisely and as overlooking temporal information. FBM addresses these issues by combining Fourier basis expansion with a mapping stage defined in time-frequency space, so that downstream prediction operates on representations indexed by both time and frequency rather than on a collapsed spectral summary (Yang et al., 13 Jul 2025).
A central claim of the framework is that the retained time index permits simultaneous access to global cycles and local spikes. This is operationally important for forecasting settings in which seasonal structure, trend, and short-horizon cross-channel interaction must be modeled with different inductive biases. FBM therefore functions both as a feature representation and as an architectural interface between spectral structure and temporal prediction.
2. Fourier-basis expansion and projection formulation
For a univariate real-valued series , , FBM starts from the standard DFT and IDFT:
and
Because is real, satisfies Hermitian symmetry, and the reconstruction can be rewritten in cosine-sine form. Splitting into real and imaginary parts and , the expansion is
The paper then defines cosine and sine basis functions
0
and
1
together with coefficients
2
so that
3
This basis expansion is the formal entry point for FBM. Rather than discarding phase or amplitude, the method re-injects 4 and 5 into the time domain through the basis matrices 6 and 7. For 8 channels, the paper describes the projection pipeline as follows: compute 9 and 0, form shared basis matrices 1 and 2, and then construct the time-frequency tensor
3
The downstream projection network maps 4 to the forecast horizon. All variants are trained end-to-end with squared error
5
with MAE used as a secondary monitoring metric (Yang et al., 13 Jul 2025).
3. Time-frequency mapping and preservation of temporal locality
A defining property of FBM is that the representation 6 retains an explicit time index 7 in addition to the frequency index 8. The 9 entry is defined as the contribution of channel 0, time 1, and frequency 2. This means that downstream layers do not operate on a frequency-only tensor; they operate on a joint time-frequency representation.
For a linear projection 3, the forecast can be written as
4
In this form, the mapping explicitly respects both time and frequency indexing. The paper argues that because each 5 arises from multiplying 6 by 7 and 8 by 9, any sliding window, patching operator, or attention mechanism over 0 still observes the relative timing of spectral components (Yang et al., 13 Jul 2025).
Within the proposed interpretation, this is the core distinction between FBM and pure Fourier-domain methods. The framework is not merely spectral feature extraction followed by prediction; it is a structured remapping of spectral coefficients back into a temporally indexed feature field. This suggests that FBM is designed to preserve temporal locality without abandoning global frequency structure.
4. Model family and architectural variants
All FBM variants share the same initial steps—DFT followed by basis expansion—and differ only in how the resulting tensor 1 is mapped to the forecast 2.
| Variant | Mapping head | Defining characteristic |
|---|---|---|
| FBM-L | Single dense layer | Linear mapping on flattened time-frequency features |
| FBM-NL | Three fully connected layers with ReLU | Nonlinear refinement of explicit time-frequency features |
| FBM-NP | Patch + Transformer encoder | Patch-wise processing of 3 with position-in-time embedding |
| FBM-S | Seasonal, Trend, Interaction blocks | Synergetic three-block decomposition |
FBM-L flattens 4 into a vector of length 5 and applies a single dense layer with no activation:
6
The paper characterizes this as analogous to NLinear, but operating on time-frequency features.
FBM-NL uses the same flattening, followed by three fully connected layers with ReLU activations:
7
This introduces depth while preserving the explicit FBM feature construction.
FBM-NP partitions 8 along the time axis into 9 patches of length 0, flattens each patch, projects it linearly to 1, adds position-in-time embedding, and processes the resulting patch embeddings with a small Transformer encoder stack before a final linear head. The paper states that this is identical to PatchTST’s decoder except that the input is 2 rather than raw 3.
FBM-S is the most specialized variant. It decomposes forecasting into three parallel paths—Seasonal, Trend, and Interaction—whose outputs are summed:
4
This decomposition is the main architectural generalization within the FBM family (Yang et al., 13 Jul 2025).
5. Seasonal, trend, and interaction mechanisms in FBM-S
The Seasonal block is designed to exploit the sinusoidal structure already present in the basis expansion. The paper states that all basis functions 5 and 6 are sinusoids in 7. To extract seasonality, 8 is padded in time by 9 using the same 0 basis, and a 1D rolling-window filter 1 is applied:
2
This is also described as a learned weighting over time-frequency positions for repeated cycles.
The Trend block targets coarser scales. It may use patching as in FBM-NP, or flatten 3 and feed it through either a single MLP layer with activation or a small Transformer block with patch tokens. Before projection, each patch is centralized; after projection, it is decentralized. The block may also incorporate multi-scale down-sampling of 4 by averaging along time or summing along frequency, producing additional coarse trend views that are processed separately and summed.
The Interaction block is intended for short-term cross-channel coupling concentrated in the recent history. An input mask keeps only the last 5 time steps, 6, and an output mask may restrict the block to the first 7 forecast steps. The resulting mini-tensor is centralized and then passed through a small MLP or one attention layer to produce 8. The paper states that short-term TSF often benefits from cross-channel coupling, but only in the very recent window (Yang et al., 13 Jul 2025).
Several specialized techniques support these three blocks. Interaction masking restricts the temporal scope of the Interaction block. Centralization and decentralization normalize each patch with learned scale and shift parameters 9:
0
1
Patching divides the time axis into 2 equal windows and reduces initial projection size by factor 3. Rolling-window projection implements the seasonal operation as a linear 1D convolution with kernel 4. Multi-scale down-sampling generates lower-resolution versions of 5 by averaging adjacent time steps with kernel 6 or summing frequency bands with kernel 7.
6. Empirical evaluation, scope, and related nomenclature
The reported experiments cover long-term TSF, short-term TSF, and M4 univariate forecasting. For long-term TSF, the datasets are ETT (ETTh1, ETTh2, ETTm1, ETTm2), Electricity (ECL), Traffic (TRA), Weather (WTH), Exchange, and PEMS (03,04,07,08), with input length 8 and horizons 9. For short-term TSF, the datasets are PEMS only, again with 0 and 1. For M4 univariate forecasting, the setup uses 2 and 3. The metrics are MSE and MAE for multivariate tasks, and SMAPE, MASE, and OWA for M4.
The baselines named in the paper span several model classes: NLinear for linear models; PatchTST, iTransformer, Autoformer, and Informer for Transformer-based approaches; N-BEATS and TimeMixer for MLP-based approaches; TimesNet and FiLM for CNN/RNN approaches; and FITS, FreTS, and CrossGNN for Fourier-based approaches.
The reported average results over all horizons and datasets are:
- For long-term TSF, FBM-S achieves MSE/MAE of 4, while the best baseline, often FBM-L or FBM-NP, is approximately 5.
- For short-term TSF on PEMS, FBM-S achieves 6, with TimeMixer next best at 7.
- For M4, FBM-S achieves OWA 8.
The ablation studies described in the paper turn on and off the Seasonal block, the Interaction block, masking and centralization, the input mask 9, the output mask 0, multi-scale down-sampling, patching versus no patching in the Trend block, and linear versus nonlinear initial projection. The stated findings are that the Seasonal block improves over trend-only by approximately 1–2, the Interaction block is critical for STSF and minor for LTSF, the best input mask is a very short window with 3, multi-scale down-sampling benefits high-granularity data such as ETTm1, and patching with centralization outperforms the no-patching alternative. Under every configuration, the paper states that FBM-S matched or outperformed all ablation variants (Yang et al., 13 Jul 2025).
A separate point of terminology is that the acronym “FBM” is also used in another 2025 arXiv paper for the “Fourier Basis Density Model,” a probability model for band-limited distributions with closed-form density and cumulative distribution functions and a sampling method based on Discretized Approximate Ancestral Sampling (Fuente et al., 9 May 2025). That usage concerns density modeling and sampling rather than time series forecasting. The shared acronym therefore denotes two distinct research objects: Fourier Basis Mapping in forecasting, and Fourier Basis Density Model in probabilistic modeling.