Understanding Differential Transformer Unchains Pretrained Self-Attentions
Chaerin Kong, Jiho Jang, Nojun Kwak
TL;DR
This work analyzes Differential Transformer, revealing that its success stems from enhanced expressivity via negative attention, reduced head redundancy, and improved learning dynamics. Based on these insights, it introduces Dex, a lightweight architectural extension that reuses pretrained softmax attention scores and applies a differential operation on the output value matrix, with selective head adaptation and lambda annealing to preserve pretrained knowledge. Dex can be integrated into multiple pretrained LLM families with minimal data (<1B tokens) and negligible test-time overhead, yielding significant gains across language modeling, information retrieval, in-context learning, and instruction tuning. The results demonstrate Dex’s practical potential for efficiently upgrading existing pretrained models with the benefits of differential attention while maintaining stability and scalability.
Abstract
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 attention achieves its empirical benefits remains poorly understood. Moreover, Differential Transformer architecture demands large-scale training from scratch, hindering utilization of open pretrained weights. In this work, we conduct an in-depth investigation of Differential Transformer, uncovering three key factors behind its success: (1) enhanced expressivity via negative attention, (2) reduced redundancy among attention heads, and (3) improved learning dynamics. Based on these findings, we propose DEX, a novel method to efficiently integrate the advantages of differential attention into pretrained language models. By reusing the softmax attention scores and adding a lightweight differential operation on the output value matrix, DEX effectively incorporates the key advantages of differential attention while remaining lightweight in both training and inference. Evaluations confirm that DEX substantially improves the pretrained LLMs across diverse benchmarks, achieving significant performance gains with minimal adaptation data (< 0.01%).
