# TCNCA: Temporal Convolution Network with Chunked Attention for Scalable Sequence Processing

- **ID:** 568
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2312.05605
- **Authors:** Aleksandar Terzić, Michael Hersche, Geethan Karunaratne, Luca Benini, Abu Sebastian, Abbas Rahimi
- **Venue:** arXiv / IBM Research / ETH Zurich
- **Published:** 2023
- **License:** CC BY 4.0
- **License family:** Permissive (auto-classified)
- **Tags:** tcnca, tcn, mega, chunked-attention, enwik8, lra, ibm, eth-zurich, long-sequence
- **Topics:** long sequence models, temporal convolution, chunked attention
- **Added:** 2026-10-01
- **Research status:** done
- **Page:** https://papers.projxon.ai/entries/568

## Summary

Swaps MEGA’s FFT-parallel EMA (O(L log L)) for a TCN of dilated-conv residual blocks (one conv per block, O(L)) followed by fixed-window chunked attention. EnWik8 BPC 1.01 vs MEGA 1.02 / Transformer-XL 1.06 at 39M params, with 1.37×/1.24× faster train forward/backward vs MEGA. Dilated conv vs parallel EMA is up to 7.07×/2.86× faster at seq 131k on V100. LRA average 85.5 vs MEGA-chunk 85.6 with 1.28× inference. A simplified TCNCA matches MEGA on associative recall. No official code on abs.

## Attributes

- **Purpose:** Replace MEGA’s FFT exponential moving average with a linear-complexity dilated TCN plus chunked attention
- **Scale:** EnWik8 39M params, chunk 2048; LRA ListOps/Text/Retrieval/Image/Path/Path-X; associative recall seq 64–8192 vocab 10/20; dilated conv vs EMA seq 8k–131k on V100
- **Time period:** 2023-12-09 (arXiv 2312.05605 v1). HF paper publishedAt 2023-12-09.

## From the source (fetched 2026-10-03)

- **Published:** Dec 9, 2023 (arXiv)
- **arXiv categories:** cs.LG, cs.CV (arXiv)
- **Citations:** 0 (Semantic Scholar)
- **References:** 38 (Semantic Scholar)

## Abstract

MEGA is a recent transformer-based architecture, which utilizes a linear recurrent operator whose parallel computation, based on the FFT, scales as $O(LlogL)$, with $L$ being the sequence length. We build upon their approach by replacing the linear recurrence with a special temporal convolutional network which permits larger receptive field size with shallower networks, and reduces the computational complexity to $O(L)$. The resulting model is called TCNCA, a Temporal Convolutional Network with Chunked Attention. We evaluate TCNCA on EnWik8 language modeling, long-range-arena (LRA) sequence classification, as well as a synthetic reasoning benchmark associative recall. On EnWik8, TCNCA outperforms MEGA, reaching a lower loss with $1.37\times$/$1.24\times$ faster forward/backward pass during training. The dilated convolutions used in TCNCA are consistently and significantly faster operations than the FFT-based parallelized recurrence in GPUs, making them a scalable candidate for handling very large sequence lengths: they are up to $7.07\times$/$2.86\times$ faster in the forward/backward pass for sequences up to 131k. Further on LRA, TCNCA achieves, on average, $1.28\times$ speed-up during inference with similar accuracy to what MEGA achieves. On associative recall, we find that even a simplified version of TCNCA, without excessive multiplicative and additive interactions, remains superior or competitive to MEGA on a range of sequence lengths and vocabulary sizes.

## Research notes

- Primary: arxiv abs (cs.LG; also cs.CV). License CC BY 4.0 on HTML at check. Work at IBM Research – Zurich / ETH Zurich. Correspondence Abbas Rahimi abr@zurich.ibm.com. No official code on abs. HF paper page 4 upvotes; no githubRepo; no linked models/datasets. Discord posted HTML. Uses public EnWik8/LRA rather than a new hosted corpus, so no datasets_local row.

## Similar entries

- [Towards Understanding Self-Pretraining for Sequence Classification](https://papers.projxon.ai/entries/499) (paper, #499)
- [Triadic Linear Attention: Three-Dimensional Recurrent States for Long-Context Sequence Modeling](https://papers.projxon.ai/entries/1244) (paper, #1244)
- [MoBA: Mixture of Block Attention for Long-Context LLMs](https://papers.projxon.ai/entries/707) (paper, #707)
- [You Need Better Attention Priors](https://papers.projxon.ai/entries/1216) (paper, #1216)
- [How Local Mixing Encodes Relative Position in Global NoPE Attention](https://papers.projxon.ai/entries/840) (paper, #840)
- [Native Hybrid Attention for Efficient Sequence Modeling](https://papers.projxon.ai/entries/1253) (paper, #1253)
