Differential Transformer
Not on the map. Why?
Abstract (arXiv)
Transformer tends to overallocate attention to irrelevant context. In this work, we introduce Diff Transformer, which amplifies attention to the relevant context while canceling noise. Specifically, the differential attention mechanism calculates attention scores as the difference between two separate softmax attention maps. The subtraction cancels noise, promoting the emergence of sparse attention patterns. Experimental results on language modeling show that Diff Transformer outperforms Transformer in various settings of scaling up model size and training tokens. More intriguingly, it offers notable advantages in practical applications, such as long-context modeling, key information retrieval, hallucination mitigation, in-context learning, and reduction of activation outliers. By being less distracted by irrelevant context, Diff Transformer can mitigate hallucination in question answering and text summarization. For in-context learning, Diff Transformer not only enhances accuracy but is also more robust to order permutation, which was considered as a chronic robustness issue. The results position Diff Transformer as a highly effective and promising architecture to advance large language models.
Key facts. Cited by 13 papers in the map (data through 14 Oct 2026). Builds on 42 of its 58 references that are in the map. First posted on arXiv 7 Oct 2024.
Builds on
42 of 58 references.
References · 42
- 2017Attention Is All You Needcited by 60,361
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2020GLU Variants Improve Transformercited by 1,804
30 more
- 2018Group Normalizationcited by 1,524
- 2019Root Mean Square Layer Normalizationcited by 1,480
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
- 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,317
- 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,292
- 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,282
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
- 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 878
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 519
- 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 486
- 2023OPERA: Alleviating Hallucination in Multi-Modal Large Language Models via Over-Trust Penalty and Retrospection-Allocationcited by 478
- 2020Efficient Intent Detection with Dual Sentence Encoderscited by 433
- 2019Multi-News: a Large-Scale Multi-Document Summarization Dataset and Abstractive Hierarchical Modelcited by 431
- 2019An Evaluation Dataset for Intent Classification and Out-of-Scope Predictioncited by 386
- 2022Dynamic Prompt Learning via Policy Gradient for Semi-structured Mathematical Reasoningcited by 350
- 2021A Diverse Corpus for Evaluating and Developing English Math Word Problem Solverscited by 318
- 2024Massive Activations in Large Language Modelscited by 294
- 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 204
- 2023Efficient Large Language Models: A Surveycited by 186
- 2024Data Engineering for Scaling Language Models to 128K Contextcited by 186
- 2017Searching for Activation Functionscited by 169
- 2023Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothingcited by 151
- 2024MathScale: Scaling Instruction Tuning for Mathematical Reasoningcited by 144
- 2024Lookback Lens: Detecting and Mitigating Contextual Hallucinations in Large Language Models Using Only Attention Mapscited by 142
- 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 128
- 2024Synthetic Data (Almost) from Scratch: Generalized Instruction Tuning for Language Modelscited by 99
- 2022The Devil in Linear Transformercited by 98
- 2022Parallel Context Windows for Large Language Modelscited by 81
- 2024Lynx: An Open Source Hallucination Evaluation Modelcited by 57
- 2023Evaluating and Improving Tool-Augmented Computation-Intensive Math Reasoningcited by 49
Built on by
Citing papers per year: 2024: 3; 2025: 4; 2026: 6.
13 papers.
Sort:
By area:
- 2025Position: Episodic Memory is the Missing Piece for Long-Term LLM Agentscited by 36
- 2024Large Language Models Can Self-Improve in Long-context Reasoningcited by 29
- 2025Decoder-Hybrid-Decoder Architecture for Efficient Reasoning with Long Generationcited by 11
- 2025Learning to Reason from Feedback at Test-Timecited by 10
- 2024KV Shifting Attention Enhances Language Modelingcited by 8
- 2024STAR: Synthesis of Tailored Architecturescited by 7
- 2025Multimodal Language Models with Modality-Specific Experts for Financial Forecasting from Interleaved Sequences of Text and Time Seriescited by 2
- 2026The General Theory of Localization Methodscited by 0
- 2026ROVER: Routing Object-Centric Visual Evidence for Grounded Multi-Image Reasoningcited by 0
- 2026Building The Ph(ysical)AI Layer Of Machine Intelligencecited by 0
- 2026Motif 3: Technical Reportcited by 0
- 2026Phase Space Attention:A Hairer Lift Circumvents the Single-Layer Induction Obstructioncited by 0
- 2026The Evolution of Attention in Large Language Models: Mechanisms, Trade-offs, and Emerging Trends30 Sep 2026
- 2026Phase Space Attention:A Hairer Lift Circumvents the Single-Layer Induction Obstruction26 Sep 2026
- 2026Motif 3: Technical Report10 Aug 2026
- 2026Building The Ph(ysical)AI Layer Of Machine Intelligence2 Jun 2026
- 2026ROVER: Routing Object-Centric Visual Evidence for Grounded Multi-Image Reasoning27 May 2026
- 2026The General Theory of Localization Methods20 May 2026
- 2025Multimodal Language Models with Modality-Specific Experts for Financial Forecasting from Interleaved Sequences of Text and Time Series23 Sep 2025
- 2025Decoder-Hybrid-Decoder Architecture for Efficient Reasoning with Long Generation9 Jul 2025
- 2025Learning to Reason from Feedback at Test-Time16 Feb 2025
- 2025Position: Episodic Memory is the Missing Piece for Long-Term LLM Agents10 Feb 2025
- 2024KV Shifting Attention Enhances Language Modeling29 Nov 2024
- 2024STAR: Synthesis of Tailored Architectures26 Nov 2024
1 more
- 2024Large Language Models Can Self-Improve in Long-context Reasoningcited by 29
- 2025Decoder-Hybrid-Decoder Architecture for Efficient Reasoning with Long Generationcited by 11
- 2025Learning to Reason from Feedback at Test-Timecited by 10
- 2026ROVER: Routing Object-Centric Visual Evidence for Grounded Multi-Image Reasoningcited by 0
- 2026ROVER: Routing Object-Centric Visual Evidence for Grounded Multi-Image Reasoning27 May 2026
- 2025Decoder-Hybrid-Decoder Architecture for Efficient Reasoning with Long Generation9 Jul 2025
- 2025Learning to Reason from Feedback at Test-Time16 Feb 2025
- 2024Large Language Models Can Self-Improve in Long-context Reasoning12 Nov 2024
- 2026Motif 3: Technical Reportcited by 0
- 2026Motif 3: Technical Report10 Aug 2026
- 2024KV Shifting Attention Enhances Language Modelingcited by 8
- 2024STAR: Synthesis of Tailored Architecturescited by 7
- 2026The General Theory of Localization Methodscited by 0
- 2026Building The Ph(ysical)AI Layer Of Machine Intelligencecited by 0
- 2026Phase Space Attention:A Hairer Lift Circumvents the Single-Layer Induction Obstructioncited by 0
- 2026The Evolution of Attention in Large Language Models: Mechanisms, Trade-offs, and Emerging Trendscited by 0
- 2026The Evolution of Attention in Large Language Models: Mechanisms, Trade-offs, and Emerging Trends30 Sep 2026
- 2026Phase Space Attention:A Hairer Lift Circumvents the Single-Layer Induction Obstruction26 Sep 2026
- 2026Building The Ph(ysical)AI Layer Of Machine Intelligence2 Jun 2026
- 2026The General Theory of Localization Methods20 May 2026
- 2024KV Shifting Attention Enhances Language Modeling29 Nov 2024
- 2024STAR: Synthesis of Tailored Architectures26 Nov 2024