paper-with-me

Papers

Differential Transformer

2024-10-07 · Tianzhu Ye, Li Dong, Yuqing Xia, Yutao Sun, Yi Zhu, Gao Huang, Furu Wei

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.

📄 PDF Abstract BibTeX arXiv:2410.05258

Code (2)

microsoft/unilm/blob/master/Diff-Transformer/ 공식 구현 pytorch
hammoudhasan/diffclip pytorch

Tasks

HallucinationIn-Context LearningInformation RetrievalLanguage ModelingLanguage ModellingQuestion AnsweringText Summarization

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Adam 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Residual Connection 설명 없음
Position-Wise Feed-Forward Layer 설명 없음
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…

Similar Papers 제목 키워드 기반

Understanding Differential Transformer Unchains Pretrained Self-Attentions

2025-05-22 · Chaerin Kong, Jiho Jang, Nojun Kwak

Differential Transformer has recently gained significant attention for its impressive empirical performance, often attributed to its ability to perform noise canceled attention. However, precisely how differential attent…

Delving into Differentially Private Transformer

2024-05-28 · Youlong Ding, Xueyang Wu, Yining Meng, Yonggang Luo 외

Deep learning with differential privacy (DP) has garnered significant attention over the past years, leading to the development of numerous methods aimed at enhancing model accuracy and training efficiency. This paper de…

Differential Gated Self-Attention

2025-05-29 · Elpiniki Maria Lygizou, Mónika Farsang, Radu Grosu

Transformers excel across a large variety of tasks but remain susceptible to corrupted inputs, since standard self-attention treats all query-key interactions uniformly. Inspired by lateral inhibition in biological neura…

DP-TBART: A Transformer-based Autoregressive Model for Differentially Private Tabular Data Generation

2023-07-19 · Rodrigo Castellon, Achintya Gopal, Brian Bloniarz, David Rosenberg

The generation of synthetic tabular data that preserves differential privacy is a problem of growing importance. While traditional marginal-based methods have achieved impressive results, recent work has shown that deep …

Deep LearningTabular Data Generation

Exploring the Benefits of Differentially Private Pre-training and Parameter-Efficient Fine-tuning for Table Transformers

2023-09-12 · Xilong Wang, Chia-Mu Yu, Pin-Yu Chen

For machine learning with tabular data, Table Transformer (TabTransformer) is a state-of-the-art neural network model, while Differential Privacy (DP) is an essential component to ensure data privacy. In this paper, we e…

parameter-efficient fine-tuningTransfer Learning