September 29, 2025 to October 1, 2025
Alpen-Adria-Universität Klagenfurt
Europe/Vienna timezone

Multi-Headed Transformer Architectures as Time-dependent Gradient Flows

Sep 29, 2025, 2:30 PM
30m
N.1.43

N.1.43

Optimization and Machine Learning T1 - Optimization and Machine Learning (OML)

Speaker

Alex Massucco (University of Cambridge)

Description

In recent years, transformer architectures have revolutionized the field of language processing, opening the door to previously unforeseen possibilities. However, from a theoretical point of view, the mathematical models proposed in the literature often lack a direct contact with the actual architectures and depend on strong simplifying assumptions. In this paper, we reduce this gap by modeling the data flow in multi-headed transformer architectures as a time-dependent gradient flow for a suitable interaction energy capturing the design of the attention mechanism. The explicit dependence on time allows us to consider different weights for each head and for each layer, without imposing constraints on the initialization method. Furthermore, we analyze the stability of the gradient flows considering perturbations of the weights. Specifically, we prove the $\Gamma$-convergence of the perturbed interaction energy to the unperturbed one, leading to the convergence of the corresponding gradient flows. Finally, we study the robustness of the proposed models with respect to noisy inputs, establishing a continuous dependency of the gradient flows on the initial data.

Authors

Alex Massucco (University of Cambridge) Prof. Carola Bibiane Schönlieb (University of Cambridge) Prof. Christoph Brune (University of Twente) Leonardo Del Grande (University of Twente) Marcello Carioni (University of Twente)

Presentation materials

There are no materials yet.