2 Sources
[1]
Microsoft's Differential Transformer cancels attention noise in LLMs
Join our daily and weekly newsletters for the latest updates and exclusive content on industry-leading AI coverage. Learn More Improving the capabilities of large language models (LLMs) in retrieving in-prompt information remains an area of active research that can impact important applications
[2]
Adding Noise Cancellation to LLMs
With DIFF Transformer, you can achieve 30% accuracy improvement and 10-20% accuracy gain in many-shot in-context learning across datasets. LLMs are great for summarisation but not so clever when the answer is hidden within a pile of documents. This is because the traditional Transformer models
Share
Copy Link
Microsoft Research and Tsinghua University introduce the Differential Transformer, a new LLM architecture that improves performance by reducing attention noise and enhancing focus on relevant context.

Microsoft Research, in collaboration with Tsinghua University, has introduced a groundbreaking architecture for Large Language Models (LLMs) called the Differential Transformer (Diff Transformer). This innovation aims to address the limitations of traditional Transformer models, particularly in handling long contexts and reducing attention noise
1
.Conventional Transformer models often struggle with effectively allocating attention, a phenomenon known as the "lost-in-the-middle" problem. This issue can lead to degraded performance, especially when dealing with long input contexts. Furu Wei, Partner Research Manager at Microsoft Research, explained that LLMs can be easily distracted by irrelevant context, resulting in over-attention to non-essential information
1
.The Diff Transformer introduces a novel "differential attention" mechanism that effectively cancels out noise while amplifying attention to relevant parts of the input. This approach involves:
This process is analogous to noise-canceling headphones or differential amplifiers in electrical engineering, where common-mode noise is eliminated by comparing two signals
1
.Related Stories
Experiments have shown that the Diff Transformer consistently outperforms classic Transformer architectures across various benchmarks. Key improvements include:
2
Notably, the Diff Transformer achieves comparable performance to classic Transformers while requiring only about 65% of the model size or training tokens
1
.The introduction of the Diff Transformer has significant implications for the field of AI:
Improved long-context comprehension: The architecture can effectively handle contexts up to 64,000 tokens, addressing a major limitation of current LLMs
2
.Enhanced efficiency: With 35-40% fewer parameters, the Diff Transformer offers a more resource-efficient alternative to traditional models
2
.Better quantization support: The architecture maintains performance with 6-bit quantization, while traditional Transformers see significant degradation
2
.As the AI community continues to explore ways to improve LLM performance, the Diff Transformer represents a promising step towards more accurate and efficient language models. Its ability to reduce noise and enhance focus on relevant information could lead to significant advancements in various AI applications, from summarization to question-answering systems.
Summarized by
Navi
28 Feb 2025•Technology

19 Jan 2025•Technology

10 Jan 2025•Technology

1
Science and Research

2
Technology
3
Technology