Lune

ICML2024Top-tier venue

DiJiang: Efficient Large Language Models through Compact Kernelization

Hanting Chen, Liuzhi Cheng, Xutao Wang, Yuchuan Tian, Yunhe Wang

Abstract

In an effort to reduce the computational load of Transformers, research on linear attention has gained significant momentum. However, the improvement strategies for attention mechanisms typically necessitate extensive retraining, which is impractical for large language models with a vast array of parameters. In this paper, we present DiJiang, a novel Frequency Domain Kernelization approach that enables the transformation of a pre-trained vanilla Transformer into a linear complexity model with little training costs. By employing a weighted Quasi-Monte Carlo method for sampling, the proposed approach theoretically offers superior approximation efficiency. To further reduce the training computational complexity, our kernelization is based on Discrete Cosine Transform (DCT) operations. Extensive experiments demonstrate that the proposed method achieves comparable performance to the original Transformer, but with significantly reduced training costs and much faster inference speeds. Our DiJiang-7B achieves comparable performance with LLaMA2-7B on various benchmark while requires only about 1/50 training cost. Code is available at https: //github.com/YuchuanTian/DiJiang .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention cites Reformer: The Efficient Transformer
  • Efficient Streaming Language Models with Attention Sinks cites PIQA: Reasoning about Physical Commonsense in Natural Language
  • Efficient Streaming Language Models with Attention Sinks cites Reformer: The Efficient Transformer
  • Enhancing Vision Transformer: Amplifying Non-Linearity in Feedforward Network Module cites Reformer: The Efficient Transformer
  • Jet-Nemotron: Efficient Language Model with Post Neural Architecture Search cites Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
  • Jet-Nemotron: Efficient Language Model with Post Neural Architecture Search cites PIQA: Reasoning about Physical Commonsense in Natural Language
  • Jet-Nemotron: Efficient Language Model with Post Neural Architecture Search cites Reformer: The Efficient Transformer
  • Jet-Nemotron: Efficient Language Model with Post Neural Architecture Search cites Gated Slot Attention for Efficient Linear-Time Sequence Modeling
  • Degrees of Freedom for Linear Attention: Distilling Softmax Attention with Optimal Feature Efficiency cites Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
  • Degrees of Freedom for Linear Attention: Distilling Softmax Attention with Optimal Feature Efficiency cites PIQA: Reasoning about Physical Commonsense in Natural Language
  • Degrees of Freedom for Linear Attention: Distilling Softmax Attention with Optimal Feature Efficiency cites Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling
  • Gated Slot Attention for Efficient Linear-Time Sequence Modeling cites Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
  • Gated Slot Attention for Efficient Linear-Time Sequence Modeling cites PIQA: Reasoning about Physical Commonsense in Natural Language
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Gated Slot Attention for Efficient Linear-Time Sequence ModelingYu Zhang, Songlin Yang, Rui-Jie Zhu, Yue Zhang et al.NeurIPS 2024 · 93 citations
  2. Jet-Nemotron: Efficient Language Model with Post Neural Architecture SearchYuxian Gu, Qinghao Hu, Haocheng Xi, Junyu Chen et al.NeurIPS 2025 · 39 citations
  3. LiT: Delving into a Simple Linear Diffusion Transformer for Image GenerationJiahao Wang, Ning Kang, Lewei Yao, Mengzhao Chen et al.ICCV 2025 · 10 citations
  4. Enhancing Vision Transformer: Amplifying Non-Linearity in Feedforward Network ModuleYixing Xu, Chao Li, Dong Li, Xiao Sheng et al.ICML 2024 · 5 citations
  5. Degrees of Freedom for Linear Attention: Distilling Softmax Attention with Optimal Feature EfficiencyNaoki Nishikawa, Rei Higuchi, Taiji SuzukiNeurIPS 2025 · 2 citations

Builds on7

  1. PIQA: Reasoning about Physical Commonsense in Natural LanguageYonatan Bisk, Rowan Zellers, Ronan Le Bras, Jianfeng Gao et al.AAAI 2020 · 2,916 citations
  2. Reformer: The Efficient TransformerNikita Kitaev, Lukasz Kaiser, Anselm LevskayaICLR 2020 · 2,878 citations
  3. Transformers are RNNs: Fast Autoregressive Transformers with Linear AttentionAngelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, François FleuretICML 2020 · 2,665 citations
  4. Pythia: A Suite for Analyzing Large Language Models Across Training and ScalingStella Biderman, Hailey Schoelkopf, Quentin Gregory Anthony, Herbie Bradley et al.ICML 2023 · 1,822 citations
  5. Efficient Streaming Language Models with Attention SinksGuangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han et al.ICLR 2024 · 1,714 citations

Related papers

  1. Fourier Transformer: Fast Long Range Modeling by Removing Sequence Redundancy with FFT OperatorZiwei He, Meng Yang, Minwei Feng, Jingcheng Yin et al.ACL Findings 2023 · 13 citations
  2. Conv-Basis: A New Paradigm for Efficient Attention Inference and Gradient Computation in TransformersYingyu Liang, Heshan Liu, Zhenmei Shi, Zhao Song et al.EMNLP Findings 2025
  3. CLEAR: Conv-Like Linearization Revs Pre-Trained Diffusion Transformers UpSonghua Liu, Zhenxiong Tan, Xinchao WangNeurIPS 2025 · 33 citations
  4. LAWCAT: Efficient Distillation from Quadratic to Linear Attention with Convolution across Tokens for Long Context ModelingZeyu Liu, Souvik Kundu, Lianghao Jiang, Anni Li et al.EMNLP Findings 2025
  5. Trion: FFT-based Dynamic Subspace Selection for Low-Rank Adaptive Optimization of LLMsIonut-Vlad Modoranu, Mher Safaryan, Erik Schultheis, Maksim Riabinin et al.ICLR 2026 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines