Reviewer 1
Methods & technical-correctness reviewer
Summary
The paper proposes differential attention, a drop-in replacement for softmax attention in decoder-only LMs. Each head splits its query/key projections into two groups and computes two softmax maps. Their weighted difference (A1 − λA2) is applied to a shared 2d-dimensional value projection. λ is a learnable scalar, re-parameterized through exponentials of learned vectors plus a layer-dependent initialization. Each head's output passes through a headwise RMSNorm with a fixed (1 − λinit) scale, and the head count is halved to match parameters and FLOPs. The motivation is an analogy to differential amplifiers: the subtraction is meant to cancel 'attention noise' assigned to irrelevant context. The empirical study is broad: - A 3B model trained on 1T tokens, plus a controlled 3B Transformer-vs-DIFF comparison at 350B tokens. - Scaling curves over model size (830M–13B, 10B tokens) and training tokens. - 64K length extension; multi-needle retrieval; attention-mass analysis. - Many-shot ICL and permutation robustness; GPT-4o-judged contextual hallucination. - Activation-outlier statistics and attention-logit quantization; ablations at 1.4B. - An appendix on math reasoning, and an appendix arguing that gradient magnitudes match standard attention so Transformer hyperparameters can be reused. The headline claim is that DIFF Transformer needs about 65% of the parameters or tokens to match Transformer loss, with sizeable gains on retrieval, ICL and hallucination benchmarks.
Strengths
- The method is simple and cheap to adopt. It changes only the attention operator, keeps the macro layout, can be implemented with existing FlashAttention kernels (Appendix A), and costs 5–12% throughput (Table 7). Parameter and FLOP matching via halving the head count is explicitly designed in, which makes the comparisons more meaningful than many architecture papers.
- There is a controlled, same-recipe Transformer baseline that is reused across most downstream analyses: the 350B-token 3B models of Appendix B and their 64K extensions. This makes the long-context, retrieval, ICL and hallucination comparisons apples-to-apples in data and recipe, rather than relying only on external checkpoints.
- The gains are consistent in direction across many orthogonal axes, and several are large: - Multi-needle retrieval at 4K: N=6,R=2 accuracy of 0.85 vs 0.55 (Table 2). - Many-shot ICL: +5.2 to +21.6 points (Figure 6). - Order-permutation spread on TREC: 4.0 vs 19.0 (Figure 7a). - Attention-logit outliers: top-1 of 38.8 vs 318.0 (Table 5). The breadth of agreement makes it unlikely the improvement is a single-benchmark artifact.
- The ablation table (Table 6) includes useful non-trivial controls. It compares a Transformer with halved heads and doubled head dimension, with and without GroupNorm, against DIFF. It also reports Zoology-style AR-Hit vs Others slices, which links the gain at least partly to in-context recall.
- The paper tries to explain hyperparameter transfer via a gradient-magnitude argument (Appendix G). It also states its initialization choices (λinit schedule, fixed (1−λinit) post-norm scale) explicitly, which aids reproduction.
Weaknesses
- Recommendation: marginal accept. The empirical gains look real and the operator is useful. However, my key concern is that the causal story — subtraction cancels 'common-mode' attention noise — is not established by the evidence, and the ablations point to a different explanation. In Table 6, removing GroupNorm makes DIFF clearly worse than the plain Transformer (3.122 vs 3.087). Adding GroupNorm to a Transformer barely helps (3.086). So the improvement comes from the interaction of the signed two-map combination with headwise normalization, not from the subtraction per se. The conclusion that gains come from 'the differential attention mechanism, instead of configurations or normalization modules' does not follow. The decisive missing controls use DIFF's exact head layout (two 128-d QK maps, shared 2d value, headwise RMSNorm): - λ fixed to 0. - λ constrained to be negative (i.e., a sum of two softmax maps). - Two maps with independent rather than shared values. Only with these can the benefit be attributed to subtraction.
- The differential-amplifier analogy carries an unstated assumption: that A1 and A2 share a common-mode noise component that subtraction removes. Q2 and K2 are independent learned projections, so nothing forces A2 to model 'noise', and the paper never inspects what A2 attends to or how correlated A1 and A2 are. The learned λ values per layer are also not reported, nor is how often A1 − λA2 has negative entries. Without the per-head normalization, A1V − λA2V is expressible by standard multi-head attention with tied value and output projections and a negative mixing coefficient. The operator is therefore closely related to learned cross-head mixing, e.g., Talking-Heads Attention (Shazeer et al., 2020), and to attention variants that permit near-zero or sparse allocation, e.g., entmax/sparsemax attention. Neither is discussed or compared. Such analyses and baselines are needed to support the 'noise cancellation' and 'promotes sparse attention' claims; no sparsity measure is reported.
- The Appendix G 'proof' of gradient-flow similarity is heuristic and its conclusion is overstated. - It asserts Θ-equivalence of A, A1, A2 and A1 − λA2 'with the property of softmax'. But A1 − λA2 is a signed difference that can be arbitrarily close to zero entrywise or become negative, so its magnitude is not generally Θ(A). - The GroupNorm Jacobian argument holds only 'at the early training stage'. It implicitly assumes A1 ≈ A2 at initialization; this assumption is not stated. - Matching gradient magnitudes up to constant factors does not imply similar optimization dynamics or 'no risk of training instability'. Indeed, the paper itself reports that removing GroupNorm causes instability. The claim should be restated as an initialization-time heuristic, or supported by measured gradient/update norms over training.
- The attention-mass analysis (Table 3 and Figure 1) is not well-defined for a signed operator. DIFF rows sum to roughly 1 − λ and contain negative entries, yet the paper reports 'normalized attention scores' without saying how they are normalized. It also does not say whether negative mass is clipped, signed or absolute, or which layers and heads are averaged. If signed values are summed over the context, positive and negative entries can cancel. Near-zero 'attention noise' (0.01–0.02) would then be partly an artifact of aggregation rather than evidence of low attention to distractors. The exact metric and the absolute-value variant are needed.
- The λ re-parameterization is unmotivated, and its ablation is narrow. 'Synchronize the learning dynamics' is never defined. The difference of two exponentials of dot products plus λinit is not justified against simpler options (a free scalar, a sigmoid-bounded λ, a per-head λ). λ is shared across heads, and nothing constrains it to (0,1), so the amplifier interpretation can break if λ drifts above 1 or below 0. Only the λinit schedule is ablated (Table 6). Ablating the parameterization itself and per-head vs shared λ, and plotting λ trajectories, would clarify which design elements matter.
- The scaling evidence behind the headline '~65% of parameters/tokens' claim is thin, and the extrapolation is fragile. - Model-size curves use a single run per size. - All sizes are trained for only 10B tokens, which is severely under-trained for 6.8B–13B models. - Hyperparameters are copied from Transformer. - The 62.2%/59.5% numbers are read off power-law fits through five points, where DIFF's marginal gap may change at compute-optimal budgets. In the fully controlled 350B-token comparison (Table 8), the zero-shot average gap is 0.8 points, and BoolQ is worse for DIFF. Table 1's larger margin compares against external models with different data and tokenizers. Seed variance and at least one compute-optimal point would make the efficiency claim credible.
- Several downstream claims rest on small samples with no uncertainty estimates. Hallucination accuracy uses 100 samples per dataset with a GPT-4o judge on base (non-instruction-tuned) models. ICL robustness uses 10–30 permutations of a single model pair. The math appendix selects 'the best checkpoint for each' model, apparently on the evaluation benchmarks. At n=100, differences such as 0.29 vs 0.36 on 2WikiMQA are within roughly ±0.09 binomial noise. Confidence intervals, and checkpoint selection on held-out data, are needed.
- The outlier/quantization claim is narrower than stated, and it omits closely related baselines. - Only attention logits are quantized, with dynamic absmax, and only HellaSwag is shown. - The hidden-state outliers remain large (1688 vs 3608). - Statistics come from 0.4M tokens. - No comparison to methods designed specifically to remove attention-induced outliers, such as clipped softmax/gated attention (Bondarenko et al., cited) or attention sinks. These gaps prevent the conclusion that DIFF 'natively' solves the outlier problem.
Questions
- Can you report the following, at 1.4B with DIFF's exact head layout and headwise RMSNorm? - λ ≡ 0. - λ forced negative (sum of maps). - Two maps with separate value projections. If the subtraction variant clearly wins, my concern about the causal attribution would be largely resolved and I would raise my score.
- How exactly are DIFF attention scores normalized in Table 3 and Figure 1, given that rows sum to roughly 1 − λ and may be negative? Please also report: the absolute-value version, the fraction of negative entries, the learned λ per layer, and correlation statistics between A1 and A2 on distractor tokens. Evidence that A2 actually tracks shared distractor mass would directly support the common-mode-noise interpretation.
- Under what assumptions does the Θ-equivalence A ≍ A1 ≍ A2 ≍ A1 − λA2 in Appendix G hold, and does it persist beyond initialization? Could you plot per-parameter-group gradient and update norms during training for both models? This would show whether the 'similar gradient flow' claim is empirical fact or only an initialization heuristic.
- Does Naderi et al. (2024) analyze this specific operator (a difference of two softmax maps)? Or is the rank-collapse statement an extrapolation from their spectral analysis? Please clarify, or soften the claim.
- How much seed-to-seed variance is there in the 1.4B validation losses of Table 6? The differences among DIFF variants are about 0.003–0.004, while the Transformer gap is about 0.025. Is the robustness-to-λinit conclusion meaningful at this resolution?
- How does DIFF compare against other attention modifications that allow heads to down-weight or abstain from irrelevant tokens? Candidates include Talking-Heads Attention, entmax-based adaptively sparse attention, and gated/clipped softmax. Even one such baseline at the 1.4B ablation scale would help place the contribution relative to existing operators.
Flag For Ethics Review
No ethics review needed.