Reproduce “Understanding and Improving Transformer From a Multi-Particle Dynamic System Point of View” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Yiping Lu, Zhuohan Li, Di He, Zhiqing Sun, Bin Dong, Tao Qin, Liwei Wang, Tie-Yan Liu
The authors propose Macaron, a Transformer layer that places half of a position-wise feed-forward network before and after full-step self-attention. They motivate this ordering through an ODE interpretation in which attention models interactions and the feed-forward network models individual updates. On WMT14 English-to-German, parameter-matched Macaron base scores 28.9 BLEU versus 27.3, a 1.6-point gain; this does not establish the cause of its gains.
Key insights
- Transformer layers can be theoretically understood as numerically solving a first-order convection-diffusion equation, where words are particles whose contextual representations evolve over time steps.
- The self-attention mechanism models inter-particle (word) interactions as a diffusion term, while the position-wise FFN processes individual particles independently as a convection term.
- Replacing the Transformer's implicit Lie-Trotter splitting scheme with the higher-order accurate Strang-Marchuk splitting scheme can directly lead to improved neural network architectures with better performance.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.