DiJiang: Efficient Large Language Models through Compact Kernelization
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Builds on 32 of its 42 references that are in the map. First posted on arXiv 29 Mar 2024.
Builds on
32 of 42 references.
References · 32
- 2017Attention Is All You Needcited by 59,932
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
- 2020Reformer: The Efficient Transformercited by 1,658
20 more
- 2020Rethinking Attention with Performerscited by 1,584
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
- 2021OCR-free Document Understanding Transformercited by 400
- 2021Random Feature Attentioncited by 350
- 2021FNet: Mixing Tokens with Fourier Transformscited by 343
- 2019Learning Deep Transformer Models for Machine Translationcited by 309
- 2020Retrieve, Program, Repeat: Complex Knowledge Base Question Answering via Alternate Meta-learningcited by 216
- 2022cosFormer: Rethinking Softmax in Attentioncited by 212
- 2019Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernelcited by 211
- 2021SOFT: Softmax-free Transformer with Linear Complexitycited by 128
- 2021An Attention Free Transformercited by 111
- 2021LambdaNetworks: Modeling Long-Range Interactions Without Attentioncited by 107
- 2014Fastfood: Approximate Kernel Expansions in Loglinear Timecited by 72
- 2014Quasi-Monte Carlo Feature Maps for Shift-Invariant Kernelscited by 41
- 2023Efficient Attention via Control Variatescited by 23
- 2024DenseMamba: State Space Models with Dense Hidden Connection for Efficient Large Language Modelscited by 22
- 2021Fourier Image Transformercited by 12
- 2021Local Frequency Domain Transformer Networks for Video Predictioncited by 9
Built on by
Citing papers per year: 2024: 2; 2025: 8; 2026: 5.
15 papers.
Sort:
By area:
- 2024Gated Slot Attention for Efficient Linear-Time Sequence Modelingcited by 73
- 2025Test-time regression: a unifying framework for designing sequence models with associative memorycited by 63
- 2025Jet-Nemotron: Efficient Language Model with Post Neural Architecture Searchcited by 39
- 2024Large Language Model Inference Acceleration: A Comprehensive Hardware Perspectivecited by 36
- 2025RADLADS: Rapid Attention Distillation to Linear Attention Decoders at Scalecited by 24
- 2025Distilling to Hybrid Attention Models via KL-Guided Layer Selectioncited by 17
- 2025LiT: Delving into a Simple Linear Diffusion Transformer for Image Generationcited by 9
- 2025ReGLA: Refining Gated Linear Attentioncited by 4
- 2025Degrees of Freedom for Linear Attention: Distilling Softmax Attention with Optimal Feature Efficiencycited by 2
- 2026Morphing into Hybrid Attention Modelscited by 2
- 2026Sliding-window beats linear attentioncited by 2
- 2025FlashEVA: Accelerating LLM inference via Efficient Attentioncited by 1
- 2026Sliding-window beats linear attention28 Aug 2026
- 2026Morphing into Hybrid Attention Models29 Jun 2026
- 2026Functional Attention: From Pairwise Affinities to Functional Correspondences29 May 2026
- 2026LayerBoost: Layer-Aware Attention Reduction for Efficient LLMs23 Apr 2026
- 2026When Perplexity Lies: Generation-Focused Distillation of Hybrid Sequence Models27 Mar 2026
- 2025Distilling to Hybrid Attention Models via KL-Guided Layer Selection23 Dec 2025
- 2025FlashEVA: Accelerating LLM inference via Efficient Attention1 Nov 2025
- 2025Jet-Nemotron: Efficient Language Model with Post Neural Architecture Search21 Aug 2025
- 2025Degrees of Freedom for Linear Attention: Distilling Softmax Attention with Optimal Feature Efficiency4 Jul 2025
- 2025RADLADS: Rapid Attention Distillation to Linear Attention Decoders at Scale5 May 2025
- 2025ReGLA: Refining Gated Linear Attention3 Feb 2025
- 2025LiT: Delving into a Simple Linear Diffusion Transformer for Image Generation22 Jan 2025
- 2024Gated Slot Attention for Efficient Linear-Time Sequence Modelingcited by 73
- 2025Test-time regression: a unifying framework for designing sequence models with associative memorycited by 63
- 2025Jet-Nemotron: Efficient Language Model with Post Neural Architecture Searchcited by 39
- 2025RADLADS: Rapid Attention Distillation to Linear Attention Decoders at Scalecited by 24
- 2025Distilling to Hybrid Attention Models via KL-Guided Layer Selectioncited by 17
- 2025ReGLA: Refining Gated Linear Attentioncited by 4
- 2025Degrees of Freedom for Linear Attention: Distilling Softmax Attention with Optimal Feature Efficiencycited by 2
- 2026Morphing into Hybrid Attention Modelscited by 2
- 2025FlashEVA: Accelerating LLM inference via Efficient Attentioncited by 1
- 2026When Perplexity Lies: Generation-Focused Distillation of Hybrid Sequence Modelscited by 1
- 2026LayerBoost: Layer-Aware Attention Reduction for Efficient LLMscited by 0
- 2026Functional Attention: From Pairwise Affinities to Functional Correspondencescited by 0
- 2026Morphing into Hybrid Attention Models29 Jun 2026
- 2026Functional Attention: From Pairwise Affinities to Functional Correspondences29 May 2026
- 2026LayerBoost: Layer-Aware Attention Reduction for Efficient LLMs23 Apr 2026
- 2026When Perplexity Lies: Generation-Focused Distillation of Hybrid Sequence Models27 Mar 2026
- 2025Distilling to Hybrid Attention Models via KL-Guided Layer Selection23 Dec 2025
- 2025FlashEVA: Accelerating LLM inference via Efficient Attention1 Nov 2025
- 2025Jet-Nemotron: Efficient Language Model with Post Neural Architecture Search21 Aug 2025
- 2025Degrees of Freedom for Linear Attention: Distilling Softmax Attention with Optimal Feature Efficiency4 Jul 2025
- 2025RADLADS: Rapid Attention Distillation to Linear Attention Decoders at Scale5 May 2025
- 2025ReGLA: Refining Gated Linear Attention3 Feb 2025
- 2025Test-time regression: a unifying framework for designing sequence models with associative memory21 Jan 2025
- 2024Gated Slot Attention for Efficient Linear-Time Sequence Modeling11 Sep 2024