Skip to content
DiJiang: Efficient Large Language Models through Compact Kernelization episode artwork

EPISODE · Apr 1, 2024 · 3 MIN

DiJiang: Efficient Large Language Models through Compact Kernelization

from Tech Frontier

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.

Episode metadata supplied by the publisher feed · Published Apr 1, 2024

Embed this episode

Ready to play

DiJiang: Efficient Large Language Models through Compact Kernelization

0:00 3:33

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

Frequently Asked Questions

How long is this episode of Tech Frontier?

This episode is 3 minutes long.

When was this Tech Frontier episode published?

This episode was published on April 1, 2024.

Can I download this Tech Frontier episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!