Convolution for Large Language Models

Yuchuan Tian, Yingte Shu, Wei He, Shuo Zhang, Tianchen Zhao +5 more
7/20/2026
cs.CL
transformer-attention

No confident code implementation found for this paper.

Abstract

Large language models (LLMs) largely rely on Transformers, where self-attention provides global token interaction but does not explicitly encode the locality of natural language. We study whether lightweight depthwise convolutions can supply this local inductive bias without materially increasing model size.

Show full abstract

Our macro-level ablation compares convolution at 17 locations in a Qwen3 Transformer block and finds the best results when convolution is applied to the projected queries, keys, and values before attention. A subsequent micro-level study favors a residual depthwise convolution with kernel size $k=3$, without additional normalization or activation. Across Qwen3 models and several pre-training data budgets, this design improves the average accuracy on seven downstream benchmarks while adding less than $0.01\%$ parameters. A representation-level case study further suggests that the convolution makes repeated token IDs more sensitive to their immediate context. These results support depthwise convolution as a lightweight complement to self-attention for modeling short-range token interactions.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{tian2026convolution,
  title  = {Convolution for Large Language Models},
  author = {Yuchuan Tian and Yingte Shu and Wei He and Shuo Zhang and Tianchen Zhao and Chao Xu and Xinghao Chen and Yunhe Wang and Hanting Chen and Yu Wang},
  year   = {2026},
  eprint = {2607.18413},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.18413v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.18413.svg)](https://codeofpaper.com/paper/2607.18413)

Discussion