English

Differentiable Window for Dynamic Local Attention

Machine Learning 2020-06-25 v1 Computation and Language Machine Learning

Abstract

We propose Differentiable Window, a new neural module and general purpose component for dynamic window selection. While universally applicable, we demonstrate a compelling use case of utilizing Differentiable Window to improve standard attention modules by enabling more focused attentions over the input regions. We propose two variants of Differentiable Window, and integrate them within the Transformer architecture in two novel ways. We evaluate our proposed approach on a myriad of NLP tasks, including machine translation, sentiment analysis, subject-verb agreement and language modeling. Our experimental results demonstrate consistent and sizable improvements across all tasks.

Keywords

Cite

@article{arxiv.2006.13561,
  title  = {Differentiable Window for Dynamic Local Attention},
  author = {Thanh-Tung Nguyen and Xuan-Phi Nguyen and Shafiq Joty and Xiaoli Li},
  journal= {arXiv preprint arXiv:2006.13561},
  year   = {2020}
}

Comments

Accepted at ACL 2020

R2 v1 2026-06-23T16:34:55.977Z