- Rating
- 5
- Clarity
- 4
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
The author(s) proposed Spectral Transformer Neural Processes (STNP). The main idea is to augment Transformer Neural Processes with a context-dependent spectral embedding. They estimate frequency information from the context set by compressing the empirical spectrum in terms of a spectral mixture and using sampled Fourier features along with the conventional token embeddings. This later is fed into the TNP backbone. Doing it this way enables the model adapt to periodic inductive bias. In Section 3.2, the nice property is presented to support the method foundation. The model was evaluated in several experiments on synthetic regression, image completion, traffic, forecasting, and Chimet climate data.
Strengths and weaknesses
Couple of strengths I can observe:
-
The motivation is clear: TNPs lack an explicit mechanism for periodic or quasi-periodic structure.
-
The spectral embedding is well justified through its connection to spectral mixture kernels from the theory they proposed.
-
The experiments cover a reasonably broad range of synthetic and real-world tasks.
Several weaknesses:
-
Perhaps the author(s) could give clearer guidance on choosing spectral hyperparameters, especially the frequency grid, period range, number of mixture components, and samples per component. I can see that they made choices in experiments, but a guidance will benefit other researchers.
-
Would it be a good idea to provide certain sensitivity analysis across datasets. This strengthens showing how robust the method is to spectral design choices.
-
The method is more complex than TNP, and the practical cost/benefit trade-off is not fully explored.
Questions
Couple of questions (to assist my understanding):
-
In Section 3.1, is the fixed frequency grid learned during training, or fully specified as hyperparameters?
-
For the scalar case in Eq. (2), should C_in = 4, or are there additional channels used in the implementation?
-
In Eq. (4), how is numerical stability handled when a component weight is very small?
-
Is the sampled frequency redrawn at every forward pass, or fixed after being sampled once for a context set?
-
In the forecasting experiments, what exactly are and , and how are context and target sets constructed from a sliding window? particularly when etc are in multiple channels.
-
Which experiments use phase shifts , and which set ?
Limitations
Some limitations, such as choosing the frequency grid and component/sample allocation, were mentioned in the paper. However, I think this could be expanded with more discussion on hyperparameter sensitivity and computational overhead.
Paper formatting concerns
Nil
Final justification
The authors provided a helpful rebuttal that addressed my main concerns. They clarified the spectral hyperparameter choices, sensitivity analysis, computational overhead, frequency-grid construction, numerical stability, resampling strategy, and the forecasting setup. These responses make the method’s practical use and implementation clearer.
While I still encourage the authors to incorporate these clarifications into the final paper, the rebuttal improves my confidence in the method and its empirical support. I am therefore increasing my rating to 5.
We thank you for recognising the clear motivation of our work and look forward to having further discussions with you! We address your concerns below.
ANSWER: Thank you for raising this practical issue. Prior work on spectral mixture kernels suggests using a moderate, mildly over-complete number of components: Q=10 is a common practical choice, while typically only approximately 5–7 components receive substantial weight [1,2]. Too small a Q may under-represent a multimodal spectrum, whereas an excessively large Q can complicate optimization and reduce performance [2].
D0 instead controls the number of sampled frequencies per component. Owing to the normalization wq/D0,
∥ϕq(x)∥22=∑d=1D0D0wq[cos2(ωq,dx−φq)+sin2(ωq,dx−φq)]=wq.
so increasing D0 does not amplify the component; it represents the same spectral mass using more sampled frequency bases. Jung et al. [3] evaluate D0∈3,5,15 and observe generally smoother optimisation trajectories as D0 increases, with much of the benefit already obtained by D0=5, suggesting diminishing returns. Together with our ablation in Appendix A.6, Table 10, these results support Q≈10 and D0≥5 as a practical starting point.
[1] Wilson et al. "Gaussian process kernels for pattern discovery and extrapolation." International Conference on Machine Learning. PMLR, 2013.
[2] Chen et al. "Gaussian processes with skewed Laplace spectral mixture kernels for long-term forecasting." Machine Learning 110, 2213–2238 (2021).
[3] Jung et al. "Approximate inference for spectral mixture kernel." arXiv preprint arXiv:2006.07036 (2020).
ANSWER: Thank you for this suggestion. Appendix A.6, Table 10 already examines (Q,D0) under a fixed budget QD0=48, grid sizes K∈64,128,256,512, and CNN versus FFN responsibility networks across three context regimes. The results favor moderate (Q,D0) allocations, show that K≥128 is sufficient without monotonic gains from larger grids, and consistently support the frequency-local CNN, especially under sparse contexts.
ANSWER: We would like to offer another perspective on our model. STNP can be viewed as augmenting the TNP backbone with a two-stage task-conditioned spectral inference module. The first stage is analogous to a classical DFT-style spectral estimator, but it operates on sparsely and irregularly located context points. The second stage is analogous to fitting a Gaussian mixture model to the resulting empirical spectrum, yet it does not require a separate per-task Expectation-Maximization procedure. Instead, the spectral decomposition is amortized by the neural network.
The ablation results in Appendix A.6, Table 10 support this two-stage interpretation:
Fixed Fourier features, which do not infer a task-specific spectrum, remain near the TNP failure level. Using the context-dependent discrete spectrum ϕdisc improves performance, confirming the value of spectral extraction, while direct spectral sampling ϕrff improves it further. The full STNP performs best, showing the additional benefit of organising discrete spectral evidence into continuous components (wq,μq,σq). The CNN–FFN ablation further indicates that exploiting local structure along the frequency axis is important, especially under sparse contexts.
We profiled TNP and STNP on both a synthetic GP task and the larger DTD benchmark; the table reports STNP/TNP ratios. The relative overhead decreases as the sequence grows because the O(N2) TNP backbone increasingly dominates. Thus, STNP preserves TNP's asymptotic complexity while incurring a modest finite-size overhead in return for the substantial predictive gains reported in the paper.
ANSWER: The fixed frequency grid is fully specified through hyperparameters and is not learned during training.
ANSWER: Yes. For the scalar case in Eq. (2), Cin=4, and no additional channels are used in our implementation.
ANSWER: In our implementation, we add a small constant to the denominator when computing both the mean and variance in Eq. (4):
\mu_q=\frac{\sum_{k=1}^{K}r_{qk}p_k\tilde{\omega}_k}{w_q+\varepsilon},\
σq2=wq+ε∑k=1Krqkpk(ω~k−μq)2,ε=10−6.
This prevents division by zero and avoids excessively large numerical values when wq is very small.
ANSWER: The frequencies ωq,d are resampled at every forward pass, conditioned on the current context set, rather than being sampled once and then fixed. This adaptive, context-conditioned sampling helps STNP infer task-specific periodic structure more effectively: the spectral representation is dynamically instantiated from the current context instead of being a fixed frequency matrix.
ANSWER: Following the Autoformer/FEDformer forecasting pipeline, we define the input associated with timestamp t as
xt=[τt,ct]∈Rdx,
where τt∈R is the scalar temporal coordinate, measured in hours, days, or weeks depending on the dataset, and ct contains deterministic calendar covariates derived from the same timestamp, such as month, day, weekday, hour, and minute. Thus, the additional dimensions of xt are timestamp features rather than separate temporal axes. The corresponding output is
yt=zt∈Rdy,
which contains all variables observed at that timestamp.
For a sliding window beginning at index s, with look-back length L and forecasting horizon T, we construct
DC(s)={(xs+j,ys+j):j=0,…,L−1},
DT(s)={(xs+L+j,ys+L+j):j=0,…,T−1}.
Therefore, the first L consecutive timestamps form the context set, and the immediately following T timestamps form the target set. In a multivariate dataset, the episode still contains L context points and T target points, but each output yi is a dy-dimensional vector. The output channels are not flattened into separate context or target points.
Importantly, although xi=[τi,ci] may be multidimensional, the STNP spectral branch is applied only to the scalar temporal coordinate:
ϕS(xi;θ)≡ϕS(τi;θ).
The complete token embedding is then
ei=Proj([ϕS(τi;θ)∥ϕMLP(xi,yi)]).
ANSWER: For the results currently reported in the paper, we use φq=0. We also conducted experiments both with and without phase shifts on synthetic and time-series datasets and observed only small performance differences between the two settings. One possible explanation is that a phase shift corresponds to a rotation of the two-dimensional Fourier feature:
zφ(x)=Rφz0(x).
Since Rφ is an orthogonal rotation, it preserves the norm and inner products of this paired Fourier feature. Thus, introducing a phase shift does not by itself remove this information, which may partly explain the relatively small performance difference observed in our experiments. However, because this rotation depends on the context set, it cannot in general be absorbed into one fixed downstream projection and may affect optimisation and finite-sample performance.