DiJiang: Efficient Large Language Models through Compact Kernelization
Hanting Chen, Liuzhi Cheng, Xutao Wang, Yuchuan Tian, Yunhe Wang
摘要
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 .
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention 引用了 Reformer: The Efficient Transformer
- Efficient Streaming Language Models with Attention Sinks 引用了 PIQA: Reasoning about Physical Commonsense in Natural Language
- Efficient Streaming Language Models with Attention Sinks 引用了 Reformer: The Efficient Transformer
- Enhancing Vision Transformer: Amplifying Non-Linearity in Feedforward Network Module 引用了 Reformer: The Efficient Transformer
- Jet-Nemotron: Efficient Language Model with Post Neural Architecture Search 引用了 Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
- Jet-Nemotron: Efficient Language Model with Post Neural Architecture Search 引用了 PIQA: Reasoning about Physical Commonsense in Natural Language
- Jet-Nemotron: Efficient Language Model with Post Neural Architecture Search 引用了 Reformer: The Efficient Transformer
- Jet-Nemotron: Efficient Language Model with Post Neural Architecture Search 引用了 Gated Slot Attention for Efficient Linear-Time Sequence Modeling
- Degrees of Freedom for Linear Attention: Distilling Softmax Attention with Optimal Feature Efficiency 引用了 Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
- Degrees of Freedom for Linear Attention: Distilling Softmax Attention with Optimal Feature Efficiency 引用了 PIQA: Reasoning about Physical Commonsense in Natural Language
- Degrees of Freedom for Linear Attention: Distilling Softmax Attention with Optimal Feature Efficiency 引用了 Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling
- Gated Slot Attention for Efficient Linear-Time Sequence Modeling 引用了 Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
- Gated Slot Attention for Efficient Linear-Time Sequence Modeling 引用了 PIQA: Reasoning about Physical Commonsense in Natural Language
引用它的顶会 Paper5
- Gated Slot Attention for Efficient Linear-Time Sequence ModelingYu Zhang, Songlin Yang, Rui-Jie Zhu, Yue Zhang 等NeurIPS 2024 · 93 次引用
- Jet-Nemotron: Efficient Language Model with Post Neural Architecture SearchYuxian Gu, Qinghao Hu, Haocheng Xi, Junyu Chen 等NeurIPS 2025 · 39 次引用
- LiT: Delving into a Simple Linear Diffusion Transformer for Image GenerationJiahao Wang, Ning Kang, Lewei Yao, Mengzhao Chen 等ICCV 2025 · 10 次引用
- Enhancing Vision Transformer: Amplifying Non-Linearity in Feedforward Network ModuleYixing Xu, Chao Li, Dong Li, Xiao Sheng 等ICML 2024 · 5 次引用
- Degrees of Freedom for Linear Attention: Distilling Softmax Attention with Optimal Feature EfficiencyNaoki Nishikawa, Rei Higuchi, Taiji SuzukiNeurIPS 2025 · 2 次引用
它引用的 Paper7
- PIQA: Reasoning about Physical Commonsense in Natural LanguageYonatan Bisk, Rowan Zellers, Ronan Le Bras, Jianfeng Gao 等AAAI 2020 · 2,916 次引用
- Reformer: The Efficient TransformerNikita Kitaev, Lukasz Kaiser, Anselm LevskayaICLR 2020 · 2,878 次引用
- Transformers are RNNs: Fast Autoregressive Transformers with Linear AttentionAngelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, François FleuretICML 2020 · 2,665 次引用
- Pythia: A Suite for Analyzing Large Language Models Across Training and ScalingStella Biderman, Hailey Schoelkopf, Quentin Gregory Anthony, Herbie Bradley 等ICML 2023 · 1,822 次引用
- Efficient Streaming Language Models with Attention SinksGuangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han 等ICLR 2024 · 1,714 次引用
相关 Paper
- Fourier Transformer: Fast Long Range Modeling by Removing Sequence Redundancy with FFT OperatorZiwei He, Meng Yang, Minwei Feng, Jingcheng Yin 等ACL Findings 2023 · 13 次引用
- Conv-Basis: A New Paradigm for Efficient Attention Inference and Gradient Computation in TransformersYingyu Liang, Heshan Liu, Zhenmei Shi, Zhao Song 等EMNLP Findings 2025
- CLEAR: Conv-Like Linearization Revs Pre-Trained Diffusion Transformers UpSonghua Liu, Zhenxiong Tan, Xinchao WangNeurIPS 2025 · 33 次引用
- LAWCAT: Efficient Distillation from Quadratic to Linear Attention with Convolution across Tokens for Long Context ModelingZeyu Liu, Souvik Kundu, Lianghao Jiang, Anni Li 等EMNLP Findings 2025
- Trion: FFT-based Dynamic Subspace Selection for Low-Rank Adaptive Optimization of LLMsIonut-Vlad Modoranu, Mher Safaryan, Erik Schultheis, Maksim Riabinin 等ICLR 2026 · 2 次引用
