# StretchTime: Adaptive Time Series Forecasting via Symplectic Attention

StretchTime: 심플렉틱 어텐션을 통한 적응형 시계열 예측

Kim, Yubin, Pati, Viresh, Twitty, Jevon, Pham, Vinh, Yang, Shihao, Lu, Jiecheng · arXiv · 2026년 2월 9일

- **연구 문제** 고정 주파수 위치 인코딩인 RoPE는 시간 워핑이 있는 시계열에서 상대 위치 관계를 표현하기 어렵다고 주장하며, 이 논문은 이를 적응형 워프와 심플렉틱 흐름으로 다룹니다.
- **연구 방법** SyPE는 RoPE의 SO(2) 회전을 Sp(2,R) 심플렉틱 흐름으로 바꾸고, 입력 의존 워프 좌표로 그 흐름을 조절합니다.
- **주요 결과** 합성 워프 데이터에서 StretchTime은 RoPE보다 낮은 MSE를 보이며, 실제 벤치마크 평균 순위는 2.20입니다. 절제 실험에서는 워프 제거가 평균 MSE를 0.338에서 0.341로 높입니다.

## 고정 주파수 위치 인코딩의 한계

시계열 Transformer는 보통 시점의 인덱스에 따라 위치 정보를 넣습니다. 그러나 금융 주기나 생체 리듬처럼 실제 시스템에서는 주기가 시간에 따라 늘어나거나 줄어드는 시간 워핑(time warping) 현상이 나타나며, 이때 물리적 시간의 흐름은 샘플링 인덱스와 일치하지 않습니다. 이 논문은 RoPE가 쿼리와 키를 고정된 각속도로 회전시키므로, 이런 비아핀(non-affine) 워핑을 표현할 수 없다고 주장합니다. 정리 3.1은 \\(\\theta(m-n) \\equiv \\omega\_0(\\tau(m)-\\tau(n)) \\pmod{2\\pi}\\)를 모든 m, n에 대해 만족하는 θ가 존재하지 않는다는 결론을 냅니다.

이 결론은 워프 함수 τ가 비아핀이고, 연속 워프 증분이 \|ω0(τ(t+1)−τ(t))\|\<π를 만족한다는 non-aliasing 가정을 둔 조건부 결과입니다. 또한 증명은 단일 self-attention 층과 단일 헤드를 기준으로 하며, 저자들은 이 성질이 깊은 Transformer에도 구조적으로 일반화된다고 해석합니다.

![Figure 1: Visualization of Temporal Stretching](https://refivu.com/papers/16e1a6db-a193-4b7d-a396-ab25a5aea7bb/figures/figure-e12a86068ebe2741bcb45535e3bf3a87.png?thumb=512)

**Figure 1** .Visualization of Temporal Stretching

[원문](https://arxiv.org/abs/2602.08983v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Kim, Yubin, Pati, Viresh, Twitty, Jevon, Pham, Vinh, Yang, Shihao, Lu, Jiecheng · StretchTime: Adaptive Time Series Forecasting via Symplectic Attention · 원문 그림 인용 · 원본 PDF 1쪽에서 그림 영역을 추출했습니다.

## SyPE의 회전 대체와 심플렉틱 흐름

SyPE는 RoPE의 2차원 회전 군 SO(2)를 심플렉틱 군 Sp(2,R)로 확장한 학습 가능한 위치 인코딩입니다. 각 주파수 대역마다 대칭 Hamiltonian 행렬 K=\[\[a, c\],\[c, b\]\]를 두며, a, b\>0이고 ab−c²\>0인 조건을 둡니다. 이 K로부터 흐름 S(t)=exp(tJK)를 정의하며, J=\[\[0,1\],\[−1,0\]\]입니다. 쿼리에는 S(bτm)을, 키에는 JS(bτn)을 곱하고, 어텐션 점수는 q\_m^T J S(bτn−bτm) k\_n 형태가 됩니다. 따라서 점수는 워프된 시간 차이에만 의존합니다. 부록에서는 닫힌 형태 S(t)=cos(ωt)I+(sin(ωt)/ω)A를 보이며, 여기서 ω=√(ab−c²)이고 A=JK입니다.

또 K=ωI로 두면 흐름이 RoPE의 회전 R(ωt)와 같아지므로, RoPE는 SyPE의 특수한 경우로 설명됩니다.

![Figure 2: Overview of the SyPE-Augmented Transformer architec- ture](https://refivu.com/papers/16e1a6db-a193-4b7d-a396-ab25a5aea7bb/figures/figure-32cfe4aa9c152a3470bb10c252bc26c7.png?thumb=512)

**Figure 2** .Overview of the SyPE-Augmented Transformer architec- ture.

[원문](https://arxiv.org/abs/2602.08983v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Kim, Yubin, Pati, Viresh, Twitty, Jevon, Pham, Vinh, Yang, Shihao, Lu, Jiecheng · StretchTime: Adaptive Time Series Forecasting via Symplectic Attention · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

## 적응형 워프 모듈과 입력 처리

적응형 워프 모듈은 시점 t의 표현 h\_t로부터 시간 증분 Δbτt=Softplus(w\_τ^T h\_t)를 계산하고, 이를 누적하여 bτm=Σ Δbτi를 만듭니다. 이 누적된 bτ가 SyPE 흐름의 입력이 되므로, 어텐션은 입력에 따라 시간 좌표를 늘리거나 줄일 수 있습니다. 모델 입력은 원래 값에서 윈도우의 마지막 관측값 x\_L을 뺀 X\_diff이며, 최종 예측은 M(X\_diff)에 x\_L을 다시 더하여 수준을 복원합니다. 이 방식은 RevIN이나 Z-score처럼 윈도우 통계로 정규화하는 방식과 다릅니다. 토큰은 전역 문맥 벡터 s\_t와 채널별 지역 신호를 이어 붙이고, 위치 임베딩과 채널 식별자를 더해 만듭니다.

학습 중에는 샘플별 유지 비율로 채널의 일부를 0으로 만들고, 남은 채널을 유지 비율의 역수로 재조정합니다.

## 합성 워프 데이터에서의 검증

합성 실험은 Temporally Warped Seasonal AR(1) 과정으로 만든 데이터에서 SyPE의 효과를 분리해 확인합니다. 워프 함수는 τ(t)=Σ(1+A sin(2πi/P))로 정의되어 주기적 가속과 감속을 모사합니다. 데이터는 ETTh1과 같은 차원과 규모로 맞추었지만, 실제 ETTh1 데이터를 사용한 것은 아닙니다. 채널 수는 C=7, 길이는 N=17,420이며, 입력 길이 L=96에서 예측 길이 T∈{96,192,336,720}을 비교합니다. 모든 모델은 이론의 단일 어텐션 층 가정에 맞추어 깊이를 1로 두었습니다. 평균 MSE는 StretchTime 0.144, RoPE 0.184, MLP를 제거한 w/o MLP 0.176입니다.

T=720에서 StretchTime의 MSE는 0.331이고 RoPE는 0.411이어서, RoPE 대비 약 19.5% 낮습니다. w/o MLP도 T=336과 T=720에서 RoPE보다 낮은 MSE를 보입니다. 정성적 비교는 Figure 3에 있으며, 저자들은 RoPE가 예측 구간에서 위상이 어긋난다고 해석합니다.

![Table 1: Results on the synthetic dataset with temporally warped seasonal dynamics (see Section 3.2). We report MSE and MAE for varying prediction lengths (H).…](https://refivu.com/papers/16e1a6db-a193-4b7d-a396-ab25a5aea7bb/figures/figure-acd5d2ae2200e893ed770aabc5a26c7a.png?thumb=512)

**Table 1** .Results on the synthetic dataset with temporally warped seasonal dynamics (see Section 3.2). We report MSE and MAE for varying prediction lengths (H). Best results are inboldand second best are underlined.

[원문](https://arxiv.org/abs/2602.08983v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Kim, Yubin, Pati, Viresh, Twitty, Jevon, Pham, Vinh, Yang, Shihao, Lu, Jiecheng · StretchTime: Adaptive Time Series Forecasting via Symplectic Attention · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

![Figure 3: Forecast visualization on warped seasonal dynamics. StretchTime (left) corrects the phase alignment errors observed in the static RoPE baseline (righ…](https://refivu.com/papers/16e1a6db-a193-4b7d-a396-ab25a5aea7bb/figures/figure-c52b637b86b28eb56d002e2a7b1d956f.png?thumb=512)

**Figure 3** .Forecast visualization on warped seasonal dynamics. StretchTime (left) corrects the phase alignment errors observed in the static RoPE baseline (right).

[원문](https://arxiv.org/abs/2602.08983v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Kim, Yubin, Pati, Viresh, Twitty, Jevon, Pham, Vinh, Yang, Shihao, Lu, Jiecheng · StretchTime: Adaptive Time Series Forecasting via Symplectic Attention · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

## 실제 다변량 벤치마크 결과

실제 벤치마크 비교는 Table 2에 제시되며, 평균 테스트 MSE를 기준으로 합니다. 표는 Weather, Solar, ECL, ETTh1, ETTh2, ETTm1, ETTm2, PEMS03, PEMS04, PEMS08의 10개 데이터셋 항목을 보고합니다. 본문은 12개 벤치마크라고 쓰지만 표의 항목은 10개이므로, 이 절에서는 표의 항목을 기준으로 해석합니다. StretchTime의 평균 순위는 2.20이고, 10개 데이터셋 중 4개에서 1위라고 보고됩니다. 모든 데이터셋에서 StretchTime의 MSE는 RoPE보다 낮습니다. 예를 들어 Solar에서는 0.214에서 0.195로, PEMS03에서는 0.107에서 0.094로 줄어듭니다.

반면 Weather와 ECL에서는 OLinear나 TimeMixer++가 더 낮습니다. OLinear와 TimeMixer++의 결과는 원 논문 보고치를 사용하며, 학습 설정은 StretchTime에서 N=3 층, 헤드 4개, dmodel은 소규모 벤치마크 64와 대규모 벤치마크 128로 두고 MSE 손실과 AdamW 최적화기를 사용합니다. 학습률 5×10^−4는 이 다변량 예측 설정에 해당합니다.

![Table 2: Summary of Multivariate TSF Results. Averaged test set MSE are reported. Best results are inboldand second best are underlined](https://refivu.com/papers/16e1a6db-a193-4b7d-a396-ab25a5aea7bb/figures/figure-b7f688e4de04e9a0c159997c58b2fd65.png?thumb=512)

**Table 2** .Summary of Multivariate TSF Results. Averaged test set MSE are reported. Best results are inboldand second best are underlined.

[원문](https://arxiv.org/abs/2602.08983v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Kim, Yubin, Pati, Viresh, Twitty, Jevon, Pham, Vinh, Yang, Shihao, Lu, Jiecheng · StretchTime: Adaptive Time Series Forecasting via Symplectic Attention · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

## 파라미터와 연산량 비교

효율 분석은 ETTm1에서 예측 길이별 FLOPs와 파라미터 수를 비교합니다. StretchTime의 평균 파라미터 수는 약 494K이고, 저자들이 비교 대상으로 든 PatchTST와 iTransformer는 약 10M에서 14M 수준입니다. 따라서 파라미터 수는 95% 이상 줄어든 것으로 보고됩니다. 평균 연산량은 StretchTime 2.79G FLOPs이고 TimeMixer++는 6.25G FLOPs입니다. DLinear는 연산량이 가장 적지만 본문에서는 정확도가 낮다고 설명합니다. 이 수치는 특정 ETTm1 설정의 측정이며, 모든 데이터셋에 같은 비용이 적용된다고 볼 수는 없습니다.

![Table 3: Computational efficiency comparison (FLOPs and Parameters) with Average Rank. Models are ordered to match the main results. Best results are inboldand…](https://refivu.com/papers/16e1a6db-a193-4b7d-a396-ab25a5aea7bb/figures/figure-aded2a8edd11a064c2c0f6767f4e6c6d.png?thumb=512)

**Table 3** .Computational efficiency comparison (FLOPs and Parameters) with Average Rank. Models are ordered to match the main results. Best results are inboldand second best are underlined .

[원문](https://arxiv.org/abs/2602.08983v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Kim, Yubin, Pati, Viresh, Twitty, Jevon, Pham, Vinh, Yang, Shihao, Lu, Jiecheng · StretchTime: Adaptive Time Series Forecasting via Symplectic Attention · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## 절제 실험으로 본 워프와 심플렉틱 기하

절제 실험은 두 변형으로 구성됩니다. w/o Warp는 심플렉틱 기하를 유지하고 bτ(t)=t로 두어 워프를 제거합니다. w/o Symplectic은 워프 모듈을 유지하고 흐름을 SO(2) 회전으로 제한합니다. Table 4에서 전체 모델의 평균 MSE는 0.338이고, w/o Warp는 0.341로 높아집니다. 차이는 작지만 워프 제거가 평균 오차를 높이는 방향입니다. w/o Symplectic의 평균 MSE는 0.338로 전체 모델과 같습니다. 데이터셋별로는 Weather와 ETTm2에서 전체 모델이 더 낮고, ETTh1에서는 w/o Symplectic이 0.421로 전체 모델의 0.424보다 낮습니다.

저자들은 이를 ETTh1의 잡음이 많은 특성 때문에 SO(2)의 제약이 일종의 정규화로 작동한 결과라고 해석합니다. 이 절제는 Table 4의 다섯 데이터셋 MSE에 한정됩니다.

![Table 4: Internal ablation study (MSE only). We compare the full StretchTime model against variants removing the Symplectic Positional Embedding (w/o Symplecti…](https://refivu.com/papers/16e1a6db-a193-4b7d-a396-ab25a5aea7bb/figures/figure-949435f1f46c0cf554cca400aafe8188.png?thumb=512)

**Table 4** .Internal ablation study (MSE only). We compare the full StretchTime model against variants removing the Symplectic Positional Embedding (w/o Symplectic) and the adaptive warp module (w/o Warp). Best results are inboldand second best are underlined.

[원문](https://arxiv.org/abs/2602.08983v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Kim, Yubin, Pati, Viresh, Twitty, Jevon, Pham, Vinh, Yang, Shihao, Lu, Jiecheng · StretchTime: Adaptive Time Series Forecasting via Symplectic Attention · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## 어텐션 및 위치 인코딩 변형 비교

추가 비교는 Pure Softmax, LinAttn+RoPE, RoPE와 StretchTime을 함께 놓고 MSE와 MAE를 보고합니다. Pure Softmax는 상대 위치 주입 없이 절대 위치 인코딩만 쓰는 기준이며, LinAttn+RoPE는 선형 어텐션과 RoPE를 결합한 기준입니다. 평균 순위는 StretchTime 1.05, RoPE 2.73, Pure Softmax 2.65, LinAttn+RoPE 3.50입니다. 본문은 아홉 데이터셋이라고 쓰지만 Table 6의 항목은 10개 데이터셋에 걸쳐 있습니다. 이 결과는 SyPE의 이점이 선형 어텐션 선택과 별개로 나타난다는 근거로 제시되지만, Pure Softmax가 특정 데이터셋에서 LinAttn+RoPE보다 나은 결과도 함께 보고됩니다.

![Table 6: Ablation Study Results. Comparison of StretchTime with component variants. Best results are inboldand second best are underlined](https://refivu.com/papers/16e1a6db-a193-4b7d-a396-ab25a5aea7bb/figures/figure-9ee9cf8fd935d971564cf229872fd96c.png?thumb=512)

**Table 6** .Ablation Study Results. Comparison of StretchTime with component variants. Best results are inboldand second best are underlined.

[원문](https://arxiv.org/abs/2602.08983v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Kim, Yubin, Pati, Viresh, Twitty, Jevon, Pham, Vinh, Yang, Shihao, Lu, Jiecheng · StretchTime: Adaptive Time Series Forecasting via Symplectic Attention · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 남은 질문

저자들은 StretchTime을 대규모 데이터셋으로 확장하지 않았으며, 제로샷 예측을 위한 기반 모델 가능성도 아직 평가하지 않았다고 밝힙니다. 자연어처리처럼 일반 시퀀스 모델링에 SyPE를 적용하는 실험도 수행하지 않았습니다. 결과 표에서는 TimeMixer가 메모리 문제로 Traffic과 PEMS07 결과가 제외되었습니다. TimeMixer++의 결과는 공식 코드로 재현되지 않았기 때문에 원 논문 보고치를 사용했습니다. 따라서 표의 비교 점수는 같은 실행 환경에서 얻은 값과 보고치가 섞여 있으며, 이 차이를 고려해야 합니다. 정리 3.1은 단일 층 가정에서 성립하는 결과이므로, 깊은 모델에서의 성질은 구조적 일반화에 대한 저자의 주장으로 읽어야 합니다.

## 논문 정보

- **저자**: Kim, Yubin, Pati, Viresh, Twitty, Jevon, Pham, Vinh, Yang, Shihao, Lu, Jiecheng
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 2월 9일
- **등록일**: 2026년 10월 30일
- **수정일**: 2026년 2월 9일
- **버전**: v1
- **arXiv**: 2602.08983
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2602.08983v1) · [원문 PDF ↗](https://arxiv.org/pdf/2602.08983v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Transformer architectures have established strong baselines in time series forecasting, yet they typically rely on positional encodings that assume uniform, index-based temporal progression. However, real-world systems, from shifting financial cycles to elastic biological rhythms, frequently exhibit "time-warped" dynamics where the effective flow of time decouples from the sampling index. In this work, we first formalize this misalignment and prove that rotary position embedding (RoPE) is mathematically incapable of representing non-affine temporal warping. To address this, we propose Symplectic Positional Embeddings (SyPE), a learnable encoding framework derived from Hamiltonian mechanics. SyPE strictly generalizes RoPE by extending the rotation group $\\mathrm{SO}(2)$ to the symplectic group $\\mathrm{Sp}(2,\\mathbb{R})$, modulated by a novel input-dependent adaptive warp module. By allowing the attention mechanism to adaptively dilate or contract temporal coordinates end-to-end, our approach captures locally varying periodicities without requiring pre-defined warping functions. We implement this mechanism in StretchTime, a multivariate forecasting architecture that achieves state-of-the-art performance on standard benchmarks, demonstrating superior robustness on datasets exhibiting non-stationary temporal dynamics.

## 원문 인용

Kim, Yubin, Pati, Viresh, Twitty, Jevon, Pham, Vinh, Yang, Shihao, Lu, Jiecheng (2026). StretchTime: Adaptive Time Series Forecasting via Symplectic Attention. arXiv:2602.08983v1. https://arxiv.org/abs/2602.08983v1

**BibTeX**

```
@misc{yubin2026stretchtime,
  title = {{StretchTime: Adaptive Time Series Forecasting via Symplectic Attention}},
  author = {Kim, Yubin and Pati, Viresh and Twitty, Jevon and Pham, Vinh and Yang, Shihao and Lu, Jiecheng},
  year = {2026},
  eprint = {2602.08983},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.08983v1}
}
```

## 이 논문의 용어

- [MAE](https://refivu.com/terms/15fbae569b33-mae)
- [MSE](https://refivu.com/terms/aaced1b84616-mse)
- [회전 위치 임베딩](https://refivu.com/terms/64a8b6696ec8-rotary-position-embedding-rope)
- [PatchTST](https://refivu.com/terms/d57fd5e9ee4f-patchtst)
- [Theorem 3.1](https://refivu.com/terms/02b4244c2071-theorem-3-1)
- [Dynamic time warping](https://refivu.com/terms/58d8d96732ec-dynamic-time-warping)
- [Weather](https://refivu.com/terms/8b33b929536d-weather)
- [Theorem 3.2](https://refivu.com/terms/ea055a71101a-theorem-3-2)
- [ETTh1](https://refivu.com/terms/019bbaabb7fc-etth1)
- [iTransformer](https://refivu.com/terms/bf3cd8d026ec-itransformer)
- [RevIN](https://refivu.com/terms/5a516ab84492-revin)
- [Solar-Energy](https://refivu.com/terms/6ece1598271c-solar-energy)

## 다른 논문 해설

- [UltraLIF: Fully Differentiable Spiking Neural Networks via Ultradiscretization and Max-Plus Algebra](https://refivu.com/papers/3f44b701-a63e-45dd-b9c3-f73c579adbbf-ultralif-fully-differentiable-spiking-neural-networks-via.md)
- [Step-resolved data attribution for looped transformers](https://refivu.com/papers/3d8e3954-865c-4b6b-8f8b-ce43142203b8-step-resolved-data-attribution-for-looped-transformers.md)
- [Retrieval-Aware Distillation for Transformer-SSM Hybrids](https://refivu.com/papers/654f85c3-d053-4da1-a0ac-aa209971f78c-retrieval-aware-distillation-for-transformer-ssm-hybrids.md)
- [LUCID: Attention with Preconditioned Representations](https://refivu.com/papers/fe9ac658-037b-43f4-892b-78040757947b-lucid-attention-with-preconditioned-representations.md)
- [Multi-Head Attention as a Source of Catastrophic Forgetting in MoE Transformers](https://refivu.com/papers/e5634418-a71d-4bb6-886f-2b3eec8e73fd-multi-head-attention-as-a-source-of-catastrophic.md)
- [Transformers Provably Learn Algorithmic Solutions for Graph Connectivity, But Only with the Right Data](https://refivu.com/papers/b23c33ef-4b87-4e29-a0da-332c5c52f7a4-transformers-provably-learn-algorithmic-solutions-for-graph.md)
- [Magnitude Distance: A Geometric Measure of Dataset Similarity](https://refivu.com/papers/fb7d90f0-c1e3-4073-88d3-80ec60998efa-magnitude-distance-a-geometric-measure-of-dataset-similarity.md)
- [Equalized Generative Treatment: Matching f-divergences for Fairness in Generative Models](https://refivu.com/papers/f5f2ea87-456a-4c48-814d-e6ffbc7c3f28-equalized-generative-treatment-matching-f-divergences-for.md)
- [All ERMs Can Fail in Stochastic Convex Optimization Lower Bounds in Linear Dimension](https://refivu.com/papers/611959d0-945b-4f84-8df3-5f73eeb4b0d9-all-erms-can-fail-in-stochastic-convex-optimization.md)
- [ManifoldKV: Training-Free KV Cache Compression via Euclidean Outlier Detection](https://refivu.com/papers/46fa9cd0-f866-49ac-807d-ef461752654d-manifoldkv-training-free-kv-cache-compression-via-euclidean.md)
- [Interpretable Discovery of One-parameter Subgroups: A Modular Framework for Elliptical, Hyperbolic, and Parabolic Symmetries](https://refivu.com/papers/3c232603-b40c-46cb-8109-d82e584a4ff8-interpretable-discovery-of-one-parameter-subgroups-a-modular.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/16e1a6db-a193-4b7d-a396-ab25a5aea7bb-stretchtime-adaptive-time-series-forecasting-via-symplectic)
