- Rating
- 5
- Clarity
- 3
- Confidence
- 5
- Originality
- 4
- Quality
- 4
- Significance
- 3
Read review
Summary
This paper proposes OTformer, a time-series forecasting model built on the variate-tokenization setup of iTransformer. It replaces standard Softmax attention with an optimal-transport attention layer and adjusts the Sinkhorn entropy coefficient ε for each sample using a non-stationarity score. The score is computed from several statistics before normalization, and the model also includes a shared phase embedding for periodic information. Results are reported on eight benchmarks and 32 forecasting settings. OTformer improves over the iTransformer backbone in most cases, with larger gains on ECL and Solar-Energy. The paper also provides ablations, sensitivity results, robustness tests, and visualizations of the transport plans.
Strengths and weaknesses
Strengths: • Many OT attention methods use one fixed regularization value. The sample-wise choice of ε allows the amount of smoothing to change with the estimated non-stationarity of the input. This seems relevant for time-series data where the degree of distribution shift can vary from sample to sample. • The Sinkhorn transport plan also provides a more balanced form of cross-variate routing than ordinary row-normalized attention. The examples in Figure 5 match the intended behavior: higher-score samples lead to more diffuse plans, while lower-score samples produce sharper ones. • The experimental section is complete. The larger improvements on ECL and Solar-Energy are in line with the paper's motivation, and the ablation results suggest that adaptive ε accounts for most of the gain. The sensitivity results for the ε range, K, and C are useful as well. Weaknesses: • The non-stationarity scorer relies on three hand-selected statistics followed by a small MLP. This keeps the module lightweight, but it is not clear whether these descriptors cover the main types of distribution change encountered in practice. The paper mentions this limitation. • All experiments use iTransformer as the backbone. Since the paper describes the module as a general replacement for cross-variate Softmax attention, it would be useful to see whether the same behavior holds with another variate-tokenization architecture.
Questions
• Why is squared Euclidean distance between queries and keys preferable here to the more common dot-product similarity? • How stable is the per-sample non-stationarity score across batches? In particular, does it sometimes saturate near either end of the ε range?
Limitations
Yes.
Paper formatting concerns
None
We sincerely thank the reviewer for the careful reading and constructive questions. The two questions concern the choice of the OT cost and the stability of the adaptive non-stationarity score across batches. We would like to emphasize that both design choices are directly tied to the transport formulation itself. Specifically, squared Euclidean distance is used because OT requires a transport cost rather than a raw affinity score; meanwhile, the entropy coefficient εb is explicitly bounded to avoid degenerate transport behavior. We provide more detailed clarifications below.
Q1. Why is squared Euclidean distance between queries and keys used instead of the more common dot-product similarity?
Response: Dot-product similarity is indeed the default choice in conventional Softmax attention, but this default does not directly transfer to an OT formulation. In OTformer, the attention layer is formulated as an entropy-regularized optimal transport problem, whose objective minimizes ⟨P,C⟩. The matrix C is not an affinity matrix, but a transport cost matrix. Therefore, Cij should represent the dissimilarity between query i and key j: it should be small when qi and kj are close, and larger when they are farther apart. Squared Euclidean distance directly matches this interpretation.
This is not only a formal choice. Squared Euclidean distance is the standard ground cost in OT and is also the cost underlying the 2-Wasserstein distance. Therefore, using ∥qi−kj∥2 gives the OT attention layer a standard and interpretable ground metric. In contrast, the dot product qi⊤kj is a similarity measure. To use it in an OT objective, it must first be converted into a cost, for example C=−qi⊤kj. This conversion is less stable: unless the norms of queries and keys are explicitly controlled, this cost has no fixed lower bound and can be strongly affected by feature norms, rather than only reflecting directional compatibility.
This point is important for Sinkhorn normalization. Sinkhorn normalization is equivalent to normalizing the kernel exp(−C/ε), and our implementation performs this process in log-space for numerical stability. If the cost scale is unstable, or if the negative cost becomes very large due to large feature norms, the resulting kernel may become poorly conditioned. The squared Euclidean cost is lower-bounded by 0, which leads to a numerically more stable transport problem. It also preserves a direct geometric interpretation: closer query-key pairs receive lower transport cost, while farther pairs are penalized more strongly.
Another way to view this is that Softmax attention only requires a relative affinity score for row-wise normalization, whereas OT attention computes a transport plan with approximately balanced row and column marginals through Sinkhorn normalization. Under this constraint, the entries of C have the meaning of moving mass between two sets of tokens or variates. A ground cost is therefore more appropriate than an unbounded similarity score. This is why the common use of dot-product attention in standard attention does not imply that it is still the most natural choice in the OT setting.
As shown in Equation 7, we further scale the squared Euclidean cost by 1/dh, analogous to the d factor in scaled dot-product attention. This keeps the magnitude of the cost and the entropy coefficient ε on a comparable scale across different head dimensions. From the computational perspective, constructing the squared-Euclidean cost matrix has the same leading-order complexity as constructing a dot-product score matrix, since ∥qi−kj∥2 can be computed from query norms, key norms, and pairwise inner products. Therefore, the Euclidean cost does not introduce a new leading-order computational bottleneck.
A normalized dot-product cost could certainly be considered as a possible variant, and it may yield qualitatively similar routing behavior in some cases. However, it would introduce additional normalization choices and would no longer be the standard ground cost in the OT objective. Thus, our choice of squared Euclidean distance is not simply a rejection of dot-product attention; it follows from the fact that this layer solves a transport problem rather than a conventional similarity-normalization problem.
Q2. How stable is the per-sample non-stationarity score across batches? In particular, does it sometimes saturate near either end of the ε range?
Response: It is useful to separate two issues: the stability of the raw non-stationarity statistics themselves, and the relative normalization used before the scorer. The raw statistics are computed from four equal-length segments of the input window, including mean drift, variance drift, and lag-1 autocorrelation decay. For a fixed sample, these segment-wise statistics are deterministic; they do not change because of the other samples in the batch. The only batch-dependent step is the batch-wise min-max normalization before the MLP in Figure 1, which turns the score into a relative measure within the current batch.
We agree that this introduces some dependence on batch composition. However, this should not be interpreted as instability of the mechanism itself. The purpose of the score is to rank and calibrate the relative non-stationarity level of samples within the same batch, so relative normalization is a lightweight and reasonable design choice. Under standard batch sizes, we have found this behavior stable in our experiments. The high-score and low-score samples shown in Figure 5 are qualitative illustrations of this behavior and are consistent with the intended interpretation of the score.
At the same time, we clarify that the submitted paper does not include a dedicated batch-resampling stability analysis. Therefore, we do not claim that the score has been systematically tested under all possible batch compositions. More precisely, the design itself explains where the stability comes from: the statistics before normalization are computed directly from the input window. Batch composition only affects the relative scale calibration before the MLP; it does not create or change the underlying non-stationarity signal itself.
Regarding saturation, this risk is also controlled by construction. The model does not allow εb to take arbitrary values. Equation 8 explicitly bounds it within [εmin,εmax], with εmin=0.03 rather than 0. Therefore, even if sb approaches 0 or 1 for some samples, the transport plan does not degenerate. It only approaches the sharpest or smoothest admissible Sinkhorn plan within a controlled and numerically stable range. This is exactly why we use bounded entropy adaptation rather than an unconstrained score.
Empirically, the adaptive behavior does not collapse entirely to the endpoints. The scores show a meaningful spread rather than all samples saturating at the boundaries. The comparison between the adaptive model (A1) and the fixed-ε variant (A2) also supports this point: if the score were unstable or fully collapsed, the adaptive mechanism should not consistently outperform a fixed entropy coefficient. The advantage of A1 suggests that the sample-wise variation of ε is not merely noise, but contributes to the model behavior.
Overall, the score is indeed relative to the current batch, but the mechanism is not uncontrolled: the raw statistics are deterministic for each sample, εb is explicitly bounded, and the adaptive-vs-fixed comparison indicates that the learned variation in ε is useful rather than random noise. Even if values near the endpoints occur, they are controlled limiting cases within the allowed transport family, not numerical or modeling collapse.