EchoAtt: Attend, Copy, then Adjust for More Efficient Large Language Models
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs), with their increasing depth and number of parameters, have demonstrated outstanding performance across a variety of natural language processing tasks. However, this growth in scale leads to increased computational demands, particularly during inference and fine-tuning. To address these challenges, we introduce EchoAtt, a novel framework aimed at optimizing transformer-based models by analyzing and leveraging the similarity of attention patterns across layers. Our analysis reveals that many inner layers in LLMs, especially larger ones, exhibit highly similar attention matrices. By exploiting this similarity, EchoAtt enables the sharing of attention matrices in less critical layers, significantly reducing computational requirements without compromising performance. We incorporate this approach within a knowledge distillation setup, where a pre-trained teacher model guides the training of a smaller student model. The student model selectively shares attention matrices in layers with high similarity while inheriting key parameters from the teacher. Our best results with TinyLLaMA-1.1B demonstrate that EchoAtt improves inference speed by 15%, training speed by 25%, and reduces the number of parameters by approximately 4%, all while improving zero-shot performance. These findings highlight the potential of attention matrix sharing to enhance the efficiency of LLMs, making them more practical for real-time and resource-limited applications.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 21 of its 25 references that are in the map. First posted on arXiv 22 Sep 2024.
Builds on
21 of 25 references.
References · 21
- 2017Attention Is All You Needcited by 59,932
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,442
- 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,302
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
- 2024TinyLlama: An Open-Source Small Language Modelcited by 604
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
- 2023Harnessing the Power of LLMs in Practice: A Survey on ChatGPT and Beyondcited by 409
- 2024Jamba: A Hybrid Transformer-Mamba Language Modelcited by 390
9 more
- 2024xLSTM: Extended Long Short-Term Memorycited by 320
- 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 197
- 2024What Matters in Transformers? Not All Attention is Neededcited by 83
- 2021Annealing Knowledge Distillationcited by 61
- 2024Low-Rank Quantization-Aware Training for LLMscited by 42
- 2021Leveraging redundancy in attention with Reuse Transformerscited by 33
- 2024QDyLoRA: Quantized Dynamic Low-Rank Adaptation for Efficient Large Language Model Tuningcited by 26
- 2021LazyFormer: Self Attention with Lazy Updatecited by 16
- 2024Beyond KV Caching: Shared Attention for Efficient LLMscited by 10
Built on by
Citing papers per year: 2026: 2.
2 papers.