paper-with-me

홈 › Papers

The Devil in Linear Transformer

2022-10-19 · Zhen Qin, Xiaodong Han, Weixuan Sun, Dongxu Li, Lingpeng Kong, Nick Barnes, Yiran Zhong

Linear transformers aim to reduce the quadratic space-time complexity of vanilla transformers. However, they usually suffer from degraded performances on various tasks and corpus. In this paper, we examine existing kernel-based linear transformers and identify two key issues that lead to such performance gaps: 1) unbounded gradients in the attention computation adversely impact the convergence of linear transformer models; 2) attention dilution which trivially distributes attention scores over long sequences while neglecting neighbouring structures. To address these issues, we first identify that the scaling of attention matrices is the devil in unbounded gradients, which turns out unnecessary in linear attention as we show theoretically and empirically. To this end, we propose a new linear attention that replaces the scaling operation with a normalization to stabilize gradients. For the issue of attention dilution, we leverage a diagonal attention to confine attention to only neighbouring tokens in early layers. Benefiting from the stable gradients and improved attention, our new linear transformer model, transNormer, demonstrates superior performance on text classification and language modeling tasks, as well as on the challenging Long-Range Arena benchmark, surpassing vanilla transformer and existing linear variants by a clear margin while being significantly more space-time efficient. The code is available at https://github.com/OpenNLPLab/Transnormer .

📄 PDF Abstract BibTeX arXiv:2210.10340

Code (1)

opennlplab/transnormer 공식 구현 pytorch

Tasks

Language ModelingLanguage ModellingText Classification

Similar Papers 제목 키워드 기반

DeViL: Decoding Vision features into Language

2023-09-04 · Meghal Dani, Isabel Rio-Torto, Stephan Alaniz, Zeynep Akata

Post-hoc explanation methods have often been criticised for abstracting away the decision-making process of deep neural networks. In this work, we would like to provide natural language descriptions for what different la…

Decision MakingLanguage ModelingLanguage Modelling

Propeller Motion of a Devil-Stick using Normal Forcing

2025-01-29 · Aakash Khandelwal, Ranjan Mukherjee

The problem of realizing rotary propeller motion of a devil-stick in the vertical plane using forces purely normal to the stick is considered. This problem represents a nonprehensile manipulation task of an underactuated…

Detector-Empowered Video Large Language Model for Efficient Spatio-Temporal Grounding

2025-12-07 · Shida Gao, Feng Xue, Xiangfeng Wang, Anlong Ming 외 arxiv

Multimodal large language models (MLLMs) are rapidly expanding from general video understanding to finer-grained understanding such as spatio-temporal video grounding (STVG) and reasoning. In these tasks, an MLLM must lo…

Spatio-Temporal Video Grounding

Planar Juggling of a Devil-Stick using Discrete VHCs

2025-09-09 · Aakash Khandelwal, Ranjan Mukherjee arxiv

Planar juggling of a devil-stick using impulsive inputs is addressed using the concept of discrete virtual holonomic constraints (DVHC). The location of the center-of-mass of the devil-stick is specified in terms of its …

A metapopulation model of the spread of the Devil Facial Tumour Disease predicts the long term collapse of its host but not its extinction

2018-06-14

The Devil Facial Tumour Disease (DFTD), a unique case of a transmissible cancer, had a devastating effect on its host, the Tasmanian Devil. Current estimates of its density are at roughly 20% of the pre-disease state, an…