Convolution for Large Language Models

Yuchuan Tian, Yingte Shu, Wei He, Shuo Zhang, Tianchen Zhao, Chao Xu, Xinghao Chen, Yunhe Wang, Hanting ChenarXiv 2026

TL;DR

While Transformers excel at capturing global context via self-attention, they lack an explicit mechanism to model the local, short-range structures inherent in natural language. This technical report demonstrates that inserting a lightweight, residual depthwise 1D convolution right after the QKV projections improves downstream benchmark accuracy by up to 3.76% while adding fewer than 0.01% extra parameters.

What Problem Does This Paper Address?

Modern Large Language Models (LLMs) like Llama and DeepSeek rely almost entirely on self-attention to handle token interactions. However, self-attention treats all tokens globally and does not explicitly encode locality—the tendency of adjacent words to form tightly knit local units (like phrases or compounds such as "neural network").

While Transformers can eventually learn these local patterns, doing so implicitly wastes capacity. Previous attempts to fix this often introduced heavy hybrid architectures that completely restructured the Transformer block. This paper tackles a simpler, more practical question: Can we inject a local inductive bias into a fixed, modern Transformer backbone using a microscopic parameter footprint without disrupting its global attention capabilities?

Methods

The authors systematically break down their exploration into two phases: where to put the convolution (macro-level) and how to design the convolution module itself (micro-level).

  1. Macro-Level Placement: The authors mapped out 17 potential insertion points within a standard Qwen3 Transformer block. Through rigorous ablation, they discovered that placing the convolution directly on the concatenated Query, Key, and Value (QKV) projection outputs—right before the attention mechanism—yielded the best results.
  2. Micro-Level Design: Instead of standard convolutions, which suffer from high parameter overhead ($O(kd_{model}^2)$), they utilized depthwise 1D convolutions ($O(kd_{model})$). This keeps the parameter count linear relative to the hidden dimension.

The optimal module design turned out to be remarkably simple: a plain convolution with a shortcut connection (residual path), a kernel size of $k=3$, random initialization, and no additional normalization or activation functions. To preserve autoregressive causality during generation, they applied left-padding during training and maintained a sliding-window convolution cache during inference, ensuring that decoding speed remains unaffected.

Figure 2. A Qwen3 Transformer block and the 17 candidate locations for a Conv1D module.

Datasets

The models were pre-trained from scratch using FineWeb-100B, as well as its smaller 30B and 60B token subsets to evaluate scaling behavior.

For evaluation, the authors used WikiText-103 to measure perplexity, alongside seven standard downstream benchmarks:

  • ARC-Challenge & ARC-Easy
  • BoolQ
  • HellaSwag
  • PIQA
  • WinoGrande
  • Winograd Schema Challenge (WSC)

Key Insights and Ideas

  • Simplicity Wins: Adding non-linearities (like SiLU or LeakyReLU) or extra normalization layers (like RMSNorm) actually degraded performance. Because the Transformer block already normalizes inputs, adding more normalization at the post-QKV stage likely destabilizes the feature scale needed for attention.
  • Contextual Differentiation: A representation-level case study on the Winograd Schema Challenge (WSC) revealed why this tweak works. The convolution forces identical token IDs to incorporate their immediate neighbors' context before entering global attention. This lowers the cosine similarity between identical tokens in different contexts, making the model significantly better at pronoun disambiguation tasks.

Key Results

The proposed "Post-QKV Conv" configuration adds an incredibly negligible number of parameters—less than 0.01% of the baseline (e.g., just ~0.11 million parameters for a 1.7B model).

Despite this tiny footprint, it consistently boosted performance across different model sizes and data budgets:

  • Qwen3-1.7B (30B tokens): Achieved a +1.99% average accuracy gain across downstream tasks.
  • Qwen3-4B (100B tokens): Achieved a +3.76% maximum accuracy gain.
  • The most dramatic improvements were observed on the WSC benchmark, confirming that the module drastically improves the model's grasp of local context.
Figure 1. Summary of the downstream evaluation. Left: average accuracy at the 30B-token training budget for the evaluated Qwen3 model sizes. Right: average accuracy of Qwen3-4B at three training-data budgets. The post-QKV depthwise convolution adds less than 0.01% parameters.

Limitations and Future Work

While the results are promising, the authors note a few limitations:

  • Architecture Specificity: The evaluation was strictly confined to the Qwen3 model family. It remains to be seen if these exact benefits transfer identically to other architectures (e.g., Mistral or Llama).
  • Uneven Benchmark Gains: While the average accuracy improved across the board, performance on a few individual benchmarks occasionally dipped, suggesting that local bias might slightly trade off against certain global reasoning tasks.
  • Scaling Verification: More extensive training runs beyond the 100B token mark are required to confirm if this advantage holds steady as models scale to trillions of tokens.

Summary updated

BibTeX
@misc{tian2026convolution,
  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},
  title = {{Convolution for Large Language Models}},
  year = {2026},
  eprint = {2607.18413},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.18413},
}
Figure