English

Contractivity of neural ODEs: an eigenvalue optimization problem

Numerical Analysis 2024-12-20 v3 Numerical Analysis Optimization and Control

Abstract

We propose a novel methodology to solve a key eigenvalue optimization problem which arises in the contractivity analysis of neural ODEs. When looking at contractivity properties of a one layer weight-tied neural ODE u˙(t)=σ(Au(t)+b)\dot{u}(t)=\sigma(Au(t)+b) (with u,bRnu,b \in {\mathbb R}^n, AA is a given n×nn \times n matrix, σ:RR\sigma : {\mathbb R} \to {\mathbb R} denotes an activation function and for a vector zRnz \in {\mathbb R}^n, σ(z)Rn\sigma(z) \in {\mathbb R}^n has to be interpreted entry-wise), we are led to study the logarithmic norm of a set of products of type DAD A, where DD is a diagonal matrix such that diag(D)σ(Rn){\mathrm{diag}}(D) \in \sigma'({\mathbb R}^n). Specifically, given a real number cc (usually c=0c=0), the problem consists in finding the largest positive interval I[0,)\text{I}\subseteq \mathbb [0,\infty) such that the logarithmic norm μ(DA)c\mu(DA) \le c for all diagonal matrices DD with DiiID_{ii}\in \text{I}. We propose a two-level nested methodology: an inner level where, for a given I\text{I}, we compute an optimizer D(I)D^\star(\text{I}) by a gradient system approach, and an outer level where we tune I\text{I} so that the value cc is reached by μ(D(I)A)\mu(D^\star(\text{I})A). We extend the proposed two-level approach to the general multilayer, and possibly time-dependent, case u˙(t)=σ(Ak(t)σ(A1(t)u(t)+b1(t))+bk(t))\dot{u}(t) = \sigma( A_k(t) \ldots \sigma ( A_{1}(t) u(t) + b_{1}(t) ) \ldots + b_{k}(t) ) and we propose several numerical examples to illustrate its behaviour, including its stabilizing performance on a one-layer neural ODE applied to the classification of the MNIST handwritten digits dataset.

Keywords

Cite

@article{arxiv.2402.13092,
  title  = {Contractivity of neural ODEs: an eigenvalue optimization problem},
  author = {Nicola Guglielmi and Arturo De Marinis and Anton Savostianov and Francesco Tudisco},
  journal= {arXiv preprint arXiv:2402.13092},
  year   = {2024}
}

Comments

26 pages, 6 figures, 4 tables

R2 v1 2026-06-28T14:54:37.816Z