Vasileios Lioutas, Yuhong Guo
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.
| Task | Dataset | Metric | Value | Model |
|---|---|---|---|---|
| Machine Translation | IWSLT2014 German-English | BLEU score | 35.5 | TaLK Convolutions |
| Machine Translation | WMT2014 English-German | BLEU score | 29.6 | TaLK Convolutions |
| Machine Translation | WMT2014 English-French | BLEU score | 43.2 | TaLK Convolutions |
| Language Modelling | WikiText-103 | Test perplexity | 23.3 | TaLK Convolutions |
| Text Summarization | CNN / Daily Mail | ROUGE-1 | 40.59 | TaLK Convolutions (Deep) |
| Text Summarization | CNN / Daily Mail | ROUGE-2 | 18.97 | TaLK Convolutions (Deep) |
| Text Summarization | CNN / Daily Mail | ROUGE-L | 36.81 | TaLK Convolutions (Deep) |
| Text Summarization | CNN / Daily Mail | ROUGE-1 | 40.03 | TaLK Convolutions (Standard) |
| Text Summarization | CNN / Daily Mail | ROUGE-2 | 18.45 | TaLK Convolutions (Standard) |
| Text Summarization | CNN / Daily Mail | ROUGE-L | 36.13 | TaLK Convolutions (Standard) |
| Document Summarization | CNN / Daily Mail | ROUGE-1 | 40.59 | TaLK Convolutions (Deep) |
| Document Summarization | CNN / Daily Mail | ROUGE-2 | 18.97 | TaLK Convolutions (Deep) |
| Document Summarization | CNN / Daily Mail | ROUGE-L | 36.81 | TaLK Convolutions (Deep) |
| Document Summarization | CNN / Daily Mail | ROUGE-1 | 40.03 | TaLK Convolutions (Standard) |
| Document Summarization | CNN / Daily Mail | ROUGE-2 | 18.45 | TaLK Convolutions (Standard) |
| Document Summarization | CNN / Daily Mail | ROUGE-L | 36.13 | TaLK Convolutions (Standard) |