Dynamic Convolutions Improve Transformers
Oliver Sieberling, Bharat Runwal, Rameswar Panda, Yoon Kim
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: Efficient LLM Inference & Training › Efficient Sequence Modeling · Type: new method · Keywords: dynamic short convolutions, Transformer efficiency, input-dependent filters, language modeling, hardware-efficient primitives
Areas: Model Architectures & Sequence Modeling › Language Model Architectures › Efficient Attention
Summary
Dynamic short convolutions, which use input-dependent filters, are introduced as a new primitive to improve Transformers, yielding better performance and compute efficiency.
Explained to a 5-year-old
Computers use a special brain called a transformer to understand words. This brain can be made better by adding a tiny, smart filter that changes based on what it sees. This filter helps the brain remember things better and work faster. It makes the computer understand language more accurately. It also uses less energy and is easier to build.
Explained to a 5-year-old, longer
A transformer is a kind of computer brain that reads and writes words. It works mainly by paying attention to every part of the sentence. Sometimes this attention is slow and uses a lot of power. The researchers added a small filter that looks at a short piece of the sentence and changes its pattern depending on the words. This filter is like a quick, local shortcut that helps the brain remember connections better. Because the filter is small, it does not need a lot of memory. The new filter works together with the normal attention and makes the whole system faster. It also helps the computer understand tricky memory tasks more accurately. The filter is designed to be easy for computers to run, so it does not slow down the whole system much. This makes building bigger language models cheaper and greener. The idea can be used in many different language tasks, from chat bots to translation tools.
For a technical reader
The paper introduces dynamic short convolutions, which are input-dependent filters applied to key, query, and value projections in Transformer layers. These filters preserve locality while increasing expressivity, and a custom Triton kernel implements them efficiently with minimal overhead. Experiments show consistent gains on associative recall tasks and across language-modeling scales from 150M to 2B parameters. Scaling-law analysis reveals a 1.33× compute advantage over parameter-matched Transformers. The approach offers a hardware-friendly primitive for advancing large-scale language models.
Problem
Large language models based on Transformers often lack locality bias and can be computationally heavy, motivating the need for more efficient and expressive primitives that retain scalability.
Method
The approach adds input-dependent filters to the key, query, and value projections of Transformer layers and implements them efficiently with a custom kernel.
Results
The approach improves performance on associative recall tasks, consistently outperforms standard Transformers and static-convolution Transformers across models from 150M to 2B parameters, and achieves a 1.33× compute advantage in scaling-law analysis with minimal slowdown.
Contributions
The paper introduces a new primitive that combines locality with input-dependent adaptability for Transformers, demonstrates its scalability and hardware efficiency, and provides empirical evidence of its advantages over existing alternatives.
Practical relevance
The findings enable more efficient and powerful language models that can be trained and deployed with lower compute, advancing the practicality of large-scale Transformers.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction