atlas

Research map / Architectures and efficiency / Attention and transformers

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

ICLR 2024 · Architectures and efficiency › Attention and transformers · approach: Transformer expressivity and learnability · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes JoMA, a framework that integrates out self-attention to derive joint training dynamics of MLP and attention, showing attention first sparsifies then densifies under nonlinear activations and explaining hierarchical token composition.

Problem

Understanding how the basic Transformer block (self-attention plus MLP) learns, especially in multilayer Transformers, where existing theory is limited to 1-layer models, fixed MLPs, linear activations, or unrealistic assumptions such as no residual connections.

Approach

Integrate out the self-attention logits so that attention is expressed as a closed-form function of the lower MLP weights (first integral/invariant), yielding joint dynamics of MLP and attention with residual connections and nonlinear activations; combined with a hierarchical latent tree model, this explains how multilayer Transformers learn token hierarchies.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use nonlinear MLP activation with self-attention instead of linear MLP activationJoMA dynamics · Transformer training dynamicsattention entropyMixed
Increase generative-model complexity (larger Nch and latent counts)3-layer Transformer trained on HBLT data · HBLT latent-to-hidden-node alignmentNCorrHurt

Surprising findings

Limitations

Experimental setup

Datasets: Wikitext2 Wikitext103 synthetic HBLT data

Benchmarks: Wikitext2 Wikitext103

Metrics: attention entropy/sparsity stable rank normalized correlation between latents and hidden nodes validation loss

Baselines: Scan&Snap

Builds on: Scan&Snap linear attention dynamics multi-layer linear network dynamics

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy