Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
110 tokens/sec
GPT-4o
56 tokens/sec
Gemini 2.5 Pro Pro
44 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

A Neural ODE Interpretation of Transformer Layers (2212.06011v1)

Published 12 Dec 2022 in cs.LG and cs.AI

Abstract: Transformer layers, which use an alternating pattern of multi-head attention and multi-layer perceptron (MLP) layers, provide an effective tool for a variety of machine learning problems. As the transformer layers use residual connections to avoid the problem of vanishing gradients, they can be viewed as the numerical integration of a differential equation. In this extended abstract, we build upon this connection and propose a modification of the internal architecture of a transformer layer. The proposed model places the multi-head attention sublayer and the MLP sublayer parallel to each other. Our experiments show that this simple modification improves the performance of transformer networks in multiple tasks. Moreover, for the image classification task, we show that using neural ODE solvers with a sophisticated integration scheme further improves performance.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (4)
  1. Yaofeng Desmond Zhong (12 papers)
  2. Tongtao Zhang (6 papers)
  3. Amit Chakraborty (54 papers)
  4. Biswadip Dey (32 papers)
Citations (7)

Summary

We haven't generated a summary for this paper yet.