Pith. sign in

REVIEW 1 cited by

JoMA: Demystifying Multilayer Transformers via JOint Dynamics of MLP and Attention

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2310.00535 v3 pith:QCCNOBRY submitted 2023-10-01 cs.LG cs.AIcs.CL

classification cs.LGcs.AIcs.CL
keywords attentionjomatokensdynamicsmultilayertransformersbecomesjoint
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

We propose Joint MLP/Attention (JoMA) dynamics, a novel mathematical framework to understand the training procedure of multilayer Transformer architectures. This is achieved by integrating out the self-attention layer in Transformers, producing a modified dynamics of MLP layers only. JoMA removes unrealistic assumptions in previous analysis (e.g., lack of residual connection) and predicts that the attention first becomes sparse (to learn salient tokens), then dense (to learn less salient tokens) in the presence of nonlinear activations, while in the linear case, it is consistent with existing works that show attention becomes sparse over time. We leverage JoMA to qualitatively explains how tokens are combined to form hierarchies in multilayer Transformers, when the input tokens are generated by a latent hierarchical generative model. Experiments on models trained from real-world dataset (Wikitext2/Wikitext103) and various pre-trained models (OPT, Pythia) verify our theoretical findings. Code can be found in https://github.com/facebookresearch/luckmatters/tree/yuandong3.

Discussion (0). Sign in to comment.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Taming Transformer Without Using Learning Rate Warmup

    cs.LG 2025-05 conditional novelty 5.0 of 10

    A spectral-norm ratio rule on the optimizer shrinks per-layer learning rates when weight updates are too large, letting Transformers train without warmup.

Pith tools