HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Time-aware Large Kernel Convolutions

Vasileios Lioutas Yuhong Guo

Time-aware Large Kernel Convolutions

Abstract

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.

Code Repositories

lioutasb/TaLKConvolutions
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
document-summarization-on-cnn-daily-mailTaLK Convolutions (Deep)
ROUGE-1: 40.59
ROUGE-2: 18.97
ROUGE-L: 36.81
document-summarization-on-cnn-daily-mailTaLK Convolutions (Standard)
ROUGE-1: 40.03
ROUGE-2: 18.45
ROUGE-L: 36.13
language-modelling-on-wikitext-103TaLK Convolutions
Number of params: 240M
Test perplexity: 23.3
machine-translation-on-iwslt2014-germanTaLK Convolutions
BLEU score: 35.5
machine-translation-on-wmt2014-english-frenchTaLK Convolutions
BLEU score: 43.2
machine-translation-on-wmt2014-english-germanTaLK Convolutions
BLEU score: 29.6
Number of Params: 209M

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp