# TCCT: Tightly-Coupled Convolutional Transformer on Time Series Forecasting

TCCT: 시계열 예측을 위한 긴밀하게 결합된 합성곱 트랜스포머

Li Shen, Yangzhu Wang · arXiv · 2021년 8월 29일

- **연구 문제** 장기 시계열 예측에서 Transformer의 self-attention은 긴 의존성을 잘 잡지만 입력 길이에 따라 계산과 메모리 비용이 크게 늘어나고 국소 문맥에 둔감합니다.
- **연구 방법** CNN 구조를 Transformer 내부에 직접 넣는 TCCT를 제안하며, 입력 차원을 나누는 CSPAttention, 인과적 dilated convolution, 다중 스케일 feature를 합치는 passthrough mechanism을 Informer에 결합합니다.
- **주요 결과** ETTh1과 ETTm1 실험에서 세 구조를 모두 결합한 TCCT\_III는 Informer+보다 대부분 낮은 오차를 보였고, 다변량 설정에서는 비교한 모든 사례에서 앞섰다고 보고됩니다.

## 장기 시계열 예측에서 Transformer의 한계

Transformer의 self-attention은 입력의 임의 두 지점을 시간 거리와 상관없이 직접 연결하므로 장기 의존성을 다루는 데 유리합니다. 그러나 self-attention의 계산 비용과 메모리 사용은 입력 길이에 대해 2차적으로 증가하고, 여러 self-attention 블록을 쌓을수록 이 부담이 더 커집니다. 또한 query-key의 점 단위 매칭 방식 때문에 국소 문맥에 둔감하다는 지적이 있습니다.

이 문제를 완화하기 위해 최근 연구들은 CNN을 Transformer와 결합해 왔습니다. 저자들은 기존 결합 방식이 대부분 loosely-coupled에 머문다고 봅니다. 여기서 loosely-coupled는 canonical convolution이나 max-pooling 같은 일반 CNN 층을 Transformer에 적용하거나 CNN 블록과 Transformer 블록을 순차 또는 병렬로 쌓는 방식을 가리킵니다. 이 논문이 다루는 질문은 특정 CNN 구조를 Transformer 내부에 직접 넣어 두 구조를 긴밀하게 결합할 수 있는지, 그 결합이 학습 능력과 국소성 및 효율을 함께 개선하는지입니다.

## TCCT의 결합 개념과 세 가지 구조

이 논문은 특정 CNN 구조를 Transformer 내부에 적용하는 방식을 tightly-coupled convolutional Transformer, 즉 TCCT라고 부릅니다. 제안된 구성요소는 세 가지입니다. 첫째는 CNN의 교차 단계 분할 구조를 self-attention에 옮긴 CSPAttention입니다. 둘째는 Informer의 distilling 연산에서 canonical convolution을 dilated causal convolution으로 바꾼 구조입니다. 셋째는 여러 스케일의 self-attention 출력을 합치는 passthrough mechanism입니다.

![Figure 7: A network stacking three CSPAttention (Blue) blocks. Dilated causal convolution (Green above) and passthrough mechanism are employed. The ﬁnal out pu…](https://refivu.com/papers/32df64eb-3c3e-409d-bee5-f6799998f841/figures/figure-44ded8a4df450c5d84ce6bc9c78132fe.png?thumb=512)

**Fig. 7** . A network stacking three CSPAttention (Blue) blocks. Dilated causal convolution (Green above) and passthrough mechanism are employed. The ﬁnal out put has the same dimension with input’s. (For interpretation of the references to colour in this ﬁgure legend, the reader is referred to the web version of this art icle.)

[원문](https://arxiv.org/abs/2108.12784v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Li Shen, Yangzhu Wang · TCCT: Tightly-Coupled Convolutional Transformer on Time Series Forecasting · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

이 세 구조는 서로 다른 축을 겨냥합니다. CSPAttention은 계산 비용과 메모리 사용을 줄이는 데, dilated causal convolution은 블록 사이의 수용 영역을 넓히고 미래 정보 누출을 막는 데, passthrough mechanism은 더 세밀한 정보를 전달하는 데 초점이 있습니다. 논문은 이 구조들이 Informer뿐 아니라 canonical Transformer와 LogTrans에도 결합될 수 있다고 설명합니다.

## CSPAttention의 입력 분할과 복잡도

CSPAttention은 입력 X를 차원 방향으로 두 부분 X1과 X2로 나눕니다. X1은 1×1 convolution 층 A를 거쳐 블록의 끝으로 직접 연결되고, X2는 self-attention 블록 B의 입력이 됩니다. 두 출력은 차원 방향으로 연결되어 블록의 최종 출력이 됩니다. 이 설계는 CSPNet이 채널을 나누어 중복 gradient 정보를 줄이는 방식을 토큰의 차원 분할에 옮긴 것입니다.

복잡도 분석에서 canonical self-attention 블록은 네 개의 선형 투영을 가지며 메모리 점유가 4d²로 계산됩니다. 입력 차원을 절반으로 나누면 첫 부분은 투영 하나만 갖고 둘째 부분은 네 개를 갖습니다. 그 결과 CSPAttention 블록의 메모리 점유는 (4+1)(d/2)²로 계산되며, 이는 canonical 블록의 31.25%에 해당한다고 설명됩니다. 부록에서는 canonical self-attention의 시간 복잡도를 4d²L + 2HdL²로, CSPAttention의 총 시간 복잡도를 1.25d²L + HdL²로 제시하고, 길이 L이 커질 때 L² 계수가 canonical 대비 약 50%라고 설명합니다.

초록은 계산 비용을 30%, 메모리 사용을 50% 줄인다고 쓰지만, 기여 항목은 메모리 점유를 약 30%, 시간 복잡도를 50% 줄인다고 서술합니다. 두 서술은 일치하지 않으므로 어느 지표가 어떤 수치에 대응하는지 구분해서 읽어야 합니다.

## Dilated causal convolution으로 블록 사이를 잇는 방법

Informer는 self-attention 블록 사이에 kernel 3, stride 1의 convolutional layer와 kernel 3, stride 2의 max-pooling layer를 두어 입력 길이를 줄입니다. 저자들은 canonical convolution이 네트워크 깊이에 따라 선형 크기의 과거만 볼 수 있고, 시간 방향 인과성을 고려하지 않아 미래 정보 누출을 일으킬 수 있다고 지적합니다.

![Figure 5: A visualization of a self-attention network stacking three self-attention blocks connected with convolutional layers and max-pooling layers. Eac h la…](https://refivu.com/papers/32df64eb-3c3e-409d-bee5-f6799998f841/figures/figure-3d3db2688c01816272cd92a0936e03c1.png?thumb=512)

**Fig. 5** . A visualization of a self-attention network stacking three self-attention blocks connected with convolutional layers and max-pooling layers. Eac h layer’s receptive ﬁeld is reﬂected by the elements (Light Blue) having connections with the former layer represented by black lines. We only show the receptive ﬁeld of the las t element (Dark Blue) of the output as an example. (For interpretation of the references to colour in this ﬁgure legend, the reader is referred to the web version of this artic le.)

[원문](https://arxiv.org/abs/2108.12784v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Li Shen, Yangzhu Wang · TCCT: Tightly-Coupled Convolutional Transformer on Time Series Forecasting · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

이 문제를 해결하기 위해 i번째 self-attention 블록 뒤의 convolution을 dilation factor가 i인 dilated causal convolution으로 바꿉니다. 각 원소는 자신과 그 이전 시점의 원소에만 연결되므로 미래 정보가 새지 않습니다. 저자들은 TCN에서 이 개념을 빌려 왔다고 밝힙니다. 같은 블록 수에서 이 구조의 출력 수용 영역은 Informer의 구조보다 넓다고 설명되며, 추가 계산 비용은 패딩에서 오는 작은 비용으로 제시됩니다. CSPAttention과 결합하면 dilated causal convolution은 CSPAttention의 두 부분에서 온 feature map을 잇는 전이 계층 역할도 합니다.

## Passthrough mechanism으로 다중 스케일 정보를 합치는 방법

passthrough mechanism은 YOLO 계열의 passthrough 개념을 Transformer 인코더에 적용한 구조입니다. n개의 self-attention 블록을 쌓은 인코더에서 k번째 feature map은 길이 L/2^(k-1), 차원 d를 가집니다. 이 feature map들을 길이 방향으로 나누어 같은 길이 L/2^(n-1)의 조각으로 맞춘 뒤 차원 방향으로 연결합니다. 연결된 결과의 차원은 2^(n-1)·d가 되므로, 마지막에 transition layer를 두어 원하는 출력 차원으로 바꿉니다.

![Figure 9: A single Informer’s encoder stacking three self-attention blocks cooperated with all three TCCT architectures. (1) Each CSPAttention block (Light Yel…](https://refivu.com/papers/32df64eb-3c3e-409d-bee5-f6799998f841/figures/figure-2329652fde2500bdcb75172c55ee368f.png?thumb=512)

**Fig. 9** . A single Informer’s encoder stacking three self-attention blocks cooperated with all three TCCT architectures. (1) Each CSPAttention block (Light Yellow) is combined with ProbSparse self-attention (Red) which is Informer’s typical architecture. (2) Between every-two CSPAttention blocks, a dilated causal convo lutional layer and a max- pooling layer (Green) are used for connection. The former self-attention block’s output feature map shrinks to half its length after propagating thr ough these two layers, mirroring the situation in initial Informer but enlarging the receptive ﬁeld. (3) All three feature maps outputted by three self-attention blocks ar e fused by passthrough mechanism (Gray) to acquire ﬁner-grained information. A transition layer (Green) is added in the end to export feature map of proper dimension to the d ecoder. (For interpretation of the references to colour in this ﬁgure legend, the reader is referred to the web version of this article.)

[원문](https://arxiv.org/abs/2108.12784v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Li Shen, Yangzhu Wang · TCCT: Tightly-Coupled Convolutional Transformer on Time Series Forecasting · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

이 방식은 Informer의 full distilling operation과 기능이 비슷하지만, 여러 인코더를 두는 대신 단일 인코더를 사용합니다. 저자들은 full distilling operation에서 뒤쪽 입력 구간이 더 많은 인코더에 반복되어 계산이 늘어나는 반면, passthrough mechanism은 Informer에 거의 추가 계산을 주지 않는다고 설명합니다.

![Figure 1: An example of Informer architecture with full distilling operation. Left: Inside the blue trapezoid includes a main encoder stacking three ProbSpar s…](https://refivu.com/papers/32df64eb-3c3e-409d-bee5-f6799998f841/figures/figure-b3bafdf3b05d949dc411963ed377c7bb.png?thumb=512)

**Fig. 1** . An example of Informer architecture with full distilling operation. Left: Inside the blue trapezoid includes a main encoder stacking three ProbSpar se Attention blocks (Blue) and two extra encoders with shorter inputs and fewer attention blocks. A convolutional layer (Green) together with a max-pooling layer inside the green trapezoid is used to connect each two self-attention blocks. All three feature maps outputted by three encoders are fused and then given to the decoder. Right: The d ecoder of Informer in the blue trapezoid almost remains unchanged compared with canonical Transformer’s decoder. Only the masked self-attention block is replaced by mas ked ProbSparse Attention block. (For interpretation of the references to colour in this ﬁgure legend, the reader is referred to the web version of this article.)

[원문](https://arxiv.org/abs/2108.12784v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Li Shen, Yangzhu Wang · TCCT: Tightly-Coupled Convolutional Transformer on Time Series Forecasting · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

## 실험 설정과 비교 대상

주요 실험은 ETT 데이터셋의 ETTh1과 ETTm1에서 수행되었습니다. 입력 window는 다변량 설정에서 target인 oil temperature와 다른 6개의 power load 특징으로 구성되며, 데이터는 Z-score 정규화를 거칩니다. 학습, 검증, 테스트 분할은 기본적으로 12개월, 4개월, 4개월입니다.

비교 대상은 Informer, 단일 인코더 Informer인 Informer, full distilling operation을 쓰는 Informer+, Informer에 CSPAttention을 결합한 TCCT\_I, CSPAttention과 dilated causal convolution을 결합한 TCCT\_II, 세 구조를 모두 결합한 TCCT\_III입니다. 인코더 입력 길이는 기본 설정에서 384이고 예측 길이는 48, 96, 192, 384입니다. 평가 지표는 MSE와 MAE입니다. 학습은 MSE 손실과 Adam optimizer로 수행되며, 각 실험은 10회 반복한 평균을 사용합니다. 이 반복 설정은 기준 실험에 적용된 것이며 다른 실험의 조건을 대신하지 않습니다.

## 구조별 예측 성능 비교

단변량 설정에서 TCCT\_III는 대부분의 사례에서 Informer+보다 낮은 오차를 보입니다. 다변량 설정에서는 Informer+보다 모든 사례에서 우수한 것으로 보고됩니다. CSPAttention만 결합한 TCCT\_I는 Informer와 비교해 일부 사례에서 비슷하고 대부분의 사례에서 더 좋은 결과를 보입니다. 저자들은 이를 CSPAttention이 정확도를 잃지 않고 더 가벼운 구조를 제공한다는 근거로 해석합니다.

dilated causal convolution을 추가한 TCCT\_II는 Informer와 TCCT\_I보다 거의 모든 사례에서 낫습니다. 다변량 설정에서 예측 길이가 192와 384일 때 특히 Informer+를 앞서는 경우가 많습니다. 세 구조를 모두 결합한 TCCT\_III는 저자들이 보고한 다섯 방법 가운데 가장 우수합니다.

Full distilling operation의 Informer+는 단변량에서 일부 사례, 특히 예측 길이가 긴 경우 TCCT 계열보다 나은 결과를 보입니다. 그러나 다변량 설정에서는 TCCT\_III에 전반적으로 뒤지고, 예측 길이가 길어질수록 TCCT\_II에도 밀리는 경향이 보고됩니다. 이 차이는 같은 ETTh1, ETTm1 조건에서 얻은 결과이며 다른 데이터셋이나 모델로 일반화된 결과가 아닙니다.

## 효과의 범위와 남은 제약

부록 C의 추가 실험은 passthrough mechanism의 우위가 제한적임을 보여 줍니다. TCCT\_V는 Informer+보다 조금 더 나은 사례가 50%를 조금 넘는 수준이라고 보고되며, 저자들은 passthrough mechanism이 full distilling operation보다 낫지만 크게 낫지는 않다고 해석합니다. 또한 dilated causal convolution만 쓴 TCCT\_VI는 대부분 Informer를 앞서지만 Informer+를 거의 넘지 못하는 것으로 보고됩니다.

부록 B의 MSE 변동계수 분석에서 Informer+는 단변량 설정의 특정 사례에서 48.42%까지 커져 다른 방법보다 불안정하다고 보고됩니다. 이는 full distilling operation의 안정성 문제에 대한 근거로 제시됩니다. 장기 입력 실험은 ETTm1의 다변량 설정에서 예측 길이 48과 96으로만 수행되었고, 계산 효율 실험도 같은 데이터셋과 설정에 한정됩니다. 따라서 이 결과를 모든 데이터와 과제의 일반 성질로 확대할 수는 없습니다.

![Figure 10: Training time and memory usage results on ETTm1](https://refivu.com/papers/32df64eb-3c3e-409d-bee5-f6799998f841/figures/figure-663ec4ff44a81c357f6b9b516fe26191.png?thumb=512)

**Fig. 10** . Training time and memory usage results on ETTm1.

[원문](https://arxiv.org/abs/2108.12784v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Li Shen, Yangzhu Wang · TCCT: Tightly-Coupled Convolutional Transformer on Time Series Forecasting · 원문 그림 인용 · 원본 PDF 11쪽에서 그림 영역을 추출했습니다.

## 논문 정보

- **저자**: Li Shen, Yangzhu Wang
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2021년 8월 29일
- **등록일**: 2026년 11월 6일
- **수정일**: 2022년 2월 12일
- **버전**: v2
- **arXiv**: 2108.12784
- **DOI**: 10.1016/j.neucom.2022.01.039
- **분류**: cs.LG · cs.AI
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

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

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

## 초록

Time series forecasting is essential for a wide range of real-world applications. Recent studies have shown the superiority of Transformer in dealing with such problems, especially long sequence time series input(LSTI) and long sequence time series forecasting(LSTF) problems. To improve the efficiency and enhance the locality of Transformer, these studies combine Transformer with CNN in varying degrees. However, their combinations are loosely-coupled and do not make full use of CNN. To address this issue, we propose the concept of tightly-coupled convolutional Transformer(TCCT) and three TCCT architectures which apply transformed CNN architectures into Transformer: (1) CSPAttention: through fusing CSPNet with self-attention mechanism, the computation cost of self-attention mechanism is reduced by 30% and the memory usage is reduced by 50% while achieving equivalent or beyond prediction accuracy. (2) Dilated causal convolution: this method is to modify the distilling operation proposed by Informer through replacing canonical convolutional layers with dilated causal convolutional layers to gain exponentially receptive field growth. (3) Passthrough mechanism: the application of passthrough mechanism to stack of self-attention blocks helps Transformer-like models get more fine-grained information with negligible extra computation costs. Our experiments on real-world datasets show that our TCCT architectures could greatly improve the performance of existing state-of-art Transformer models on time series forecasting with much lower computation and memory costs, including canonical Transformer, LogTrans and Informer.

## 원문 인용

Li Shen, Yangzhu Wang (2021). TCCT: Tightly-Coupled Convolutional Transformer on Time Series Forecasting. arXiv:2108.12784v2. https://doi.org/10.1016/j.neucom.2022.01.039

**BibTeX**

```
@article{shen2021tcct,
  title = {{TCCT: Tightly-Coupled Convolutional Transformer on Time Series Forecasting}},
  author = {Li Shen and Yangzhu Wang},
  year = {2021},
  eprint = {2108.12784},
  archivePrefix = {arXiv},
  doi = {10.1016/j.neucom.2022.01.039},
  url = {https://arxiv.org/abs/2108.12784v2}
}
```

## 이 논문의 용어

- [트랜스포머](https://refivu.com/terms/515e8433c447-transformer)
- [MAE](https://refivu.com/terms/15fbae569b33-mae)
- [MSE](https://refivu.com/terms/aaced1b84616-mse)
- [Kullback-Leibler divergence](https://refivu.com/terms/3aa99486ee6b-kullback-leibler-divergence)
- [Informer](https://refivu.com/terms/d78e669bc4ea-informer)
- [CSPNet](https://refivu.com/terms/97f34ddba355-cspnet)
- [ETTh1](https://refivu.com/terms/019bbaabb7fc-etth1)
- [LogTrans](https://refivu.com/terms/0446cb24885e-logtrans)
- [ETTm1](https://refivu.com/terms/e485b117cf2f-ettm1)
- [dilated causal convolution](https://refivu.com/terms/b3746d97201a-dilated-causal-convolution)
- [ProbSparse self-attention](https://refivu.com/terms/78ac8af683ed-probsparse-self-attention)

## 다른 논문 해설

- [Accelerating Monte Carlo event generation -- rejection sampling using neural network event-weight estimates](https://refivu.com/papers/bbe16a39-3565-477c-ba83-156fdc39f7e7-accelerating-monte-carlo-event-generation-rejection-sampling.md)
- [FlowTransformer: A Transformer Framework for Flow-based Network Intrusion Detection Systems](https://refivu.com/papers/28c6bc1f-4e17-4b59-b0b0-2459dd8524f8-flowtransformer-a-transformer-framework-for-flow-based.md)
- [Fast Kinodynamic Planning on the Constraint Manifold with Deep Neural Networks](https://refivu.com/papers/87c184f6-2f40-4f6d-b68b-1327a9de7a12-fast-kinodynamic-planning-on-the-constraint-manifold-with.md)
- [Cornell Potential: A Neural Network Approach](https://refivu.com/papers/9be2351e-7449-4124-971f-f95278cccfef-cornell-potential-a-neural-network-approach.md)
- [Semi-supervised Gated Recurrent Neural Networks for Robotic Terrain Classification](https://refivu.com/papers/7298fa10-33b7-4ae7-9233-3301d6f2078c-semi-supervised-gated-recurrent-neural-networks-for-robotic.md)
- [Identification of Nonlinear Dynamic Systems Using Type-2 Fuzzy Neural Networks -- A Novel Learning Algorithm and a Comparative Study](https://refivu.com/papers/19f7e81c-b2ee-4f23-a3c1-722995158eb4-identification-of-nonlinear-dynamic-systems-using-type-2.md)
- [Classification of Shoulder X-Ray Images with Deep Learning Ensemble Models](https://refivu.com/papers/8a08d6bc-7fca-4507-8e73-873f94dea956-classification-of-shoulder-x-ray-images-with-deep.md)
- [Reinforcement Learning for Mixed-Integer Problems Based on MPC](https://refivu.com/papers/1533cfc4-31a0-4046-a18a-83ecb1069c71-reinforcement-learning-for-mixed-integer-problems-based-on.md)
- [Adaptive Prototypical Networks with Label Words and Joint Representation Learning for Few-Shot Relation Classification](https://refivu.com/papers/f1f70772-4d0a-4d7a-aba9-54dbce52a865-adaptive-prototypical-networks-with-label-words-and-joint.md)
- [The Power of Combined Modalities in Interactive Robot Learning](https://refivu.com/papers/0fce9a4a-5764-433b-8f6c-a19ace5c9d5d-the-power-of-combined-modalities-in-interactive-robot.md)
- [Federated Learning for COVID-19 Detection with Generative Adversarial Networks in Edge Cloud Computing](https://refivu.com/papers/0490924b-d22b-4372-ad02-078a7577f406-federated-learning-for-covid-19-detection-with-generative.md)
- [Contrastive Semi-supervised Learning for Domain Adaptive Segmentation Across Similar Anatomical Structures](https://refivu.com/papers/c873c612-0a68-4ecb-97aa-10fba6f07077-contrastive-semi-supervised-learning-for-domain-adaptive.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/32df64eb-3c3e-409d-bee5-f6799998f841-tcct-tightly-coupled-convolutional-transformer-on-time)
