mlsanityData to 14 Oct 2026

Differential Transformer

arXiv 2410.05258 ↗First posted 7 Oct 2024cs.CL cs.LGcited by 13

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  3. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  4. 2020Scaling Laws for Neural Language Modelscited by 6,586
  5. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  6. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  7. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
  8. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  9. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  10. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
  11. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  12. 2020GLU Variants Improve Transformercited by 1,804
30 more
  1. 2018Group Normalizationcited by 1,524
  2. 2019Root Mean Square Layer Normalizationcited by 1,480
  3. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
  4. 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,317
  5. 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,292
  6. 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,282
  7. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
  8. 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 878
  9. 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 519
  10. 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 486
  11. 2023OPERA: Alleviating Hallucination in Multi-Modal Large Language Models via Over-Trust Penalty and Retrospection-Allocationcited by 478
  12. 2020Efficient Intent Detection with Dual Sentence Encoderscited by 433
  13. 2019Multi-News: a Large-Scale Multi-Document Summarization Dataset and Abstractive Hierarchical Modelcited by 431
  14. 2019An Evaluation Dataset for Intent Classification and Out-of-Scope Predictioncited by 386
  15. 2022Dynamic Prompt Learning via Policy Gradient for Semi-structured Mathematical Reasoningcited by 350
  16. 2021A Diverse Corpus for Evaluating and Developing English Math Word Problem Solverscited by 318
  17. 2024Massive Activations in Large Language Modelscited by 294
  18. 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 204
  19. 2023Efficient Large Language Models: A Surveycited by 186
  20. 2024Data Engineering for Scaling Language Models to 128K Contextcited by 186
  21. 2017Searching for Activation Functionscited by 169
  22. 2023Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothingcited by 151
  23. 2024MathScale: Scaling Instruction Tuning for Mathematical Reasoningcited by 144
  24. 2024Lookback Lens: Detecting and Mitigating Contextual Hallucinations in Large Language Models Using Only Attention Mapscited by 142
  25. 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 128
  26. 2024Synthetic Data (Almost) from Scratch: Generalized Instruction Tuning for Language Modelscited by 99
  27. 2022The Devil in Linear Transformercited by 98
  28. 2022Parallel Context Windows for Large Language Modelscited by 81
  29. 2024Lynx: An Open Source Hallucination Evaluation Modelcited by 57
  30. 2023Evaluating and Improving Tool-Augmented Computation-Intensive Math Reasoningcited by 49

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 3; 2025: 4; 2026: 6.

13 papers.

Sort:

By area: