TCNCA: Temporal Convolution Network with Chunked Attention for Scalable Sequence Processing
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.
- Venue
- arXiv / IBM Research / ETH Zurich
- License
- CC BY 4.0
- License family
- Permissive
- 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.
- Added
- Oct 1, 2026
- Research status
- done
From the source
- Published
- Dec 9, 2023
- arXiv categories
- cs.LG, cs.CV
- Citations
- 0
- References
- 38
Abstract (from arXiv)
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.
Tags
Topics
long sequence models, temporal convolution, chunked attention
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
- Paper Towards Understanding Self-Pretraining for Sequence Classification
- Paper Triadic Linear Attention: Three-Dimensional Recurrent States for Long-Context Sequence Modeling
- Paper MoBA: Mixture of Block Attention for Long-Context LLMs
- Paper You Need Better Attention Priors
- Paper How Local Mixing Encodes Relative Position in Global NoPE Attention
- Paper Native Hybrid Attention for Efficient Sequence Modeling