[Paper Review] Time-aware Large Kernel Convolutions
This paper introduces Time-aware Large Kernel (TaLK) Convolutions, a novel adaptive convolution method that learns dynamic kernel sizes for each time-step, achieving linear time complexity O(n) by leveraging a summed-area table via parallel prefix sums. The method outperforms self-attention and dynamic convolutions in speed and memory efficiency while matching or exceeding state-of-the-art performance on machine translation, abstractive summarization, and language modeling benchmarks.
To date, most state-of-the-art sequence modeling architectures use attention to build generative models for language based tasks. Some of these models use all the available sequence tokens to generate an attention distribution which results in time complexity of $O(n^2)$. Alternatively, they utilize depthwise convolutions with softmax normalized kernels of size $k$ acting as a limited-window self-attention, resulting in time complexity of $O(k{\cdot}n)$. In this paper, we introduce Time-aware Large Kernel (TaLK) Convolutions, a novel adaptive convolution operation that learns to predict the size of a summation kernel instead of using a fixed-sized kernel matrix. This method yields a time complexity of $O(n)$, effectively making the sequence encoding process linear to the number of tokens. We evaluate the proposed method on large-scale standard machine translation, abstractive summarization and language modeling datasets and show that TaLK Convolutions constitute an efficient improvement over other attention/convolution based approaches.
Motivation & Objective
- To address the quadratic time complexity O(n²) of self-attention mechanisms in sequence modeling.
- To reduce computational and memory overhead in long sequence modeling while maintaining strong performance.
- To develop a non-autoregressive, attention-free alternative to transformers and dynamic convolutions with linear time complexity.
- To enable faster inference and training on long sequences through efficient kernel size prediction and summed-area table computation.
- To achieve competitive or superior results on standard NLP benchmarks while minimizing parameter count and memory footprint.
Proposed method
- The method introduces an adaptive convolution that predicts left and right kernel offsets for each time-step instead of learning fixed kernel weights.
- It uses a learnable function to predict the effective context window size per token, enabling variable receptive fields.
- A summed-area table (integral image) is precomputed using parallel prefix sums in O(log n) time, enabling O(1) range sum queries over any span of tokens.
- The model computes the final representation as a weighted sum over the selected context window using the precomputed summed-area table.
- The method employs output normalization and dropout on predicted offsets to stabilize training and prevent overfitting to fixed kernel sizes.
- The model uses multi-head attention-like heads (up to H=512) to allow each dimension to learn independent offset predictions, later reduced to H=4 for improved performance.
Experimental results
Research questions
- RQ1Can a convolutional method achieve linear time complexity O(n) for sequence modeling while maintaining competitive performance?
- RQ2Can learning dynamic kernel boundaries instead of fixed kernels improve modeling efficiency and long-range dependency capture?
- RQ3Does using a summed-area table with parallel prefix sums enable faster and more memory-efficient sequence encoding than attention or dynamic convolutions?
- RQ4How does the proposed method compare to self-attention and dynamic convolutions in terms of speed, memory usage, and performance on standard NLP benchmarks?
- RQ5What hyperparameter choices (e.g., head count, normalization, dropout) are most effective for stabilizing training and improving performance?
Key findings
- The TaLK Convolution method achieves O(n) time complexity, significantly faster than the O(n²) complexity of self-attention and the O(k·n) complexity of dynamic convolutions.
- For sequence length n=10,000, self-attention ran out of memory, while TaLK Convolutions successfully processed the sequence.
- On the IWSLT De-En translation benchmark, TaLK Convolutions achieved a new state-of-the-art BLEU score, outperforming prior methods.
- On the CNN-DailyMail summarization dataset, TaLK Convolutions achieved a new state-of-the-art ROUGE-L score, demonstrating strong abstractive summarization capability.
- On the WikiText-103 language modeling benchmark, TaLK Convolutions outperformed dynamic convolutions and matched the performance of self-attention models.
- The method reduced memory usage by up to 4.5× compared to self-attention and showed higher throughput, especially on long sequences.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.