ConceptioArchivearXiv CS
arXiv CSopen access

Advances in Neural Controlled Differential Equations

Unknown · 2026 · arxiv_cs
arXiv CS · Papers · License: Open Access · 2026
Open Source ↗Direct PDF ↓
machine learning, deep learning, neural networks

Advances in Neural Controlled Differential Equations

Benjamin Walker Balliol College University of Oxford

A thesis submitted for the degree of Doctor of Philosophy November 2025

To Mum and Dad, for everything.

Acknowledgements

Terry, it has been a privilege spending an hour (and often much longer) each week discussing mathematics, machine learning, finance, politics, philosophy, and every other topic we wandered into. Although you “cannot discuss mathematics with someone who doesn’t understand differential geometry,” you certainly did your best with me. I would not be the researcher I am today without you. Mum and Dad, I will never be able to express the gratitude I have for your continuous love, encouragement, and guidance. From Mum spending hours revising with me to Dad patiently reminding me for the hundredth time that there are two solutions to x2 = 4, I owe every step of this journey to you both. Sophie, Naomi, and all of my friends, thank you. From adventures Down Under, to European hiking trips and weekend getaways in London, Selsey, Wales, and Milton Keynes, from late-night board games (and those who had to put up with them) to some truly wonderful Christmas meals. I cannot imagine having done this without your support and friendship. Thank you to my collaborators and colleagues, Lingyi Yang, Nicola Muça Cirone, Cris Salvi, Christian Bayer, Andrew McLeod, Felix Krones, Adam Mahdi, Tiexin Qin, Haoliang Li, Cora Cartis, Kate Zhu, Ammar Naseer, Torben Berndt, Alexandre Bloch, Sam Morley, and Elena Gal. This thesis, and I personally, owe much to the time, effort, and enthusiasm you have so generously given. Thank you also to my examiners, Marc Deisenroth and Stephen Roberts, for your time, care, and thoughtful feedback on this thesis. Finally, Nathalie, the best part of this journey has been sharing it with you. I cannot wait for our next adventure.

iii

There are many human behaviours which unfold over time. It would be folly to try to understand those behaviours without taking into account their temporal nature. —Jeffrey Elman, Finding Structure in Time (1990)

iv

Abstract

Many real-world systems evolve continuously, yet most machine learning models interpret time series as discrete sequences. Continuous-time approaches instead treat time series as samples from an underlying input path, a formulation that naturally accommodates irregularly sampled or oversampled data. Among these, Neural Controlled Differential Equations (NCDEs) are a maximally expressive class of models that parametrise a vector field using a neural network and evolve their hidden state by solving a dynamical system driven by the input path. NCDEs typically use a non-linear vector field, so their expressive power and continuous-time flexibility come at the cost of a forward pass that is both computationally expensive and inherently sequential, limiting their scalability and practical applicability. This thesis advances the training and scalability of NCDEs through three complementary contributions. First, building on neural rough differential equations, Log-NCDEs apply the Log-ODE method to efficiently approximate an NCDE’s solution during training, improving both computational speed and empirical performance. Second, Linear NCDEs replace the non-linear vector field with a linear one, enabling closed-form solutions and parallel-in-time computation without sacrificing theoretical expressivity. Third, Structured Linear NCDEs use structured linear vector fields to further enhance efficiency while maintaining theoretical expressiveness and empirical performance. Collectively, these methods reduce the time per training step for an NCDE by up to three orders of magnitude while achieving state-of-the-art performance across diverse time series benchmarks.

v

Contents 1 Introduction 1.1

1.2

1

Paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1

1.1.1

The PhysioNet Challenge 2022 . . . . . . . . . . . . . . . . . .

1

1.1.2

From Paths to Signatures . . . . . . . . . . . . . . . . . . . .

2

1.1.3

Neural Controlled Differential Equations . . . . . . . . . . . .

4

Thesis Outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4

1.2.1

Contributions . . . . . . . . . . . . . . . . . . . . . . . . . . .

4

1.2.2

Organisation

6

. . . . . . . . . . . . . . . . . . . . . . . . . . .

2 Controlled Differential Equations

9

2.1

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

9

2.2

The Tensor Algebra . . . . . . . . . . . . . . . . . . . . . . . . . . . .

12

2.2.1

Tensor Product Space . . . . . . . . . . . . . . . . . . . . . .

12

2.2.2

Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

13

2.2.3

The Tensor Algebra and l (Wd ) . . . . . . . . . . . . . . . . .

16

The Signature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

16

2.3.1

Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

16

2.3.2

Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

19

2.3.3

The Log-Signature . . . . . . . . . . . . . . . . . . . . . . . .

25

Controlled Differential Equations . . . . . . . . . . . . . . . . . . . .

28

2.4.1

Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

29

2.4.2

Existence and Uniqueness . . . . . . . . . . . . . . . . . . . .

30

2.4.3

Solutions of Linear CDEs . . . . . . . . . . . . . . . . . . . .

30

The Log-ODE Method . . . . . . . . . . . . . . . . . . . . . . . . . .

34

2.5.1

The Free Lie Algebra . . . . . . . . . . . . . . . . . . . . . . .

34

2.5.2

The Log-ODE Approximation . . . . . . . . . . . . . . . . . .

36

Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

39

2.3

2.4

2.5

2.6

2

vi

3 Lip(γ) Functions

40

3.1

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

40

3.2

Differentiable Functions . . . . . . . . . . . . . . . . . . . . . . . . .

42

3.2.1

Smooth Vector Fields . . . . . . . . . . . . . . . . . . . . . . .

42

3.2.2

C k Vector Fields . . . . . . . . . . . . . . . . . . . . . . . . .

44

3.2.3 3.3

3.4

3.5

. . . . . . . . . . . . . . . . . . . . . . . .

47

Lip(γ) Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

48

3.3.1

Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

48

3.3.2

Comparison with Cbk,α

. . . . . . . . . . . . . . . . . . . . . .

50

3.3.3

Lie Bracket . . . . . . . . . . . . . . . . . . . . . . . . . . . .

53

3.3.4

The Extension Theorem . . . . . . . . . . . . . . . . . . . . .

58

Composition of Lip(γ) Functions . . . . . . . . . . . . . . . . . . . .

59

3.4.1

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . .

59

3.4.2

The Case 1 < γ ≤ 2 . . . . . . . . . . . . . . . . . . . . . . . .

60

3.4.3

Optimality . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

64

3.4.4

Future Work . . . . . . . . . . . . . . . . . . . . . . . . . . . .

67

Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

67

C

k,α

Vector Fields

4 Neural Controlled Differential Equations

69

4.1

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

69

4.2

Historical Milestones . . . . . . . . . . . . . . . . . . . . . . . . . . .

70

4.2.1

Classical Approaches . . . . . . . . . . . . . . . . . . . . . . .

70

4.2.2

Discrete Machine Learning Approaches . . . . . . . . . . . . .

73

4.2.3

Neural Differential Equations . . . . . . . . . . . . . . . . . .

74

Neural Controlled Differential Equations . . . . . . . . . . . . . . . .

76

4.3.1

Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

76

4.3.2

Comparison with Alternative Approaches . . . . . . . . . . . .

77

4.3.3

Expressivity . . . . . . . . . . . . . . . . . . . . . . . . . . . .

78

4.3.4

Neural Rough Differential Equations . . . . . . . . . . . . . .

80

Log Neural Controlled Differential Equations . . . . . . . . . . . . . .

81

4.4.1

Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

81

4.4.2

Lip(γ) Neural Networks . . . . . . . . . . . . . . . . . . . . .

81

4.4.3

Constructing the Log-ODE Vector Field . . . . . . . . . . . .

87

4.4.4

Computational Cost . . . . . . . . . . . . . . . . . . . . . . .

89

4.4.5

Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . .

90

4.4.6

Experiments . . . . . . . . . . . . . . . . . . . . . . . . . . . .

91

4.3

4.4

vii

4.4.7 4.5

Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

98

Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103

5 Linear Neural Controlled Differential Equations

105

5.1

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105

5.2

Linear NCDEs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106

5.3

5.4

5.5

5.2.1

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106

5.2.2

Computing the Flow . . . . . . . . . . . . . . . . . . . . . . . 107

5.2.3

Expressivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109

5.2.4

Related Approaches . . . . . . . . . . . . . . . . . . . . . . . . 112

5.2.5

Experiments . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113

Structured State-Space Models

. . . . . . . . . . . . . . . . . . . . . 114

5.3.1

Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114

5.3.2

SSMs are Linear NCDEs . . . . . . . . . . . . . . . . . . . . . 117

5.3.3

Expressivity of SSMs . . . . . . . . . . . . . . . . . . . . . . . 118

5.3.4

Experiments . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125

5.3.5

Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127

5.3.6

Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129

Structured Linear NCDEs . . . . . . . . . . . . . . . . . . . . . . . . 129 5.4.1

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129

5.4.2

Related Work . . . . . . . . . . . . . . . . . . . . . . . . . . . 132

5.4.3

Expressiveness . . . . . . . . . . . . . . . . . . . . . . . . . . . 136

5.4.4

Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138

5.4.5

Implementation Details . . . . . . . . . . . . . . . . . . . . . . 139

5.4.6

Experiments . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141

5.4.7

Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144

5.4.8

Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153

Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155

6 Conclusion

157

6.1

Principal Contributions . . . . . . . . . . . . . . . . . . . . . . . . . . 157

6.2

Future Work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159

viii

Chapter 1 Introduction Paths — simply everywhere. —Terry Lyons, Rough Paths, Signatures and the Modelling of Functions on Streams (2014)

1.1

Paths

1.1.1

The PhysioNet Challenge 2022

In the first year of my PhD, I took part in the George B. Moody PhysioNet Challenge 2022, an international machine learning competition focused on developing opensource solutions to clinically relevant problems in healthcare [Goldberger et al. 2000; Reyna et al. 2023]. The task was to detect heart murmurs from phonocardiogram (PCG) recordings. Each patient contributed up to six recordings, with between 20,000 and 180,000 samples per recording. Our team, PathToMyHeart, placed fourth out of 78 total teams [Walker et al. 2022]. Our approach converted PCGs into log-mel spectrograms and applied a fine-tuned ResNet-50, which had been pre-trained on ImageNet [Deng et al. 2009; He et al. 2016; Walker et al. 2022]. Notably, the five best-performing teams all used spectrograms, and four, including the winner, applied convolutional neural networks to those spectrograms [Xu et al. 2022; Lee et al. 2022; Lu et al. 2022; McDonald et al. 2022]. Despite heart-sound recordings being time series, the dominant approach among the best-performing teams was to change the modality: move from time series to images and apply a convolutional neural network. This is particularly interesting given 1

the concurrent success of Transformer-based sequence models [Bahdanau et al. 2015; Vaswani et al. 2017; Brown et al. 2020]. There are many reasons why a model operating on spectrograms could outperform one operating on the raw signal. One that stands out is the application of discrete sequence models to samples from a continuous process. For example, assuming the signal is band-limited, then a frequency-cropped spectrogram is theoretically independent of the sampling rate r once it exceeds twice the signal’s highest frequency [Nyquist 1928; Shannon 1949]. Therefore, past this sampling rate, the downstream model’s performance is independent of r. In contrast, applying a recurrent neural network (RNN) to the raw signal becomes increasingly unstable as r increases due to exploding or vanishing gradients, while applying a Transformer incurs a computational cost that scales as O(r2 ) [Hochreiter 1991; Hochreiter et al. 1997; Vaswani et al. 2017]. Both challenges stem from treating samples of a continuous signal as a sequence of discrete observations. A more natural approach is to model the data as a path, where the evolution is described continuously.

1.1.2

From Paths to Signatures

This thesis is certainly not the first work to advocate for a path-based approach to time series modelling. Differential equations have been used to model epidemics [Kermack et al. 1927], economics [Solow 1956], and ecology [Lotka 1925; Volterra 1926], to name some of the applications beginning with the letter e. In fact, neural networks were used to parametrise the vector field of a differential equation and trained to output paths before the foundation of modern recurrent neural networks [Pearlmutter 1989; Elman 1990]. The approach to path-based modelling this thesis builds upon can be traced back to Chen [1954], who introduced an infinite collection of iterated integrals of a path, now known as the path’s signature. This object has several important mathematical properties, which are discussed in detail in Section 2.3. One important feature for time series modelling is that, modulo an equivalence relation discussed in Section 2.3.2, the signature determines a path uniquely [Hambly et al. 2010; Boedihardjo et al. 2016]. This uniqueness, together with the natural grading of the signature terms, motivates the truncated signature as a finite feature set that provides a highlevel description of the path over an interval. Early applications of the truncated 2

signature include handwritten character recognition [Graham 2013; Yang et al. 2016] and the extraction of information from financial data streams [Gyurkó et al. 2014]. Another important feature for time series modelling is that any real-valued continuous function defined on a compact set of signatures can be approximated arbitrarily well by a linear function. Combined with uniqueness, this property implies that continuous functions on compact subsets of path space can be approximated by linear functions of the signature. This motivates the use of truncated signature features in linear regression, as formalised by Levin et al. [2016]. A more recent development has been the introduction of the signature kernel, which allows one to operate with the complete signature [Király et al. 2019; Salvi et al. 2021; Salvi 2021; Lemercier et al. 2021b; Lemercier et al. 2021a; Manten et al. 2025]. In healthcare, signature methods have been applied to distinguishing between bipolar disorder and borderline personality disorder [Perez Arribas et al. 2018], diagnosing Alzheimer’s disease [Moore et al. 2019], speech emotion recognition [Wang et al. 2019], early detection of sepsis [Morrill et al. 2019; Cohen et al. 2024], and heart failure prediction from electronic health records [Vauvelle et al. 2022]. In finance, signature methods have been applied to derivative pricing [Perez Arribas 2018], path-dependent stochastic models [Perez Arribas et al. 2020], optimal stopping [Horvath et al. 2023], hedging [Cirone et al. 2025c], and macroeconomic nowcasting [Cohen et al. 2023]. Additionally, signature methods have proven valuable in information theory [Salvi et al. 2023; Shmelev et al. 2024], cybersecurity [Cochrane et al. 2021], and computational neuroscience [Holberg et al. 2024]. The signature has typically been used as a shallow learning tool. A predefined, universal transformation is applied to a path, with the feature extractor being independent of any specific task or dataset. Consequently, learning is confined to a final map from the signature features to the desired output. Even when signatures are incorporated into deep learning architectures, the transformation itself is often kept static, with learnable components occurring before or after the signature computation [Bonnier et al. 2019; Liao et al. 2021; Moreno-Pino et al. 2024]. As will be discussed in Section 2.4.1, the truncated signature is the solution to a certain controlled differential equation (CDE). This perspective naturally raises the question: rather than using the fixed signature as a feature extractor, can we instead learn a task-specific CDE?

3

1.1.3

Neural Controlled Differential Equations

A CDE describes the relationship between the increments of a control path and the evolution of a solution path using a vector field. Neural CDEs (NCDEs) treat time series as observations from a control path, parametrise a CDE’s vector field using a neural network, and use the solution path as a continuously evolving hidden state [Kidger et al. 2020]. An immediate benefit of this path-based approach is detaching the sampling rate of the data from how we evolve the hidden state, which is now controlled by the choice of differential equation solver. This makes NCDEs naturally suited to handling irregularly sampled or oversampled data [Kidger et al. 2020; Walker et al. 2024]. They have been applied to counterfactual prediction in healthcare [Seedat et al. 2022], economic nowcasting [Lim et al. 2024], survival prediction [Zeng et al. 2025], anomaly detection for driving assistance [Lee et al. 2024], and dynamic graphs [Qin et al. 2025; Berndt et al. 2025], with particular success in traffic forecasting [Choi et al. 2022; Choi et al. 2023]. However, despite being aware of this path-based approach, our team did not attempt to train an NCDE to detect heart murmurs from PCG recordings during the PhysioNet Challenge 2022. Each forward pass involves using a differential equation solver to approximate the solution of a non-linear CDE. This process is not only computationally expensive, but also inherently sequential, preventing parallel-in-time training. Furthermore, although some progress has been made on time series with many samples using neural rough differential equations (NRDEs) [Morrill et al. 2021], NCDEs continue to struggle on these tasks. Addressing these limitations is the central focus of the work presented in this thesis.

1.2

Thesis Outline

1.2.1

Contributions

This thesis makes three key contributions to the study and application of NCDEs: • First, building on the work of NRDEs [Morrill et al. 2021], we use the LogODE method to approximate the solutions of NCDEs during training. Rather than working directly with the raw path, this approach uses the signature to summarise the path over intervals, yielding a more efficient approximation. This 4

reduces training times and improves empirical performance, but it does not remove the core computational bottleneck: the forward pass still requires solving a non-linear differential equation sequentially. • Second, we introduce Linear NCDEs, a variant where the non-linear vector field is replaced by a linear one. Linear NCDEs retain the theoretical expressivity of NCDEs while admitting explicit solutions, removing the need for a differential equation solver and enabling parallel-in-time training. Linearity is the key structural innovation that makes NCDEs scalable. • Third, we develop Structured Linear NCDEs (SLiCEs), which replace the dense matrices of a Linear NCDE with structured variants that preserve the model’s expressivity while further improving computational efficiency. These three advances are complementary: the Log-ODE method provides an efficient path-based approximation, Linear NCDEs provide a scalable model architecture, and SLiCEs improve the computational efficiency. Together, they reduce the time per training step for NCDEs by up to three orders of magnitude, making continuous-time models applicable at scales that were previously infeasible. The core of this thesis brings together and extends three publications, with my specific contributions to each detailed below. • B. Walker et al. [2024]. “Log Neural Controlled Differential Equations: The Lie Brackets Make a Difference”, Proceedings of the 41st International Conference on Machine Learning (ICML) – Developed the methodology, implementation, and empirical validation of Log-NCDEs presented in Section 4.4. – The proof of Lemma 3.35 presented in Section 3.4.2, which explicitly bounds the Lip(γ)-norm for the composition of two Lip(γ) functions when 1 < γ ≤ 2. This proof was completed collaboratively with Dr. Andrew McLeod. – The proof of Theorem 4.8 presented in Section 4.4.2, which uses Lemma 3.35 to bound the Lip(γ)-norm for a specific class of neural networks when 1 < γ ≤ 2. • N. M. Cirone et al. [2024]. “Theoretical Foundations of Deep Selective StateSpace Models”, Proceedings of the 38th Conference on Neural Information Processing Systems (NeurIPS) 5

– Developed the methodology in collaboration with Nicola Muça Cirone. – Solely contributed the implementation and empirical validation of Linear NCDEs presented in Sections 5.3.4 and 5.3.5. • B. Walker et al. [2025]. “Structured Linear CDEs: Maximally Expressive and Parallel-in-Time Sequence Models”, Proceedings of the 39th Conference on Neural Information Processing Systems (NeurIPS) (Spotlight) – Developed the concept, methodology, implementation, and empirical validation of SLiCEs presented in Section 5.4. All of my published work has been completed in close collaboration with my coauthors. In particular, I want to highlight Nicola Muça Cirone, who proved Theorems 5.4, 5.5, and 5.8, originally presented in [Cirone et al. 2024], and Theorem 5.9, originally presented in [Walker et al. 2025]. These theorems are presented in this thesis to give a complete picture, with original overviews of the proof techniques provided where appropriate. This thesis also presents the following previously unpublished contributions: • To the best of our knowledge, Section 3.3 provides the first formal treatment of the Lie bracket for two Lip(γ) functions defined on arbitrary subsets of potentially infinite-dimensional Banach spaces. • Section 3.4.3 provides an explicit example that lower bounds the norm of the composition of two Lip(γ) functions when 1 < γ ≤ 2. This complements the upper bound in Lemma 3.35 originally presented in Walker et al. 2024. We also show that these two bounds converge as γ → 1. • Theorem 4.8 generalises [Walker et al. 2024, Theorem 3.1] by extending the proof that certain neural networks are Lip(γ) from the specific case of Sigmoid Linear Unit (SiLU) activation functions and γ = 2 to a broader class of activation functions and 1 < γ ≤ 2 [Elfwing et al. 2018].

1.2.2

Organisation

This thesis is structured into two parts. The first half establishes the mathematical foundations for the continuous-time models developed later.

6

• Chapter 2 introduces the prerequisite mathematics. Topics covered include the tensor algebra, the signature of a path, existence and uniqueness of solutions to CDEs, and the Log-ODE method for approximating solutions to CDEs. These concepts provide the foundation for the path-based approach adopted in this thesis: paths are the fundamental objects, signatures give a principled description of a path over an interval, and the Log-ODE method shows how such descriptions can be used to efficiently approximate continuous-time dynamics. • Chapter 3 introduces Lip(γ) regularity, which specifies the assumptions on the vector field of a CDE needed to establish existence and uniqueness of solutions. The chapter also provides a formal treatment of the Lie bracket for Lip(γ) functions, a key component of the Log-ODE method. Finally, a novel explicit bound on the Lip(γ) norm of the composition of two Lip(γ) functions when 1 < γ ≤ 2 is presented. These results provide the regularity theory needed to justify the application of the Log-ODE method to NCDEs. The second half of the thesis uses these mathematical foundations to develop scalable continuous-time models. • Chapter 4 begins by introducing NCDEs. The results of Chapter 3 are used to ensure that the neural network parametrising the NCDE’s vector field satisfies Lip(γ) regularity, allowing the application of the Log-ODE method. The chapter then shows that using the Log-ODE method during training improves the empirical performance and computational efficiency of NCDEs across a range of real-world time series benchmarks. The chapter concludes by highlighting a key remaining limitation of this approach: because the dynamics are governed by a non-linear differential equation, the forward pass remains inherently sequential. • Chapter 5 introduces Linear NCDEs, a subclass of NCDEs with vector fields that depend linearly on the hidden-state. Linear NCDEs are shown to retain the full theoretical expressivity of NCDEs whilst admitting explicit solutions, removing the need for a differential equation solver and enabling parallel-in-time computation. The chapter also shows that modern Structured State-Space Models (SSMs) can be viewed as a restrictive subclass of Linear NCDEs, allowing a formal characterisation of their expressive limitations. Finally, the chapter introduces SLiCEs, which replace the dense matrices of a Linear NCDE with structured variants that reduce the computational burden whilst retaining full theoretical expressivity and achieving equivalent empirical performance. 7

• Chapter 6 concludes the thesis by summarising the key contributions, reflecting on their implications for scalable continuous-time models, and discussing promising avenues for future research.

8

Chapter 2 Controlled Differential Equations The winding roads must be made straight and the rough paths made smooth. —Luke 3:5, Good News Translation

2.1

Introduction

Realising the benefits of continuous-time machine learning requires a mathematical framework for understanding continuous paths. This chapter develops that framework by introducing CDEs and the signature of a path. These objects are closely connected. The signature arises naturally when deriving the flow of a linear CDE, as shown in Theorem 2.37, and is itself the solution of a CDE. Furthermore, the signature has several properties that make it central to the methods developed in this thesis. In particular, it provides a graded representation of a path, its components form a universal feature set, and it composes associatively under concatenation of intervals, enabling parallel-in-time computation via an associative scan. These ideas already appear in the simplest one-dimensional example, the signature of the time path, Xt = X(t) = t ∈ R,

(2.1)

for t ∈ [a, b]. The signature of a one-dimensional path over an interval [a, t] is given by an infinite collection of real-valued numbers, 0 1 2 i S[a,t] = [S[a,t] , S[a,t] , S[a,t] , . . . , S[a,t] , . . .],

9

(2.2)

where the superscript i ∈ N0 = {0} ∪ N denotes the ith component of the signature and the subscript [a, t] records the interval over which it is computed. For the time path, the components of the signature are defined recursively by the system of ordinary differential equations i−1 i dS[a,t] = S[a,t] dt,

(2.3)

0 i where S[a,t] = 1 for all t ∈ [a, b] and S[a,a] = 0 for i ≥ 1. The solution to this system is   (t − a)2 (t − a)i S[a,t] = 1, t − a, ,..., ,... (2.4) 2! i!

for t ∈ [a, b]. The components of the time path’s signature are scaled monomials corresponding to the terms in the exponential series. Hence, the sequence of partial P i sums N i=0 S[a,t] converges uniformly to the exponential, t−a

sup e t∈[a,b]

N X

N →∞

i S[a,t] −−−→ 0.

(2.5)

i=0

More generally, the signature retains this graded, exponential-like structure for arbitrary paths, although in higher dimensions its components no longer take values in R, but in different tensor spaces, as will be seen in Section 2.3. Since the components of the time path’s signature are scaled monomials, a straightforward application of the Weierstrass Approximation Theorem shows that any continuous function on [a, b] can be approximated to arbitrary precision by a linear combination of the terms of S[a,t] . Theorem 2.1 (Weierstrass Approximation Theorem [Weierstrass 1885]). Let f : [a, b] → R be a continuous function. Then, for every ϵ > 0, there exists a polynomial P such that sup |f (t) − P (t)| < ϵ.

(2.6)

t∈[a,b]

Corollary 2.2. Let S[a,t] = [1, (t − a), 2!1 (t − a)2 , . . . , i!1 (t − a)i , . . .] for t ∈ [a, b]. Then, for any continuous function f : [a, b] → R and any ϵ > 0, there exists a finite sequence of coefficients L = [L0 , L1 , . . . , Ln ] such that sup f (t) − t∈[a,b]

n X

i Li S[a,t] < ϵ.

(2.7)

i=0

i Proof. The elements S[a,t] are scaled monomials, and their finite linear combinations

form the polynomials. Therefore, by the Weierstrass Approximation Theorem, any 10

i continuous function can be uniformly approximated by a finite sum of S[a,t] to arbi-

trary precision. Hence, linear maps of the time path’s signature are dense in the space of continuous functions of time. Section 2.3 will extend this same universality from continuous functions of time to continuous functions of paths. We can define a product of S[a,b] and S[b,c] , which corresponds to concatenating the intervals [a, b] and [b, c]. Lemma 2.3 (One-Dimensional Concatenation Product). For intervals [α, β] and [γ, δ], let ∗ denote the concatenation product defined by k

(S[α,β] ∗ S[γ,δ] ) =

k X

j k−j S[α,β] S[γ,δ] ,

(2.8)

j=0

for k ∈ N0 . Then, for any a ≤ b ≤ c, S[a,c] = S[a,b] ∗ S[b,c] .

(2.9)

Proof. Using (2.8), k

(S[a,b] ∗ S[b,c] ) =

k X

j k−j S[a,b] S[b,c]

(2.10)

j=0

=

k X (b − a)j (c − b)k−j

, j!(k − j)! k   1 X k = (b − a)j (c − b)k−j k! j=0 j

(2.11)

j=0

(2.12)

Applying the Binomial Theorem, (c − a)k k = S[a,c] . (S[a,b] ∗ S[b,c] ) = k! k

(2.13)

Since the k-th components of S[a,c] and S[a,b] ∗ S[b,c] are equal for all k ≥ 0, S[a,c] = S[a,b] ∗ S[b,c] .

(2.14)

This simple setting already demonstrates an important computational advantage of signatures. To compute the signature over a long interval, one may first partition 11

the interval into smaller subintervals, compute the signature on each subinterval independently, and then combine the results using the product. Since this product is associative, these local computations can be aggregated in parallel via an associative scan [Blelloch 1993]. The same idea will also be used in Chapter 5 to make Linear NCDEs parallel-in-time. The one-dimensional case already illustrates the core properties of the signature that make it a powerful tool. It provides a universal, graded representation of a path that composes naturally under concatenation of intervals. For general paths, these components are no longer real-valued, but instead take values in tensor spaces. Formulating this precisely requires a brief detour into the tensor algebra.

2.2

The Tensor Algebra

2.2.1

Tensor Product Space

For paths taking values in a vector space, the higher levels of the signature are defined by iterated integrals of the path increments. At the second level, these terms involve pairs of increments and so naturally define bilinear quantities. Higher levels similarly involve several increments and hence give rise to multilinear quantities. To treat such objects within a linear framework, we seek a vector space through which these bilinear interactions may be represented linearly. This motivates the following universality property. Definition 2.4 (Universal for Bilinearity [Roman 2007]). Let U and V be vector spaces. A vector space T with a bilinear map t : U ×V → T is universal for bilinearity if for every vector space W and every bilinear map κ : U × V → W , there exists a unique linear map τ : T → W satisfying κ = τ ◦ t. We now construct a vector space with this property. Let U and V be vector spaces over F , and let FU ×V be the vector space with basis {(u, v) : u ∈ U, v ∈ V }. Let R be the subspace of FU ×V spanned by the expressions (u + u′ , v) − (u, v) − (u′ , v), (ru, v) − r(u, v), (u, v + v ′ ) − (u, v) − (u, v ′ ), (u, rv) − r(u, v), 12

(2.15)

where r ∈ F , u, u′ ∈ U , and v, v ′ ∈ V . These expressions measure the failure of bilinearity, so passing to the quotient identifies them with zero and thereby forces bilinearity to hold. The quotient space U ⊗V =

FU ×V , R

(2.16)

is called the tensor product of U and V . The map ι : U × V → U ⊗ V is defined by projecting (u, v) onto U ⊗ V , with the result denoted ι(u, v) = u ⊗ v. Theorem 2.5. Let U and V be vector spaces. Up to isomorphism, the tensor product space U ⊗ V with the bilinear map ι : U × V → U ⊗ V is the unique space that is universal for bilinearity [Roman 2007]. Theorem 2.5 shows that the space constructed above is, up to isomorphism, the only vector space with the required universality property. Thus the tensor product is the natural space for bilinear quantities. Repeating this construction yields the higher tensor powers needed for the multilinear terms appearing in the signature. Figure 2.1 is a schematic representation of the universal bilinearity satisfied by the tensor product space. To illustrate the tensor product and universal property, take U = R2 and V = R3 with bases (e1 , e2 ) and (f1 , f2 , f3 ), respectively. Let Φ : U ⊗ V → R2×3 be the isomorphism defined by mapping ei ⊗ fj to the matrix Eij , which has a 1 at (i, j) and zeros elsewhere. Let u = [u1 , u2 ]T ∈ R2 and v = [v1 , v2 , v3 ]T ∈ R3 . The image of their tensor product under Φ is the outer product of the vectors, " # " # i u1 h u1 v1 u1 v2 u1 v3 Φ(u ⊗ v) = . v1 v2 v3 = u2 u2 v1 u2 v2 u2 v3

(2.17)

Every bilinear expression κ(u, v) depends on products ui vj of components of u and v. In U ⊗ V , these products are represented linearly by the basis elements ei ⊗ fj . Thus, given a bilinear map κ : U × V → W , the universal property yields a unique linear map τ : U ⊗ V → W such that τ (u ⊗ v) = κ(u, v).

2.2.2

Definition

The previous subsection introduced tensor product spaces as the natural linear spaces for the multilinear terms in the signature. To study the signature analytically, we now assume that the path takes values in a Banach space V . The higher levels of the signature then take values in the iterated tensor products of V . To analyse these 13

Figure 2.1: Commutative diagram expressing the universal bilinearity of the tensor product, where each bilinear map κ : U × V → W factors uniquely through a linear map τ : U ⊗ V → W . terms, we must equip the tensor powers of V with suitable norms. Let V be a Banach space. For each n ≥ 1, let V ⊗n denote the completion of the n−fold tensor product of V with respect to a norm ∥ · ∥V ⊗n . Throughout this thesis, we assume that the family of norms {∥ · ∥V ⊗n }∞ n=1 satisfies the following conditions for all m, n ≥ 1, v1 , . . . , vn ∈ V , v ∈ V ⊗n , and w ∈ V ⊗m . 1. For every σ in the symmetric group over {1, . . . , n}, let πσ denote the permutation operator defined on simple tensors by πσ (v1 ⊗ · · · ⊗ vn ) = vσ(1) ⊗ · · · ⊗ vσ(n) and extended to generic v by linearity and completion. Then πσ is an isometry. 2. The norm is sub-multiplicative, ||v ⊗ w||V ⊗(n+m) ≤ ||v||V ⊗n ||w||V ⊗m . 3. For any bounded linear functional f on V ⊗n and g on V ⊗m , there exists a unique bounded linear functional f ⊗g on V ⊗(m+n) such that (f ⊗g)(v ⊗w) = f (v)g(w). 4. For a bounded linear functional h on a Banach space X, let |h(x)| x̸=0 ∥x∥X

∥h∥op = sup

(2.18)

be the operator norm. Then for bounded linear functionals f on V ⊗n and g on V ⊗m , let f ⊗ g denote the linear functional defined by (f ⊗ g)(v ⊗ w) = f (v)g(w)

(2.19)

for simple tensors and extended by linearity. Then ∥f ⊗ g∥op ≤ ∥f ∥op ∥g∥op . 14

(2.20)

Families of norms which satisfy conditions 1 and 2 are called admissible tensor norms [Lyons et al. 2007]. Requiring conditions 1, 2, and 3 is the setting of Lyons et al. [2002] and Boedihardjo et al. [2016]. Families of norms satisfying conditions 1, 2, and 4 are known as reasonable tensor algebra norms [Chang et al. 2018]. In fact, condition 4 implies condition 3 by continuity, so reasonable tensor algebra norms automatically satisfy all four properties. Families of reasonable tensor algebra norms will be sufficient for the contents of this thesis [Chang et al. 2018]. Moreover, conditions 2 and 4 ensure that for each decomposition n = r + s with r, s ≥ 1, the norm on V ⊗n induces a reasonable cross norm on V ⊗r ⊗ V ⊗s . Therefore, the bounds in conditions 2 and 4 hold with equality [Ryan 2002; Lyons et al. 2025]. Equipping each V ⊗n with either the projective or injective tensor norm yields a family of reasonable tensor algebra norms [Chang et al. 2018]. Definition 2.6 (The Tensor Algebra [Lyons et al. 2007]). Let {V ⊗n }∞ n=1 be equipped ⊗0 = with a family of norms {∥·∥V ⊗n }∞ n=1 satisfying the above conditions, and define V

R. The tensor algebra is the set T ((V )) = {x = (x0 , x1 , . . .)|xn ∈ V ⊗n }

(2.21)

with product z = x ⊗ y defined by k

k

z = (x ⊗ y) =

k X

xj ⊗ y k−j .

(2.22)

j=0

The tensor algebra product is associative and has unit 1 = (1, 0, 0, . . .). As T ((V )) is an associative algebra, it has a Lie algebra structure, with Lie bracket [x, y] = x ⊗ y − y ⊗ x

(2.23)

for x, y ∈ T ((V )) [Reutenauer 1993]. When V = R, each tensor power V ⊗n is canonically identified with R, and an element of T ((V )) may be viewed simply as a sequence of real numbers. In this case, the tensor algebra product is exactly the one-dimensional concatenation product introduced in Lemma 2.3. Four substructures of the tensor algebra which will be relevant in this thesis are: 1. The space with only finitely many non-zero terms, denoted T (V ). 2. The truncated tensor algebra, denoted T n (V ), whose elements are of the form x = (x0 , x1 , . . . , xn ). 15

3. The space with x0 = 1, denoted T̃ ((V )). This space is a group with inverse x−1 = 1 − (x − 1) + (x − 1)⊗2 − (x − 1)⊗3 + · · · .

(2.24)

4. The space of Lie series generated by V , L((V )) = {(l0 , l1 , . . .) : li ∈ Li },

(2.25)

where L0 = 0, L1 = V , and Li+1 is the span of [v, l] for v ∈ V and l ∈ Li , which is denoted [V, Li ].

2.2.3

The Tensor Algebra and l2 (Wd )

Let V be a d−dimensional Banach space and (e1 , . . . , ed ) be a basis of V . A basis of V ⊗n is given by {eI = ei1 ⊗ · · · ⊗ ein |ij ∈ {1, . . . , d}} ,

(2.26)

where I = (i1 , i2 , . . . , in ) is a multi-index. Let Wd denote the set of all finite sequences, or words, composed of the letters {1, 2, . . . , d}, with the empty word ∅ included. There is a natural identification between the basis of V ⊗n and the words of length n via the map ϕ(ei1 ⊗ · · · ⊗ ein ) = i1 · · · in . Furthermore, elements of the tensor algebra can be identified with real-valued functions A : Wd → R. Definition 2.7 (l2 (Wd ) Space [Kreyszig 1978]). The space l2 (Wd ) consists of all real-valued functions A : Wd → R such that the sum of the squares of their values is finite: ! 21 ∥A∥l2 =

X

A2I

< ∞.

(2.27)

I∈Wd

This space is a Hilbert space when equipped with the inner product: X ⟨A, B⟩l2 = AI BI .

(2.28)

I∈Wd

Using the above identification of T ((V )) with real-valued functions on Wd and considering each as purely sets, we have the following inclusions: T (V ) ⊂ l2 (Wd ) ⊂ T ((V )).

2.3

The Signature

2.3.1

Definition

Armed with the tensor product, we can now extend the notion of a signature to paths taking values in a Banach space. As in the one-dimensional example of Section 2.1, 16

the construction is based on iterated integrals. Therefore, we begin by specifying a suitable notion of integration for the setting of this thesis, the Young integral. Definition 2.8 (p-variation [Young 1936; Lyons et al. 2007]). Let V be a Banach space and p ≥ 1. The p-variation of a path X : [a, b] → V is defined by !1/p r−1 X ∥X∥p,[a,b] = sup , ∥Xtj+1 − Xtj ∥p D

(2.29)

j=0

where D is the set of all finite partitions (tj )rj=0 satisfying a = t0 < t1 < · · · < tr = b. The set of paths from [a, b] to V with finite p−variation is denoted V p ([a, b], V ). Definition 2.9 (Bounded Linear Maps [Kreyszig 1978]). Let V and W be Banach spaces. A linear map A : V → W is bounded if there exists a constant c > 0 such that ∥A(v)∥W ≤ c∥v∥V

(2.30)

for all v ∈ V . We denote the set of all bounded linear maps from V to W by L(V, W ). Theorem 2.10 (Young Integration [Young 1936; Lyons et al. 2007]). Let V and W be Banach spaces, p, q ≥ 1 satisfy p1 + 1q > 1, X ∈ V p ([a, b], V ), and Y ∈ V q ([a, b], L(V, W )). Let {dn = (tn0 , . . . , tnNn )}∞ n=0 be a sequence of finite partitions of [a, b] with supj |tnj+1 − tnj | → 0 as n → ∞. Then the Young integral defined by the limit Z b Ys dXs = lim

n→∞

a

N n −1 X

Ytni [Xtni+1 − Xtni ]

(2.31)

i=0

exists and does not depend on the choice of partitions {dn }∞ n=0 . Proof. See [Young 1936] for real-valued paths and [Lyons et al. 2007] for paths taking values in Banach spaces. The integral defined by the limit in (2.31) also exists when both X and Y are continuous and at least one of them has finite 1−variation. In this case, it is known as a Riemann-Stieltjes integral [Stieltjes 1894; Apostol 1974]. Definition 2.11 (The Signature [Lyons et al. 2007]). Let X ∈ V p ([a, b], V ) with p < 2 and define n X[a,b] =

Z

Z

··· dXu1 ⊗ · · · ⊗ dXun ∈ V ⊗n , | {z }

u1 <···<un u1 ,...,un ∈[a,b]

17

(2.32)

where the integral is defined in the Young sense [Young 1936]. The signature of the path X is defined as n 1 , . . .) ∈ T̃ ((V )). , . . . , X[a,b] S[a,b] (X) = (1, X[a,b]

(2.33)

To illustrate this definition, consider the case V = Rd with standard basis (e1 , . . . , ed ) and Xt = (Xt1 , . . . , Xtd ). Then n X[a,b] =

d X

(i ,...,in )

ei1 ⊗ · · · ⊗ ein ,

(2.34)

··· dXui11 · · · dXuinn . | {z }

(2.35)

1 S[a,b]

i1 ,...,in =1

where (i1 ,...,in ) S[a,b] =

Z

Z

u1 <···<un u1 ,...,un ∈[a,b] (i)

In particular, the first-level terms S[a,b] = Xbi − Xai are the coordinate increments of the path, while higher-order terms capture ordered interactions between coordinates. If X : [a, b] → R is one-dimensional, then for each n ≥ 1, (Xb − Xa )n . (2.36) n! As for the time path, the signature of a one-dimensional path depends only on the n X[a,b] =

total increment Xb − Xa . In dimension two and higher, the order of the increments matters. For example, the piecewise linear paths (0, 0) → (1, 0) → (1, 1) and (0, 0) → (0, 1) → (1, 1) have the same first level, since they have the same increment, but different second levels. In R2 , this difference is captured by the antisymmetric part of the second level,

 1  (1,2) (2,1) S[a,b] − S[a,b] , (2.37) 2 which is the signed area enclosed by the path and its chord. So, beyond one dimenA=

sion, the signature records not only where a path starts and ends, but also information about the route it traverses, as illustrated in Figure 2.2. The condition p1 + 1q > 1 in Theorem 2.10 restricts our definition of the signature to paths with finite p−variation for p less than 2. Although this is sufficient for the paths considered in this thesis, many important examples, such as Brownian motion, have infinite p−variation for all p < 2. Rough path theory provides a generalisation of the construction presented here to include paths that have finite p-variation for some p ≥ 2, but for no p < 2 [Lyons 1998]. An accessible introduction to rough path theory can be found in [Lyons et al. 2007]. 18

Yt

1.0

1

End

2

0.5

1

2

+0.5 0.0

1

Start 0.0

Yt

1 2

0.5

x1

Xt

Value

x2

−0.5

Xt

0

−12

Δx1

1.0

Δx2

Figure 2.2: Two piecewise linear paths from Start to End with the same net displacement but different ordering: the blue path Xt moves first in the x1 direction and then in x2 , while the orange path Yt moves first in the x2 direction and then in x1 , as indicated by the numbered circles. The shaded triangles show the corresponding signed areas and the bar chart compares the common first-level terms S (1) and S (2)  with the signed area A = 21 S (1,2) − S (2,1) for the two paths.

2.3.2

Properties

In his seminal work on the signature of finite-dimensional bounded-variation paths, Chen [1954] introduced a number of important properties, including invariance to reparametrisation and translation. Lyons et al. [2007] provide an exposition of these properties for paths in V p ([a, b], V ) with p < 2. Lemma 2.12 (Invariance to Reparametrisation [Chen 1954; Lyons et al. 2007]). Let X ∈ V p ([a, b], V ) with p < 2 and α : [a, b] → [a, b] be a continuous, strictly increasing function satisfying α(a) = a and α(b) = b. Then S[a,b] (X) = S[a,b] (X ◦ α).

(2.38)

Lemma 2.13 (Invariance to Translation [Chen 1954; Lyons et al. 2007]). Let X ∈ V p ([a, b], V ) with p < 2, and v ∈ V . Define Y : [a, b] → V by Yt = Xt + v for all t ∈ [a, b]. Then S[a,b] (X) = S[a,b] (Y ).

(2.39)

For paths that do not self-intersect, in the sense that s ̸= t implies Xs ̸= Xt , translation and reparametrisation are the only transformations under which the signature is invariant. This makes the signature a natural representation when the object of interest is the shape of a path, since it treats the infinitely many paths related by translation or reparametrisation as equivalent. However, when a path does self-intersect, 19

further invariances appear. A basic example is that the signature is unchanged by a portion of the path that traces out an excursion and then retraces it exactly. In the bounded-variation setting, Hambly et al. [2010] showed that the full class of such invariances is captured by tree-like equivalence. Boedihardjo et al. [2016] subsequently extended this result to the p < 2 setting. For our purposes, it is enough to note that translation invariance is removed by working with paths that share a common initial point, while reparametrisation invariance and tree-like equivalence are removed by augmenting the path with time. In particular, the added time channel is strictly increasing, so time-augmented paths cannot self-intersect. Definition 2.14. Let V0p ([a, b], V ) denote the set of paths X ∈ V p ([a, b], V ) where Xa = 0. Definition 2.15 (Time augmentation). For X ∈ V p ([a, b], V ), define the time-augmented path X̂ : [a, b] → R × V by X̂t = (t, Xt ).

(2.40)

Another fundamental property established by Chen [1954] is that the signature is multiplicative under concatenation of intervals. Theorem 2.16 (Chen’s Identity [Chen 1954; Lyons et al. 2007]). Let X ∈ V p ([a, b], V ) with p < 2. Then for all t ∈ [a, b], S[a,b] (X) = S[a,t] (X) ⊗ S[t,b] (X).

(2.41)

Theorem 2.16 is the general analogue of the concatenation property in Lemma 2.3 for the signature of the time path. It shows that the signature over a long interval may be decomposed into signatures over smaller subintervals and then recombined via the tensor product. This makes the signature amenable to memory-efficient recurrent computation, since the current signature encodes all necessary information from previous intervals, and to parallel computation via an associative scan [Blelloch 1993]. As shown in (2.36), the terms of the signature of a one-dimensional path decay factorially. The following theorem shows that there is an analogous decay estimate for general paths. Definition 2.17. Let Γ denote the gamma function, defined for x > 0 by Z ∞ Γ(x) = tx−1 e−t dt. 0

20

(2.42)

The gamma function extends the factorial function to the positive real line, in the sense that Γ(1 + m) = m! for m ∈ N0 . Theorem 2.18 (Factorial decay [Lyons 1994, Theorem 2.2.1]). Let X ∈ V p ([a, b], V ) with p < 2. Then there exists a finite constant Cp > 1, depending only on p, such that for every [s, t] ⊂ [a, b] and every n ≥ 1, n X[s,t]

∥X∥np-var;[s,t]  . ≤ Cp  Γ 1 + np

(2.43)

Theorem 2.18 shows that the signature decays rapidly with tensor level, and hence defines an element of the completed tensor algebra. Letting S(V p ([a, b], V )) denote the set of signatures of paths in V p ([a, b], V ) and using the identification introduced in Section 2.2.3, we have (2.44)

S(V p ([a, b], V )) ⊂ ℓ2 (Wd ),

when V is d−dimensional. Equation (2.36) also shows that each term of the signature of a one-dimensional path is a monomial in the first term. For general paths, an analogous algebraic structure persists in a more subtle form. As first shown by Ree [1958], products of linear functionals applied to lower-order signature terms can be rewritten as a single linear functional applied to a higher-order term. This result is known as the shuffle product identity. Definition 2.19. Let Sh(α, β) denote the set of permutations σ ∈ Sα+β such that σ(1) < · · · < σ(α) and σ(α + 1) < · · · < σ(α + β). Definition 2.20 (Shuffle of functionals). Let V be a Banach space and let α, β ∈ N0 . Let f be a bounded linear functional on V ⊗α and g on V ⊗β . Their shuffle f ⊔⊔g is the bounded linear functional on V ⊗(α+β) defined by (f ⊔⊔g)(w) =

X

 (f ⊗ g) πσ w ,

w ∈ V ⊗(α+β) .

(2.45)

σ∈Sh(α,β)

Theorem 2.21 (Shuffle Product Identity [Ree 1958; Lyons et al. 2007]). Let V be a Banach space and X ∈ V p ([a, b], V ) with p < 2. Then for all α, β ∈ N0 and for every pair of bounded linear functionals f on V ⊗α and g on V ⊗β ,       β α+β α f X[a,b] g X[a,b] = (f ⊔⊔g) X[a,b] .

(2.46)

The shuffle product identity is the key algebraic result underlying the expressivity of linear functionals of the signature, since it shows that polynomial functions of the 21

signature can be re-expressed as linear functions of the signature. This is the direct analogue of linear maps on the signature of the time path generating all polynomials in t. Moreover, although these functionals are linear on the tensor algebra, when composed with the signature they define highly non-linear functions of the underlying path. Furthermore, the shuffle product identity shows that these linear functionals form an algebra, placing them in the setting of the Stone–Weierstrass theorem. Theorem 2.22 (Stone–Weierstrass [Stone 1948]). Let (X, d) be a compact metric space and A be a subalgebra of C(X, R) which contains the constant functions. Then A is dense in C(X, R) if and only if it separates the points. To apply Theorem 2.22, we first introduce the family of linear functionals on the tensor algebra obtained by lifting bounded linear functionals from each tensor level. Definition 2.23. For α ∈ N0 and a bounded linear functional f on V ⊗α , define ℓ(α,f ) : T ((V )) → R by ℓ(α,f ) (x) = f (xα ),

(2.47)

where x = (x0 , x1 , . . .) ∈ T ((V )). Given an interval [s, t] ⊂ [a, b] and a path X ∈ V p ([a, b], V ) with p < 2, we view the corresponding function on paths as the pullback of an ℓ(α,f ) . Definition 2.24. Let [s, t] ⊂ [a, b], α ∈ N0 , and f be a bounded linear functional on (α,f )

V ⊗α . Define ϕ[s,t] = ℓ(α,f ) ◦ S[s,t] : V p ([a, b], V ) → R by  (α,f ) α ϕ[s,t] (X) = f X[s,t] .

(2.48)

We now verify that these linear functionals satisfy the hypotheses of the Stone– Weierstrass theorem on compact subsets of signature space. Lemma 2.25. Let KS ⊂ S(V p ([a, b], V )) be compact and Fα be the space of bounded linear functionals on V ⊗α . The family {ℓ(α,f ) |KS : α ∈ N0 , f ∈ Fα } separates the points of KS . Proof. If x, y ∈ KS are distinct, then there exists a minimal n ≥ 0 with xn ̸= y n in V ⊗n . By the Hahn–Banach Theorem, there exists f ∈ Fn with f (xn ) ̸= f (y n ), so ℓ(n,f ) (x) ̸= ℓ(n,f ) (y) [Rudin 1991, Theorem 3.3]. Lemma 2.26. Let KS ⊂ S(V p ([a, b], V )) be compact. The set of finite linear combinations of products of the restrictions ℓ(α,f ) |KS is a subalgebra of C(KS , R) which contains the constants. 22

0 Proof. Constants are obtained from α = 0, since V ⊗0 = R and X[a,b] = 1. Closure un-

der pointwise multiplication on KS follows from the shuffle product: if s = S[a,b] (X) ∈ KS , then by Theorem 2.21   β α+β  α g X[a,b] = (f ⊔⊔g) X[a,b] = ℓ(α+β, f ⊔⊔g) (s). ℓ(α,f ) (s) ℓ(β,g) (s) = f X[a,b]

(2.49)

Theorem 2.27 (Stone–Weierstrass on signature space [Levin et al. 2016]). Let KS ⊂ S(V p ([a, b], V )) be compact with p < 2. Then the algebra generated by {ℓ(α,f ) |KS } is dense in C(KS , R). Proof. By Lemma 2.26, we have a subalgebra of C(KS , R) which contains the constants. By Lemma 2.25, it separates points. Therefore, we can apply Stone–Weierstrass, Theorem 2.22. Theorem 2.27 shows that, on any compact subset of signature space, functions of the signature can be approximated uniformly by finite linear combinations of the functionals ℓ(α,f ) . In other words, linear functionals of the signature are rich enough to approximate arbitrary continuous functions on compact subsets of signature space. However, our primary interest is in functions defined on paths rather than on their signatures. Therefore, we now transfer this approximation result from signature space to path space by pulling these functionals back along the signature map. Let K ⊂ V p ([a, b], V ) be compact in a standard path topology, such as the p-variation topology, and let KS = S[a,b] (K). Since S[a,b] is continuous for p < 2, the set KS is compact. Corollary 2.28 (Universality on path space). Let K ⊂ V p ([a, b], V ) be compact with p < 2. Define the equivalence relation X ∼ Y ⇐⇒ S[a,b] (X) = S[a,b] (Y ).

(2.50)

Then: (α,f )

1. The algebra generated by {ϕ[a,b] |K } is dense in the space {F ∈ C(K, R) | X ∼ Y =⇒ F (X) = F (Y )}. 2. If S[a,b] is injective on K, then the same algebra is dense in C(K, R). 23

(2.51)

Proof. (1) The induced map S̄ : K/ ∼→ KS is a homeomorphism. By Theorem 2.27, polynomials in {ℓ(α,f ) } are dense on KS ; pulling back along S̄ yields density of poly(α,f )

nomials in {ϕ[a,b] } on K/ ∼. (2) If S[a,b] is injective on K, then K ∼ = KS via S[a,b] , and the conclusion follows directly from Theorem 2.27. Corollary 2.28 shows that, on a general compact set of paths, linear functionals of the signature approximate exactly those continuous functionals that depend only on the signature. To strengthen this to universality for all continuous functionals on path space, it suffices to work in a setting where the signature map is injective. By the discussion earlier in this section, this can be achieved by restricting to paths with a common initial point, which removes translation invariance, and by augmenting with time, which removes reparametrisation and tree-like equivalence. Lemma 2.29 (Injectivity via augmentation). Let K ⊂ V0p ([a, b], V ) be compact. Then (α,f )

S[a,b] (X̂) is injective on K, and hence the algebra generated by {ϕ[a,b] (X̂)} is dense in C(K, R). Proof. Since each X ∈ K begins at the same point and the time channel of X̂ is strictly monotone, no two distinct time-augmented paths can be tree-like equivalent [Levin et al. 2016]. Therefore S[a,b] (X̂) determines X uniquely [Boedihardjo et al. 2016; Hambly et al. 2010] and Corollary 2.28 can be applied. Remark 2.30. The definition of a compact set K ⊂ V p ([a, b], V ) depends on the chosen path topology [Bonnier et al. 2019]. In most data-driven applications, it suffices to take K to be a finite, and hence compact, set. Lemma 2.29 is a desirable property when using the signature of a path as a feature set for linear regression [Levin et al. 2016]. However, this linearisation of non-linear functions leads to algebraic redundancy in the signature, as shown in Theorem 2.21. For one-dimensional paths, every higher-order term is a monomial in the first-level term. For general paths, not all higher-order terms are determined by lower-order ones, but the shuffle product identity shows that certain linear functionals of the higher-order terms are. Thus part of the information appearing at higher tensor levels is merely a linear encoding of polynomial functions of the lower-order terms. The transformation which removes these algebraic redundancies is the logarithm.

24

2.3.3

The Log-Signature

We begin with the formal definitions of the logarithm and exponential on the tensor algebra. Definition 2.31. For x ∈ T̃ ((V )), the logarithm is defined by log(x) = log(1 + t) =

∞ X (−1)n−1

n

n=1

t⊗n ,

(2.52)

where t = (0, x1 , x2 , . . .). Since x ∈ T̃ ((V )), all non-zero elements of t⊗n have degree at least n. Therefore, the logarithm converges degree-wise. Definition 2.32. For x ∈ T ((V )) with x0 = 0, the exponential is defined by exp(x) =

∞ X x⊗n n=0

n!

.

(2.53)

Similarly to the logarithm, the exponential converges degree-wise. Furthermore, for x ∈ T̃ ((V )), exp(log(x)) = x

(2.54)

log(exp(x)) = x.

(2.55)

and for x ∈ T ((V )) with x0 = 0,

The effect of the logarithm is already visible in one dimension. If V = R, then by (2.36),   (Xb − Xa )2 (Xb − Xa )3 , , . . . = exp(Xb − Xa ), S[a,b] (X) = 1, Xb − Xa , 2! 3!

(2.56)

and hence log(S[a,b] (X)) = (0, Xb − Xa , 0, 0, . . .) .

(2.57)

In one dimension the signature records all monomials in the increment as separate tensor levels, whereas the log-signature retains only the increment itself. This makes the log-signature a more economical representation, but it also removes the linearisation property of the signature, since linear functionals of the signature can recover polynomials in Xb − Xa , whereas linear functionals of the log-signature cannot.

25

For general paths, the same idea first appears at second level. Substituting S[a,b] (X) = 1 2 (1, X[a,b] , X[a,b] , . . .) into the logarithm gives

log(S[a,b] (X)) =

∞ X (−1)n−1

n

n=1

⊗n 1 2 0, X[a,b] , X[a,b] ,... ,

(2.58)

so at the first two levels,  log(S[a,b] (X)) =



1 1 2 1 1 − X[a,b] ,... , X[a,b] ⊗ X[a,b] 0, X[a,b] 2

.

(2.59)

The shuffle product identity shows exactly why this removes redundancy. If f and g are bounded linear functionals on V , then Theorem 2.21 gives 2 2 1 1 ). ) = (f ⊗ g + g ⊗ f )(X[a,b] ) = (f ⊔⊔g)(X[a,b] )g(X[a,b] f (X[a,b]

(2.60)

On the other hand,  (f ⊗ g + g ⊗ f )

1 1 1 X ⊗ X[a,b] 2 [a,b]



1 1 = f (X[a,b] )g(X[a,b] ).

(2.61)

Therefore

  1 1 1 2 (2.62) (f ⊗ g + g ⊗ f ) X[a,b] − X[a,b] ⊗ X[a,b] = 0 2 for every pair of bounded linear functionals f and g on V . So every second-level term detected by a shuffle product of first-level functionals vanishes after taking the logarithm. In other words, the part of the second level that was already determined by the first level has been removed. This is particularly transparent when V = R2 . Writing (1,1)

(1,2)

(2,1)

(2,2)

2 X[a,b] = S[a,b] e1 ⊗ e1 + S[a,b] e1 ⊗ e2 + S[a,b] e2 ⊗ e1 + S[a,b] e2 ⊗ e2 ,

(2.63)

the shuffle product identity gives 1 (1) 2 S , 2 [a,b] 1 (2) 2 (2,2) S[a,b] = S[a,b] , 2 (1,1)

(2.64)

S[a,b] =

(2.65)

and (1,2)

(2,1)

(1)

(2)

S[a,b] + S[a,b] = S[a,b] S[a,b] .

(2.66)

Substituting these identities into (2.59) shows that the coefficients of e1 ⊗ e1 and e2 ⊗ e2 become (1,1)

S[a,b] −

1 (1) 2 S =0 2 [a,b] 26

(2.67)

and

1 (2) 2 S = 0. 2 [a,b] Moreover, the sum of the coefficients of e1 ⊗ e2 and e2 ⊗ e1 becomes     1 (1) (2) 1 (2) (1) (1,2) (2,1) S[a,b] − S[a,b] S[a,b] + S[a,b] − S[a,b] S[a,b] = 0. 2 2 (2,2)

S[a,b] −

(2.68)

(2.69)

So all the second-level terms determined by the first level are cancelled by the logarithm. The only part that remains is  1  (1,2) (2,1) S[a,b] − S[a,b] (e1 ⊗ e2 − e2 ⊗ e1 ), 2

(2.70)

which is exactly the signed area term. Thus, at second level, the log-signature removes the algebraic redundancy in the signature and retains only the genuinely new information. Chen [1957] formalised this for all levels of the signature by showing that signatures are group-like, and hence that their logarithms lie in the free Lie algebra. As noted in Section 2.2.2, T̃ ((V )) is a group. We define n o G = x ∈ T̃ ((V )) | log(x) ∈ L((V )) .

(2.71)

This is a subgroup of T̃ ((V )), and its elements are called group-like [Reutenauer 1993]. Chen’s result shows that, for bounded-variation paths, S[a,b] (X) ∈ G,

(2.72)

log(S[a,b] (X)) ∈ L((V )).

(2.73)

or equivalently, Thus the signature may be represented equivalently by its logarithm in L((V )), a strict subspace of T ((V )). This shows that no information is lost by passing to the log-signature. The trade-off is that the linearisation property is no longer present, because the higher-order tensor terms which encode polynomial functions of the lowerorder terms have been removed. If a path is linear on an interval with increment v ∈ V , then its log-signature on that interval is simply (0, v, 0, 0, . . .), and so its signature is   v ⊗2 v ⊗3 exp(0, v, 0, 0, . . .) = 1, v, , ,... . 2! 3! 27

(2.74)

Hence, if a path is represented by a piecewise linear interpolation with increments v1 , . . . , vm , then the signature on each subinterval is obtained from the corresponding exponential, and the full signature is computed as S[a,b] (X) = exp(0, v1 , 0, 0, . . .) ⊗ · · · ⊗ exp(0, vm , 0, 0, . . .).

(2.75)

Thus signatures of discrete data can be computed efficiently by working interval by interval and then combining the results with Chen’s identity. As the signature and log-signature are infinite-dimensional, it can be useful to consider the truncated signature N 1 N S[a,b] (X) = (1, X[a,b] , . . . , X[a,b] ) ∈ T̃ N (V ),

(2.76)

or truncated log-signature, N log(S[a,b] (X)) ∈ LN (V ).

(2.77)

As discussed in Section 1.1.2, the truncated signature has natural applications in machine learning, as it is a vector embedding of a multivariate path which captures interactions between the channels of the path. Reviews of the machine learning applications can be found in [Chevyrev et al. 2016a], [Cass et al. 2024b], and [McLeod et al. 2025]. So far, the signature has been treated as a representation of a path built from iterated integrals. However, it also admits a dynamical interpretation, since it arises as the solution of a linear CDE driven by the path. More generally, CDEs provide a framework for describing how a state evolves in response to a driving signal, with the signature appearing naturally when one studies their flow over an interval. The continuous-time machine learning models developed in this thesis adopt this perspective by treating time series data as the driving signal and a CDE’s evolving state as the hidden state.

2.4

Controlled Differential Equations

This section introduces CDEs, states the basic well-posedness results, and then specialises to the linear case, where the solution can be written explicitly in terms of the signature. It then returns to the log-signature and shows how it leads to the Log-ODE method, an efficient and accurate method for approximating the solution of a CDE. 28

2.4.1

Definition

Let V and W be Banach spaces, X : [a, b] → V and Y : [a, b] → W be continuous paths, and f : W → L(V, W ) be a continuous function. The vector field f can equivalently be viewed as a linear map from v ∈ V to a vector field on W denoted f (·)v. This second formulation will prove useful when defining the Log-ODE method. Assume that X, Y , and f are sufficiently regular for the integral Z t f (Ys )dXs

(2.78)

a

to be defined for all t ∈ [a, b] in the Young sense [Young 1936]. The path Y is said to obey a CDE if

Z t Yt = Ya +

f (Ys )dXs ,

(2.79)

a

for t ∈ [a, b], where Ya ∈ W is the initial condition and X is the control [Lyons et al. 2007]. Just as the signature of time is the solution to an infinite set of differential equations (2.3), the signature of a path X ∈ V p ([a, b], V ) for p < 2 is the solution to a tensor CDE, dS[a,s] (X) = S[a,s] (X) ⊗ dXs ,

(2.80)

where S[a,s] (X) : [a, b] → T ((V )) and S[a,a] (X) = (1, 0, 0, . . .) ∈ T ((V )) [Salvi et al. 2021]. When V is finite-dimensional with dimension d, we may identify T ((V )) with the space of real-valued functions on Wd , as described in Section 2.2.3, and hence represent elements of T ((V )) as vectors in RWd . In this representation, dS[a,s] (X) = AS[a,s] (X)dXs ,

(2.81)

where A ∈ L(RWd , L(Rd , RWd )). This can be equivalently represented by a set of d matrices Ai ∈ RWd ×Wd satisfying AS[a,s] (X)dXs =

d X

Ai S[a,s] (X)dXsi .

(2.82)

i=1

Ordering the elements of Wd first by size and then alphabetically, the (j, k)th element of Ai satisfies Aijk =

 1,

j = 1 + i + d(k − 1),

0,

otherwise. 29

(2.83)

This representation is the linear algebraic analogue of the recursive structure of the iterated integrals defining the signature. As seen in (2.35), the differential of the signature term corresponding to the word (i1 , . . . , in ) is determined by the lowerorder term indexed by (i1 , . . . , in−1 ) together with the increment in the final channel. The matrices Ai encode exactly this operation on the word basis by appending the letter i to a word, thereby mapping each basis element to the corresponding basis element at the next tensor level.

2.4.2

Existence and Uniqueness

Whether a CDE is well posed depends on the regularity of both the control path X and the vector field f . Rougher driving signals require stronger regularity of the vector field in order for the dynamics to remain well defined. We measure the regularity of a path by the smallest p ≥ 1 for which its p-variation is finite, and the regularity of a vector field by the largest γ > 0 such that it is Lip(γ). We defer the formal definition of Lip(γ) functions to Chapter 3, which is devoted to them. Theorem 2.33 (CDE existence [Lyons 1994; Lyons et al. 2007]). Let 1 ≤ p < 2 and p − 1 < γ. If W is finite-dimensional, X has finite p−variation, and f is Lip(γ), then (2.79) admits a solution for every Ya ∈ W . Theorem 2.34 (CDE uniqueness [Lyons 1994; Lyons et al. 2007]). Let 1 ≤ p < 2 and p < γ. If X has finite p−variation and f is Lip(γ), then (2.79) admits a unique solution for every Ya ∈ W . Theorems 2.33 and 2.34 extend the classical existence and uniqueness theory for ordinary differential equations to controls with unbounded variation but finite pvariation for p < 2. They show that as the driving path becomes less regular, stronger assumptions on f are needed to ensure that the CDE remains well posed.

2.4.3

Solutions of Linear CDEs

Linear CDEs play a central role in this thesis for two reasons. First, when the driving path is piecewise linear, the flow on each linear segment can be found explicitly and independently. This will later underpin the scalable, parallel-in-time computational methods developed for Linear NCDEs. Second, their solutions can be expressed in terms of the signature of the driving path, allowing their expressivity to be understood through this explicit solution and the expressivity of the signature. 30

For a driving path X : [a, b] → V and output path Y : [a, b] → W , a linear CDE takes the form

Z t AYs dXs ,

(2.84)

where A ∈ L(W, L(V, W )). Alternatively, Z t A(dXs )Ys , Yt = Ya +

(2.85)

Yt = Ya + a

a

with A ∈ L(V, L(W, W )). As shown in (2.82), the signature of a path is an example of a linear CDE. However, the existence and uniqueness Theorems 2.33 and 2.34 do not apply, as the value of the vector fields is unbounded, and hence they are not Lip(γ). Corresponding existence and uniqueness results for linear vector fields are given as Theorems 3.7 and 3.8 in [Friz et al. 2010]. Here, we present the explicit form of the unique solution when the norm on each V ⊗n is the projective tensor norm. Definition 2.35 (Projective tensor norm [Boedihardjo et al. 2016]). Let V be a Banach space. The projective tensor norm on V ⊗n is defined by ( ) X X ∥v∥ = inf ∥vk1 ∥ · · · ∥vkn ∥ : v = vk1 ⊗ · · · ⊗ vkn k

(2.86)

k

for v ∈ V ⊗n and vki ∈ V . Equipping each V ⊗n with the projective tensor norm yields a family of tensor norms satisfying the assumptions outlined in Section 2.2.2. Definition 2.36 (Operator tensor powers). Let V, W be Banach spaces. For n ≥ 1  and A ∈ L(V, L(W, W )), let A⊗n ∈ L V ⊗n , L(W, W ) be the operator defined on simple tensors by A⊗n (v 1 ⊗ · · · ⊗ v n ) = A(v n ) · · · A(v 1 ),

(2.87)

and extended by linearity and continuity to V ⊗n . Set A⊗0 = IW . Since V ⊗n is equipped with the projective tensor norm, ∥A⊗n (v)∥ ≤ ∥A∥n ∥v∥ for v ∈ V ⊗n . Theorem 2.37 (Linear CDE solution). Let V, W be Banach spaces, A ∈ L(V, L(W, W )), X ∈ V p ([a, b], V ) with p < 2, and V ⊗n be equipped with the projective tensor norm. Define the evolution operator Φt,s =

∞ X

 n A⊗n X[s,t] ∈ L(W, W ).

n=0

31

(2.88)

Then the series (2.88) converges absolutely in operator norm and the unique solution to (2.84) is (2.89)

Yt = Φt,a Ya . Proof. This proof has four key steps.

1. Apply Picard iteration and show that the iterates correspond to truncated versions of the sum in (2.88). 2. Use the factorial decay of the signature to show that the Picard iterates converge. 3. Upgrade the convergence of the Picard iterates from uniform to p-variation and pass the limit through the Young integral to obtain Yt = Φt,a Ya . 4. Demonstrate uniqueness by reapplying the Picard iteration with initial datum zero. (0)

1) Picard iteration Define Yt

= Ya and, recursively, Z t (m+1) Yt = Ya + A(dXs )Ys(m) ,

(2.90)

a

for m ≥ 0. We claim that for every m ≥ 0 and all t ∈ [a, b], (m) Yt

m X

=

(2.91)

 n A⊗n X[a,t] Ya .

n=0 (0)

This is proved by induction on m. For m = 0, the identity is Yt

0 = A⊗0 (X[a,t] )Ya =

Ya . Assume (2.91) holds for some m ≥ 0. Then, Z t (m+1) Yt = Ya + A(dXs )Ys(m) , a

= Ya +

m Z t X

(2.92) ⊗n

A(dXs )A

n (X[a,s] )Ya ,

a

n=0

and, Z t A(dXs )A

⊗n

n X[a,s]



⊗n+1

Z t

=A

a

n X[a,s] ⊗ dXs

a

Hence, (m+1) Yt

= Ya +

m X

⊗(n+1)

A

n+1 X[a,t]



Ya =

n=0



 n+1 = A⊗(n+1) X[a,t] .

m+1 X n=0

which completes the induction and proves (2.91). 32

 n A⊗n X[a,t] Ya ,

(2.93)

(2.94)

2) Convergence of the Picard iterates By Theorem 2.18, there exists a finite constant Cp > 1 depending only on p such that for n ≥ 1 n X[s,t]

≤ Cp

∥X∥np-var;[s,t] Γ(1 + np )

(2.95)

.

Since ∥A⊗n (v)∥ ≤ ∥A∥n ∥v∥ for v ∈ V ⊗n , ⊗n

A

n X[a,t]



n

≤ ∥A∥ Cp

n ∥X∥p-var;[a,t]

Γ(1 + np )

,

(2.96)

for n ≥ 1. Thus the series Φt,a =

∞ X

n A⊗n X[a,t]



∈ L(W, W )

(2.97)

n=0

converges absolutely and uniformly for t ∈ [a, b]. In particular, t 7→ Φt,a is continuous and Yt = Φt,a Ya =

∞ X

 n A⊗n X[a,t] Ya

(2.98)

n=0

is well-defined and continuous. 3) Convergence in p-variation By (2.91), we have Y (m) → Y uniformly on [a, b]. Furthermore, by Chen’s identity, for u < v, X (Y − Y (m) )v − (Y − Y (m) )u =

 ⊗k k  l A⊗l X[u,v] A X[a,u] Ya .

k≥0, l≥1 k+l≥m+1

(2.99)

The factorial decay estimate (2.95) implies that this double series is absolutely convergent and that there exists a sequence ηm → 0 such that ∥(Y − Y (m) )v − (Y − Y (m) )u ∥ ≤ ∥Ya ∥ηm ∥X∥p-var;[u,v] .

(2.100)

Therefore, for any partition {ti }N i=0 of [s, t], N −1 X

p ∥(Y − Y (m) )ti+1 − (Y − Y (m) )ti ∥p ≤ ∥Ya ∥p ηm

i=0

N −1 X

∥X∥pp-var;[ti ,ti+1 ] ,

i=0

(2.101)

p ≤ ∥Ya ∥p ηm ∥X∥pp-var;[s,t] .

Taking the supremum over partitions gives ∥Y − Y (m) ∥p-var;[s,t] ≤ ∥Ya ∥ηm ∥X∥p-var;[s,t] −→ 0. 33

(2.102)

Therefore, Y (m) converges to Y in the p−variation sense. Furthermore, by the bilinear continuity of the Young integral [Lyons et al. 2007, Theorem 1.16], Z t Z t (m) AYs dXs −→ AYs dXs a

(2.103)

a (m+1)

for all t ∈ [a, b]. Passing to the limit in Yt

Rt (m) = Ya + a A Ys dXs yields

Z t A Ys dXs ,

Yt = Y a +

(2.104)

a

so Y solves (2.84). 4) Uniqueness Suppose Ỹ is another solution of (2.84) with the same initial condition Ya . Then Z = Y − Ỹ satisfies Za = 0 and Z t Zt = AZs dXs .

(2.105)

a

Applying the Picard expansion of Step 1 with initial datum 0 gives Zt ≡ 0 on [a, b]. Thus the solution is unique. Theorem 2.37 shows that the solution of a linear CDE is determined by the signature of the driving path. More generally, the same holds for any CDE satisfying the uniqueness conditions of Theorem 2.34 [Hambly et al. 2010; Boedihardjo et al. 2016]. This motivates the construction of numerical methods based on the signature, and the Log-ODE method is one such approach.

2.5

The Log-ODE Method

The Log-ODE method is an efficient and accurate method for approximating the solution of a CDE [Castell et al. 1995; Boutaib et al. 2013]. On a given interval, it replaces the original CDE by an autonomous ODE whose vector field is constructed from the log-signature of the driving path over that interval together with differential information about the vector field. This construction is motivated by the fact that the log-signature log(S[a,b] (X)) belongs to the Lie series L((V )).

2.5.1

The Free Lie Algebra

Definition 2.38 (Free Lie Algebra [Reutenauer 1993]). Let X be a non-empty set, L0 and L be Lie algebras, and ϕ : X → L0 be a map. The Lie algebra L0 is said to be 34

the free Lie algebra generated by X if for all maps f : X → L, there exists a unique Lie algebra homomorphism g : L0 → L such that g ◦ ϕ = f . Theorem 2.39. The space of elements of L((V )) with only finitely many nonzero terms, denoted L(V ), is the free Lie algebra generated by V [Reutenauer 1993]. N For each N ≥ 1, the truncated log-signature log(S[a,b] (X)) ∈ LN (V ) may be viewed

as an element of L(V ) by setting all terms of degree greater than N equal to 0. Furthermore, as will be discussed in detail in Section 3.2.1, the smooth vector fields on W form a Lie algebra with Lie bracket defined pointwise by [f, g](p) = Dg(p)[f (p)] − Df (p)[g(p)]

(2.106)

for smooth f, g : W → W and all p ∈ W , where Df is the Fréchet derivative of f . For example, if W = Rd , f (p) = Bp, and g(p) = Cp with B, C ∈ Rd×d , then [f, g](p) = (CB − BC)p = −[B, C] p,

(2.107)

where the left hand side Lie bracket is for vector fields and the right hand side Lie bracket is for matrices. Therefore, assuming that f (·)v is a smooth vector field on W for all v ∈ V , Theorem 2.39 implies there exists a Lie algebra homomorphism f¯ from L(V ) to the smooth vector fields on W . Since the map f¯ is a Lie algebra homomorphism, it is determined recursively by f¯(·)v = f (·)v, v ∈ V

(2.108)

f¯(·)[v1 , v2 ] = [f¯(·)v1 , f¯(·)v2 ]

(2.109)

and for v1 , v2 ∈ L(V ) [Lyons 2014]. For each N ≥ 1, F N (·) = f¯ (·) log(S N (X)[a,b] )

(2.110)

is a well-defined vector field on W . To illustrate the structure, consider a finitedimensional driving path Xt = (Xt1 , . . . , Xtd ). Then F 2 (·) can be written explicitly as

F 2 (·) = f¯(·) log(S 2 (X)[a,b] ),   1 1 1 2 1 ¯ = f (·) X[a,b] + X[a,b] − X[a,b] ⊗ X[a,b] , 2 ! d   X X 1 (i) (i,j) (j,i) = f¯(·) S[a,b] ei + S[a,b] − S[a,b] [ei , ej ] , 2 i=1 1≤i<j≤d =

d X i=1

(i)

S[a,b] f (·)ei +

 1 X  (i,j) (j,i) S[a,b] − S[a,b] [f (·)ei , f (·)ej ], 2 1≤i<j≤d 35

(2.111)

Figure 2.3: A schematic diagram of the Log-ODE method, where

Rb a

f (·)dX is the

CDE to be solved, the log-signature of X lives in L((V )), and the Log-ODE method constructs an approximating autonomous ODE using the unique Lie algebra homomorphism extending f from V to the free Lie algebra generated by V , denoted f¯. where the second line uses the explicit form of the log-signature up to level 2 derived in (2.59), the third line rewrites the first and second levels in the basis (e1 , . . . , ed ) of V , and the final line applies the Lie algebra homomorphism f¯.

2.5.2

The Log-ODE Approximation

Given appropriate conditions on the convergence of F N as N → ∞, the Log-ODE method recovers the solution of the CDE Z b Yb = Ya + f (Ys )dXs

(2.112)

a

by solving the autonomous ODE Z 1 Ȳ1 = Ȳ0 +

 f¯ Ȳs log(S(X)[a,b] )ds

(2.113)

0

with initial condition Ȳ0 = Ya , and then setting Yb = Ȳ1 . This is represented schematically in Figure 2.3. When X is continuously differentiable and f (·)v is a linear vector field for all v ∈ V , this construction coincides with the classical Magnus expansion [Magnus 1954]. To see this, let Ẋt denote the time derivative of Xt and let A ∈ L(V, L(W, W )) be such that f (y)v = A(v)y

(2.114)

for all y ∈ W and v ∈ V . Then the CDE may be written as dYt = A(Ẋt )Yt , dt 36

(2.115)

and the classical Magnus expansion expresses the solution in the form   (1) (2) Yb = exp Ωb,a + Ωb,a + · · · Ya ,

(2.116)

Equivalently, if Ȳ : [0, 1] → W solves Z 1  (1) (2) Ωb,a + Ωb,a + · · · Ȳs ds, Ȳ1 = Ȳ0 +

(2.117)

0

Rb

1 with Ȳ0 = Ya , then Ȳ1 = Yb . Since A is linear and X[a,b] =

a

Ẋu1 du1 , the first term

in the infinite series of (2.116) is simply (1) Ωb,a =

Z b

1 A(Ẋu1 ) du1 = A(X[a,b] )=

a

d X

(i)

S[a,b] A(ei ),

(2.118)

i=1

aligning with the first term of (2.111). The second term is Z Z 1 b u1 (2) [A(Ẋu1 ), A(Ẋu2 )] du2 du1 Ωb,a = 2 a a Z Z  1 b u1  A(Ẋu1 )A(Ẋu2 ) − A(Ẋu2 )A(Ẋu1 ) du2 du1 . = 2 a a

(2.119)

Expanding A(Ẋu1 ) and A(Ẋu2 ) in the basis (e1 , . . . , ed ) and using bilinearity of the Lie bracket gives 1 (2) Ωb,a = 2

=

Z b Z u1 

 A(Ẋu1 )A(Ẋu2 ) − A(Ẋu2 )A(Ẋu1 ) du2 du1

a a Z d X b Z u1

1 2 i,j=1

a

Ẋui 1 Ẋuj 2 [A(ei ), A(ej )] du2 du1

a

(2.120)

d

1 X (j,i) = S [A(ei ), A(ej )]. 2 i,j=1 [a,b] We now group together the terms indexed by (i, j) and (j, i). Since [A(ei ), A(ei )] = 0 and [A(ej ), A(ei )] = −[A(ei ), A(ej )], this becomes  1 X  (i,j) (2) (j,i) S[a,b] − S[a,b] [A(ej ), A(ei )], Ωb,a = 2 1≤i<j≤d

(2.121)

which is exactly the second sum in (2.111), since for the linear vector fields f (·)ei (y) = A(ei )y, [f (·)ei , f (·)ej ](y) = [A(ej ), A(ei )]y,

(2.122)

where the first Lie bracket is for vector fields and the second Lie bracket is for matrices. Hence, at depth 2, the Log-ODE vector field reproduces exactly the first two 37

terms of the Magnus expansion. In fact, this agreement persists term by term at every order, with each term built from iterated integrals of the driving path and iterated Lie brackets of the matrices A(v). For finite-dimensional V and W , a sufficient condition ensuring local convergence of the Magnus expansion is [Moan et al. 2008], Z b ∥A(Ẋs )∥2 ds < π.

(2.123)

a

When X is continuously differentiable and f (·)v is non-linear, the same construction yields the Chen-Strichartz series [Strichartz 1987]. For finite-dimensional V and W , local convergence of Chen-Strichartz holds under an analytic growth condition on the non-linear vector fields [Strichartz 1987]. The approach was first extended to the rough-path setting by Castell et al. [1995], where it is known as the Log-ODE method. Assuming it converges, exponentiating the infinite series in (2.116) recovers the exact flow, which agrees with the direct solution formula of Theorem 2.37, Φt,a =

∞ X

 n A⊗n X[a,t] .

(2.124)

n=0

Truncating the signature expansion of the flow ΦN t,a =

N X

 n A⊗n X[a,t] ,

(2.125)

n=0

gives an alternative approach to approximating the solution of a CDE. This approach truncates an expansion of the flow, whereas the Log-ODE method truncates the flow in its logarithmic, or generator, representation. Equivalently, the Log-ODE method may be interpreted as replacing the original driving path on each interval by a rough path whose truncated log-signature agrees with that of the original path up to degree N , and whose higher-order terms are zero. The approximation is then obtained by solving the same class of controlled system against this approximating path, rather than by truncating the flow map after it has been computed. This is often desirable, since it keeps the approximation within the class of solutions of the same CDE, better preserving any structural or physical properties encoded by the model. Given a set of intervals a = r0 < · · · < rm = b, a depth−N Log-ODE method 38

approximates the solution of a CDE via Z ri+1   log(S N (X)[ri ,ri+1 ] ) Ỹri+1 = Ỹri + f¯ Ỹs ds, ri+1 − ri ri

(2.126)

where Ỹa = Ya and the integral’s time has been rescaled to match that of the original CDE. Since this approach truncates to the depth−N log-signature, the vector field no longer needs to be smooth, but only Lip(γ) for γ > N − 1. Conversely, the smoothness of the vector field determines the highest truncation depth usable in the Log-ODE method. For a given set of intervals, this approximation is not guaranteed to converge as N → ∞. However, the error ∥Yb − Ỹb ∥ can be quantified, even for rough driving paths and infinite dimensional Banach spaces [Boutaib et al. 2013]. A recent development has been the introduction of an algorithm which adaptively updates N and {ri }m i=0 [Bayer et al. 2023].

2.6

Conclusion

This chapter developed the mathematical framework used throughout this thesis for modelling continuously evolving data. It introduced CDEs as a way to describe dynamics driven by a continuous path, showed how the signature provides a graded representation of that path with strong algebraic and approximation properties, and explained how the log-signature removes the algebraic redundancy of the signature while retaining the genuinely new geometric information. In the linear setting, the solution of a CDE was shown to be determined explicitly by the signature of the driving path. The chapter then showed how the log-signature leads naturally to the Log-ODE method, which replaces the original CDE on each interval by an autonomous ODE built from the truncated log-signature of the driving path and iterated Lie brackets of the vector field. Together, these ideas establish the main mathematical objects and constructions used in the remainder of the thesis: paths are the fundamental data type, signatures and log-signatures summarise them over intervals, and CDEs describe how states evolve in response to them. The existence and uniqueness theorems, Theorems 2.33 and 2.34, together with the Log-ODE method, show that Lip(γ) regularity plays an important role in the theory of CDEs. The next chapter studies this notion of regularity in detail. Furthermore, it formalises the Lie bracket of two Lip(γ) functions, a key ingredient in the Log-ODE method. 39

Chapter 3 Lip(γ) Functions I am convinced that it is impossible to know the parts without knowing the whole, any more than we can know the whole without a detailed knowledge of the parts. —Blaise Pascal, Penseés (1670), translation by Martin Turnell (1962)

3.1

Introduction

The analysis of CDEs, particularly when employing numerical techniques such as the Log-ODE method, depends on the regularity of the driving vector field. As established by Lyons [1994], Lip(γ) is the correct notion of regularity for guaranteeing the existence and uniqueness of solutions to CDEs. Furthermore, the degree of regularity γ directly determines the maximum truncation depth N that can be used by the LogODE method. This chapter relates Lip(γ) to more classical notions of differentiability, develops the Lie bracket of Lip(γ) vector fields, and proves Lemma 3.35, which gives a new explicit bound for the Lip(γ) norm of the composition of two Lip(γ) functions in the case 1 < γ ≤ 2. Unlike Chapter 2, which introduced the main mathematical objects used throughout the thesis, this chapter is concerned primarily with the regularity theory needed to apply those constructions when the vector field of a CDE is parametrised by a neural network. In particular, Chapter 4 uses Lemma 3.35 to control the Lip(γ) norm of the neural network vector fields, thereby justifying the use of the Lie brackets of those vector fields when applying the Log-ODE method to NCDEs. Although this 40

chapter contains material of independent mathematical interest, it is not essential for readers primarily interested in the continuous-time machine learning models developed in Chapters 4 and 5. The notion of Lip(γ) functions originates in the work of Whitney [1934], who studied collections of derivative data on closed subsets of Rn . The modern formulation was later given by Stein [1970]. A core result is the Stein-Whitney extension theorem, given in Section 3.3.4 as Theorem 3.31, which states that any Lip(γ) function defined on a closed subset E of a finite-dimensional Banach space can be extended to the whole space, with a bound on the norm of the extension that is independent of E. The definition of Lip(γ) regularity given by Stein [1970] applies to functions defined on arbitrary subsets of a Banach space. Lemma 3.18 shows that on open convex subsets, the space of Lip(γ) functions coincides with the space of k times Fréchet differentiable functions with bounded value and derivatives, whose k th derivative satisfies an α-Hölder bound, denoted Cbk,α . However, the natural inclusion of a Cbk+1,α function in Cbk,α does not hold globally, whereas Boutaib [2016] proved that Lip(γ) spaces are globally nested with respect to γ. Similarly, the Lie bracket of two Cbk,α vector fields need not be globally Cbk−1,α . To the best of the author’s knowledge, Section 3.3 gives the first formal treatment of the Lie bracket for Lip(γ) vector fields on arbitrary subsets of potentially infinitedimensional Banach spaces. We prove that [f, g] ∈ Lip(γ − 1) for f, g ∈ Lip(γ) with γ > 1, and that the Jacobi identity holds in Lip(γ − 2) for γ > 2. This work builds on [Boutaib 2016, Chapter 3], which proved a number of fundamental results for Lip(γ) functions, including that the composition of two Lip(γ) functions is Lip(γ) and that these spaces satisfy the nesting property with respect to γ. The final section of this chapter proves Lemma 3.35, an explicit bound on the norm of the composition of two Lip(γ) functions for 1 < γ ≤ 2. This builds on the work of Cass et al. [2012] and Boutaib [2016], who proved using different techniques that the composition of two Lip(γ) functions is Lip(γ), with a norm bounded up to a finite unknown constant Cγ . Our result allows us to explicitly bound the norm of a certain class of neural networks in Section 4.4.2, laying the theoretical groundwork for applying the Log-ODE method to NCDEs.

41

For a Banach space V , this chapter assumes that the {V ⊗n }∞ n=1 are equipped with a family of reasonable tensor algebra norms, as outlined in Section 2.2.2. As previously discussed, these conditions ensure that for all v ∈ V ⊗n and w ∈ V ⊗m , ∥v ⊗ w∥V ⊗(n+m) = ∥v∥V ⊗n ∥w∥V ⊗m .

(3.1)

Therefore, the equivalence property of Boutaib [2016], ∥v∥V ⊗n ∥w∥V ⊗m ≤ c∥v ⊗ w∥V ⊗(n+m) ,

(3.2)

holds with equality and c = 1, allowing us to directly use their results.

3.2

Differentiable Functions

This section reviews three standard notions of function regularity: smooth, C k , and C k,α , together with the Lie bracket of two functions. We develop their basic properties and provide proofs in this familiar setting, both to fix notation and to introduce the ideas and techniques that will later be applied when establishing results for the Lie bracket of Lip(γ) functions.

3.2.1

Smooth Vector Fields

Just as the ordered interactions captured by the signature give rise to multilinear objects, the iterated derivatives of a function naturally take values in spaces of multilinear maps. The first derivative records the best linear approximation to a function, while the second and higher derivatives describe how this approximation changes under simultaneous perturbations in multiple directions. For sufficiently regular functions, these higher derivatives are symmetric, since the order in which the input directions are differentiated does not matter. Let U and V be Banach spaces. A symmetric k-linear map is a map A : U × ··· × U → V

(3.3)

which is linear in each argument and unchanged by permuting its inputs. By the universal property of the tensor product, bounded symmetric k-linear maps may be identified with bounded linear maps A : U ⊗k → V such that A(uσ(1) ⊗ · · · ⊗ uσ(k) ) = A(u1 ⊗ · · · ⊗ uk ) 42

(3.4)

for all u1 , . . . , uk ∈ U and every permutation σ of {1, . . . , k}. We write Lsym (U ⊗k , V ) for this space, and for k = 0 set Lsym (U ⊗0 , V ) ∼ = V.

(3.5)

This is the space in which the successive derivatives of a sufficiently regular map between Banach spaces take values. Definition 3.1 (Fréchet derivative [Luenberger 1969]). Let U and V be Banach spaces and E ⊂ U open. A map f : E → V is Fréchet differentiable at a point p ∈ E if there exists a bounded linear operator Df (p) ∈ L(U, V ) such that lim

h→0 p+h∈E

∥f (p + h) − f (p) − Df (p)[h]∥ = 0. ∥h∥

(3.6)

The map Df (p) is called the Fréchet derivative of f at p. Definition 3.2 (Smooth function). Let U and V be Banach spaces and E ⊂ U be an open set. A map f : E → V is called smooth if the iterated Fréchet derivatives (3.7)

Dj f : E → Lsym (U ⊗j , V ) exist and are continuous for all j ∈ N0 , where D0 f = f . Let C ∞ (E, V ) denote the space of all smooth functions f : E → V .

Definition 3.3 (Lie bracket on a Banach space). Let U be a Banach space and E ⊂ U an open set. For f, g ∈ C ∞ (E, U ), their Lie bracket [f, g] ∈ C ∞ (E, U ) is defined pointwise by (3.8)

[f, g](p) = Dg(p)[f (p)] − Df (p)[g(p)], for p ∈ E. Remark 3.4. The chosen sign convention

(3.9)

[f, g](p) = Dg(p)[f (p)] − Df (p)[g(p)]

agrees with the usual definition of the Lie bracket of vector fields in differential geometry, ensuring that [f, g] = f ◦ g − g ◦ f

(3.10)

when f and g are viewed as derivations acting on smooth functions [Lee 2013]. 43

The space C ∞ (E, U ), endowed with the bracket operation defined above, is a Lie algebra [Lang 1999, Chapter 5]: 1. The bracket is bilinear: [af + bg, h] = a[f, h] + b[g, h],

(3.11)

[h, af + bg] = a[h, f ] + b[h, g],

(3.12)

and hold for all a, b ∈ R and f, g, h ∈ C ∞ (E, U ). 2. The bracket is antisymmetric: [f, g] = −[g, f ],

(3.13)

holds for all f, g ∈ C ∞ (E, U ). 3. The bracket satisfies the Jacobi identity: [f, [g, h]] + [g, [h, f ]] + [h, [f, g]] = 0,

(3.14)

holds for all f, g, h ∈ C ∞ (E, U ).

3.2.2

C k Vector Fields

We now move from smooth vector fields to the weaker setting of finite differentiability. Definition 3.5 (C k function). Let U and V be Banach spaces, E ⊂ U be open, and k ∈ N0 . A map f : E → V is called C k if the iterated Fréchet derivatives  Dj f : E → Lsym U ⊗j , V ,

j = 0, . . . , k,

(3.15)

exist and are continuous. Let C k (E, V ) denote the set of all C k functions from E to V . A first basic observation is that a C k function is C l for all l ∈ N0 satisfying l < k. A second is that differentiating a C k function produces a C k−1 function. To compare the derivatives of Df with the higher derivatives of f , we use the canonical currying identification   Lsym U ⊗j , L(U, V ) ∼ = L U ⊗(j+1) , V ,

(3.16)

e 1 , . . . , uj+1 ). A(u1 , . . . , uj )(uj+1 ) ←→ A(u

(3.17)

given by

44

Lemma 3.6. Let U and V be Banach spaces, E ⊂ U open, and k ∈ N. If f ∈ C k (E, V ), then its Fréchet derivative (3.18)

Df : E −→ L(U, V )  belongs to C k−1 E, L(U, V ) . Proof. By definition of C k , the iterated derivatives Dj f : E → Lsym U ⊗j , V



exist

and are continuous for all 0 ≤ j ≤ k. For every 0 ≤ j ≤ k − 1, (3.19)

 Dj Df = Dj+1 f,

  under the currying convention Lsym U ⊗j , L(U, V ) ∼ = L U ⊗(j+1) , V . The right-hand side exists and is continuous by assumption, therefore Df possesses continuous iter ated derivatives up to order k − 1, i.e. Df ∈ C k−1 E, L(U, V ) . To define the bounded C k spaces, we use a uniform norm on each derivative level. For j ∈ N0 , let ∥ · ∥j denote the norm on Lsym (U ⊗j , V ) given by  ∥ · ∥ , j = 0, V ∥ · ∥j = ∥ · ∥ , j ∈ N.

(3.20)

op

Under the identification Lsym (U ⊗0 , V ) ∼ = V , this treats the case j = 0 uniformly with the higher-order cases. Definition 3.7 (Cbk space and norm). Let U and V be Banach spaces, let E ⊂ U be open, and fix k ∈ N0 . For f ∈ C k (E, V ) define ∥f ∥C k = max sup ∥Dj f (p)∥j .

(3.21)

Cbk (E, V ) = {f ∈ C k (E, V ) : ∥f ∥C k < ∞}.

(3.22)

0≤j≤k p∈E

The bounded C k space is

Definition 3.8 (C k Lie bracket). Let f ∈ C kf (E, U ) and g ∈ C kg (E, U ) with kf , kg ∈ N. Their Lie bracket is defined pointwise by [f, g](p) = Dg(p)[f (p)] − Df (p)[g(p)],

p ∈ E.

(3.23)

The definition of the Lie bracket is the same as that for smooth functions, Definition 3.3. However, for C k functions the Lie bracket reduces the regularity by one. 45

Lemma 3.9. Let f ∈ C kf (E, U ) and g ∈ C kg (E, U ) with kf , kg ∈ N. Then [f, g] ∈ C min(kf ,kg )−1 (E, U ). Proof. Let k = min(kf , kg ). Then f, g ∈ C k (E, U ). By Lemma 3.6 and the definition of C k , we have f, g ∈ C k−1 (E, U )

and

Dg, Df ∈ C k−1 (E, L(U, U )).

(3.24)

Let B : L(U, U ) × U → U be defined by (3.25)

B(A, v) = A[v].

Then B is a continuous bilinear function, and hence smooth [Lang 1999, Chapter 1, Proposition 3.8]. Since the functions (Dg, f )(p) = (Dg(p), f (p))

and

(Df, g)(p) = (Df (p), g(p))

(3.26)

are C k−1 (E, L(U, U ) × U ), then B ◦ (Dg, f ) and B ◦ (Df, g) are both C k−1 (E, U ) [Lang 1999, Chapter 1, Proposition 3.2]. Since all terms on the RHS of (3.23) are C k−1 , then [f, g] ∈ C k−1 (E, U ). Lemma 3.9 means the Lie bracket of two C k functions does not necessarily belong to C k , and it is therefore not a Lie algebra. However, the Lie bracket does satisfy bilinearity and anti-symmetry, both of which follow directly from the definition. Furthermore, the Lie bracket satisfies the Jacobi identity. Lemma 3.10. Let f, g, h ∈ C k (E, U ) with k ∈ N satisfying k ≥ 2. Then [f, [g, h]] + [g, [h, f ]] + [h, [f, g]] = 0.

(3.27)

Proof. Fix p ∈ E and define: x = f (p),

y = g(p),

z = h(p),

A = Df (p),

B = Dg(p),

C = Dh(p),

A = D2 f (p),

B = D2 g(p),

C = D2 h(p),

(3.28)

where A, B, C ∈ L(U, U ) and A, B, C ∈ Lsym (U ⊗2 , U ). Then [f, [g, h]](p) = −B[z, x] − B[C[x]] + C[y, x] + C[B[x]] + A[B[z]] − A[C[y]], [g, [h, f ]](p) = −C[x, y] − C[A[y]] + A[z, y] + A[C[y]] + B[C[x]] − B[A[z]], [h, [f, g]](p) = −A[y, z] − A[B[z]] + B[x, z] + B[A[z]] + C[A[y]] − C[B[x]]. 46

(3.29)

By the symmetry of the second derivatives, B[x, z] − B[z, x] + C[y, x] − C[x, y] + A[z, y] − A[y, z] = 0,

(3.30)

and all the other terms cancel. Therefore [f, [g, h]] + [g, [h, f ]] + [h, [f, g]] = 0

(3.31)

for all p, concluding the proof.

3.2.3

C k,α Vector Fields

We now strengthen finite differentiability by requiring the highest derivative to vary in a controlled way. This leads to the classical Hölder spaces C k,α , which refine the C k spaces by measuring not only the existence of derivatives up to order k, but also the regularity of the k-th derivative itself. These spaces will be useful for comparison with Lip(γ) regularity in Section 3.3, since the two notions agree on open convex domains but behave differently at a global level. Definition 3.11 (C k,α function). Let U and V be Banach spaces, E ⊂ U be open, k ∈ N0 , and α ∈ (0, 1]. A map f : E → V is C k,α if 1. f ∈ C k (E, V ) and 2. its k-th derivative is α-Hölder continuous on E: ∥Dk f (p) − Dk f (q)∥k < ∞. ∥p − q∥αU p,q∈E

[Dk f ]α = sup

(3.32)

p̸=q

The space of all C k,α functions from E to V is denoted C k,α (E, V ). Lemma 3.12. If f ∈ C k,α (E, V ) with k ∈ N, then its Fréchet derivative Df : E −→ L(U, V )

(3.33)

 belongs to C k−1,α E, L(U, V ) .  Proof. Because f ∈ C k (E, V ), Lemma 3.6 gives Df ∈ C k−1 E, L(U, V ) . Under the   currying convention Lsym U ⊗j , L(U, V ) ∼ = L U ⊗(j+1) , V , we have ∥Dk−1 (Df )(p) − Dk−1 (Df )(q)∥k ∥Dk f (p) − Dk f (q)∥k sup = sup = [Dk f ]α . α α ∥p − q∥U ∥p − q∥U p,q∈E p,q∈E p̸=q

p̸=q

Hence [Dk−1 (Df )]α = [Dk f ]α and the claim follows. 47

(3.34)

Definition 3.13 (Cbk,α space and norm). For f ∈ C k,α (E, V ) set   j k ∥f ∥C k,α := max max sup ∥D f (p)∥j , [D f ]α . 0≤j≤k p∈E

(3.35)

The bounded C k,α space is  Cbk,α (E, V ) = f ∈ C k,α (E, V ) : ∥f ∥C k,α < ∞ .

(3.36)

Definition 3.14 (C k,α Lie bracket). Let f, g ∈ C k,α (E, U ) with k ∈ N. Their Lie bracket is defined pointwise by [f, g](p) = Dg(p)[f (p)] − Df (p)[g(p)],

p ∈ E.

(3.37)

However, unlike C k functions, the Lie bracket of two C k,α functions is not necessarily C k−1,α . In fact, C k,α functions don’t have an inclusion with respect to k. For example, consider E ⊂ R with E = (−∞, 0) ∪ (0, ∞) and f : E → R defined by  x − 1, x ∈ (−∞, 0), f (x) = x + 1, x ∈ (0, ∞),

(3.38)

with Df = 1. Then [Df ]1 = 0 and f ∈ C 1,1 (E, R). However, [f ]1 is infinite, due to the discontinuity at 0. Therefore, f ∈ / C 0,1 (E, R). Furthermore, letting g : E → R be defined by g(x) = 2x, then [f, g] =

 −2,

x ∈ (−∞, 0),

+2,

x ∈ (0, ∞),

(3.39)

so [f, g] ∈ / C 0,1 despite f, g ∈ C 1,1 . The same results hold for Cbk,α functions, which can be seen by replacing E with (−1, 0) ∪ (0, 1). In the next section, we introduce Lip(γ) regularity, a global notion of regularity defined on both open and closed subsets, which will allow us to define the Lie bracket globally.

3.3

Lip(γ) Functions

3.3.1

Definition

Definition 3.15 (Lip(γ, E, V ) [Stein 1970]). Let U and V be two Banach spaces, γ > 0 be a real number, k be the non-negative integer such that γ ∈ (k, k + 1], E be a 48

subset of U , and f 0 : E → V a function. For j = 1, . . . , k, let f j : E → Lsym (U ⊗j , V ) be functions. The collection (f 0 , f 1 , . . . , f k ) is an element of Lip(γ, E, V ) if there exists M ≥ 0 such that the following conditions hold: • For j = 0, . . . , k, (3.40)

sup ||f j (p)||j ≤ M, p∈E

• For j = 0, . . . , k, all p, q ∈ E, j

f (q) −

k−j j+l X f (p)[(q − p)⊗l ]

l!

j

 || · || ,

j = 0,

|| · || , op

j = 1, . . . , k.

l=0

where || · ||j =

V

(3.41)

≤ M ||q − p||γ−j U .

(3.42)

When there is no confusion over E and V , the shorthand Lip(γ) will be used. If a collection f = (f 0 , f 1 , . . . , f k ) is Lip(γ), then the Lip(γ)−norm is the smallest M for which (3.40) and (3.41) hold. The Lip(γ)−norm is denoted by ||f ||Lip(γ) . Lip(γ, E, V ) functions can be equivalently defined by considering a function defined on E which takes its values in the polynomials from U to V . Definition 3.16 (Lip(γ, E, V ) as polynomials). Let U and V be two Banach spaces, γ > 0 be a real number, k be the non-negative integer such that γ ∈ (k, k + 1], E be a subset of U , and Pk (U, V ) be the space of k th order polynomial functions from U to V . The function f : E → Pk (U, V ) defined by f (x)(y) = Px (y) =

k X f l (x)[(y − x)⊗l ] l=0

l!

(3.43)

.

for f j : E → Lsym (U ⊗j , V ) is an element of Lip(γ, E, V ) if (3.44)

sup ||Pxj (x)||j ≤ M x∈E

for j = 0, . . . , k and (3.45)

≤ M ∥x − y∥γ−j U

Pyj (y) − Pxj (y) j

for j = 0, . . . , k and all x, y ∈ E, where Pxj (y)[u1 ⊗ · · · ⊗ uj ] = Dyj Px (y)[u1 ⊗ · · · ⊗ uj ], =

k−j j+l X f (x)[u1 ⊗ · · · ⊗ uj ⊗ (y − x)⊗l ]

l!

l=0

.

(3.46)

To further illustrate the definition of Lip(γ), we will compare and contrast it with Cbk,α . 49

Comparison with Cbk,α

3.3.2

On open convex subsets of a Banach space, the definition of Lip(γ) coincides with the definition of Cbk,α , as will be shown in Lemma 3.18. This result will make use of the following lemma, which demonstrates that the constant in the bound of any Taylor remainder for a Cbk,α function defined on an open convex set is bounded by the constant of the α−Hölder bound on the k th derivative. Lemma 3.17. Let U and V be Banach spaces, E ⊆ U be an open convex set, and f ∈ Cbk,α (E, V ). Let D0 f = f and M = [Dk f ]α . Then sup

Dk−i f (q) −

p,q∈E

Dk−i+l f (p)[(q−p)⊗l ] l! α+i ||q − p||U

Pi

l=0

k−i

(3.47)

≤ M,

for i = 0, . . . , k. Proof. We proceed by induction on i. Let i ∈ {0, . . . , k − 1} and assume that sup

Dk−i f (q) −

p,q∈E

Dk−i+l f (p)[(q−p)⊗l ] l! ||q − p||α+i U

Pi

l=0

k−i

(3.48)

≤ M.

We now show that the same estimate holds with i replaced by i + 1. By the definition of ∥ · ∥k−(i+1) , we have Dk−(i+1) f (q) − sup p,q∈E

= sup sup p,q∈E u̸=0

Pi+1 Dk−(i+1)+l f (p)[(q−p)⊗l ] l=0

l! α+(i+1) ||q − p||U

Dk−(i+1) f (q)[u] −

k−(i+1)

(3.49)

Pi+1 Dk−(i+1)+l f (p)[u⊗(q−p)⊗l ] l=0

l! α+(i+1) ||u||U ⊗(k−(i+1)) ||q − p||U

V

.

We next use the fundamental theorem of calculus to rewrite the difference Dk−(i+1) f (q)[u]− Dk−(i+1) f (p)[u], giving R1 sup sup

Dk−i f (p + t(q − p))[u ⊗ (q − p)]dt − 0

Pi+1 Dk−(i+1)+l f (p)[u⊗(q−p)⊗l ]

l=1 α+(i+1) ||u||U ⊗(k−(i+1)) ||q − p||U

p,q∈E u̸=0

l!

V

.

(3.50)

We then re-index the sum by replacing l with l + 1, R1 sup sup p,q∈E u̸=0

0

Dk−i+l f (p)[u⊗(q−p)⊗l+1 ] l=0 (l+1)! α+(i+1) ||u||U ⊗(k−(i+1)) ||q − p||U

Dk−i f (p + t(q − p))[u ⊗ (q − p)]dt −

50

Pi

V

.

(3.51)

Letting u′ = u ⊗ (q − p) ∈ U ⊗(k−i) , bringing the sum inside the integral, and using R1 l 1 t dt = l+1 , we obtain 0 R 1 k−i P D f (p + t(q − p))[u′ ] − il=0 l!1 Dk−i+l f (p)[u′ ⊗ (t(q − p))⊗l ]dt V 0 sup sup α+(i+1) p,q∈E u̸=0 ||u||U ⊗(k−(i+1)) ||q − p||U R1 (3.48) M 0 ||u′ ||U ⊗(k−i) ||t(q − p)||α+i U dt ≤ sup . α+(i+1) p,q∈E ||u||U ⊗(k−(i+1)) ||q − p||U (3.52) Applying ||u′ ||U ⊗(k−i) ≤ ||u||U ⊗(k−(i+1)) ||q − p||U we deduce that P Dk−(i+1)+l f (p)[(q−p)⊗l ] R1 Dk−(i+1) f (q) − i+1 M 0 ||t(q − p)||α+i l=0 l! k−(i+1) U dt ≤ sup sup α+(i+1) ||q − p||α+i p,q∈E p,q∈E ||q − p||U U Z 1 ≤M tα+i dt 0

=

M ≤ M. α + (i + 1)

(3.53)

The case i = 0 is true by the assumption that [D f ]α = M , completing the induction. k

With this Taylor remainder estimate, we can now show that on open convex sets the classical Cbk,α notion of regularity agrees exactly with Lip(γ) regularity. Lemma 3.18. Let U and V be Banach spaces, E ⊆ U be open and convex, k ∈ N0 , α ∈ (0, 1], and γ = k + α. Then Cbk,α (E, V ) ≡ Lip(γ, E, V ). Proof. Part 1, Cbk,α implies Lip(γ): Let f ∈ Cbk,α (E, V ), and choose fˆ0 = f and fˆi = Di f for i = 1, . . . , k. Then ( ) ˆj (q) − Pk−j fˆj+l (p)[(q−p)⊗l ] ∥j ∥ f l=0 l! ∥fˆ∥Lip(γ) = max max sup ||fˆj (p)||j , max sup , γ−j 0≤j≤k p∈E 0≤j≤k p,q∈E ||q − p||U (3.54) where || · ||j =

 || · || ,

j = 0,

|| · || , op

j = 1, . . . , k.

V

Applying Lemma 3.17, this simplifies to ) ( ˆk (q) − fˆk (p)∥k ∥ f , ∥fˆ∥Lip(γ) = max max sup ||fˆj (p)||j , sup 0≤j≤k p∈E ||q − p||αU p,q∈E   j k = max max sup ∥D f (p)∥j , [D f ]α , 0≤j≤k p∈E

= ∥f ∥C k,α , 51

(3.55)

(3.56)

which is finite by assumption. Therefore, fˆ ∈ Lip(γ, E, V ) and ∥fˆ∥Lip(γ) = ∥f ∥C k,α . Part 2, Lip(γ) implies Cbk,α : Let fˆ ∈ Lip(γ, E, V ), v ∈ U be fixed and q = p + tv for t ∈ [0, T ], where T is small enough that q ∈ E for all t. From (3.41) with j = 0, fˆ0 (p + tv) −

k X fˆl (p)[(tv)⊗l ] l=0

l!

= ∥Rk (p, tv)∥ ≤ M ∥tv∥γ ,

(3.57)

V

for all p ∈ E. Since

∥Rk (p, tv)∥ ≤ lim M ∥tv∥γ−k = 0 (3.58) t→0 t→0 ∥tv∥k uniformly in p, then fˆ0 is C k with fˆi = Di fˆ0 for i = 1, . . . , k by the converse of lim

Taylor’s Theorem [Albrecht et al. 1971]. From (3.41) with j = k, Dk fˆ0 (q) − Dk fˆ0 (p) sup p,q∈E

k

||q − p||γ−k U

= [Dk fˆ0 ]γ−k ≤ M.

(3.59)

Therefore, fˆ0 ∈ Cbk,α (E, V ) with α = γ − k. Applying the same argument as in part 1, ∥fˆ0 ∥C k,α = ∥fˆ∥Lip(γ) . Although Lip(γ, E, V ) and Cbk,α (E, V ) are equivalent on open convex subsets E, and therefore the entire space U , they can differ on generic open sets E. Taking our example from before, where E = (−∞, 0) ∪ (0, ∞) and f : E → R is defined by  x − 1, x ∈ (−∞, 0), f (x) = (3.60) x + 1, x ∈ (0, ∞), then f ∈ C 1,1 (E, R), but f ̸∈ Lip(2, E, R), as (3.41) diverges for j = 0 as x approaches 0. When E is an open subset, the core difference between Lip(γ) and Cbk,α is requiring a Hölder type bound on each level of the derivative, as opposed to only the highest derivative. The additional regularity given by assuming your function is Lip(γ) is sufficient to ensure nesting. Lemma 3.19 (Lip(γ) function nesting [Boutaib 2016; Lyons et al. 2025]). Let U and V be Banach spaces, E ⊂ U , and f ∈ Lip(γ, E, V ), and 0 < θ < γ. Then f ∈ Lip(θ, E, V ) and ∥f ∥Lip(θ) ≤ (1 + e)∥f ∥Lip(γ) .

(3.61)

The nesting property is a key advantage of Lip(γ) regularity over Cbk,α regularity on general domains, since it allows the Lie bracket of two Lip(γ) vector fields to be defined globally as a Lip(γ − 1) vector field. 52

3.3.3

Lie Bracket

To define the Lie bracket, we first introduce the derivative of a Lip(γ) function and the composition g[f ] : E → W of f ∈ Lip(γf , E, V ) and g ∈ Lip(γg , E, L(V, W )). These are the basic ingredients from which the Lie bracket will be constructed. Definition 3.20 (Lip(γ) Derivative). Let f = (f 0 , . . . , f k ) ∈ Lip(γ, E, V ) with γ > 1. The derivative of f is defined by Df = ((Df )0 , (Df )1 , . . . , (Df )k−1 ) = (f 1 , f 2 , . . . , f k ).

(3.62)

Lemma 3.21. If f ∈ Lip(γ, E, V ) with γ > 1 and ∥f ∥Lip(γ) = Mf , then Df ∈ Lip(γ − 1, E, L(U, V )) with ∥Df ∥Lip(γ−1) ≤ Mf . Proof. Trivially, Df satisfies (3.40) with bound Mf . Under the currying convention   Lsym U ⊗j , L(U, V ) ∼ = L U ⊗(j+1) , V , we have (3.63)

(Df )j = f j+1 for 0 ≤ j ≤ k − 1. Hence, for all x, y ∈ E, k−1−j j

(Df ) (y) −

X (Df )j+l (x)[(y − x)⊗l ] l!

l=0

j k−(j+1)

= f

j+1

(y) −

X f j+1+l (x)[(y − x)⊗l ] l! l=0

(3.64) j+1

≤ Mf ∥x − y∥γ−1−j . U Therefore, Df satisfies (3.41) with bound Mf and Df = (f 1 , . . . , f k ) ∈ Lip(γ − 1, E, L(U, V )). Definition 3.22. Let U, V, W be Banach spaces, E ⊂ U , f ∈ Lip(γf , E, V ), g ∈ Lip(γg , E, L(V, W )), γ = min(γf , γg ), and k be the integer such that k < γ ≤ k + 1. Then h = (h0 , . . . , hk ) = g[f ]

(3.65)

is defined pointwise by i

h (p)[u1 ⊗· · ·⊗ui ] =

i X

X   1 g r (p)[uσ(1) ⊗· · ·⊗uσ(r) ] f i−r (p)[uσ(r+1) ⊗· · ·⊗uσ(i) ] r!(i − r)! σ∈S r=0 i

(3.66)

for p ∈ E and i = 0, . . . , k. 53

This definition is an application of the definition from [Boutaib 2016, Proposition 3.29] and is analogous to applying Faà-di-Bruno to a bilinear map applied to two C k,α functions [Faà di Bruno 1855]. Lemma 3.23. If f ∈ Lip(γf , E, V ) and g ∈ Lip(γg , E, L(V, W )) then h = g[f ] ∈ Lip(γ, E, W ), where γ = min(γf , γg ). Proof. By Lemma 3.19, f ∈ Lip(γf ) and g ∈ Lip(γg ) implies f, g ∈ Lip(γ) where ∥f ∥Lip(γ) ≤ (1 + e)∥f ∥Lip(γf ) and ∥g∥Lip(γ) ≤ (1 + e)∥g∥Lip(γg ) , with at least one bound holding with equality. Let B : L(V, W ) × V → W be defined by B(A, v) = A[v],

(3.67)

for A ∈ L(V, W ) and v ∈ V . By [Boutaib 2016, Proposition 3.29], the function g[f ] = B(g, f ) = (B 0 , . . . , B k ) = (h0 , . . . , hk ), where the hi are defined by (3.66), satisfies ∥B(g, f )∥Lip(γ) ≤ Cγ ∥g∥Lip(γ) ∥f ∥Lip(γ) ≤ Cγ (1 + e)∥g∥Lip(γg ) ∥f ∥Lip(γf ) ,

(3.68)

where Cγ is a constant depending only on γ. Therefore, h = g[f ] ∈ Lip(γ, E, W ). Definition 3.24 (Lip(γ) Lie Bracket). Let f = (f 0 , . . . , f kf ) ∈ Lip(γf , E, U ) and g = (g 0 , . . . , g kg ) ∈ Lip(γg , E, U ) with γf , γg > 1. Their Lie bracket is defined by [f, g] = Dg[f ] − Df [g].

(3.69)

Lemma 3.25. If f = (f 0 , . . . , f kf ) ∈ Lip(γf , E, U ) and g = (g 0 , . . . , g kg ) ∈ Lip(γg , E, U ) for γf , γg > 1, then [f, g] ∈ Lip(min(γf , γg ) − 1, E, U ).

(3.70)

Proof. Let γ = min(γf , γg ). By Lemma 3.19, f, g ∈ Lip(γ, E, U ). Then Lemma 3.21 gives Df, Dg ∈ Lip(γ − 1, E, L(U, U )).

(3.71)

Applying Lemma 3.23, we obtain Dg[f ], Df [g] ∈ Lip(γ − 1, E, U ).

(3.72)

[f, g] = Dg[f ] − Df [g] ∈ Lip(γ − 1, E, U ).

(3.73)

Therefore,

54

Remark 3.26. The proof of Lemma 3.23 relies on Lemma 3.19, the nesting property of Lip(γ) functions. This is the crucial difference between Lip(γ) functions and Cbk,α functions that allows for a well defined global Lie bracket of Lip(γ) functions. The polynomial view point of Lip(γ) functions, Definition 3.16, motivates an alternative definition of the Lie bracket of two Lip(γ) functions. Definition 3.27 (Lip(γ) Polynomial Lie Bracket). Let f = (f 0 , . . . , f k ) ∈ Lip(γ, E, U ) and g = (g 0 , . . . , g k ) ∈ Lip(γ, E, U ) with γ > 1. Let Ppf (q) =

k X f l (p)[(q − p)⊗l ]

l!

l=0

and Ppg (q) =

(3.74)

.

k X g l (p)[(q − p)⊗l ]

(3.75)

l!

l=0

for p ∈ E and q ∈ U . The Polynomial Lie bracket of f and g is defined pointwise by     k−1 l+1 X g (p) Ppf (q) ⊗ (q − p)⊗l − f l+1 (p) Ppg (q) ⊗ (q − p)⊗l f g . (3.76) [Pp , Pp ](q) = l! l=0 for p ∈ E and q ∈ U . Remark 3.28. Definition 3.27 relies on the pointwise Lie bracket of two polynomial vector fields. Since polynomial vector fields are smooth and closed under this bracket, they form a Lie subalgebra of the space of smooth vector fields. Initially, the two definitions seem to produce different Lie brackets. In particular, the polynomial at each point in E when using Definition 3.24 is of order k − 1, whereas the polynomial at each point when using Definition 3.27 is of order up to 2k − 1. However, the two Lie brackets agree with each other in the Lip(γ − 1) sense. Lemma 3.29. Let f = (f 0 , . . . , f k ) ∈ Lip(γ, E, U ) and g = (g 0 , . . . , g k ) ∈ Lip(γ, E, U ) with γ > 1 and k the non-negative integer such that γ ∈ (k, k + 1]. For each p ∈ E, [f,g]

the polynomial defined at each point by their Lie Bracket Pp

∈ Pk−1 (U, U ) and the

polynomial Lie bracket [Ppf , Ppg ] agree up to the (k − 1)th term. Proof. Let s ≤ k. Then Dqs Ppf (q)

= f s (p),

(3.77)

= g s (p).

(3.78)

q=p

and Dqs Ppg (q) q=p

55

Additionally, Dqs (q − p)⊗l

[u1 ⊗ · · · ⊗ us ] = q=p

Letting Fgl (q) = and

 P

s = l,

0,

otherwise.

σ∈Sl uσ(1) ⊗ · · · ⊗ uσ(l) ,

 1 l+1  f g (p) Pp (q) ⊗ (q − p)⊗l , l!

m O

uα = u1 ⊗ · · · ⊗ um ,

(3.79)

(3.80) (3.81)

α=1

then for l ≤ m ≤ k − 1, we first apply the product rule to obtain " m # O uα Dqm Fgl (q) q=p

α=1

" i # " m #! O X O 1 1 = uσ(α) ⊗ Dqm−i (q − p)⊗l g l+1 (p) Dqi Ppf (q) uσ(α) . l! i=0 i!(m − i)! σ∈S α=1 α=i+1 m X

m

(3.82)

At q = p, the term Dqm−i (q − p)⊗l vanishes unless m − i = l. Therefore only the term i = m − l remains, and so # " m O Dqm Fgl (q) uα q=p

α=1

" m−l # " m #! X O O 1 g l+1 (p) Dqm−l Ppf (q) = uσ(α) ⊗ Dql (q − p)⊗l uσ(α) . (m − l)!(l!)2 σ∈S α=1 α=m−l+1 m

(3.83)

We now evaluate both derivatives at q = p. Using Dqm−l Ppf (q)|q=p = f m−l (p) and the formula above for Dql (q − p)⊗l |q=p , we obtain " m O

Dqm Fgl (q) q=p

# uα

α=1

" m−l # ! (3.84) l X X O O 1 g l+1 (p) f m−l (p) uσ(α) ⊗ uσ(m−l+τ (β)) . = (m − l)!(l!)2 σ∈S τ ∈S α=1 β=1 m

l

Finally, the sum over τ ∈ Sl contributes a factor of l!, and hence " m # O Dqm Fgl (q) uα q=p

α=1

" m−l # ! m X O O 1 = g l+1 (p) f m−l (p) uσ(α) ⊗ uσ(α) . (m − l)!l! σ∈S α=1 α=m−l+1 m

56

(3.85)

Similarly, for Ffl (q) =

 1 l+1  g f (p) Pp (q) ⊗ (q − p)⊗l , l!

(3.86)

the same argument gives " m # O uα Dqm Ffl (q) q=p

α=1

" m−l # ! m X O O 1 = f l+1 (p) g m−l (p) uσ(α) ⊗ uσ(α) . (m − l)!l! σ∈S α=1 α=m−l+1

(3.87)

m

= 0 for l > m,

= 0 and Dqm Ffl (q)

Since Dqm Fgl (q)

q=p

q=p

Dqm [Ppf , Ppg ](q)

= q=p

!

m X

Dqm Fgl (q)

− Dqm Ffl (q) q=p

l=0

,

(3.88)

q=p

for 0 ≤ m ≤ k − 1. Therefore, Dqm [Ppf , Ppg ](q)

= [f, g]m (p),

(3.89)

q=p

for 0 ≤ m ≤ k − 1, where [f, g]m (p) is obtained by combining Definition 3.22 and [f,g]

Definition 3.24. By the definition of Pp

, we also have

Dqm Pp[f,g] (q)

= [f, g]m (p),

(3.90)

q=p [f,g]

for 0 ≤ m ≤ k − 1. Hence Pp

and [Ppf , Ppg ] agree up to the (k − 1)th term.

Trivially, both the Lip(γ) Lie bracket and the Lip(γ) polynomial Lie bracket satisfy bilinearity and anti-symmetry. Theorem 3.30. Let γ > 2. Both the Lip(γ) Lie bracket and the Lip(γ) polynomial Lie bracket satisfy the Jacobi identity in Lip(γ − 2). Proof. Let U be a Banach space, E ⊂ U , γ > 2, f, g, h ∈ Lip(γ, E, U ), k be the nonnegative integer such that γ ∈ (k, k + 1], and for p ∈ E, let Ppf , Ppg , Pph ∈ Pk (U, U ) be the polynomial corresponding to f , g, and h at point p, respectively. As noted in Remark 3.28, Polynomial vector fields form a Lie subalgebra. Therefore for all p ∈ E, 

     Ppf , [Ppg , Pph ] (q) + Ppg , [Pph , Ppf ] (q) + Pph , [Ppf , Ppg ] (q) = 0

(3.91)

and the polynomial Lie bracket satisfies the Jacobi identity. Considering [g, h], Lemma [g,h]

3.29 means that Pp

and [Ppg , Pph ] are identical in the first k − 1 terms for all p. Since 57

  the first k − 2 terms of Ppf , [Ppg , Pph ] only depend on the first k − 1 terms of [Ppg , Pph ],   [f,[g,h]] Lemma 3.29 also implies that Pp and Ppf , [Ppg , Pph ] are identical in the first k −2 terms for all p. Therefore, (3.91) implies that the first k − 2 terms of Pp[f,[g,h]] (q) + Pp[g,[h,f ]] (q) + Pp[h,[f,g]] (q)

(3.92)

are equal to 0 for all p. Furthermore, Lemma 3.25 implies that [f, [g, h]] ∈ Lip(γ − 2, E, U ) and similarly for the other permutations. Therefore, [f, [g, h]] + [g, [h, f ]] + [h, [f, g]] = 0

(3.93)

in Lip(γ − 2, E, U ) and the Lip(γ) Lie bracket satisfies the Jacobi identity.

3.3.4

The Extension Theorem

Whitney proved necessary and sufficient conditions for derivative data (f 0 , . . . , f k ) on a closed set E ⊂ Rn to admit a C k extension to Rn [Whitney 1934]. Stein later recast the problem using Lip(γ) functions and constructed a bounded linear extension operator with norm controlled independently of E [Stein 1970]. We refer to the general result as the Stein–Whitney extension theorem. Theorem 3.31 (Stein-Whitney Extension Theorem [Whitney 1934; Stein 1970]). Let U and V be Banach spaces, U be finite dimensional, E ⊂ U be closed, and f ∈ Lip(γ, E, V ). Then there exists a function fˆ ∈ Lip(γ, U, V ) such that fˆ(p) = f (p),

p ∈ E,

(3.94)

and ||fˆ||Lip(γ,U,V ) ≤ C||f ||Lip(γ,E,V ) ,

(3.95)

for some constant C independent of f and E. Proof. Stein proves this theorem by construction for the case U = Rn and V = R [Stein 1970]. Given the equivalence of Banach norms on Rn , U can be replaced by any finite dimensional Banach space. Furthermore, as noted in [Baldi et al. 2018, Appendix B], Stein’s proof holds exactly for any Banach space V and Lip(γ) functions as given in Definition 3.15. Despite Lip(γ) functions being well defined for infinite dimensional U , Theorem 3.31 is in general not true, as shown by the counter example of Wells [1973]. Fefferman has extended the work of Whitney by proving necessary and sufficient conditions for the existence of a C k extension to a function with only its value specified on E [Fefferman 2006]. 58

3.4

Composition of Lip(γ) Functions

3.4.1

Introduction

In Chapter 4, the Log-ODE method will be applied to a CDE where the vector field is parametrised by a neural network. A non-trivial application of the Log-ODE method requires the neural network vector field to be Lip(γ) for γ > 1. A common strategy for establishing regularity of neural networks is to verify that each layer of the network satisfies an appropriate regularity condition and then invoke a composition theorem. This section develops the mathematical foundations required to apply that argument for Lip(γ) functions. Definition 3.32 (Partition of a Set). Let P(n) be the set of all partitions π = (π1 , . . . , π|π| ) of the set {1, . . . , n}, where |π| denotes the number of parts in the partition π, and |πi | the number of elements in the ith part of the partition. Definition 3.33 (Composition of Lip(γ) Functions [Cass et al. 2012]). Let U , V , and W be Banach spaces, E ⊂ U and F ⊂ V . The composition of f ∈ Lip(γ, E, F ) and g ∈ Lip(γ, F, W ), denoted h = (h0 , h1 , . . . , hk ) ∈ Lip(γ, E, W ), is defined by  h0 (p) = g 0 f 0 (p) , i X h hn (p)[u1 ⊗ · · · ⊗ un ] = g |π| f 0 (p) f |π1 | (p)[uπ1 ] ⊗ · · · ⊗ f |π|π| | (p)[uπ|π| ] , π∈P(n)

(3.96) where uπi is the tensor product of the vectors indexed by πi , O uπi = uj .

(3.97)

j∈πi

When γ < 1, the composition h in Definition 3.33 is not necessarily a Lip(γ) function. For example, f (x) = xγ and g(x) = xγ are both γ−Hölder continuous on [0, 1], whereas h(x) = (g ◦ f )(x) = xγ is not. When γ = 1, then h ∈ Lip(1, E, W ) and we 2

have the standard Lipschitz norm bound  ||h||Lip(1,E,W ) ≤ ||g||Lip(1,F,W ) max ||f ||Lip(1,E,F ) , 1 .

(3.98)

Lemma 3.34 (Composed Lip(γ)−norm [Cass et al. 2012; Boutaib 2016]). For γ ≥ 1, the composition h defined in Definition 3.33 satisfies   γ ||h||Lip(γ,E,W ) ≤ Cγ ||g||Lip(γ,F,W ) max ||f ||Lip(γ,E,F ) , 1 , where Cγ is a constant independent of f and g. 59

(3.99)

Proof. Explicit calculation can be used to verify that if f and g are Lip(γ), Definition 3.15 implies h is Lip(γ) with ||h||Lip(γ) obeying (3.99) [Cass et al. 2012]. The original statement of Lemma 3.34 in [Cass et al. 2012] gives (3.99) as  ||g ◦ f ||Lip(γ) ≤ Cγ ||g||Lip(γ) max ||f ||kLip(γ) , 1 .

(3.100)

We believe this is a small erratum, with the intended power being γ, as for g : [0, 1] → [0, 1] defined by g(x) = x, (3.100) implies there exists C1 > 0 such that ||g ◦ f ||Lip(1) = ||f ||Lip(1) ≤ C1 ||g||Lip(1) = C1

(3.101)

for all bounded and Lipschitz f : [0, 1] → [0, 1]. As a counterexample, for any C1 > 0, take f (x) = xn with n > max{C1 , 1}. Boutaib [2016] gives an alternative proof of Lemma 3.34 with the bound ||f ||γLip(γ,E,F ) . Accurately bounding the Lip(γ)−norm of a neural network requires bounds on Cγ in (3.99). This can be obtained via the explicit calculations mentioned in the proof of Lemma 3.34, and these have been completed for the case γ ∈ (1, 2].

3.4.2

The Case 1 < γ ≤ 2

For 1 < γ ≤ 2, a Lip(γ) function has only two components, which makes it feasible to track the relevant quantities explicitly and obtain a concrete bound for Cγ . Lemma 3.35. Let U , V , and W be Banach spaces and E ⊂ U and F ⊂ V . For γ ∈ (1, 2], let f = (f 0 , f 1 ) ∈ Lip(γ, E, F ) and g = (g 0 , g 1 ) ∈ Lip(γ, F, W ). Consider h0 : E → W and h1 : E → L(U, W ) defined for p ∈ E and u ∈ U by h0 (p) := g 0 f 0 (p)



and

h1 (p)[u] := g 1 f 0 (p)

 1  f (p)[u] .

(3.102)

Then h := (h0 , h1 ) ∈ Lip(γ, E, W ) and n o ||h||Lip(γ,E,W ) ≤ (1 + 2γ ) ||g||Lip(γ,F,W ) max 1, ||f ||γLip(γ,E,F ) .

(3.103)

Proof. To prove that h = (h0 , h1 ) ∈ Lip(γ, E, W ), we must bound the pointwise terms h0 and h1 , together with the corresponding remainder terms from Definition 3.15. We proceed in four steps. First, we record the bounds for f and g that follow directly from Definition 3.15. Next, we prove the pointwise bounds for h0 and h1 . We then estimate the remainder terms R0h and R1h separately in the cases ∥q − p∥U > 1 and 60

∥q − p∥U ≤ 1. Finally, we combine the estimates to obtain the norm bound claimed in (3.103). We begin by establishing the bounds on f 0 : E → F , f 1 : E → L(U, V ), g 0 : F → W and g 1 : F → L(V, W ) that arise directly from Definition 3.15. Letting Mf = ||f ||Lip(γ,E,F ) , for all p ∈ E (I)

f 0 (p) V ≤ Mf

and (II)

f 1 (p) L(U,V ) ≤ Mf .

(3.104)

Similarly, letting Mg = ||g||Lip(γ,F,W ) , for all x ∈ F we have that (I)

g 0 (x) W ≤ Mg

and (II)

g 1 (x) L(V,W ) ≤ Mg .

(3.105)

Define R0f : E × E → V and R1f : E × E → L(U, V ) by R0f (p, q) := f 0 (q) − f 0 (p) − f 1 (p)[q − p], R1f (p, q)[u] := f 1 (q)[u] − f 1 (p)[u],

(3.106)

for any p, q ∈ E and u ∈ U . Then (I) (II)

R0f (p, q) R1f (p, q)

V

≤ Mf ||q − p||γU , L(U,V )

≤ Mf ||q − p||γ−1 U .

(3.107)

Similarly, define R0g : F × F → W and R1g : F × F → L(V, W ) by R0g (x, y) := g 0 (y) − g 0 (x) − g 1 (x)[y − x], R1g (x, y)[v] := g 1 (y)[v] − g 1 (x)[v],

(3.108)

for x, y ∈ F and v ∈ V . Then, (I)

||R0g (x, y)||W ≤ Mg ||y − x||γV ,

(II)

||R1g (x, y)||L(V,W ) ≤ Mg ||y − x||γ−1 V .

Now define h0 : E → W and h1 : E → L(U, W ) as in (3.102),    h0 (p) := g 0 f 0 (p) and h1 (p)[u] := g 1 f 0 (p) f 1 (p)[u] ,

(3.109)

(3.110)

for p ∈ E and u ∈ U . Then define the corresponding remainder terms R0h : E × E → W and R1h : E × E → L(U, W ) by R0h (p, q) := h0 (q) − h0 (p) − h1 (p)[q − p], R1h (p, q)[u] := h1 (q)[u] − h1 (p)[u], 61

(3.111)

for p, q ∈ E and u ∈ U . We now establish that h = (h0 , h1 ) ∈ Lip(γ, E, W ) and that the norm estimate claimed in (3.103) is satisfied. First we consider the bounds on h0 and h1 . For any p ∈ E, (I) in (3.105) implies that h0 (p) W = g 0 f 0 (p)

 W

≤ Mg

(3.112)

since f 0 (p) ∈ F . Further, for any p ∈ E and any u ∈ U , (3.105) and (II) in (3.104) imply that   h1 (p)[u] W = g 1 f 0 (p) f 1 (p)[u] W  ≤ g 1 f 0 (p) L(V,W ) f 1 (p) L(U,V ) ||u||U ≤ Mg Mf ||u||U since f 0 (p) ∈ F . Taking the supremum over u ∈ U with unit U -norm, it follows that h1 (p) L(U,W ) ≤ ||g||Lip(γ,F,W ) ||f ||Lip(γ,E,F ) .

(3.113)

Now we consider the bounds on R0h and R1h . For this purpose we fix p, q ∈ E and u ∈ U . We first assume that ||q − p||U > 1. In this case we may use (3.112) and (3.113) to compute that R0h (p, q) W = h0 (q) − h0 (p) − h1 (p)[q − p] W ≤ 2||g||Lip(γ,F,W ) + ||g||Lip(γ,F,W ) ||f ||Lip(γ,E,F ) ||q − p||U . Since γ > 1 means that 1 < ||q − p||U < ||q − p||γU , we deduce that  R0h (p, q) W ≤ ||g||Lip(γ,F,W ) 2 + ||f ||Lip(γ,E,F ) ||q − p||γU .

(3.114)

Similarly, we may use (3.113) and ||q − p||γ−1 > 1 to compute that U R1h (p, q)[u] W = h1 (q)[u] − h1 (p)[u] W ≤ 2||g||Lip(γ,F,W ) ||f ||Lip(γ,E,F ) ||q−p||γ−1 U ||u||U . (3.115) Taking the supremum over u ∈ U with unit U -norm in (3.115) yields the estimate that R1h (p, q) L(U,W ) ≤ 2||g||Lip(γ,F,W ) ||f ||Lip(γ,E,F ) ||q − p||γ−1 U .

(3.116)

Together, (3.114) and (3.116) establish the remainder term estimates required to conclude that h = (h0 , h1 ) ∈ Lip(γ, E, W ) in the case that ||q − p||U > 1. 62

We next establish similar remainder term estimates when ||q − p||U < 1. Thus we fix p, q ∈ E and assume that ||q − p||U < 1. Note that γ > 1 means that ||q − p||γU < ||q − p||U < 1. Additionally, f 0 (q) − f 0 (p) V

(3.106)

=

f 1 (p)[q − p] + R0f (p, q)

, V

≤ ||f ||Lip(γ,E,F ) (||q − p||U + ||q − p||γU ) ,

(3.117)

≤ 2||f ||Lip(γ,E,F ) ||q − p||U , where (II) in (3.104) and (I) in (3.107) have been used. We now consider the term R0h (p, q). We start by observing that (3.111)

R0h (p, q) = h0 (q) − h0 (p) − h1 (p)[q − p]     (3.110) 0 = g f 0 (q) − g 0 f 0 (p) − g 1 f 0 (p) f 1 (p)[q − p]    (3.108) 1 = g f 0 (p) f 0 (q) − f 0 (p) − f 1 (p)[q − p] + R0g f 0 (p), f 0 (q) i h  (3.106) 1 = g f 0 (p) R0f (p, q) + R0g f 0 (p), f 0 (q) . Consequently, by using (II) in (3.105) to estimate the term g 1 (f 0 (p)), (I) in (3.107) to estimate the term R0f (p, q), and (I) in (3.109) to estimate the term R0g (f 0 (p), f 0 (q)), we may deduce that γ R0h (p, q) W ≤ ||g||Lip(γ,F,W ) ||f ||Lip(γ,E,F ) ||q − p||γU + f 0 (q) − f 0 (p) V . (3.118)

The combination of (3.117) and (3.118) yields the estimate   R0h (p, q) W ≤ ||g||Lip(γ,F,W ) ||f ||Lip(γ,E,F ) + 2γ ||f ||γLip(γ,E,F ) ||q − p||γU .

(3.119)

Turning our attention to R1h , we fix u ∈ U and compute that (3.111)

R1h (p, q)[u] = h1 (q)[u] − h1 (p)[u]     (3.110) 1 = g f 0 (q) f 1 (q)[u] − g 1 f 0 (p) f 1 (p)[u]     (3.108) 1 = g f 0 (p) f 1 (q)[u] − f 1 (p)[u] + R1g f 0 (p), f 0 (q) f 1 (q)[u] i   h (3.106) 1 = g f 0 (p) R1f (p, q)[u] + R1g f 0 (p), f 0 (q) f 1 (q)[u] . Consequently, by using (II) in (3.105) to estimate the term g 1 (f 0 (p)), (II) in (3.104) to estimate the term f 1 (q), (II) in (3.107) to estimate the term R1f (p, q), and (II) in (3.109) to estimate the term R1g (f 0 (p), f 0 (q)), we may deduce that   γ−1 0 0 R1h (p, q)[u] W ≤ ||g||Lip(γ,F,W ) ||f ||Lip(γ,E,F ) ||q − p||γ−1 + f (q) − f (p) ||u||U . U V (3.120) 63

The combination of (3.117) and (3.120) yields the estimate that   R1h (p, q)[u] W ≤ ||g||Lip(γ,F,W ) ||f ||Lip(γ,E,F ) + 2γ−1 ||f ||γLip(γ,E,F ) ||q − p||γ−1 U ||u||U . (3.121) Taking the supremum over u ∈ U with unit U -norm in (3.121) yields the estimate that   R1h (p, q) L(U,W ) ≤ ||g||Lip(γ,F,W ) ||f ||Lip(γ,E,F ) + 2γ−1 ||f ||γLip(γ,E,F ) ||q − p||γ−1 U . (3.122) Finally, we complete the proof by combining the various estimates we have established for h to obtain the Lip(γ, E, W )-norm bound claimed in (3.103). We start this task by combining (3.114) and (3.119) to deduce that for every p, q ∈ E we have ( R0h (p, q) W ≤

if ||q − p||U > 1

 ||g||Lip(γ,F,W ) 2 + ||f ||Lip(γ,E,F ) ||q − p||γU

||g||Lip(γ,F,W )

||f ||Lip(γ,E,F ) + 2 ||f ||γLip(γ,E,F ) γ



||q − p||γU

if ||q − p||U ≤ 1. (3.123)

Moreover, the combination of (3.116) and (3.122) yields the estimate that R1h (p, q)

  2||g||

γ−1 Lip(γ,F,W )||f ||Lip(γ,E,F ) ||q − p||U  ≤  ||g||Lip(γ,F,W ) ||f ||Lip(γ,E,F ) + 2γ−1 ||f ||γLip(γ,E,F ) ||q − p||γ−1 L(U,W ) U

if ||q − p||U > 1 if ||q − p||U ≤ 1. (3.124)

A consequence of (3.123) is that R0h (p, q) W ≤ (1 + 2γ ) ||g||Lip(γ,F,W ) max

n

o

||f ||γLip(γ,E,F ) , 1

||q − p||γU ,

(3.125)

whilst a consequence of (3.124) is that n o  γ h γ−1 R1 (p, q) L(U,W ) ≤ 1 + 2 ||g||Lip(γ,F,W ) max ||f ||Lip(γ,E,F ) , 1 ||q − p||γ−1 U . (3.126) Therefore, by combining (3.112), (3.113), (3.125), and (3.126), we conclude both that h = (h0 , h1 ) ∈ Lip(γ, E, W ) and that n o γ ||h||Lip(γ,E,W ) ≤ (1 + 2 ) ||g||Lip(γ,F,W ) max ||f ||Lip(γ,E,F ) , 1 . γ

3.4.3

(3.127)

Optimality

Handling the terms individually in the proof of Lemma 3.35 means it is unlikely that Cγ = 1 + 2γ is optimal. However, ||h||Lip(γ,E,G) being of order ||f ||γLip(γ,E,F ) is optimal, 64

as shown by the following example. Take E = {0, a} ⊂ R with a < 1, F = {0, 1} ⊂ R, and f ∈ Lip(γ, E, F ) with γ ∈ (1, 2] defined by f 0 (0) = 0, f 0 (a) = 1, and f 1 (0) = f 1 (a) = c. Then,   |1 − ca| ∥f ∥Lip(γ,E,F ) = max 1, |c|, , aγ and ∥f ∥Lip(γ,E,F ) is minimised when  1, c = c∗ =  1 , a+aγ

a + aγ > 1, a + aγ ≤ 1,

(3.128)

(3.129)

with ∥f ∥Lip(γ,E,F ) = c∗ . Take G = {−1, 1} ⊂ R and g ∈ Lip(γ, F, G) defined by g 0 (0) = −1, g 0 (1) = 1, and g 1 (0) = g 1 (1) = 1. Then ∥g∥Lip(γ,F,G) = 1. Further, h = g ◦ f is defined by h0 (0) = −1, h0 (a) = 1, and h1 (0) = h1 (a) = c, with   |2 − ca| ∥h∥Lip(γ,E,G) = max 1, |c|, . aγ When a + aγ ≤ 1, ∥h∥Lip(γ,E,G) =

2 − ca 1 1 = + γ. γ γ a a+a a

(3.130)

(3.131)

Then lim

∥h∥Lip(γ,E,G)

a→0 ∥f ∥β Lip(γ,E,F )

= lim (a + aγ )β−1 + a→0

(a + aγ )β , aγ

= lim aβ−1 (1 + aγ−1 )β−1 + aβ−γ (1 + aγ−1 )β , a→0

= lim aβ−γ (1 + aγ−1 )β−1 (2aγ−1 + 1), a→0    ∞ β < γ,   = 1 β = γ,    0 β > γ.

(3.132)

Therefore, ||h||Lip(γ,E,G) being of order ||f ||γLip(γ,E,F ) is optimal. The same example can be used to obtain a lower bound on Cγ . Letting aγ + a = 1, then ∥f ∥Lip(γ,E,F ) = 1 and ∥g∥Lip(γ,F,G) = 1, but 2−a = 1 + a−γ . (3.133) aγ Figure 3.1 shows the range of Cγ when γ ∈ (1, 2] given by this example and Lemma ∥h∥Lip(γ,E,G) =

3.35. This example implies there is a jump in Cγ at γ = 1, as standard Lipschitz composition gives C1 = 1, whereas Cγ > 3 for all γ ∈ (1, 2]. 65

Figure 3.1: Let U , V , and W be Banach spaces, with E ⊂ U and F ⊂ V . If f ∈ Lip(γ, E, F ) and g ∈ Lip(γ, F,nW ), then theirocomposition h = g ◦ f satisfies

∥h∥Lip(γ,E,W ) ≤ Cγ ∥g∥Lip(γ,F,W ) max 1, ∥f ∥γLip(γ,E,F ) . This figure plots the bounds on Cγ obtained by combining Lemma 3.35 with the example of Section 3.4.3, namely 1 + a(γ)−γ ≤ Cγ ≤ 1 + 2γ , where a(γ) is the unique solution to aγ + a = 1.

66

3.4.4

Future Work

At present, extending Lemma 3.35 by finding a bound on Cγ for γ > 2 remains open work. Proving such a bound would extend the explicit dimension-free control of composition to higher regularity classes. This would make it possible to give fully quantitative bounds for the Lip(γ)-norms of neural architectures built by repeated composition, with constants depending explicitly on quantities such as depth and layer norms. Furthermore, such a result would support explicit error estimates for CDEs with neural network vector fields in higher-regularity regimes. However, the proof of an explicit bound in the first non-trivial regime γ ∈ (1, 2] is already involved. This motivates exploring alternative approaches for the case γ > 2. In finite-dimensional U and V one could try to extend f and g to the whole spaces via the Stein–Whitney theorem (Theorem 3.31) and then invoke the equivalence of Lip(γ) and Cbk,α on open convex sets (Lemma 3.18) to apply classical Cbk,α compositional bounds. However, this approach produces a constant depending on the dimension of U and V , as opposed to the dimension-free constant of Lemmas 3.34 and 3.35. Another possible approach is to use the polynomial viewpoint of Lip(γ) functions from Definition 3.16 together with standard results on the composition of polynomial functions.

3.5

Conclusion

This chapter developed the regularity theory needed for the CDE framework used throughout the thesis. We related Lip(γ) regularity to C k,α regularity, clarifying both where these notions agree and where Lip(γ) has stronger global properties. We then introduced the derivative and Lie bracket of Lip(γ) functions on arbitrary subsets of Banach spaces. Finally, we studied the composition of Lip(γ) functions and proved an explicit bound on the composition norm in the first non-trivial regime 1 < γ ≤ 2. Together, these results provide the framework necessary for Chapter 4 to apply the Log-ODE method to NCDEs, where the vector fields are parametrised by neural networks. Chapters 2 and 3 have provided the mathematical tools needed to develop the scalable and efficient continuous-time machine learning models that are the focus of the remainder of this thesis. This begins with Chapter 4 examining how to solve NCDEs 67

efficiently via the Log-ODE method. Chapter 5 then introduces Linear NCDEs, which enable parallel-in-time computation without sacrificing expressivity.

68

Chapter 4 Neural Controlled Differential Equations Forty feet, down two and a half. Kicking up some dust. Thirty feet, two and a half down. Faint shadow. —Buzz Aldrin, Apollo 11 Air-to-Ground Voice Transcription (1969)

4.1

Introduction

Time series modelling is the development of mathematical, statistical, and computational methods for sequentially ordered data. It has played a central role across science and technology for nearly a century, from Yule’s 1927 autoregressive models for sunspot numbers, through Kalman filtering in the Apollo guidance system for estimating the Lunar Module’s altitude, to the autoregressive models that power today’s large-scale language models [Yule 1927; Kalman 1960; Touvron et al. 2023]. Figure 4.1 illustrates the problem of interest for this chapter: given a sequence of irregularly spaced observations {Xti }ni=0 = {(ti , xti )}ni=0 from a multi-dimensional process, predict a corresponding output path yt . This framework encompasses classification, where yt is a single label, regression, where yt varies over time, and autoregressive generation, where each new observation Xti is produced from the previous output yti−1 . Our focus is developing models that can generalise to unseen examples by leveraging large datasets of observation–output pairs. In particular, we explore Neural Controlled Differential Equations (NCDEs), which provide a continuous-time framework 69

... Figure 4.1: A schematic diagram of observations from a three-dimensional, irregularly sampled time series and a corresponding output path one wishes to predict. The colour of each ball represents a different channel in the time series. naturally suited to irregularly sampled data. The development of NCDEs builds on a rich history of time series modelling, from which we note a few of the important milestones.

4.2

Historical Milestones

4.2.1

Classical Approaches

In 1927, Yule introduced autoregressive modelling, which approximates each term in a time series as a linear function of its previous values [Yule 1927]. The model is defined as yti = a1 yti−1 + a2 yti−2 + · · · + ap yti−p + ϵti ,

(4.1)

where a1 , a2 , . . . , ap are the autoregressive coefficients, p is the model order, and ϵti are independent and identically distributed random variables with mean zero and constant variance. Building on this work, the Yule–Walker equations were derived as a method for estimating the parameters of the model, laying the groundwork for statistical time series analysis [Walker 1931]. In parallel, Slutsky introduced moving average processes, which approximate each term in a time series as a linear function of previous noise values ϵti [Slutsky 1927; Slutsky 1937]. The model is defined as yti = ϵti + b1 ϵti−1 + b2 ϵti−2 + · · · + bq ϵti−q ,

(4.2)

where b1 , b2 , . . . , bq are the moving average coefficients. These two lines of development were unified in the autoregressive moving average model by Whittle in 1951, 70

and later popularised as part of the Box–Jenkins framework [Whittle 1951; Box et al. 1970]. In 1965, building on Galtieri’s 1964 work on estimation in discrete-time processes, Åström and Bohlin introduced a numerical method for identifying linear dynamical systems from observed input-output data [Galtieri 1964; Åström et al. 1965]. Their model extended the autoregressive moving average framework to include an observed input series xti , yti = a1 yti−1 +· · ·+ap yti−p +ϵti +b1 ϵti−1 +· · ·+bq ϵti−q +c0 xti +c1 xti−1 +· · ·+cr xti−r , (4.3) where c0 , c1 , . . . , cr are the input coefficients. The parameters are then estimated by maximum likelihood using a numerical optimisation procedure. This line of work was later consolidated under the name system identification [Åström et al. 1971]. A separate line of development focused on estimating signals or hidden states from noisy observations once a model had been specified. Early work in this direction includes Kolmogorov’s 1941 treatment of interpolation and extrapolation for stationary random sequences [Kolmogorov 1941; Kolmogorov 1962]. In 1949, Wiener developed the Wiener filter, a method for minimising the mean-squared error when estimating a signal from noisy observations [Wiener 1949]. For a stationary process, the Wiener filter seeks to find an optimal linear filter l(t) such that, when convolved with the observed signal x(t), it produces an estimate ŷ(t) of the desired signal y(t), Z ∞ ŷ(t) = l(t − τ )x(τ ) dτ.

(4.4)

−∞

Wiener provided an explicit solution for the filter in the frequency domain. In 1960, Kalman formalised the state-space model framework for non-stationary processes and proposed the Kalman filter, an optimal recursive algorithm for estimating the hidden states of such processes [Kalman 1960]. The state-space model is defined by hti = Ahti−1 + Bxti + wti , yti = Chti + vti ,

(4.5)

where hti is the hidden state, A is the state transition matrix, xti are the inputs, B represents the influence of the inputs, yti is the observed output, C is the observation matrix, and wti and vti are zero-mean Gaussian noise processes with known covariance 71

matrices. For linear Gaussian systems, the Kalman filter provides an optimal recursive solution for estimating the hidden states hti . Subsequent advancements extended the Kalman filter to accommodate non-linear dynamics and non-Gaussian noise, leading to algorithms such as the Extended Kalman Filter, Unscented Kalman Filter, and Particle Filters [Gelb 1974; Julier et al. 1997; Gordon et al. 1993]. A further development was the extension of system identification methods from the autoregressive moving average models in (4.3) to the state-space setting of (4.5). In particular, Van Overschee and De Moor introduced N4SID in 1994, a subspace method that identifies a discrete-time state-space realisation from input-output data [Van Overschee et al. 1994]. In 1978, O’Hagan introduced a Bayesian non-parametric framework for curve fitting and prediction that laid the groundwork for what is now known as Gaussian process regression [O’Hagan 1978]. Given observations at times T = (t1 , . . . , tn ), one assumes that yti = η(ti ) + ϵti ,

(4.6)

 where η is an unknown regression function and ϵti ∼ N 0, σ 2 (ti ) independently. Rather than restricting η to a finite-dimensional parametric family, the method assumes that for any finite collection of times S = (s1 , . . . , sm ), the vector ⊤ η(s1 ), . . . , η(sm )

(4.7)

is jointly Gaussian with mean ⊤ m(S) = m(s1 ), . . . , m(sm ) and covariance

 k(s1 , s1 ) · · · k(s1 , sm )   .. .. .. , K(S, S) =  . . .   k(sm , s1 ) · · · k(sm , sm )

(4.8)

(4.9)

where m and k specify the prior distribution of η. Let T∗ denote a collection of test  times, and let Σ(T ) = diag σ 2 (t1 ), . . . , σ 2 (tn ) . Conditioning on the observed data yields the posterior distribution  −1  η(T∗ ) | y ∼ N m(T∗ ) + K(T∗ , T ) K(T, T ) + Σ(T ) y − m(T ) ,  −1 K(T∗ , T∗ ) − K(T∗ , T ) K(T, T ) + Σ(T ) K(T, T∗ ) .

(4.10)

This yields both a prediction for η at the test times and a corresponding posterior uncertainty estimate. O’Hagan’s original paper developed this framework in the context 72

of Bayesian smoothing, curve fitting, and prediction, and it was later popularised in machine learning as a flexible kernel-based approach to non-linear regression [Williams et al. 1996; Rasmussen et al. 2006].

4.2.2

Discrete Machine Learning Approaches

In 1990, Elman introduced a recurrent neural network (RNN) architecture from which many subsequent RNNs would evolve [Elman 1990]. The Elman network is defined as hti = σ(Wh hti−1 + Wx xti + bh ),

(4.11)

yti = Wy hti + by ,

(4.12)

where hti is the hidden state at time ti , σ is an activation function, Wh , Wx , Wy are learnable weight matrices, and bh , by are learnable bias vectors. The matrices Wh , Wx , and Wy play analogous roles to those of A, B, and C in (4.5), respectively. The generic architecture of an RNN can be expressed as hti = gθ (hti−1 , xti ), yti = lψ (hti ),

(4.13)

where gθ is a learnable non-linear function parametrised by θ, and lψ is a learnable affine transformation parametrised by ψ. Challenges such as vanishing and exploding gradients during training led to the development of more advanced architectures, including Long Short-Term Memory networks (LSTMs) in 1997 [Hochreiter et al. 1997], Gated Recurrent Units (GRUs) in 2014 [Cho et al. 2014], and Linear Recurrent Units (LRUs) in 2023 [Orvieto et al. 2023]. In 2015, Bahdanau et al. introduced the attention mechanism to RNN-based encoderdecoder models to enhance their ability to capture long-range dependencies [Bahdanau et al. 2015]. A widely used variant is the scaled dot-product attention of Vaswani et al. [2017]. Given matrices X ∈ Rn×dX and Y ∈ Rm×dY representing time series of dimension dX and dY respectively, scaled dot-product attention computes   (Y WQ )(XWK )⊤ √ Attention(Y, X) = softmax (XWV ), (4.14) dk where WQ ∈ RdY ×dk , WK ∈ RdX ×dk , and WV ∈ RdX ×dv are learnable weight matrices, and the softmax function is applied row-wise to normalise the attention scores. Here, 73

Y WQ , XWK , and XWV are referred to as the queries, keys, and values respectively. This mechanism allows the model to focus on different parts of the input sequence when generating each part of the output. In 2017, Vaswani et al. built the Transformer architecture around scaled dot-product attention, entirely removing recurrent layers in favour of self-attention mechanisms [Vaswani et al. 2017]. In self-attention, the input sequence generates the queries, keys, and values (X = Y ) within each layer. This design allows each position in the sequence to attend to all other positions, effectively capturing long-range dependencies. Combining the Transformer architecture with autoregressive modelling has led to significant breakthroughs in natural language processing and forms the foundation of modern large language models [Brown et al. 2020; Touvron et al. 2023]. However, for sequence length n, the computational complexity of the attention mechanism scales as O(n2 ), compared to O(n) for RNNs.

4.2.3

Neural Differential Equations

In 1987, Pineda theoretically explored training a continuous-time recurrent neural network where

dht = −ht + σ(Wh ht ) + It , dt

(4.15)

 i ht  h ht = ht  , hot

(4.16)

with hi , hh , and ho being designated input, hidden, and output nodes, and   Xt   It =  0  ,

(4.17)

0 with Xt being a continuous input stream [Pineda 1987]. In 1989, building on earlier work which applied the adjoint sensitivity method to differential equations for optimal control problems [Bryson et al. 1962], Pearlmutter [1989] introduced an approach for computing the gradients of (4.15) by solving a backwards-in-time ODE. Theoretically, this method allows gradient calculation without storing the intermediate hidden states of the network, although in practice Pearlmutter [1989] did store the intermediate states. To the best of our knowledge, Pearlmutter [1989] also trained the first neural 74

Figure 4.2: “Desired states d1 and d2 plotted against each other (left); actual states h1 and h2 plotted against each other at epoch 3,182 (centre) and 20,000 (right)”. Reproduced with permission from Pearlmutter [1989]. differential equations to output desired trajectories, with Figure 4.2 showing their results on a figure eight dataset. In 1992, Rico-Martı́nez et al. parametrised the vector field of a differential equation using a neural network,

dht = fθ (t, ht ), (4.18) dt and modelled the electrodissolution of copper in phosphoric acid solution [RicoMartı́nez et al. 1992]. In contrast to the adjoint sensitivity method developed by Pearlmutter [1989], Rico-Martı́nez et al. [1992] backpropagated directly through the steps of their differential equation solve, which requires storing the intermediate hidden states. In 2015, He et al. introduced Residual Neural Networks (ResNets), which allowed the training of very deep networks [He et al. 2016]. This was achieved by introducing skip connections, which allow the input to bypass one or more layers, mitigating issues such as vanishing gradients. The update rule for a ResNet layer is given by hi+1 = hi + fθii (hi ),

(4.19)

where hi is the hidden state at layer i, and the fθii are non-linear functions parametrised by θi respectively. In 2018, Chen et al. observed that (4.19) resembles an Euler discretisation of (4.18), and proposed Neural ODEs as a continuous-depth analogue to ResNets [Chen et al. 2018]. Following a similar approach to Pearlmutter [1989], Chen et al. [2018] derived a method for calculating the gradients of solutions to (4.18) using the adjoint sensitivity method. Furthermore, they utilised the ability to not store 75

the intermediate hidden states to significantly reduce memory requirements during training. These advancements in modelling continuous-time dynamics using neural networks set the stage for the development of NCDEs, the continuous-time analogue to recurrent neural networks.

4.3

Neural Controlled Differential Equations

4.3.1

Definition

Definition 4.1 (Neural Controlled Differential Equation [Kidger et al. 2020]). Let X : [t0 , tn ] → RdX be a continuous interpolation of {(ti , xti )}ni=0 , such that Xti = (ti , xti ). Let ξϕ : RdX → Rdh and fθ : Rdh → Rdh ×dX be neural networks and lψ : Rdh → Rdy be a linear map with learnable parameters ϕ, θ, and ψ, respectively. An NCDE is defined by ht0 = ξϕ (Xt0 ), Z t ht = ht0 + fθ (hs )dXs ,

(4.20)

t0

yt = lψ (ht ). An NCDE consists of three learnable maps. First, ξϕ maps the initial observation to the initial hidden state ht0 . Second, fθ maps each hidden state hs to a linear map that determines how increments of the control path X update the hidden state. Finally, lψ maps the hidden state ht to the output yt . The central innovation of NCDEs is that they interface with the data through a continuous control path X. Although Definition 4.1 is stated for irregularly sampled, fully observed data, the same framework applies more broadly whenever the observations can be encoded as a continuous path X. For example, if only a subset of the components of xti is observed at time ti , then one may either construct the control path channel-wise or first impute the missing values and then build X from the resulting completed observations. As another example, when the observations xti take discrete values, one may first encode them in a Euclidean space and then choose X to be the rectilinear interpolation [Morrill et al. 2022], which between successive observations follows the path (ti , xti ) → (ti+1 , xti ) → (ti+1 , xti+1 ). 76

(4.21)

The choice of X requires some care, since different constructions expose different information to the model, affecting both the learned dynamics and the resulting performance. In particular, some choices make Xt depend on observations from times later than t, rendering them unsuitable for online settings. Morrill et al. [2022] theoretically and empirically studied a range of choices for X, and introduced rectilinear controls for online prediction tasks. From this point onward, we assume that a suitable online control path X has already been constructed from the observations. To make use of the techniques developed for training Neural ODEs, NCDEs are typically rewritten as an ODE, Z t h̃t = h̃t0 +

gθ,X (h̃s , s)ds,

(4.22)

t0

where h̃ denotes the hidden state in this ODE representation, with h̃t0 = ht0 . Originally, Kidger et al. [2020] proposed taking X to be a differentiable interpolation and gθ,X (·) = fθ (·)

dX , ds

(4.23)

which gives h̃t = ht for all t. The Log-ODE method will allow us to retain the ODE form (4.22) for a wider class of driving paths, at the expense of replacing the exact dynamics by an approximation, such that h̃t ≈ ht .

4.3.2

Comparison with Alternative Approaches

NCDEs are closely related to Neural ODEs (4.18). The key difference is that the trajectory of a Neural ODE’s hidden state is determined entirely by its initial condition and the learned vector field, making them unsuitable for time series data. Methods such as GRU-ODE and ODE-RNN address this by combining continuous-time evolution with discrete recurrent updates at observation times [Brouwer et al. 2019; Rubanova et al. 2019]. In contrast, NCDEs incorporate the incoming signal directly into the dynamics, and so may be viewed as a continuous-time analogue of RNNs. This connection can be made concrete by considering the residual RNN [Yue et al. 2018] hti+1 = hti + gθ (hti , Xti+1 − Xti ).

77

(4.24)

Just as a ResNet can be interpreted as a discretisation of a Neural ODE, (4.24) can be interpreted as the discretisation of a continuous process dhs = gθ (hs , dXs ).

(4.25)

The key structural difference is that (4.25) depends non-linearly on the increment dXs , whereas an NCDE depends linearly on the increment. However, this linear dependence does not reduce theoretical expressivity, as discussed further in Section 4.3.3. Alternative irregular-time methods include Gaussian processes and Neural Processes, which also naturally support predictive uncertainty quantification [O’Hagan 1978; Williams et al. 1996; Rasmussen et al. 2006; Garnelo et al. 2018]. In particular, causal Gaussian processes respect the same online temporal structure as the sequential prediction setting relevant for NCDEs [Cunningham et al. 2012]. Such approaches are appealing when quantifying predictive uncertainty is itself a central objective. However, the focus of this thesis is on understanding parametric, causal, continuoustime models for sequential prediction. Therefore, to isolate the core questions of representation, architecture, and numerical approximation, we work in a simplified deterministic setting. Once the observations have been converted into a control path, the path X is treated as fixed, the output path y is treated as deterministic, and the maps ξϕ , fθ , and lψ are taken to be deterministic parametrised functions. This excludes explicit modelling of aleatoric and epistemic uncertainty, but allows this thesis to focus on the fundamental mechanisms by which NCDEs process continuous paths and propagate information through time. There are natural extensions of the NCDE framework that do incorporate uncertainty, including Neural Stochastic Differential Equations and Bayesian Neural Controlled Differential Equations [Kidger et al. 2021; Hess et al. 2024]. Furthermore, the numerical and architectural advances developed in this thesis are compatible with these uncertainty-aware settings, although we do not pursue those extensions here.

4.3.3

Expressivity

Definition 4.2 (Maximal expressivity [Walker et al. 2025]). Let X be a topological space, and let F = {fθ : X → R | θ ∈ Θ} be a class of real-valued functions on X , parametrised by some set Θ. We say that F is maximally expressive (or universal) on X if, for every compact set K ⊂ X and every real-valued continuous function 78

f : K → R, the following property holds: ∀ϵ > 0, ∃θ ∈ Θ s.t.

sup f (x) − fθ (x) < ϵ.

(4.26)

x∈K

Although maximal expressivity is not sufficient to ensure good performance, it is desirable, as it shows that at least theoretically the model class is rich enough to approximate any continuous target map on compact sets. A classical result is the Universal Approximation Theorem for neural networks. Theorem 4.3 (Universal Approximation Theorem [Cybenko 1989; Hornik 1991]). Let σ : R → R be continuous, bounded, and nonconstant. Define ( ) m X F = x 7→ aj σ(wj⊤ x + bj ) m ∈ N, aj ∈ R, wj ∈ Rd , bj ∈ R .

(4.27)

j=1

Then F is maximally expressive on Rd . Theorem 4.3 establishes that single hidden-layer neural networks are maximally expressive for continuous real-valued functions on Rd . Theorem 4.4 shows that NCDEs satisfy the same notion of maximal expressivity for continuous functions of entire paths. Theorem 4.4 (Maximally Expressive NCDEs [Kidger et al. 2020]). Let X be the space of bounded variation paths on the interval [t0 , tn ] that start at a common point and include time as a channel, endowed with the 1-variation topology. Let F be the class of real-valued maps X 7→ ytn induced by NCDEs from Definition 4.1 with dh ∈ N and dy = 1. Then F is maximally expressive on X . Proof. The result follows from the signature being universal, Corollary 2.28, the truncated signature solving a linear CDE, (2.82), and the Universal Approximation Theorem for neural networks [Cybenko 1989; Hornik 1991]. For more details, see [Kidger 2022, Theorem C.25]. Theorem 4.4 can be extended from path-to-point functions to path-to-path functions by replacing the linear readout lψ with a neural network, as shown in [Cirone et al. 2024, Proposition D.2]. In addition to their important theoretical properties, NCDEs achieve superior performance on a range of datasets when compared to similar methods, such as GRU-ODE and ODE-RNN, which handle irregularly sampled data by combining Neural ODEs with RNNs [Brouwer et al. 2019; Rubanova et al. 2019].

79

Just as NCDEs can be viewed as the continuous-time analogue of RNNs, once an NCDE is discretised using a differential equation solver, it may be viewed as an RNN unrolled over the solver steps. If many solver steps are required, then training must backpropagate through a long sequence of hidden-state updates. Consequently, NCDEs can suffer from the same exploding and vanishing gradient issues as RNNs on long time series, leading to degraded performance [Morrill et al. 2021].

4.3.4

Neural Rough Differential Equations

A recurring issue in deep learning approaches to time series modelling is that large number of repeated forward passes through the neural network cause the gradient during training to either explode or vanish, as was first shown in [Hochreiter 1991] and explored further in [Hochreiter et al. 2001]. This issue was one of the motivations behind the development of LSTMs [Hochreiter et al. 1997]. The Log-ODE method introduced in Section 2.5 is an efficient and accurate method for approximating the solution to a CDE. Inspired by the Log-ODE method, Morrill et al. introduced neural rough differential equations (NRDEs), which replaced (4.23) with the piecewise in time gθ,X (·) = f¯θ (·)

log(S N (X)[ri ,ri+1 ] ) , ri+1 − ri

s ∈ [ri , ri+1 ),

(4.28)

where f¯θ : Rdh → Rdh ×β(dX ,N ) is a neural network and β(dX , N ) = O(dN X ) is the dimension of LN (RdX ), the space where the depth−N truncated log-signature of a dX dimensional path lives [Morrill et al. 2021]. Compared to NCDEs, NRDEs can reduce the number of forward passes through the network while evaluating the model, as the vector field is autonomous on each interval [ri , ri+1 ). This has been shown to lead to improved classification accuracy, alongside reduced time and memory-usage, on time series with up to 17,000 observations [Morrill et al. 2021]. Furthermore, as it is no longer necessary to apply a differentiable interpolation to the time series data, NRDEs are applicable to a wider range of input signals. By neglecting the Lie bracket structure of f¯θ , NRDEs reduce the computational burden of evaluating the vector field, at the cost of increasing the output dimension of the neural network. In contrast, Log-NCDEs retain the Lie bracket structure of f¯θ .

80

4.4

Log Neural Controlled Differential Equations

4.4.1

Definition

Log-NCDEs use the same underlying model as NRDEs, Z t ht = ht0 + gθ,X (hs )ds, (4.29)

t0

log(S N (X)[ri ,ri+1 ] ) ¯ gθ,X (·) = fθ (·) , ri+1 − ri

s ∈ [ri , ri+1 ),

but with two major changes. First, instead of parametrising f¯θ using a neural network, it is constructed using the iterated Lie brackets of an NCDE’s neural network, fθ . Second, fθ is ensured to be a Lip(γ) function for γ ∈ (N − 1, N ]. These changes have a major benefit. For N > 1, Log-NCDEs are exploring a smaller output space during training than NRDEs, while maintaining the same expressivity, as NCDEs are maximally expressive. This is because the output dimension of fθ is dh × dX , whereas the output dimension of f¯θ is dh × β(dX , N ), where β(dX , N ) = O(dN ). Figure 4.3 X

compares these values for paths of dimension dX from 1 to 15 and truncation depths of N = 1 and N = 2. The reduced output dimension comes at the cost of needing to calculate the iterated Lie brackets when evaluating Log-NCDEs, which is quantified in Section 4.4.4 and explored empirically in Section 4.4.7. Figure 4.4 is a schematic diagram comparing the approaches of an NCDE and a Log-NCDE. When N = 1, (4.29) simplifies to gθ,X (·) = fθ (·)

Xri+1 − Xri , ri+1 − ri

s ∈ [ri , ri+1 ).

(4.30)

Hence, in this case the only difference between Log-NCDEs and NRDEs is the regularisation of fθ . Furthermore, (4.30) and (4.23) are equivalent when X is a linear interpolation. Therefore, the approach of NCDEs, NRDEs, and Log-NCDEs coincide when using a depth−1 Log-ODE approximation [Morrill et al. 2021].

4.4.2

Lip(γ) Neural Networks

As discussed in Section 2.5, applying a depth N Log-ODE method requires the vector field fθ to be Lip(γ) for γ ∈ (N − 1, N ]. There exist theoretical results linking the robustness of a learning algorithm to the algorithm’s Lipschitz constant [Xu et al. 2012]. Furthermore, there are results bounding the Lipschitz constant of a fully 81

Figure 4.3: A plot of β(dX , N ) against dX for N = 1, 2. The output dimension of an NRDE’s neural network is Rdh ×β(dX ,N ) , whereas for a Log-NCDE it is Rdh ×dX . connected neural network (FCNN) [Szegedy et al. 2014]. Here, we extend these results to Lip(γ) for 1 < γ ≤ 2. Definition 4.5 (Fully Connected Neural Network). Let m, nin , nout , nh ∈ N and fθ be a fully connected neural network (FCNN) with m layers, input dimension nin , output dimension nout , hidden dimension nh , and activation function σ. Given an input x ∈ Rnin , fθ (x) = Lm (· · · (L1 (x)) · · · ),

(4.31)

where L1 : Rnin → Rnh , Li : Rnh → Rnh for i = 2, . . . , m − 1, and Lm : Rnh → Rnout . Each layer is defined by         i i i i i L (y) l (y) σ(l (y)) σ(W1 · y + b1 )  1.   1 .   1.    .. i  .   = , .  .. L (y) =  .  .  = σ  .  =     i i i i i lα (y) σ(lα (y)) σ(Wα · y + bα ) Lα (y)

(4.32)

where y ∈ Rβ , W i = [W1i , . . . , Wαi ]T ∈ Rα×β and bi = [bi1 , . . . , biα ]T ∈ Rα are the

82

... (a) A schematic NCDE. A continuous path X is constructed from the observations. Its time derivative dX ds is combined with the neural vector field fθ to define the hidden-state dynamics, which are evolved with a differential equation solver. A linear map is then applied to htn to produce a prediction, and the loss L against the target ytn is used to update the learnable parameters.

...

(b) A schematic Log-NCDE. In contrast to the NCDE, the log-signature of the driving path X is computed over intervals {ri }m i=0 and combined with iterated Lie brackets of the neural vector field fθ to define the hidden-state dynamics.

Figure 4.4: A schematic diagram of an NCDE and a Log-NCDE. 83

learnable parameters and    (n , n ),   h in (α, β) = (nh , nh ),    (n , n ), out

i = 1, i = 2, . . . , m − 1,

(4.33)

i = m.

h

Assumption 4.6. Let 1 < γ ≤ 2. We will assume that the activation function σ satisfies the following four conditions: 1. σ is continuously differentiable with derivative σ ′ , 2. |σ(x)| ≤ |x|, 3. supx∈R |σ ′ (x)| ≤ M1 , and ′

(y)−σ (x)| 4. [σ ′ ]γ−1 = supy,x∈R |σ|y−x| ≤ M2 , γ−1 y̸=x

for constants M1 , M2 > 0. Conditions 1 and 4 imply that σ ∈ C 1,γ−1 . Additionally, by Lemma 3.17, σ satisfies all the conditions to be Lip(γ) except supx∈R |σ(x)| < ∞, which we do not assume as it would exclude some standard activation functions which do satisfy Assumption 4.6, such as SiLU. It is worth noting that not all standard activation functions satisfy Assumption 4.6. For example, ReLU is not continuously differentiable. Lemma 4.7. Let 1 < γ ≤ 2 and fθ be a FCNN with activation function satisfying Assumption 4.6. Take the Euclidean norm and assume the input x ∈ A ⊂ Rnin , where supx∈A ∥x∥2 = C. Then each layer Li satisfies  ∥Li ∥Lip(γ) ≤ max Γi , M1 ∥W i ∥op , M2 ∥W i ∥γop ,

(4.34)

where Γi = ∥W i ∥op Γi−1 + ∥bi ∥2 for i ≥ 1 and Γ0 = C. Proof. Let Yi be the input domain to the ith layer. The Lip(γ) norm of Li is a maximum over four terms: 1. First, sup ∥Li (y)∥2 ≤ sup ∥W i ∥op ∥y∥2 + ∥bi ∥2 , y∈Yi

y∈Yi

by condition 2 in Assumption 4.6.

84

(4.35)

2. Second, sup ∥∇Li (y)∥op = sup ∥ diag(σ ′ (W i y + bi ))W i ∥op ≤ M1 ∥W i ∥op , y∈Yi

(4.36)

y∈Yi

by condition 3 in Assumption 4.6. 3. Third,

∥∇Li (y) − ∇Li (x)∥op ∥ diag(∆)∥op i ≤ sup γ−1 γ−1 ∥W ∥op , ∥y − x∥2 y̸=x y̸=x ∥y − x∥2

(4.37)

∆j = σ ′ (Wji · y + bij ) − σ ′ (Wji · x + bij ).

(4.38)

sup where

Using condition 4 in Assumption 4.6, i γ−1 ≤ M2 ∥y − x∥γ−1 ∥ diag(∆)∥op ≤ M2 ∥y − x∥γ−1 max ∥Wji ∥γ−1 2 2 ∥W ∥op . (4.39) 2 j

Therefore,

∥∇Li (y) − ∇Li (x)∥op ≤ M2 ∥W i ∥γop . ∥y − x∥γ−1 y̸=x 2

(4.40)

sup

4. Fourth, since each Li belongs to C 1,γ−1 (Rβ , Rα ), Lemma 3.17 can be used to bound the final term, ∥Li (y) − Li (x) − ∇Li (x)[y − x]∥2 ∥∇Li (y) − ∇Li (x)∥op ≤ sup . ∥y − x∥γ2 ∥y − x∥γ−1 y̸=x y̸=x 2

sup

(4.41)

Therefore, i



∥L ∥Lip(γ) ≤ max

i

i

i

sup ∥W ∥op ∥y∥2 + ∥b ∥2 , M1 ∥W ∥op , M2 ∥W i ∥γop y∈Yi

 .

(4.42)

Since y ∈ Y1 satisfies ∥y∥2 ≤ C,  ∥Li ∥Lip(γ) ≤ max Γi , M1 ∥W i ∥op , M2 ∥W i ∥γop ,

(4.43)

where Γi = ∥W i ∥op Γi−1 + ∥bi ∥2 for i ≥ 1 and Γ0 = C. Theorem 4.8. Let 1 < γ ≤ 2 and fθ be a FCNN with m layers and activation function σ satisfying Assumption 4.6. Assume the input x ∈ A ⊂ Rnin , where supx∈A ∥x∥2 = C. Then fθ ∈ Lip(γ) and ||fθ ||Lip(γ) ≤ (1 + 2γ )

γ m−1 −1 γ−1

m Y

  m−i max 1, ∥Li ∥γLip(γ)

(4.44)

i=1

with  ∥Li ∥Lip(γ) ≤ max Γi , M1 ∥W i ∥op , M2 ∥W i ∥γop , where Γi = ∥W i ∥op Γi−1 + ∥bi ∥2 for i ≥ 1 and Γ0 = C. 85

(4.45)

Proof. Lemma 3.35 states that for f, g ∈ Lip(γ) with 1 < γ ≤ 2, (4.46)

∥g ◦ f ∥Lip(γ) ≤ (1 + 2γ )∥g∥Lip(γ) max{1, ∥f ∥γLip(γ) }. Assume that n

1

γ

∥L ◦ · · · ◦ L ∥Lip(γ) ≤ (1 + 2 )

γ n−1 −1 γ−1

n Y

  n−i max 1, ∥Li ∥γLip(γ) ,

(4.47)

i=1

which is true for n = 1. Then by (4.46), ∥Ln+1 ◦· · ·◦L1 ∥Lip(γ) ≤ (1+2γ )∥Ln+1 ∥Lip(γ) max 1, (1 + 2γ )

γ n−1 −1 γ−1

n Y



γ n−i

max 1, ∥Li ∥Lip(γ)

i=1

(4.48)

Note that for any a, b > 0, (4.49)

max(1, ab) ≤ max(1, a) max(1, b). Repeatedly applying this bound gives, n+1

∥L

γ γ

1

◦ · · · ◦ L ∥Lip(γ) ≤ (1 + 2 )

γ n−1 −1 +1 γ−1

n+1

∥L

∥Lip(γ)

n Y

  n+1−i max 1, ∥Li ∥γLip(γ) ,

i=1 γ n −1

≤ (1 + 2γ ) γ−1

n+1 Y

  n+1−i max 1, ∥Li ∥γLip(γ) .

i=1

(4.50)

Therefore, (4.47) holds for all 1 ≤ n ≤ m, and m

1

γ

||fθ ||Lip(γ) = ∥L ◦ · · · ◦ L ∥Lip(γ) ≤ (1 + 2 )

γ m−1 −1 γ−1

m Y

max



m−i 1, ∥Li ∥γLip(γ)



.

(4.51)

i=1

Lemma 4.7 completes the proof by giving the stated bound on each layer’s Lip(γ) norm. Although the bound in Theorem 4.8 is a worst case estimate, it reflects a genuine feature of composition in Lip(γ) spaces. In particular, the explicit example in Section 3.4.3 shows that for γ ∈ (1, 2], the composition of two functions with Lip(γ) norm equal to 1 can itself have Lip(γ) norm greater than 1. Thus, even when the individual layers are uniformly controlled, composition can rapidly grow the Lip(γ) norm. Consistent with this, if each layer satisfies ∥Li ∥Lip(γ) ≤ 1, then (4.44) still gives ∥fθ ∥Lip(γ) ≤ (1 + 2γ ) 86

γ m−1 −1 γ−1

,

(4.52)



!γ ! .

which grows rapidly with the depth m. To demonstrate this behaviour in practice, we train three neural networks to approximate sign(x) for x ∈ [−1, 1]. Each neural network has a hidden dimension of 8, SiLU activation functions, and a depth of 2, 3, or 4, respectively. As can be seen in Figure 4.5, the supremum over the second derivative grows rapidly as the depth increases. This leads to the Lipschitz bound on the gradient dominating ∥fθ ∥Lip(2) for depths 3 and 4, which have ∥fθ ∥Lip(2) ≈ 297 and ∥fθ ∥Lip(2) ≈ 16910, respectively. Although these empirical values are many orders of magnitude smaller than the worst case bound, they still illustrate the same qualitative phenomenon: ∥fθ ∥Lip(2) can grow rapidly with depth in practice. A simple way to encourage smaller parameter magnitudes during training is to introduce weight regularisation by modifying the loss function L to L 7→ L + λ

m X

! ∥W i ∥2 + ∥bi ∥2 ,

(4.53)

i=1

where λ is a hyperparameter controlling the weight of the penalty [Hinton 1987; Krogh et al. 1991]. This introduces only a single additional hyperparameter and directly penalises the weights and biases appearing in the layer-wise bound of Theorem 4.8. Thus, it provides a simple proxy for encouraging smaller Lip(2) norms, even though it is not a sharp estimate of ∥fθ ∥Lip(2) . In the experiments contained in Section 4.4.6, Log-NCDEs use a FCNN with SiLU activation functions as their vector field fθ . The coefficient λ is treated as one component of the hyperparameter grid search, with λ = 0 included as a candidate value. Empirically, this regularisation is not uniformly beneficial: some of the best runs select λ = 0, while others select λ > 0. However, even with λ = 0, we did not observe any training divergence or solver instability.

4.4.3

Constructing the Log-ODE Vector Field

As in Section 2.5, the linear map f¯θ in (4.29) is defined recursively by f¯θ (·)a = fθ (·)a,

(4.54)

f¯θ (·)[a, b] = [f¯θ (·)a, f¯θ (·)b],

(4.55)

for a ∈ RdX and

87

Figure 4.5: Comparing the Lip(2) norm of three fully connected neural networks trained to approximate sign(x). Each neural network has a hidden dimension of 8, SiLU activation functions, and a depth of 2, 3, or 4, respectively.

88

where fθ is the NCDE’s vector field. Assuming fθ (·)a is infinitely differentiable, then fθ (·)a is an element of the Lie algebra C ∞ (Rdh , Rdh ) and from Definition 3.3, [fθ (·)a, fθ (·)b] = Jfθ (·)b fθ (·)a − Jfθ (·)a fθ (·)b.

(4.56)

Calculating (4.55) requires a basis for LN (RdX ), the space where the depth-N trunX cated log-signature of the input path lives. Let {ej }dj=1 be the usual basis of RdX .

β(v,N )

A choice of basis for LN (RdX ) is a Hall basis, denoted {êk }k=1 , which is a specific X subset of up to the (N − 1)th iterated Lie brackets of {ej }dj=1 [Hall 1950]. Rewriting

(4.29) using a Hall basis, N

log(S (X)[ri ,ri+1 ] ) = f¯θ (hs ) ri+1 − ri

β(v,N )

X

λk f¯θ (hs )êk ,

(4.57)

k=1

where λk is the term in the scaled log-signature corresponding to the basis element X êk . Since each êk can be written as iterated Lie brackets of {ej }dj=1 , it is possible to replace f¯θ (·)êk with the iterated Lie brackets of fθ (·)ei using (4.54) and (4.55).

Each fθ (·)ei : Rdh → Rdh is a vector field defined by the ith column of the neural network’s output. Hence, gθ,X can be evaluated at a point using iterated Jacobianvector products (JVPs) of fθ .

4.4.4

Computational Cost

When the signature truncation depth N is greater than 1, NRDEs and Log-NCDEs incur an additional computational cost for each evaluation of the vector field, which we now quantify. Assume that an NCDE, NRDE, and Log-NCDE are all using an identical FCNN as their vector field, except for the dimension of the final layer in the NRDE. Let m and nh be the depth and dimension of the FCNN’s hidden layers, respectively, and dh and dX be the dimensions of ht and Xt from (4.20). Let β(dX , N ) = dim LN (RdX ) = O(dN X ). Letting Fx be the number of FLOPs required to evaluate model x’s vector field, FNCDE = 2dh nh + 2(m − 2)n2h + 2dh dX nh , FNRDE = 2dh nh + 2(m − 2)n2h + 2dh β(dX , N )nh .

(4.58)

The NRDE expression follows because the final layer outputs an element of Rdh ×β(dX ,N ) rather than Rdh ×dX . For Log-NCDEs, an exact closed-form FLOP count depends on the implementation 89

of the iterated Lie brackets. For fixed N , the computational cost of evaluating the Log-NCDE vector field is O(β(dX , N )) with respect to dX , since the vector field is constructed from iterated Lie brackets corresponding to a Hall basis of LN (RdX ). The constant hidden in this asymptotic notation grows rapidly with N , since higher-order Lie brackets require iterated JVPs of vector fields that are themselves defined recursively through lower-order JVPs. For our implementation of the N = 2 case, the exact expression FLog-NCDE = 3dX FNCDE

(4.59)

is obtained, as the number of FLOPs required to calculate a JVP is 3 times that of evaluating fθ and dX JVPs of fθ are needed to evaluate (4.57) [Griewank et al. 2008, Chapter 4]. Therefore, Log-NCDEs and NRDEs have the same asymptotic computational complexity with respect to dX for fixed N . Furthermore, each JVP is evaluated at the same point hs . This allows the Log-NCDE vector field on high-dimensional time series to be evaluated in parallel. This computational advantage is demonstrated empirically in Section 4.4.7.

4.4.5

Limitations

In this thesis, we restrict attention to Log-NCDEs based on depth-1 and depth-2 Log-ODE approximations. This reflects two main limitations. First, there are currently no theoretical results explicitly bounding the Lip(γ) norm of a neural network for γ > 2. Second, as discussed in Section 4.4.4, the cost of evaluating gθ,X grows rapidly with the truncation depth N . In particular, at N = 2 this cost scales quadratically in the input dimension dX , which in practice restricts depth-2 Log-NCDEs to moderate-dimensional inputs. The widest time series considered in our experiments has dimension dX = 64. Input dimensions in the low hundreds are likely still feasible, whereas dimensions on the order of 103 are likely to be computationally prohibitive. A more general limitation of NCDEs is that their hidden dynamics must be solved sequentially in time, which prevents parallelisation across time steps. This is in contrast to structured state-space models, whose linear dynamics admit explicit flows that can be composed in parallel across time [Gu et al. 2022a]. This limitation serves as the primary motivation for the work of Chapter 5.

90

4.4.6

Experiments

Baseline Methods Log-NCDEs are compared against six models, which represent the state-of-the-art for a range of deep learning approaches to time series modelling. Four of these models are stacked recurrent models, whose general architecture is based on the official implementation of S5 located at https://github.com/lindermanlab/S5 [Smith et al. 2023]. A recurrent block consists of a batch or layer normalisation [Ioffe et al. 2015; Ba et al. 2016], a recurrent layer, a gated linear unit (GLU) [Dauphin et al. 2017], dropout with rate 0.1 [Srivastava et al. 2014], and a skip connection. A full model consists of a linear encoder, a number of stacked recurrent blocks, and a final linear layer. The four different recurrent layers considered are the LRU [Orvieto et al. 2023], S5 [Smith et al. 2023], S6, and Mamba, where S6 refers to the selective state-space recurrence introduced by Gu et al. [2024] and Mamba refers to the combination of a gated MLP, convolution, and S6 recurrence [Gu et al. 2024]. S5 and LRU use batch normalisation [Ioffe et al. 2015], whereas S6 and Mamba use layer normalisation [Ba et al. 2016]. The other two baseline models are continuous models; an NCDE using a Hermite cubic spline with backward differences as the interpolation and an NRDE [Kidger et al. 2020; Morrill et al. 2021]. NCDEs, NRDEs, and Log-NCDEs use a single linear layer as ξϕ . NCDEs and NRDEs use FCNNs as their vector fields configured in the same way as their original papers [Kidger et al. 2020; Morrill et al. 2021]. NCDEs use ReLU activation functions for the hidden layers and a final activation function of tanh. NRDEs use the same, but move the tanh activation function to be before the final linear layer in the FCNN. Log-NCDEs use a FCNN with SiLU activation functions for the hidden layers and a final activation function of tanh. NRDEs and Log-NCDEs take their intervals ri+1 −ri to be a fixed number of observations, referred to as the Log-ODE step. Toy Dataset We construct a toy dataset of 100,000 time series with 6 channels and 100 regularly spaced samples each. For every time step, the change in each channel is sampled independently from the discrete probability distribution with density Z n+0.5 1 2 1 √ e− 2 x dx, p(n) = 2π n−0.5 91

(4.60)

Figure 4.6: An example path from the toy dataset, where each colour represents a channel in the path. where n ∈ Z. In other words, the change in a channel at each time step is a sample from a standard normal distribution rounded to the nearest integer. Figure 4.6 is a plot of a sample path from the toy dataset. We consider four different binary classifications on the toy dataset. Each classification is a specific term in the signature of the path which depends on a different number of channels. 1. Was the change in the third channel,

R1

dXs3 , greater than zero? R1Ru 2. Was the area integral of the third and sixth channels, 0 0 dXs3 dXu6 , greater 0

than zero? 3. Was the volume integral of the third, sixth, and first channels,

R1RvRu 0

0

0

dXs3 dXu6 dXv1 ,

greater than zero? 4. Was the 4D volume integral of the third, sixth, first, and fourth channels, R1RwRvRu dXs3 dXu6 dXv1 dXw4 , greater than zero? 0 0 0 0 92

Each task is asking the model to check the sign of a specific term in the signature of the input path. On the toy dataset, all models use a hidden dimension of 64 and Adam with a learning rate of 0.0003 [Kingma et al. 2015]. LRU, S5, S6, and Mamba use 6 blocks and S5, S6, and Mamba use a state dimension of 64. S5 uses 2 initialisation blocks and Mamba uses a convolution dimension of 4 and an expansion factor of 2. NCDEs, NRDEs, and Log-NCDEs use a FCNN with width 128 and depth 3 as their vector field. Furthermore, all NCDEs use Heun as their differential equation solver with a fixed stepsize of 0.01 [Heun 1900; Atkinson et al. 2009]. NRDEs and Log-NCDEs use a Log-ODE step of 4 and a signature truncation depth of 2. Log-NCDEs do not use any Lip(γ) regularisation, i.e. λ = 0 in (4.53). UEA Multivariate Time Series Classification Archive The models are evaluated on six datasets from the UEA multivariate time series classification archive (UEA-MTSCA)1 [Bagnall et al. 2018]. These six datasets were chosen via the following two criteria. First, only datasets with more than 200 total time series were considered. Second, the six datasets with the most observations were chosen, as datasets with many observations have previously proved challenging for deep learning approaches to time series modelling. Table 4.1 provides details on the dimension, number of observations, and number of classes for the datasets chosen from the UEA-MTSCA for the experiments conducted in this thesis. Following [Morrill et al. 2021], the original train and test cases are combined and resplit into new random train, validation, and test cases using a 70 : 15 : 15 split. Hyperparameters for all models are found using a grid search over the validation accuracy on a fixed random split of the data. Having fixed their hyperparameters, models are compared on their average test set accuracy over five different random splits of the data. In order to compare models on their average GPU memory and runtime, 1000 steps of training are run on an NVIDIA RTX 4090. Each training step consists of a forward pass, loss computation, backward pass, and parameter update. The average runtime is estimated by combining the time for 1000 training steps with the average total number of training steps from the five runs over the random data 1

As of November 10th 2025, the EigenWorms dataset available for download at https://

timeseriesclassification.com has 23 duplicated time series, which were removed for the experiments in this thesis.

93

Table 4.1: A summary of the subset of the UEA-MTSCA datasets used in this thesis. Dataset

Dimension

Number of Observations

Classes

EigenWorms

6

17984

5

EthanolConcentration

3

1751

4

Heartbeat

61

405

2

MotorImagery

64

3000

2

SelfRegulationSCP1

6

896

2

SelfRegulationSCP2

7

1152

2

splits. PPG-DaLiA PPG-DaLiA is a multivariate time series regression dataset, where the aim is to predict a person’s heart rate using data collected from a wrist-worn device [Reiss et al. 2019]. The dataset consists of fifteen individuals with around 150 minutes of recording each at a maximum sampling rate of 128 Hz. There are six channels: blood volume pulse, electrodermal activity, body temperature, and three-axis acceleration. For each individual, the data is split into training, validation, and test sets using a 70:15:15 split. After splitting, a sliding window is applied to each subset to convert the long continuous recordings into shorter overlapping time series. Specifically, each window contains 49920 consecutive samples, and successive windows are offset by 4992 samples. Hyperparameters are found using the same method as for the UEA-MTSCA, but with validation mean squared error and slightly different hyperparameter choices given the high number of observations. Having fixed their hyperparameters, models are compared on their average mean squared error over five different runs on the same fixed data split. Hyperparameter Optimisation The seven models considered in the experiments fall into two groups. The first group consists of the stacked recurrent models LRU, S5, S6, and Mamba. The second group consists of the continuous-time models NCDE, NRDE, and Log-NCDE. Tables 4.2 and 4.3 list the hyperparameters optimised over for these two groups on the UEA94

MTSCA and PPG-DaLiA experiments. For each dataset and model, hyperparameters were selected by grid search on a fixed training-validation split. For the UEA-MTSCA datasets, each configuration was trained using cross-entropy loss and compared using validation accuracy. For PPG-DaLiA, each configuration was trained using mean squared error loss and compared using validation mean squared error. Training used early stopping based on the corresponding validation metric, and the checkpoint with the best validation performance was used for the final test evaluation. After hyperparameter selection, the chosen configuration was used in the evaluation protocols described above, namely five random data splits for the UEA-MTSCA datasets and five random seeds on a fixed split for PPG-DaLiA. All models and experiments used Adam as their optimiser [Kingma et al. 2015]. A batch size of 32 was used throughout, except for the stacked recurrent models on PPG-DaLiA, where a batch size of 4 was required due to memory constraints. NCDEs, NRDEs, and Log-NCDEs used Heun as their differential equation solver with fixed stepsize 1 , max{500, 1 + (time series length/Log-ODE step)}

(4.61)

with Log-ODE step equal to 1 for NCDEs. Additionally, Log-NCDEs scaled down their initial FCNN parameters by a factor of 1000 to reduce the initial Lip(2) norm of the vector field.

95

Table 4.2: Hyperparameters selected by the optimisation for LRU, S5, S6, and Mamba on the UEA-MTSCA datasets and PPG-DaLiA dataset. The following abbreviations are used: EigenWorms (EW), EthanolConcentration (EC), Heartbeat (HB), MotorImagery (MI), SelfRegulationSCP1 (SCP1), SelfRegulationSCP2 (SCP2), and PPG-DaLiA (PPG). A ✗ denotes that the hyperparameter is not applicable to that model. Hyperparameters Learning Rate

Include Time

Options

S5

S6

EW, MI, SCP1,

HB, MI, SCP1,

EW, HB, MI,

SCP2, PPG

PPG

SCP2

10−4

HB

EW, SCP2

SCP1, PPG

HB, SCP2

10−5

EC

EC

EC

MI, SCP1

True

EC, HB, SCP2

EW, EC, SCP2,

EC, HB, MI,

PPG

PPG

HB, MI, SCP1

EW, SCP1, SCP2

10−3

False Hidden Dimension

16 64

Number of Layers

State Dimension

S5 Initialisation Blocks

Convolution Dimension

Expansion Factor

Method LRU

EW, MI, SCP1, PPG MI

MI, SCP2, PPG

EW, EC, SCP1,

EW

SCP2

EW, EC, HB, MI, SCP2 SCP1, PPG

Mamba EW, EC, PPG

EW, EC, SCP2 HB, MI, SCP1, PPG EW EC, HB, SCP2

128

HB, PPG

EC, HB, SCP1

2

HB, SCP1, SCP2

EW, EC, SCP2

SCP1, SCP2, PPG

MI, SCP1

4

EW

HB

EW, EC, HB, MI

EC, HB, PPG

6

EC, MI, PPG

MI, SCP1, PPG

16

EC, SCP1, SCP2

64

EW

256

HB, MI, PPG

MI, SCP2

EC, HB

2

SCP2, PPG

4

HB, MI

8

EW, EC, SCP1

2

EW, HB, SCP2

3

MI, PPG

4

EC, SCP1

1

EW, MI, SCP1

2

SCP2, PPG

4

EC, HB

EW, EC, HB, SCP1 MI, SCP2, PPG

96

MI, SCP1, PPG

EW, SCP2 EC, HB, SCP1 EW, PPG

SCP1 EW, MI, SCP2, PPG

Table 4.3: Hyperparameters selected by the optimisation for NCDE, NRDE, and LogNCDE on the UEA-MTSCA datasets and PPG-DaLiA dataset. Given the length of each time series in the PPG-DaLiA dataset, different choices were considered for the Log-ODE depth and step, which are shown here in red. The following abbreviations are used: EigenWorms (EW), EthanolConcentration (EC), Heartbeat (HB), MotorImagery (MI), SelfRegulationSCP1 (SCP1), SelfRegulationSCP2 (SCP2), and PPG-DaLiA (PPG). A ✗ denotes that the hyperparameter is not applicable to that model. Hyperparameters Learning Rate

Options 10−3 10−4

Method NCDE

NRDE

Log-NCDE

EW, EC, HB,

EW, EC, HB,

EW, HB, MI,

MI, SCP2, PPG

SCP1, PPG

PPG

SCP1

MI, SCP2

EC, SCP1, SCP2

EW, EC, HB,

EC, SCP1, SCP2,

EW, EC, HB,

10−5 Include Time

Hidden Dimension

True

MI, PPG

PPG

PPG

False

SCP1, SCP2

EW, HB, MI

MI, SCP1, SCP2

16

MI, PPG

64

SCP1

128 Vector Field (Depth, Width)

EW, EC, HB,

EW, SCP2, PPG

EW

EC, MI, PPG

EW

HB

HB, SCP1

EC, HB, MI,

EC, MI, SCP1,

(2, 32) (3, 128) (4, 128)

Regularisation λ

EC, SCP1

MI, SCP2, PPG

SCP1, SCP2

EW, SCP2

(3, 64)

Log-ODE (Depth, Step)

HB, MI EW, EC, HB,

SCP1, SCP2, PPG

SCP2, PPG

(1, 1)

EC, MI, SCP1, SCP2

(2, 2)

HB

HB

(2, 4)

EW

SCP2

(2, 8)

(2, 12)

(2, 16)

(1, 10)

(2, 10)

(2, 100)

(2, 1000)

10−3 −6

EC

EW MI, SCP1 PPG

PPG

EW, MI, SCP2

10

EC, HB

0.0

SCP1, PPG

97

Figure 4.7: Validation accuracy against number of steps for LRU, S5, S6, Mamba, NCDE, NRDE, and Log-NCDE on the four different classifications considered for the toy dataset.

4.4.7

Results

Toy Dataset Figure 4.7 compares the performance of the models on the four different toy dataset classifications. As expected, given that the classifications considered are solutions to CDEs, NCDEs are the best performing model. Since NRDEs and Log-NCDEs are fixed to ri+1 − ri being 4 observations and N = 2, they are both approximations of a CDE. Notably, Log-NCDEs consistently outperform NRDEs, providing empirical evidence that NRDEs do not always accurately learn the Lie bracket structure of f¯θ . All of the stacked recurrent models perform well when the label depends on one or two channels. However, their performance begins to decrease for three channels, and only Mamba performs well when the label depends on four channels. 98

UEA-MTSCA Table 4.4 reports the mean and standard deviation of each model’s test set accuracy over five data splits. Among the stacked recurrent models, LRU, S5, and S6 achieve similar average accuracies overall. However, Mamba attains the lowest average accuracy of all seven methods. Since S6 achieves performance in line with S5, Mamba’s weaker results do not appear to be caused by the selective recurrence itself. Instead, they may reflect the effect of Mamba’s additional architectural components, particularly its short convolution, which places greater weight on local information and may therefore be less well suited to classification tasks that reward preserving information across the full time series. NCDEs and NRDEs have similar average accuracies overall, although NRDEs perform notably better on EigenWorms, the dataset with the most observations. However, NRDEs are still outperformed in average accuracy by the stacked recurrent models LRU, S5, and S6. In contrast, Log-NCDEs achieve the best average accuracy and the best average rank across the six datasets. Compared to NRDEs, they attain an equal or higher average accuracy on all six datasets and a lower standard deviation on four datasets. A Friedman test across the six datasets and seven methods did not detect a statistically significant difference in performance among the models at the 5% significance level, with χ2 = 9.69, df = 6, and p = 0.138 [Demšar 2006]. Since Log-NCDEs are a direct modification of NCDEs and NRDEs, we additionally performed one-sided Wilcoxon signed-rank tests comparing Log-NCDEs against these two baselines, with Holm correction across the two comparisons [Wilcoxon 1945]. At the 5% significance level, these tests indicated that Log-NCDEs significantly outperformed both NCDEs and NRDEs, with adjusted p = 0.0313 in each case. These results suggest that incorporating Lie bracket information can improve predictive performance. PPG-DaLiA Table 4.5 contains the average and standard deviation of each model’s test set mean squared error on the PPG-DaLiA dataset. In contrast to the UEA-MTSCA experiments, Mamba is the best performing stacked recurrent model on PPG-DaLiA and clearly outperforms S6. This suggests that Mamba’s additional architectural components, such as its short convolution, are beneficial for this regression task. This 99

Table 4.4: Mean and standard deviation of test set accuracy over five data splits on a subset of the UEA-MTSCA. The best performing model is highlighted in bold and the second best is underlined. The average accuracy and average rank are also reported. Dataset

Method LRU

S5

S6

Mamba

NCDE

NRDE

Log-NCDE

EigenWorms

87.8 ± 2.8

81.1 ± 3.7

85.0 ± 16.1

70.9 ± 15.8

75.0 ± 3.9

83.9 ± 7.3

85.6 ± 5.1

EthanolConcentration

21.5 ± 2.1

24.1 ± 4.3

26.4 ± 6.4

27.9 ± 4.5

29.9 ± 6.5

25.3 ± 1.8

34.4 ± 6.4

Heartbeat

78.4 ± 6.7

77.7 ± 5.5

76.5 ± 8.3

76.2 ± 3.8

73.9 ± 2.6

72.9 ± 4.8

75.2 ± 4.6

MotorImagery

48.4 ± 5.0

47.7 ± 5.5

51.3 ± 4.7

47.7 ± 4.5

49.5 ± 2.8

47.0 ± 5.7

53.7 ± 5.3

SelfRegulationSCP1

82.6 ± 3.4

89.9 ± 4.6

82.8 ± 2.7

80.7 ± 1.4

79.8 ± 5.6

80.9 ± 2.5

83.1 ± 2.8

SelfRegulationSCP2

51.2 ± 3.6

50.5 ± 2.6

49.9 ± 9.5

48.2 ± 3.9

53.0 ± 2.8

53.7 ± 6.9

53.7 ± 4.1

Av.

61.7

61.8

62.0

58.6

60.2

60.6

64.3

Av. Rank

3.5

4.0

3.5

5.5

4.5

4.9

2.1

Table 4.5: Mean and standard deviation of test set mean squared error over five runs with different random seeds on the PPG-DaLiA dataset. Model

MSE (×10−2 )

LRU

12.17 ± 0.49

S5

12.63 ± 1.25

S6

12.88 ± 2.05

Mamba

10.65 ± 2.20

NCDE

13.54 ± 0.69

NRDE

9.90 ± 0.97

Log-NCDE

9.56 ± 0.59

100

aligns with the intuition that heart-rate prediction depends heavily on recent observations. Among the neural differential equation models, both NRDEs and Log-NCDEs substantially outperform the NCDE, indicating that the Log-ODE based models are better suited to handling very long sequences. Log-NCDEs still achieve the best overall performance, obtaining the lowest average test set mean squared error and the second lowest standard deviation. Memory and Time Models are compared on their average GPU memory usage and runtime for the UEAMTSCA datasets. In order to compare the models, 1000 steps of training were run on an NVIDIA RTX 4090 with each model using the hyperparameters obtained from the hyperparameter optimisation, as detailed in Tables 4.2 and 4.3. In addition to the time for 1000 steps and GPU memory usage, shown in Figures 4.8a and 4.8b, the average number of total training steps taken to produce the results in Table 4.4 is recorded in Figure 4.8c. Combining the results for time per 1000 training steps and the total number of training steps gives an approximation of the total runtime on the same hardware, and these results are shown in Figure 4.8d. The average GPU memory and runtime across the six datasets is given in Table 4.6. Although the time per training step is lower for stacked recurrent models than NCDEs, NRDEs, or Log-NCDEs, they also require more training steps to converge. Additionally, NCDEs, NRDEs, and Log-NCDEs require less GPU memory. The largest contributors to the average runtime of NCDEs are the datasets with the most observations, EigenWorms and MotorImagery. The positive impact of the Log-ODE method on computational burden is demonstrated empirically by the decrease in runtime achieved by NRDEs and Log-NCDEs on EigenWorms when using a depth−2 Log-ODE method. When a depth−1 Log-ODE method is used, such as NRDEs on MotorImagery, the same decrease is not observed. Section 4.4.4 demonstrated that Log-NCDEs and NRDEs have the same asymptotic computational complexity. However, when using a depth−2 Log-ODE approximation and the same stepsize, NRDEs and Log-NCDEs exhibit different runtimes on Heartbeat, a high-dimensional dataset. This difference is partly explained by the model’s having different optimal hyperparameter choices, but even when using identical hyperparameters to the NRDE, Log-NCDE’s time per 1000 training steps is 1673

101

(a) Memory

(b) Time

(c) Number of steps

(d) Total time

Figure 4.8: Memory, time per 1000 training steps, number of steps, and approximate total time for each model and dataset from the UEA-MTSCA on an NVIDIA RTX 4090. The following abbreviations are used: EigenWorms (EW), EthanolConcentration (EC), Heartbeat (HB), MotorImagery (MI), SelfRegulationSCP1 (SCP1), and SelfRegulationSCP2 (SCP2).

102

Table 4.6: Average GPU memory and runtime for each model over the six datasets from the UEA-MTSCA experiments. Model

Av. GPU Mem. (MB)

Av. runtime (s)

LRU

4121.67

466.09

S5

2815.00

244.78

S6

2608.00

578.15

Mamba

4450.33

1553.83

NCDE

1759.67

6649.91

NRDE

2676.33

7284.20

Log-NCDE

1999.67

2128.32

seconds, whereas NRDE’s is 9539 seconds. The remaining difference is due to being able to calculate the JVPs of fθ in parallel, as discussed in Section 4.4.4. If instead the JVPs are calculated recurrently, then Log-NCDEs time per 1000 training steps increases to 17045 seconds. From a practical standpoint, the Log-ODE method improves the computational viability of NCDE-style models, but it does not eliminate the underlying scalability challenge. Log-NCDEs are markedly faster than NCDEs and NRDEs on the longest datasets, use relatively little GPU memory, and still achieve strong empirical performance. They also naturally accommodate irregularly sampled and over-sampled data, unlike the stacked recurrent baselines considered here. However, they remain much slower than those recurrent models, which limits their suitability for rapid experimentation, large-scale hyperparameter tuning, and settings requiring very long training runs.

4.5

Conclusion

This chapter showed that the Log-ODE method provides a principled way to approximate NCDE dynamics during training. It built on the groundwork laid by NRDEs and used the Lip(γ) theory developed in Chapter 3 to ensure that the resulting models are well defined. Empirically, Log-NCDEs matched or exceeded the performance of NCDEs and NRDEs on all six real-world multivariate time series classification datasets considered, while reducing the average runtime by more than a factor of 3. Log-NCDEs also achieved the best average test accuracy and the best average rank 103

among all seven models in Table 4.4. However, their computational cost remains substantial. The average runtime of Log-NCDEs is still nearly an order of magnitude larger than that of the fastest baseline, S5. The gap is even more striking in the time per 1000 training steps, which is 1131 seconds for Log-NCDEs and only 16 seconds for S5. Thus, although Log-NCDEs are more practical than NCDEs and NRDEs, they remain too slow for genuinely large-scale applications. The reason for this remaining gap is the nature of the hidden-state dynamics. LogNCDEs still require the numerical solution of a non-linear controlled differential equation during each forward pass. By contrast, S5 is based on linear dynamics whose flow can be written in closed form on each interval. This removes the need for an expensive non-linear solve and allows the hidden state over a sequence of length n to be computed in only O(log n) parallel steps via an associative scan. Motivated by this observation, Chapter 5 introduces Linear NCDEs, where the vector fields are constrained to be linear in the hidden state. This restriction yields closedform solutions for the dynamics on each interval, making parallel-in-time computation possible while retaining the theoretical expressivity and continuous-time structure of NCDEs. Furthermore, Log-NCDEs naturally translate to this linear setting, where the Log-ODE method continues to provide substantial empirical runtime benefits.

104

Chapter 5 Linear Neural Controlled Differential Equations Aren’t linear CDEs expressive enough? —Massimiliano Gubinelli (2023)

5.1

Introduction

Chapter 2 developed the continuous-time mathematical framework underlying this thesis. Paths are the fundamental objects, signatures and log-signatures provide principled summaries of path segments, CDEs describe how paths influence the state of a system, and the Log-ODE method provides an efficient and accurate approximation to the solution of a CDE. Building on the regularity theory developed in Chapter 3, Chapter 4 translated this framework into machine learning through LogNCDEs, showing that continuous-time models can achieve performance comparable to strong discrete baselines on regularly sampled datasets, whilst naturally being able to handle irregularly sampled and over-sampled time series. However, Chapter 4 also showed that the non-linear hidden-state dynamics remain a major computational bottleneck. Even with the Log-ODE method, Log-NCDEs are still substantially slower than the strongest stacked recurrent baselines. The aim of this chapter is to retain the empirical performance and continuous-time advantages of NCDEs while replacing their non-linear dynamics with a more scalable model class. From the perspective of CDE theory, the linear case is the natural place to look. 105

Linear CDEs admit explicit solutions, as discussed in Section 2.4.3, and the truncated signature is itself the solution of a linear CDE, as shown in Section 2.4.1. Moreover, when equipped with a linear readout, linear CDEs are maximally expressive on the space of time-augmented driving paths with the 1-variation topology, by Corollary 2.28 and the proof of Theorem 4.4. These facts suggest that vector fields which are linear in the hidden state may already be sufficient for time series modelling. Given this, it may seem surprising that Linear NCDEs were developed after their non-linear counterparts. The epigraph, a question posed by Prof. Massimiliano Gubinelli after a presentation on Log-NCDEs, captures this sentiment. Historically, non-linear NCDEs were explored first in order to maximise modelling capacity and to align more closely with non-linear recurrent neural networks. Chapter 4 shows that this choice comes at a significant computational cost. In this chapter, we show that constraining an NCDE’s vector field to be linear in the hidden state leads to the Log-ODE method producing closed-form flows on each interval. This removes the need for a differential equation solver, enables parallelin-time computation, and directly addresses the scalability limitations identified in Chapter 4. We also show that Linear NCDEs retain the theoretical expressivity of NCDEs. Finally, we demonstrate empirically that, when combined with the LogODE method, Linear NCDEs match the performance of Log-NCDEs while reducing the time per training step by up to two orders of magnitude. This makes continuoustime machine learning practical at scales that were previously infeasible.

5.2

Linear NCDEs

5.2.1

Introduction

Definition 5.1 (Linear NCDE [Cirone et al. 2024; Walker et al. 2025]). Let X (d) denote the space of bounded-variation d-dimensional paths on the interval [t0 , tn ] which all begin at the same point and contain time as a channel. Let ω : X (dX ) → X (dω ) be a continuous function on paths, with the shorthand ω X = ω(X). Let L1θ ∈ Rdh ×dX , Aθ ∈ Rdh ×dω ×dh , and L2θ ∈ Rdy ×dh be trainable parameters. Then a Linear NCDE is

106

defined by ht0 = L1θ Xt0 , Z t Aθ hs dωsX , ht = ht0 +

(5.1)

t0

yt = L2θ ht . There are two core differences between NCDEs and Linear NCDEs. First, the driving path is a function of the interpolated data, ω X = ω(X), rather than the interpolation X itself. Second, the vector field is linear in the hidden state, Z t ht = ht0 +

Aθ hs dωsX = ht0 +

t0

Z tX dω

Aiθ hs dωsX,i ,

(5.2)

t0 i=1

where Aiθ ∈ Rdh ×dh are the parameters corresponding to the ith channel of the driving path ωsX,i . As discussed in Section 2.4.3, (5.2) admits an explicit solution in terms of the signature of the driving path ω X . Although exact, this representation is not directly practical for computation. However, when ω X is piecewise linear, the flow of (5.2) admits an explicit solution. More generally, the approximate flows generated by the Log-ODE method also admit explicit solutions. This is the key structural property that makes Linear NCDEs more scalable than NCDEs, since an explicit expression for the flow determines the evolution of any initial hidden state, rather than requiring each trajectory to be obtained by numerically solving a non-linear differential equation.

5.2.2

Computing the Flow

Let ω X be piecewise-linear on the grid t0 < · · · < tn . On each subinterval [tj , tj+1 ], the dynamics are constant, so the update can be computed exactly, ! dω X h̃tj+1 = exp (ωtX,i − ωtX,i )Ai h̃tj . j+1 j

(5.3)

i=1

Equation (5.3) does more than simply remove the general-purpose ODE solver from NCDE inference, it represents a fundamental change in approach. Rather than tracking a trajectory t 7→ ht , we compute the state-transition map from tj to tj+1 , ! dω X X,i X,i exp (ωtj+1 − ωtj )Ai ,

(5.4)

i=1

which is also known as the flow. This shift in perspective allows for the flow over any interval to be solved for using only O(log(n)) parallel steps by using a parallel 107

associative scan. Given a sequence (x1 , . . . , xn ) and a binary operation ⊗, a prefix scan returns the running prefix products (5.5)

yk = x1 ⊗ · · · ⊗ xk .

Given the natural recurrence yk = yk−1 ⊗ xk , a scan can be computed in O(n) work and O(n) recurrent steps. If the operation is associative, (5.6)

(a ⊗ b) ⊗ c = a ⊗ (b ⊗ c),

then it is possible to compute the prefix scan in only O(log(n)) parallel steps using a tree-based algorithm [Blelloch 1993]. We demonstrate the approach for (x1 , . . . , x8 ). First you compute a parallel up-sweep, Level 1 : s1 = x1 ⊗ x2 ,

s2 = x3 ⊗ x4 ,

Level 2 : t1 = s1 ⊗ s2 ,

t2 = s3 ⊗ s4 ,

s3 = x5 ⊗ x6 ,

s4 = x7 ⊗ x8 , (5.7)

Level 3 : u = t1 ⊗ t2 . This calculation created a tree, with u as the root, t1 and t2 as u’s left and right children, and so on. Now, you perform a parallel down-sweep of this tree, with the rule that given incoming carry P , the left child receives P and the right child receives P ⊗ L, where L is the subtree with the left child as the root. Initialising the root’s carry as the identity, P (u) = e, and applying the carry rule to our example, Level 3 : P (t1 ) = e,

P (t2 ) = e ⊗ t1 = t1 ,

Level 2 : P (s1 ) = e,

P (s2 ) = e ⊗ s1 = s1 . P (s4 ) = t1 ⊗ s3 ,

P (s3 ) = t1 ,

P (x2 ) = e ⊗ x1 = x1 ,

Level 1 : P (x1 ) = e, P (x3 ) = s1 ,

P (x4 ) = s1 ⊗ x3 ,

P (x5 ) = t1 ,

P (x6 ) = t1 ⊗ x5 ,

P (x7 ) = t1 ⊗ s3 ,

P (x8 ) = t1 ⊗ s3 ⊗ x7 .

(5.8)

These carries are exactly the exclusive prefixes and the inclusive outputs are yk = P (xk ) ⊗ xk . For (5.3), the scan elements are the flows (5.4) indexed by j, and the associative binary operation is matrix multiplication. Once the flows over [t0 , tj ] have been obtained for j = 1, . . . , n, a batched matrix-vector multiplication with ht0 yields the 108

hidden states htj for j = 1, . . . , n, so inference can be completed in O(log(n)) parallel steps. However, a scan over all n observation intervals requires materialising n matrices in Rdh ×dh . Therefore, when dh is large, the practical cost can be dominated by GPU memory traffic [Yang et al. 2024b]. The Log-ODE method mitigates this by replacing the fine observation grid with a coarser partition t0 = r0 < · · · < rm = tn , so that the scan is performed over only m < n interval flows. An equivalent viewpoint of the approximation (5.3) is applying a depth−1 Log-ODE method to (5.1) on the grid {tj }nj=0 . Extending this approach to a depth−N Log-ODE method on generic intervals t0 = r0 < · · · < rm = tn produces flows   β(dω ,N ) X exp  Ākθ λlk  ,

(5.9)

k=1

where

β(dω ,N )

log(S N (ω X )[rl ,rl+1 ] ) =

X

λlk êk ,

(5.10)

k=1

êk is a Hall basis for the space where the depth-N truncated log-signature lives, Ākθ = Akθ

(5.11)

Ākθ = [Āiθ , Ājθ ] = Āiθ Ājθ − Ājθ Āiθ

(5.12)

for 1 ≤ k ≤ dω , and when the basis element êk corresponds to the Lie bracket of êi and êj [Reutenauer 1993]. Further details are given in Sections 2.5 and 4.4. The key point is that the Log-ODE method again produces a linear flow on each interval, so the parallel associative scan remains applicable. Moreover, the Lie brackets Ākθ are computed from products and commutators of the matrices Aiθ , rather than from the forwardmode auto-differentiated Jacobian-vector products required in Log-NCDEs, which substantially reduces the computational cost. It also reduces the memory and I/O cost of the scan, since only m < n state-transition matrices must be materialised in GPU memory. We refer to the combination of Linear NCDEs and the Log-ODE method as Log-Linear NCDEs.

5.2.3

Expressivity

The previous subsection showed that Linear NCDEs offer substantial computational advantages. This raises the question of whether these gains come at the cost of expressivity. For a fixed hidden dimension, Linear NCDEs are less expressive than NCDEs, 109

since the former are a strict subclass of the latter. However, once the hidden dimension is allowed to vary, both model classes have the same theoretical expressivity. Theorem 5.2 (Maximally Expressive Linear NCDEs [Cirone et al. 2024]). Let X be the space of bounded variation paths on the interval [t0 , tn ] that start at a common point and include time as a channel, endowed with the 1−variation topology. Let F be the class of real-valued maps X 7→ ytn induced by Linear NCDEs from Definition 5.1 with ωsX = Xs for X ∈ X , dh ∈ N, and dy = 1. Then F is maximally expressive on X . Proof. The result follows from the universality of the signature, Corollary 2.28, together with the fact that the truncated signature solves a linear CDE, as shown in (2.82). For more details, see [Cirone et al. 2024, Theorem B.13]. Although a Linear CDE is linear in the hidden state, its evolution is driven by the multiplicative interaction between the hidden state and the increments of the driving path. This is precisely the mechanism that generates iterated integrals, since each tensor level of the truncated signature is obtained by integrating the previous level against the path. Therefore, just as repeated application of the map (x, y) 7→ xy generates monomials, repeated multiplication of the hidden state by path increments generates the tensor levels of the truncated signature. Hence, this single multiplicative interaction is sufficient for maximal expressivity. Similarly to NCDEs, Theorem 5.2 can be extended from path-to-point functions to path-to-path functions by replacing the linear readout L2θ with a FCNN acting on ht , as shown in [Cirone et al. 2024, Proposition D.2]. Furthermore, the linear setting allows us to give a statement about expressivity even when the entries of Aθ are sampled randomly from a prescribed distribution. Definition 5.3 (Maximal Probabilistic Expressivity). Let X be a topological space, M ∈ N, and F M = {fθM : X → R | θ ∈ ΘM } be a class of real-valued functions on X defined by fθM (ω) = lθ2 (f˜θM1 (ω)),

(5.13)

M for ω ∈ X , where f˜θM1 : X → RM , lθ2 ∈ RM is a linear readout, θ1 ∈ ΘM 1 , θ2 ∈ Θ2 , M M and ΘM = ΘM 1 ∪ Θ2 . Given a sequence of probability measures PM on Θ1 with

θ1 ∼ PM , F has maximal probabilistic expressivity if, for every compact set K ⊂ X

110

and every real-valued continuous function f : K → R, the following property holds: ( ) ∀ϵ > 0, lim PM ∃lθ2 s.t. sup f (ω) − fθM (ω) < ϵ M →∞

= 1.

(5.14)

ω∈K

Theorem 5.4 (Maximal Probabilistic Expressivity for Linear NCDEs [Cirone et al. 2024]). Let X be the space of bounded variation paths on the interval [t0 , tn ] that start at a common point and include time as a channel, endowed with the 1−variation topology. Let F be the class of real-valued maps X 7→ ytn induced by Linear NCDEs i X from Definition 5.1 with  ωs = Xs for X ∈ X , dh ∈ N, dy = 1, and Aθ with i.i.d

entries from N 0, d1h . Then F has maximal probabilistic expressivity on X .

Proof. For a detailed proof see [Cirone et al. 2024, Theorem B.13]. Here we present the core idea. In the proof of Theorem 5.2 the depth−N truncated tensor algebra of RdX is recreated as a Euclidean space, requiring O(dN X ) orthogonal vectors. At the cost of losing exactness, we can leverage results of the Johnson-Lindenstrauss type to find O(eϵ N ) vectors in RN orthogonal up to an ϵ error, using random projections 2

[Dasgupta et al. 2003]. This relaxation allows us to use random matrices Aiθ and still achieve maximal expressivity. In the context of machine learning, maximal probabilistic expressivity may be viewed as a more promising property than maximal expressivity. For sufficiently large hidden dimension dh , it implies there exists a significant abundance of parameters θ1 that are capable of achieving uniformly bounded and arbitrarily low error rates with a linear readout layer. This in turn suggests that, when dh is large, random initialisations of the matrices Aiθ can already encode informative features of the input path, and may therefore provide a useful starting point for optimisation. Linear NCDEs with random Aiθ have also been studied under the name randomised signatures. There is a growing body of work establishing their expressivity and empirical effectiveness [Cuchiero et al. 2021; Cuchiero et al. 2022; Compagnoni et al. 2023]. In particular, the concept behind the proof of Theorem 5.4 goes back to Cuchiero et al. 2021, who used a Johnson-Lindenstrauss type result to show that randomised signatures can match the expressivity of classical signatures with substantially fewer features.

111

5.2.4

Related Approaches

Linear NCDEs are the continuous-time analogue of a tensor RNN, ! ! dx X hti+1 = σ Ajθ xjti hti ,

(5.15)

j=1

with σ(x) = x. Tensor RNNs were introduced by Giles et al. [1989], who conjectured they could learn any regular language. Architectures of the form (5.15) are also known as 2-RNNs [Lizaire et al. 2024]. Building on tensor RNNs, Sutskever et al. 2011 introduced multiplicative RNNs, which take the generic form hti+1 = σ (Aθ (xti )hti + Bθ (xti )xti ) .

(5.16)

When σ(x) = x, (5.16) is an RNN whose update is linear in the hidden state, hti+1 = Aθ (xti )hti + Bθ (xti )xti .

(5.17)

Structured state-space models (SSMs), so named for the similarity between (5.17) and classical state-space models (4.5), are a subclass of (5.17) that utilise a structured state-transition matrix Aθ [Gu et al. 2022a]. Section 5.3.2 will show that two prominent SSMs, S4 and Mamba, can be recast as affine Linear NCDEs, Z t ht = ht0 +

Aθ hs dωsX +

t0

Z t

Bθ dξsX ,

(5.18)

t0

where Bθ ∈ Rdh ×dξ is a trainable matrix and ξ : X (dX ) → X (dξ ) is another function of the interpolated data [Gu et al. 2022a; Gu et al. 2024]. Concurrently with Linear NCDEs, Merrill et al. [2024] introduced IDS4, an SSM corresponding to a discretised (5.18) with

ωtXj+1 − ωtXj tj+1 − tj

= Xtj ,

ξsX = ωsX .

(5.19)

Motivated by the inability of earlier SSM architectures to learn regular languages, Merrill et al. [2024] proved that IDS4 can learn any regular language, thereby answering the conjecture of Giles et al. [1989] in the case of an affine tensor RNN. In Section 5.3.3, we use the Linear NCDE framework to fully characterise the expressivity of IDS4, S4, and Mamba.

112

Table 5.1: Mean and standard deviation of test accuracy over five different splits, together with the time per 1000 training steps and GPU memory usage, for NCDE, Log-NCDE, Linear NCDE (LNCDE), and Log-Linear NCDE (Log-LNCDE) on EigenWorms. Test Accuracy Recurrent time per 1000 training steps (s) Recurrent GPU Memory (MB) Parallel time per 1000 training steps (s) Parallel GPU Memory (MB)

5.2.5

NCDE

Log-NCDE

LNCDE

Log-LNCDE

75.0 ± 3.9

85.6 ± 5.1

87.2 ± 5.2

87.8 ± 5.7

26020

2263

299.4

29.9

3484

3494

9624

3486

100.4

17.5

13730

3492

Experiments

We compare an NCDE, Log-NCDE, Linear NCDE, and Log-Linear NCDE on EigenWorms, the time series classification dataset with the most observations from those considered in Section 4.4.6. This makes it a natural stress test for practical scalability, since both the cost of repeatedly solving a non-linear differential equation and the memory cost of materialising linear flows are amplified on long sequences. Taking ωtXj+1 − ωtXj tj+1 − tj

= (1, Xtj ),

(5.20)

and setting ξtX = 0 gives an input dimension of dω = 7. All four models use a hidden dimension of dh = 128, and each time series contains 17984 observations. We keep the hyperparameters for the NCDE and its linear variant, and for the Log-NCDE and its linear variant, identical to those selected by the hyperparameter optimisation in Section 4.4.6, except for replacing the non-linear vector field fθ with a linear vector field Aθ . See Table 4.3 for full details. The models are compared on average test set accuracy, as well as time per training step and GPU memory on an NVIDIA RTX 4090 with a batch size of 1. The parallel associative scan is applied to chunks of 128 steps, with each chunk processed recurrently. As shown in Table 5.1, replacing the non-linear vector field of an NCDE with a linear vector field increases the average test accuracy from 75.0% to 87.2%, bringing performance in line with Log-NCDEs, and therefore with the other state-of-the-art time series models considered in Section 4.4.7. A possible cause is that removing 113

the differential equation solver improves training stability, since the Linear NCDE is solved exactly over each interval. This has the added benefit of reducing the recurrent time per training step by a factor of over 80. Equivalently, 10000 training steps would take around 3 days for the NCDE, but only around 50 minutes for the Linear NCDE. When a parallel associative scan is applied, the reduction in time per training step increases to a factor of over 250, so that 10000 training steps now take under 17 minutes. However, this change also significantly increases GPU memory usage. Applying the Log-ODE method brings GPU memory usage back to a level comparable to that of the models with non-linear vector fields, while further reducing the time per training step and maintaining a high average test set accuracy. Overall, a Log-Linear NCDE combined with a parallel associative scan reduces the time per training step by a factor of almost 1500 relative to the NCDE, so that 10000 training steps take under 3 minutes rather than around 3 days. This is achieved while increasing the average test accuracy by 12.8 percentage points and using only 8MB more GPU memory than the NCDE. Before broadening our empirical study of Linear NCDEs to additional tasks and baselines in Sections 5.3.4 and 5.4.6, we establish their theoretical relationship to SSMs. This connection provides the foundation for Section 5.4, which introduces Structured Linear NCDEs, where Aiθ is replaced by a structured variant to further improve model efficiency.

5.3

Structured State-Space Models

5.3.1

Definition

In 2021, drawing inspiration from traditional state-space models such as (4.5), Gu et al. [2022a] introduced S4, the first SSM. The model is based on a continuous differential equation, dhjs = Cθj hjs + Dθ Xsj ds, ysj = Eθ · hjs

(5.21)

where each channel of the input path Xsj produces a complex-valued hidden state hjs ∈ Cdh and the trainable parameters are Dθ ∈ Cdh , Eθ ∈ Cdh , and the channel specific Cθj ∈ Cdh ×dh . S4 is a stable discretisation of (5.21), hjti+1 = C̄θj hjti + D̄θj xjti 114

(5.22)

where C̄θj and D̄θj are determined by the method of discretisation and the channeldependent step size ∆j . A common choice is the zero-order hold discretisation, C̄θj = exp(∆j Cθj ), D̄θj = (∆j Cθj )−1 (exp(∆j Cθj ) − I)∆j Dθ ≈ ∆j Dθ .

(5.23)

During inference, S4 is equivalent to a linear RNN. However, the training via gradient descent is performed on the continuous-time variables, which helps manage vanishing and exploding gradients [Orvieto et al. 2023; Zucchet et al. 2024]. The “structured” aspect refers to specific parametrisations and initialisations of the state-to-state transition matrices Cθj to ensure stability and efficiency, particularly for processing long sequences. For example, S4D uses diagonal Cθj , which has become the dominant choice [Gu et al. 2022b]. SSMs have achieved state-of-the-art results on long-range reasoning benchmarks [Tay et al. 2021] and demonstrated strong performance in various domains including vision [Nguyen et al. 2022], audio [Goel et al. 2022], biological signals [Gu et al. 2022a], and reinforcement learning [Lu et al. 2023]. SSMs have garnered significant interest, as their computational complexity scales linearly in sequence length, while attention scales quadratically. Moreover, unlike non-linear RNNs such as LSTMs [Hochreiter et al. 1997] and GRUs [Cho et al. 2014], they can be efficiently parallelised on GPUs during training using the approach outlined in Section 5.2.2 [Smith et al. 2023]. While standard SSMs perform well on signal processing tasks, their computational power is limited: the core sequential mechanism of S4 is equivalent to a convolution [Li et al. 2023]. This represents a drawback in challenging domains such as text and genetics, where the ability to select data efficiently in an input-dependent manner is crucial [Wang et al. 2023a; Fu et al. 2023; Arora et al. 2024]. In 2023, Gu et al. proposed Mamba, which uses a recurrent layer based on a realvalued discretised model, hjti+1 = C̄θj (xti )hjti + D̄θj (xti )xjti , where

(5.24)

C̄θj (xti ) = exp(∆j (xti )Cθ ), D̄θj (xti ) = (∆j (xti )Cθ )−1 (exp(∆j (xti )Cθ ) − I)∆j (xti )Dθ xti , ≈ ∆j (xti )Dθ xti , 115

(5.25)

and the trainable parameters are Dθ ∈ Rdh ×dx , a shared diagonal state-transition matrix Cθ ∈ Rdh ×dh , and ∆j (xti ) = softplus(αθj · xti + βθj ),

(5.26)

with trainable parameters αθj ∈ Rdx and βθj ∈ R [Gu et al. 2024]. This recurrent layer is known as S6. Compared to S4, the evolution of each channel’s hidden state is now dependent on all channels of the current input xti through ∆j (xti ). This dependence is intended to gate the flow of information by controlling the balance between the previous hidden state and the new update. When ∆j (xti ) ≪ 1, the state-transition matrix is close to the identity and D̄θj (xti )xjti is small, so the hidden state is largely preserved. For larger values of ∆j (xti ), the new update has greater influence, leading to stronger state changes and greater forgetting. This modification allows Mamba to achieve state-of-the-art performance on a range of language modelling tasks. Similar ideas appear in recent attention-inspired architectures such as RWKV, Gated Linear Attention, and HGRN2 [Peng et al. 2023; Yang et al. 2024a; Qin et al. 2024]. The expressiveness of non-linear RNNs, such as (4.13), has been extensively studied since the seminal work of Siegelmann et al. [1992]. In particular, Hanson et al. [2020] proved that wide enough non-linear RNNs can approximate non-linear timehomogeneous systems of differential equations driven by input paths to arbitrary precision. However, SSMs have state-to-state transitions which are linear in the hidden state. Although this allows for parallel-in-time computation, it also reduces the recurrence’s expressivity. In 2022, Li et al. showed that linear RNNs, a generic term for S4 like recurrences, can approximate arbitrary convolution filters in the width limit [Li et al. 2022]. It has also been shown that single layer linear recurrences are universal approximators, when equipped with a fixed point-wise FCNN acting across the recurrence output [Orvieto et al. 2024; Wang et al. 2023b]. Mamba’s recurrence falls neither in the linear RNN nor the non-linear RNN setting: it is linear in the hidden state, but unlike S4 it is not linear time-invariant, since the input controls the recurrence’s eigenvalues. This input dependence increases Mamba’s expressivity relative to S4 and improves language modelling performance. In the remainder of this section, we investigate the approximation capabilities of Mamba by recasting the model as an affine Linear NCDE. Existing work on Mamba’s expressiveness has focused on specific toy tasks [Jelassi et al. 2024] or the framework of formal language theory [Merrill et al. 2024]. Here, we seek a generic result. 116

5.3.2

SSMs are Linear NCDEs

First, we show that the real-valued continuous version of S4, (5.21), can be rewritten as an affine Linear NCDE, (5.18). Let ht ∈ Rdh dX , ωtX,k = t, Z t X Xs ds, ξt =

(5.27)

t0

and

Akθ = diag(0, . . . , 0, Cθk , 0, . . . , 0) ∈ Rdh dX ×dh dX , Bθ = diag(Dθ , . . . , Dθ ) ∈ Rdh dX ×dX ,

(5.28)

where the non-zero diagonal element of Ak is in the k th position. Then the affine Linear NCDE (5.18) corresponds to a stacked version of (5.21) with real-valued parameters. The discrete version of Mamba’s recurrence, (5.24), can be considered a zero-order hold discretisation of dhjs = Cθ ∆j (Xs )hjs + Dθ Xs ∆j (Xs )Xsj ds

(5.29)

with a step size of 1, where Cθ ∈ Rdh ×dh and Dθ ∈ Rdh ×dX . These equations can be stacked and rewritten as an affine Linear NCDE by taking Z t X,k ωt = softplus(αk · Xs + β k )ds, t0  Xt softplus(α1 · Xs + β 1 )Xs1 Z t  ..  ξtX = .  t0

and

Xt softplus(αdX · Xs + β dX )XsdX

(5.30)

  ds, 

Akθ = diag(0, . . . , 0, Cθ , 0, . . . , 0) ∈ Rdh dX ×dh dX , 2

Bθ = diag(Dθ , . . . , Dθ ) ∈ Rdh dX ×dX ,

(5.31)

where the non-zero diagonal element of Akθ is in the k th position. In this framework, the major difference between S4 and Mamba’s recurrence is the choice of ω and ξ. Gu et al. [2024] argue that this difference allows Mamba to gate the hidden state based on the input stream, and therefore perform in-context learning. For this reason, we refer to ω and ξ as the gating functions. A notable difference 117

between SSMs and the general Linear NCDE is that SSMs process the hidden state for each channel individually, whereas a Linear NCDE mixes the hidden state and the channels of the transformed input path ω X in the recurrent step. As shown in the next section, this has a significant impact on the expressivity of SSMs.

5.3.3

Expressivity of SSMs

For certain choices of ωtX and ξtX , the affine Linear NCDE is maximally expressive. For example, ωtX,k = Xtk and ξtX = 0 puts you in the setting of Theorem 5.2. However, both S4 and Mamba use alternative choices for ωtX and ξtX , so we now characterise the expressiveness of generic affine Linear NCDEs. Theorem 5.5. Let X (d) denote the space of bounded-variation d-dimensional paths on the interval [t0 , tn ] which all begin at the same point and contain time as a channel, endowed with the 1−variation topology. For continuous gates ω X : X (dX ) → X (dω ) and ξ X : X (dX ) → X (dξ ), let   Z t X X X F = (X, t) 7→ Ψ(ω[t0 ,t] ) · X0 + Φ(ω[s,t] ) · dξs ,

(5.32)

t0 X where Ψ : X (dω ) → RdX and Φ : X (dω ) → Rdξ are continuous functions and ω[s,t]

is ω X restricted to the interval [s, t]. Then for any compact set K ⊆ X (dX ), any continuous paths ω X and ξ X with ωtX,1 ≡ t and ωtX,2 ≡ t2 , any ϵ > 0, and any F ∈ F, there exists a choice of hidden dimension dh ≥ 1 and parameters for the affine Linear NCDE such that |F (X, t) − yt | ≤ ϵ.

sup

(5.33)

(X,t)∈K×[t0 ,tn ]

A complete proof of Theorem 5.5 can be found in [Cirone et al. 2024, Appendix B]. Here, we give an overview of the argument. We begin by deriving an explicit formula for the solution of an affine Linear NCDE, following the same Picard iteration argument used to prove Theorem 2.37. This formula shows that the solution is represented in terms of the signature of the transformed path ω X , with ξ X entering through weighted integrals against those features. In particular, it makes clear that the choice of ω X is the main factor governing the model’s expressivity. Lemma 5.6. Let ωt and ξt be bounded variation paths of dimension dω and dξ , respectively. For any choice of Ai ∈ Rdh ×dh , and B ∈ Rdh ×dξ , the unique solution to dht =

dω X

Ai ht dωti + Bdξt ,

i=1

118

(5.34)

is X

X

Z t

I S[s,t] (ω)dξs ,

(5.35)

I = {∅} ∪ {I|I = (i1 , . . . , ik ), k ∈ N, 1 ≤ ij ≤ dω }

(5.36)

ht =

S[tI 0 ,t] (ω)AI ht0 +

I∈I

I

A B t0

I∈I

where I is the set of multi-indices

I with |I| = |(i1 , . . . , ik )| = k, AI = Aik · · · Ai1 with A∅ being the identity, and S[s,t] (ω)

is the term in the signature of ω over [s, t] corresponding to the multi-index I, Z Z I S[s,t] (ω) = ··· (5.37) dωui11 · · · dωuikk , | {z } s≤u1 <···<uk ≤t

with S ∅ = 1. Proof. The proof uses Picard iteration, following the same approach as the proof of (0)

Theorem 2.37. Let ht = ht0 and for n ≥ 0 define dω Z t X

(n+1) ht = ht0 +

i=1

Z t

i Ai h(n) s dωs + B

(5.38)

dξs .

t0

t0

Assume for some n ≥ 0 that, (n) ht =

X

X

S[tI 0 ,t] (ω)AI ht0 +

|I|≤n

I

Z t

I S[s,t] (ω) dξs .

(5.39)

(5.40)

A B t0

|I|≤n−1

Then, (n+1)

ht

= ht0 +

dω X

Ai

+

Ai

 Z t

S[tI 0 ,s] (ω)AI ht0  dωsi

|I|≤n

 X 

t0

i=1

 X

t0

i=1 dω X

Z t

AI B

Z s

I S[u,s] (ω) dξu  dωsi + B

t0

|I|≤n−1

Z t dξs . t0

For the first term,   Z t X Z t dω dω X X X i I I i i I   A S[t0 ,s] (ω)A ht0 dωs = A A ht0 S[tI 0 ,s] (ω)dωsi . i=1

t0

|I|≤n

(5.41)

t0

i=1 |I|≤n

By the recursive definitions of AI and S I , dω X X i=1 |I|≤n

i

I

Z t

A A ht0

S[tI 0 ,s] (ω)dωsi =

t0

X 1≤|I|≤n+1

119

S[tI 0 ,t] (ω)AI ht0 .

(5.42)

For the second term,   Z tZ s Z Z dω d ω s t X X X X I I i i I I i  S[u,s] (ω) dξu dωsi . S[u,s] (ω) dξu  dωs = AA B A B A t0

i=1

t0

|I|≤n−1

t0

i=1 |I|≤n−1

t0

(5.43) By Fubini’s theorem, Z tZ t Z tZ s dω dω X X X X I i i I i I I (ω) dωui dξs . S[s,u] AA B AA B S[u,s] (ω) dξu dωs = t0

i=1 |I|≤n−1

t0

t0

i=1 |I|≤n−1

s

(5.44) Again using the recursive definitions of A and S , Z t Z tZ t dω X X X I I i I i I S[s,t] (ω) dξs . S[s,u] (ω) dωu dξs = A B AA B I

t0

i=1 |I|≤n−1

I

s

(5.45)

t0

1≤|I|≤n

Therefore, (n+1) ht =

X

X

S[tI 0 ,t] (ω)AI ht0 +

|I|≤n+1

Z t

I

A B

I S[s,t] (ω) dξs .

(5.46)

t0

|I|≤n

Since (5.39) is true for n = 0, it holds for all n ≥ 0. Let M = maxi {∥Ai ∥op }. By [Lyons 1994, Theorem 2.2.1], there exists finite C > 1 such that |I|

S[tI 0 ,t] (ω)

≤C

∥ω∥1-var;[t0 ,t] |I|!

Hence,

(5.47)

.

|I|

∥S[tI 0 ,t] (ω)AI ht0 ∥ ≤ CM |I|

∥ω∥1-var;[t0 ,t]

and Z t

|I|!

∥ht0 ∥

(5.48)

|I|

∥ω∥1-var;[t0 ,t]

∥ξ∥1-var;[t0 ,t] ,

(5.49)

The factorial decay means limn→∞ ht converges uniformly to ht where Z t X X I I I I A B S[s,t] (ω)dξs . ht = S[t0 ,t] (ω)A ht0 +

(5.50)

I

A B

I S[s,t] (ω) dξs

|I|

≤ CM ∥B∥op

t0

|I|!

(n)

I∈I

I∈I

t0

Continuity of the Riemann-Stieltjes integral for bounded variation paths allows the limit to be passed through the integral, so ht is a solution to (5.34). For uniqueness, suppose there are two solutions ht and h̃t to the CDE. Then by linearity, gt = ht − h̃t satisfies gt =

Z tX dω

Ai gs dωsi

t0 i=1

with gt0 = 0. Therefore, gt = 0 and the solution is unique. 120

(5.51)

Lemma 5.6 shows that an affine Linear NCDE is not a simple linear recurrence. Rather, its solution is a linear map on features built from iterated integrals of the transformed path ω X , together with additional features built from integrating those terms against dξ X . This helps explain why Linear NCDEs are maximally expressive. Although the dynamics are linear in the hidden state, the hidden state itself is built from highly non-linear path features generated recursively through repeated interactions with the driving path. Compared to classical signature methods, a Linear NCDE learns to construct the weighted-signature features most relevant to the task, rather than relying on a fixed truncated collection of signature terms. We now package these weighted-signature features into a single feature map. Definition 5.7. Let WdX ,dω ,dξ be the set of words in the alphabet d

(5.52)

ξ ω X ∪ {ϵωk }dk=1 AdX ,dω ,dξ = {ei }di=1 ∪ {ϵξj }j=1

For fixed ω and ξ, define T (X) : [t0 , tn ]2 → l2 (WdX ,dω ,dξ ) ⊆ T ((AdX ,dω ,dξ )) as the unique solution to: T[s,t] (X) =

dX X

Xsi ei +

i=1

dξ dω Z t X X X,j ξ T[s,u] (X) dωuX,k ⊗ ϵωk ξt ϵj + j=1

k=1

(5.53)

s

This is similar to the tensor-valued CDE representation of the signature seen in Section 2.4.1, (5.54)

dS[t0 ,s] (ω X ) = S[t0 ,s] (ω X ) ⊗ dωsX ,

with the addition of two terms to track Xs and ξ X [Salvi et al. 2021]. We could also understand T (X)[s,t] as a sub-tensor of (5.55)

Xs ⊗ S[s,t] ([ω X , ξ X ]),

but in doing this we would have to explicitly ignore most of the terms in this tensor. The CDE (5.53) does exactly this, but implicitly. In any case, the subtensor view shows that T : X (dX ) × [t0 , tn ]2 → l2 (Wv,vω ,vξ ) is well defined and continuous. Having defined a feature map T (·)[s,t] with values in the Hilbert space l2 (WdX ,dω ,dξ ), it is possible to associate to it a Reproducing Kernel Hilbert Space (RKHS) [Berlinet et al. 2004], where the kernel is induced by the l2 product. We denote the RKHS by Htω,η . Proposition B.10 in Cirone et al. 2024 demonstrates that linear maps of ht are in the uniform closure of Htω,η , and Proposition B.11 allows us to characterise the closure as

 F ∈

(X, t) 7→ Ψ(ω[tX0 ,t] ) · X0 +

Z t t0

121

X Φ(ω[s,t] ) · dξsX

 .

(5.56)

The proof of Proposition B.11 relies on the signature being able to separate points in X the image of the map (X, s, t) 7→ ω[s,t] . By Lemma 2.25, the signature separates the X X as ω X is augmented to include time. In order to separate points from ω̃[s,t] points ω[s,t] X of the form ω[s,t] from ω̃[sX′ ,t′ ] , we include t2 as a channel in ω X , as then S[s,t] (ω X ) =

S[s,t] (ω̃ X ) implies that Z t

′ 2

′ 2

Z t′

d(r2 ), d(r ) = t − s = (t ) − (s ) = s′ Z t′ Z t ′ ′ d(r) = t − s = t − s = d(r). 2

2

2

s

(5.57)

s′

s

Therefore, s′ = s and t′ = t. The proof of Theorem 5.5 concludes by showing that linear maps on ht are dense in the uniform closure of H[tω,η , using the same strategy as the proof of Theorem 0 ,tn ] 4.4, that NCDEs are maximally expressive [Kidger 2022]. Theorem 5.5 can be seen as a generalisation to generic functions ω and ξ of [Li Rt et al. 2022, Theorem 7]. That result considered the case ωtX = t and ξtX = t0 Xs ds, which is the setting of S4, S5, and the LRU [Gu et al. 2022a; Smith et al. 2023; Orvieto et al. 2023]. In this setting, the only information contained in ω[s,t] is the increment t − s. Therefore, (5.32) reduces to   Z t (X, t) 7→ ψ(t − t0 ) + ϕ(t − s) · Xs ds ,

(5.58)

t0

which is the set of linear filters on the input. Now consider ωtX = Xt . The first term in the function class   Z t X Ψ(X[t0 ,t] ) + Φ(X[s,t] ) · dξs

(5.59)

t0

is already enough to establish that the output L2θ ht is a non-linear function of all previously seen inputs X[t0 ,t] . However, the term Ψ(X[t0 ,t] ) is only non-trivial when Rt ht0 ̸= 0. A case similar to Mamba is ht0 = 0 and ξtX = t0 Xs ds. Here, we can approximate arbitrarily well outputs of the form   Z t (X, t) 7→ Φ(X[s,t] ) · Xs ds t0

122

(5.60)

where Φ is any continuous function of the input path, restricted to the portion [s, t]. This clearly shows that dense Linear NCDEs are capable of context-dependent filtering: the output is again a linear combination of previously seen inputs, but weights are not predetermined as in linear RNNs like S4. However, in S4D and Mamba, the Ai are constrained to be diagonal, and this severely restricts the expressivity. Theorem 5.8. If the Ai are diagonal, then the requirements ωtX,1 ≡ t, ωtX,2 ≡ t2 can be dropped and the existence result only holds with   Z t X X X X ϕ(ωt − ωs ) · dξs F ∈ (X, t) 7→ ψ(ωt ) · Xt0 +

(5.61)

t0

for continuous functions ψ : Rdω → Rd and ϕ : Rdω → Rdξ . Proof. See [Cirone et al. 2024, Appendix B]. Rt Taking ωtX = Xt and ξtX = t0 Xs ds, dense matrices filter based on the entire trajectory X[s,t] , Z t

(5.62)

Φ(X[s,t] ) · Xs ds t0

where diagonal matrices restrict you to comparing two elements of the input sequence, Z t ϕ(Xt − Xs ) · Xs ds (5.63) t0

The key difference is that dense matrices allow hidden coordinates to interact, which lets the recurrence recursively build higher-order features of the path. When the Ai are diagonal, each hidden coordinate evolves in isolation, so these recursive interactions are lost. As a result, diagonal models cannot generate the same class of higher-order path features as dense Linear NCDEs. A smart choice of gating functions ω and ξ can still improve the resulting non-linear filtering strategy, but it cannot remove this fundamental processing discrepancy relative to the dense setting. To give a simplistic example of the difference in expressivity between diagonal and dense state-transition matrices, consider a stream of bits (5.64)

x1 , x2 , . . . , xn ∈ {0, 1}, where we want to predict the parity label defined by pn = Sn mod 2 ∈ {0, 1},

Sn =

n X k=1

123

xk .

(5.65)

Whenever a new bit is 1 the label flips; if the bit is 0 the label stays the same. Taking x a diagonal Linear NCDE with a hidden dimension of 2 and ωk+1 − ωkx = xk+1 , then " # ! a1 0 hn+1 = exp xn+1 hn , (5.66) 0 a2

and hin = hi0 exp(ai Sn ),

i = 1, 2.

(5.67)

With a linear read-out r = (r1 , r2 )⊤ followed by a monotone activation ϕ (such as tanh, ReLU, sigmoid):       p̂n = ϕ r⊤ hn = ϕ r1 h10 ea1 Sn + r2 h20 ea2 Sn = ϕ f (Sn ) .

(5.68)

Since f (S) has at most one turning point, and ϕ is monotone, p̂n can cross any chosen threshold at most twice. However, the true label pn flips every time Sn 7→ Sn + 1. Hence, no diagonal 2 × 2 Linear NCDE can realise parity on arbitrarily long input. Similarly, for a hidden dimension of n, f (S) can have at most n − 1 turning points, so no diagonal Linear NCDE with a fixed hidden dimension can realise parity on arbitrarily long input. If you replace A with A=

0

π

!

−π 0

(5.69)

,

then exp(Axn+1 ) =

1 0

!

when xn+1 = 0 and exp(Axn+1 ) =

(5.70)

,

0 1

!

−1

0

0

−1

,

(5.71)

when xn+1 = 1. Thus (5.72)

hn+1 = (−1)xn+1 hn and

(5.73)

hn = (−1)Sn h0 . (1)

Taking r = (1, 0)⊤ , h0 = 1, and ϕ(s) = 1 − sign(s) /2,  1 − sign (−1)Sn p̂n = = Sn mod 2 = pn . 2 

(5.74)

Therefore, a dense Linear NCDE can solve parity exactly with a hidden dimension of 2. 124

In practice, it is possible to regain expressivity without sacrificing the computational advantages of diagonal matrices through stacking, where a new Linear NCDE is driven by the solution of a previous Linear NCDE. A formal statement and proof of the recovery of expressivity is given in Appendix C of Cirone et al. 2024. An important corollary of the results on stacking is that linear RNNs, such as S4, require non-linearities in-between layers to recover expressivity, whereas selective SSMs like Mamba only need linear mixing layers. Intuitively, stacking recovers the mixing between the hidden dimensions which is crucial for the expressiveness of dense Linear NCDEs.

5.3.4

Experiments

The first task considered is based on the toy dataset from Section 4.4.6, where the aim is to predict terms in the input path’s signature. The dataset’s objective aligns with the proofs of Theorems 5.4 and 5.5, which characterise the expressivity using the path’s signature. We use two datasets with dimensions 2 and 3, respectively. The increment in each channel at each step is an integer-rounded sample from a standard Normal distribution,

Z n+0.5

1 2 1 √ e− 2 x dx, 2π n−0.5 where n ∈ Z. The 2D dataset’s target is the area integral Z 1Z v dXu1 dXv2 ,

p(n) =

0

0

(5.76)

0

and the 3D dataset’s target is a volume integral Z 1Z wZ v dXu1 dXv2 dXw3 . 0

(5.75)

(5.77)

0

We consider seven models on this dataset: • (1, 2): A single S4D or S6 recurrence with a linear readout, • (3, 4): Two stacked S4D or S6 recurrences with a linear mixing layer in-between and a linear readout, • (5, 6): Two stacked S4D or S6 recurrences with a linear mixing layer and ReLU in-between and a linear readout, • 7: A Linear NCDE with gates ωtX = ξtX = (t, Xt ) and a linear readout. 125

All of the SSMs have trainable matrices in their recurrences, whereas the Linear NCDE is using fixed random matrices. All models use a hidden dimension of 256, with the SSMs using a state dimension of 256. The SSMs are trained using gradient descent with a batch size of 32 and Adam with a learning rate of 10−4 [Kingma et al. 2015]. The output from the Linear NCDE’s recurrence is obtained using the Tsit5 adaptive ODE solver, with an absolute and relative tolerance of 10−2 [Tsitouras 2011]. The Linear NCDE’s linear readout is obtained via ordinary least squares. The second task we consider is the A5 benchmark from Merrill et al. [2024]. It tests models on state-tracking, a crucial ability for tasks involving permutation composition, such as chess. The dataset comprises sequences from the group of even permutations on five elements, A5 , where the target is the cumulative composition of all preceding permutations. Datasets vary by sequence length, ranging from 3 to 20. The models are evaluated on the number of stacked layers required to achieve greater than 90% validation accuracy. We consider six models on the A5 benchmark: a Linear NCDE, a diagonal Linear NCDE, an LSTM, a Transformer, S4D, and Mamba. The LSTM, Transformer, S4D, and Mamba use a hidden dimension of 1024. LSTM uses direct stacking whereas the other baseline models use stacked blocks consisting of a sequence model, a GLU layer [Dauphin et al. 2017], and layer normalisation [Ba et al. 2016]. The Linear NCDEs take

ωtXj+1 − ωtXj tj+1 − tj

= (1, Xtj )

(5.78)

and ξtX = 0. Furthermore, they use 1024 trainable parameters per recurrence, corresponding to a hidden dimension of 1024 for the diagonal Linear NCDE and 32 for the Linear NCDE. Models are trained using a token-tagging loss for 1,000,000 steps with a batch size of 256. For all sequence lengths, a small batch of sequences of length 2 are included at each training step to aid convergence. All models have trainable matrices in their recurrences and use Adam with weight decay as the optimiser [Kingma et al. 2015], alongside a linear warm-up followed by cosine annealing with a minimum learning rate of 10−5 and a maximum learning rate of 10−3 . Additionally, all models use dropout with a rate of 0.1 and a trainable embedding layer [Srivastava et al. 2014].

126

S6 Depth 1 S6 Depth 2 S6 Depth 2 Nonlinear

Area (2D)

10 1

Validation RMSE

10 1

S4D Depth 1 S4D Depth 2 S4D Depth 2 Nonlinear

10 2

10 2

10 3

10 3

10 4

0.0

0.2

0.4

0.6

0.8

Training Steps

1.0 1e6

10 4

0.0

Predicting Zero Random Linear NCDE

Volume (3D)

0.2

0.4

0.6

0.8

Training Steps

1.0 1e6

Figure 5.1: Comparison of the Linear NCDE, S4D, and S6 on the two signature prediction tasks, (5.76) and (5.77). For each model, we plotted the mean and range of the validation root mean square error over 5 independent runs.

5.3.5

Results

Figure 5.1 presents the results on the signature prediction task. These results empirically demonstrate a number of the theoretical results presented in the previous sections. Firstly, as discussed in Section 5.3.3, recurrences which are linear in the input, such as S4D, require a non-linearity in-between the recurrent layers to perform well. Furthermore, as stated in Theorem 5.8, even if the recurrence is non-linear in the input, such as Mamba’s recurrence S6, the expressivity of models with diagonal matrices is improved by stacking. Additionally, the inclusion of the non-linearity inbetween the S6 layers does not improve performance, as the recurrences themselves are expressive enough. Finally, as stated in Theorem 5.4, dense matrices can achieve strong expressivity with random initialisation, no stacking, and only a trainable linear readout. Figure 5.2 is a plot of the results on the A5 benchmark. The figure shows that the number of blocks S4D, Mamba, and the Linear NCDE with diagonal state-transition matrices require to achieve greater than 90% validation accuracy grows with the se127

Minimum Number Of Layers Required

Diagonal Linear NCDE S4D Mamba LSTM Linear NCDE

4

3

2

1 3

4

5

6

7

8

9 10 11 12 13 14 15 16 17 18 19 20

Sequence Length

Figure 5.2: Comparison of a diagonal Linear NCDE, S4D, Mamba, LSTM, and Linear NCDE on the A5 benchmark. For each sequence length, the plot shows the minimum number of blocks required to achieve at least 90% validation accuracy, with each shaded band corresponding to a number of blocks. Missing points mean the model did not achieve at least 90% validation accuracy with 4 blocks or less.

128

quence length. On the other hand, the LSTM and Linear NCDE are able to achieve greater than 90% validation accuracy for all lengths considered using only one block. These empirical results further validate Theorem 5.8: there exists a gap in expressivity between diagonal and dense state-transition matrices, with stacking required to recover expressivity. Furthermore, they provide empirical evidence that even for simple state-tracking problems, the number of stacked blocks required to recover expressivity can grow quickly with sequence length.

5.3.6

Limitations

As shown in Section 5.2.5, replacing the non-linear vector field of an NCDE with a linear vector field leads to substantial improvements in time per training step. Furthermore, as shown theoretically in Section 5.3.3 and empirically in Section 5.3.5, using dense state-transition matrices Aiθ provides more expressivity than the diagonal state-transition matrices of S4D and Mamba. However, there remains a core limitation of Linear NCDEs. The number of parameters and computational cost scales as O(d3h ), where dh is the hidden dimension. This is in contrast to diagonal state-transition matrices, where they scale as O(d2h ). This makes Linear NCDEs infeasible in large models, where hidden dimensions can reach 8192 [Touvron et al. 2023]. This limitation motivates the following question: Do there exist structured matrices Aiθ which are computationally more efficient than dense matrices, whilst having the same theoretical expressivity and comparable empirical performance? It is this question we aim to answer in Section 5.4.

5.4

Structured Linear NCDEs

5.4.1

Introduction

Structured Linear Neural Controlled Differential Equations (SLiCEs) are Linear NCDEs ht = ht0 +

Z tX dω

Aiθ hs dωsX ,

(5.79)

t0 i=1

where each Aiθ is constrained to have a particular structure. While using diagonal matrices is computationally efficient, Section 5.3 showed that this choice theoretically limits expressivity and empirically hurts performance on state-tracking tasks. This 129

section explores four more powerful alternatives, two inspired by prior work and two that are novel. • Block-diagonal: The matrix is composed of smaller, dense blocks along the diagonal,  i i i , , . . . , Bθ,k , Bθ,2 Aiθ = BlockDiag Bθ,1

(5.80)

i ∈ Rbj ×bj is a trainable dense block, k is the number of blocks, where each Bθ,j Pk and dh = j=1 bj . This structure is inspired by the input-dependent block-

diagonal linear RNN [Fan et al. 2024] • Diagonal-plus-low-rank (DPLR): The matrix is the sum of a diagonal matrix and a low-rank matrix, Aiθ = Dθi + uiθ vθi

⊤

,

(5.81)

where Dθi is diagonal and uiθ , vθi ∈ Rdh ×r with rank r < dh . DPLR structures are used by DeltaNet, DeltaProduct, and Gated DeltaNet [Schlag et al. 2021; Yang et al. 2024b; Siems et al. 2025; Yang et al. 2025]. • Sparse: Each Aiθ is a sparse matrix with O(d1+ϵ h ) non-zero entries for some 0 < ϵ < 1, sampled at random via a Bernoulli mask. • Walsh–Hadamard: The matrix is the product of a fixed matrix H and a trainable diagonal matrix Dθi , Aiθ = HDθi .

(5.82)

where H is a Hadamard matrix of order dh (entries ±1 with mutually orthogonal columns and rows). Figure 5.3 is a visual comparison of the structures. Compared to dense matrices, all four proposed structures significantly reduce both the parameter count and the computational cost of a recurrent update. Additionally, the Linear NCDE framework can be used to prove that unlike diagonal matrices, all four structures possess maximal probabilistic expressivity, as will be discussed further in Section 5.4.3. Empirical results in Section 5.4.6 demonstrate that all four structures successfully perform statetracking on the A5 benchmark used in Section 5.3.4. Furthermore, the block-diagonal and DPLR SLiCE establish a new state-of-the-art among parallel-in-time models for length generalisation on regular language tasks [Delétang et al. 2023].

130

Figure 5.3: A visualisation of the structure for one Aiθ when dh = 8 in a diagonal (D), block-diagonal (BD), Walsh–Hadamard (WH), sparse (S), and diagonal-plus-lowrank (DPLR) SLiCE. Green entries represent trainable parameters, grey represent parameters fixed at zero, blue represent parameters fixed at 1, and red represent parameters fixed at −1.

131

5.4.2

Related Work

The block-diagonal and DPLR SLiCEs take inspiration from block-diagonal inputdependent linear RNN and DeltaNet, respectively [Fan et al. 2024; Schlag et al. 2021; Yang et al. 2024b]. Both models are linear RNNs, in the sense that their recurrent update is linear in the previous hidden state. For example, block-diagonal input dependent linear RNN is defined by hti+1 = Aθ (xti )hti + Bθ xti ,

(5.83)

where Aθ is a block-diagonal matrix that depends non-linearly on xti . In contrast, the state-transition matrix of block-diagonal SLiCE depends linearly on xti . As shown in Section 5.4.3 and 5.4.6, a linear dependence is theoretically sufficient for expressivity and empirically effective for state tracking. DeltaNet belongs to a subset of linear RNNs whose hidden states are matrix-valued. This perspective originated as an alternative viewpoint on linear Transformers, where softmax is replaced with a kernel admitting a finite-dimensional feature map, κ(q, k) = ϕ(q)⊤ ϕ(k) for ϕ : Rdq → Rdϕ . Letting Wθq ∈ Rdq ×dx , Wθk ∈ Rdq ×dx , and Wθv ∈ Rdv ×dx be learnable weights, then causal linear attention is defined by ⊤  v q k ϕ W x ϕ W x Wθ xtj t t j θ θ i j=1 .   Pi ⊤ q k ϕ W x ϕ W x t t j θ i θ j=1

Pi oti =

(5.84)

As shown by Katharopoulos et al. [2020], this admits an RNN formulation,  ⊤ Sti = Sti−1 + ϕ Wθk xti Wθv xti ,  yti = yti−1 + ϕ Wθk xti , ⊤ ϕ Wθq xti Sti oti = ⊤ , ϕ Wθq xti yti

(5.85)

where Si ∈ Rdϕ ×dv with S0 = 0, yi ∈ Rdϕ with y0 = 0, and oi ∈ Rdv . Ignoring the normalisation, the core recurrence is a matrix-valued linear RNN. Matrix-valued linear RNNs are a useful framework for understanding several recent sequence models, as highlighted by Yang et al. [2024b]. Many of these models share the general form: Sti+1 = Sti • Mti + v(xti )k(xti )⊤ , 132

(5.86)

where • denotes an associative operator and v and k are arbitrary functions of the current input with compatible output dimensions. In practice, they are often linear projections, with possible additions such as feature maps, element-wise non-linearities, or normalisation. In Section 5.3.2, the hidden state for each channel of Mamba’s input was stacked vertically to view the entire model as a Linear NCDE. If instead you view the hidden state for each channel of the input as columns of a matrix, then Mamba’s recurrence (5.24) can be rewritten as Sti+1 = Sti ⊙ Mti + v(xti )k(xti )⊤ ,

(5.87)

where ⊙ refers to the Hadamard (element-wise) product and Sti ∈ Rdh ×dx . The Hadamard product is a direct consequence of Mamba’s diagonal state-transition matrix, which inherently prevents interaction between individual elements of the hidden state. This framework gives a clear interpretation for one of the key modifications introduced by Mamba-2, Sti+1 = γ(xti )Sti + v(xti )k(xti )⊤ ,

(5.88)

where γ is a real-valued function [Dao et al. 2024]. Additionally, it highlights the structural similarity between Mamba and linear Transformers. Replacing the Hadamard product by a matrix product allows richer interactions between the hidden state, Sti+1 = Sti Mti + v(xti )k(xti )⊤ .

(5.89)

However, similarly to using dense matrices in a Linear NCDE, the cost makes layers of this type intractable in larger models. DeltaNet uses a diagonal-plus-rank-one structure, Sti+1 = Sti (I − β(xti )k(xti )k(xti )⊤ ) + β(xti )v(xti )k(xti )⊤ ,

(5.90)

where β is a real-valued function [Schlag et al. 2021; Yang et al. 2024b]. DeltaProduct later generalised DeltaNet to DPLR matrices [Siems et al. 2025]. Beyond reducing parameter count and recurrent computational cost, this structure also facilitates an efficient chunk-wise algorithm that can outperform parallel associative scans for large hidden dimensions, as outlined in [Yang et al. 2024b, Section 3.2]. As will be seen in Section 5.3.4, it also significantly improves state-tracking performance.

133

Many other recent sequence models can also be viewed as matrix-valued linear RNNs. These include, but are not limited to, Gated DeltaNet [Yang et al. 2025], RWKV-7 [Peng et al. 2025], HGRN-2 [Qin et al. 2024], mLSTM [Beck et al. 2024], Gated Linear Attention [Yang et al. 2024a], Gated Random Feature Attention [Peng et al. 2021], Gated Slot Attention [Zhang et al. 2024], TTT-Linear [Sun et al. 2025], and Titans [Behrouz et al. 2025]. A detailed comparison of the specific form of (5.86) for many of these models is provided in Table 2 of [Yang et al. 2024b]. Beck et al. [2024] introduced mLSTM alongside a non-linear recurrent model sLSTM, which together form their sequence model xLSTM. These components are designed to play different roles, with mLSTM acting as the memory and sLSTM performing the reasoning. Section 5.4.6 will use mLSTM, sLSTM, and xLSTM as baseline methods to highlight the different roles the components play. Matrix-valued linear RNNs can be converted into vector-valued linear RNNs by returning to the stacking approach of Section 5.3.2. Let vec : Rm×n → Rmn be the column-major vectorisation operator, which transforms a matrix into a vector by stacking its columns. Letting ⊗ denote the Kronecker product, the Hadamard product linear RNN (5.87) can be rewritten as vec(Sti+1 ) = diag(vec(Mti )) vec(Sti ) + k(xti ) ⊗ v(xti ),

(5.91)

where the state-transition matrix is diagonal, consistent with Mamba’s design. Noting that vec(AXB) = (B ⊤ ⊗ A) vec(X),

(5.92)

then the linear RNN with a matrix product (5.89) can be written as vec(Sti+1 ) = (Mt⊤i ⊗ Idh ) vec(Sti ) + k(xti ) ⊗ v(xti ).

(5.93)

In both cases, a matrix-valued recurrence is equivalent to a vector-valued recurrence on a flattened hidden state, where the state-transition matrix is constrained to have a specific structure. For the Hadamard product, this gives a diagonal matrix, while the matrix product leads to a Kronecker product structure. For the remainder of this work, we will focus our analysis on the vector-valued case with the structured matrices introduced in Section 5.4.1 (block-diagonal, DPLR, sparse, and Walsh-Hadamard). The insights gained from this analysis naturally extend to the matrix-valued setting. For instance, the limitations in expressivity of 134

diagonal matrices demonstrated in Section 5.3 directly translate to the Hadamard product formulation. Similarly, the Kronecker product structure arising from vectorising a matrix-valued recurrence clearly illustrates how the properties of the constituent matrices determine the properties of the overall state transition. SLiCEs can be generalised to matrix-valued hidden states by selecting a suitable structure and reversing the above vectorisation. Alternatively, m copies of the same SLiCE can be run via Ht = Ht0 +

Z t X dω t0

! Aiθ dωsX,i

Hs ,

(5.94)

i=1

where Hs ∈ Rdh ×m . Clearly, m copies of a vector-valued SLiCE match the expressivity of a single copy, so all of our theoretical results naturally carry over to this setting. However, the columns only differ due to their initial conditions. To introduce meaningful column-specific dynamics, you can include a column-specific bias term in the vector field. A natural way to incorporate such biases into a matrix-valued SLiCE is to consider an affine SLiCE, Ht = Ht0 +

Z t X dω t0

! Aiθ dωsX,i

Hs + Bθ diag(dξsX ),

(5.95)

i=1

where Bθ ∈ Rdh ×m . Letting hkt for 1 ≤ k ≤ m denote the columns of Ht , then ! Z t X dω hkt = hkt0 + Aiθ dωsX,i hks + Bθk dξsX,k . (5.96) t0

i=1

Approximating ωs and ξs with linear interpolation on the grid t0 < · · · < tn yields ! dω   X − ξtX,k ), (5.97) h̃ktj+1 ≈ exp Aiθ ωtX,i − ωtX,i h̃ktj + Bθk (ξtX,k j+1 j j+1 j i=1

where we have used the approximation Z tj+1 −tj exp τ 0

dω X i=1

Aiθ

ωtX,i − ωtX,i j+1 j tj+1 − tj

! dτ ≈ (tj+1 − tj )I,

(5.98)

for small increments. The outputs h̃ktj remain computable in O(log(n)) parallel steps using a parallel associative scan [Blelloch 1993].

135

This construction is closely related to the path development layer, whose hidden state evolves on a matrix Lie group via the recurrence  Htj+1 = exp Mθ (xtj+1 − xtj ) Htj ,

(5.99)

where Mθ is a linear map into a matrix Lie algebra g [Lou et al. 2024; Jiang et al. 2024]. Any such linear map can be written coordinate-wise as Mθ (v) =

dω X

Aiθ v i ,

(5.100)

i=1

where the choice of g determines the structure of the matrices Aiθ ∈ g. Hence, this is a special case of (5.95) with ξsX = 0, Ht0 = I, and ωsX = Xs , where Xs is the linear interpolation of {xti }ni=0 . Therefore, the scan-based methods developed here can also be applied to parallelise the computation of the path development layer.

5.4.3

Expressiveness

As demonstrated in Section 5.3.3, a core difference between diagonal and dense statetransition matrices Aiθ is their theoretical expressivity. Here, we show that all four of the proposed SLiCE architectures retain maximal probabilistic expressivity. Applying Lemma 5.6 with B = 0, the solution to (5.79) is X ht = S[tI 0 ,t] (ω)AI h0 ,

(5.101)

I∈I

where I is the set of multi-indices I = {∅} ∪ {I|I = (i1 , . . . , ik ), k ∈ N, 1 ≤ ij ≤ dω }

(5.102)

I (ω) is the term in the signature AI = Aik · · · Ai1 with A∅ being the identity, and S[s,t]

of ω over [s, t] corresponding to the multi-index I, Z Z I S[s,t] (ω) = ··· dωui11 · · · dωuikk , | {z }

(5.103)

s≤u1 <···<uk ≤t

with S ∅ = 1. The proof of maximal probabilistic expressivity relies on showing that the feature vectors AI h0 and AJ h0 become approximately orthogonal as the hidden dimension increases. This property is guaranteed if the following bound holds:   1 I 1 J ⟨A h0 , A h0 ⟩Rdh − δI,J ≤ (κ(|I| + |J|))!! O √ , (5.104) dh dh L2 (Pd ) h

136

where κ is a constant independent of dh .  Cirone  et al. [2023] showed that (5.104)

holds when Aiθ have i.i.d entries from N 0, d1h

and this fact was used by Cirone

et al. [2024] to prove Theorem 5.4. The proof that each of the four SLiCE structures considered possesses maximal probabilistic expressivity proceeds by demonstrating that (5.104) holds for a distribution appropriate to that structure. The detailed proofs of these results were primarily developed by a collaborator, Nicola Muça Cirone. The proofs build on their work developing a novel graphical framework for neural networks that linearises the effect of activation functions, allowing for the application of Wick’s principle and the genus expansion technique when proving convergence results [Cirone et al. 2025a]. This framework facilitates simple proofs that (5.104) holds for all four SLiCE structures, but introducing the required machinery falls outside the scope of this thesis. Here, we present the expressivity results for the four structures with references to the locations of detailed proofs. Theorem 5.9. Let X be the space of bounded variation paths on the interval [t0 , tn ] that start at a common point and include time as a channel, endowed with the 1−variation topology. Let F be the space of SLiCEs with dh ∈ N. Then F has maximal probabilistic expressivity when h0 ∼ N (0, 1) and Aiθ satisfies one of the following conditions:  i i i i 1. Aiθ = BlockDiag Bθ,1 , Bθ,2 , . . . , Bθ,k , where Bθ,j ∈ Rb×b , b = ⌈log(dh )⌉, and  i Bθ,j has i.i.d entries from N 0, 1b . 2. Aiθ = uiθ vθi

⊤

, where uiθ , vθi ∈ Rdh ×r with r = ⌈log(dh )⌉ and uiθ and vθi have i.i.d

entries from N (0, 1). 3. Aiθ has entries obtained by pointwise multiplying W with i.i.d entries from 1 N (0, dh p(d ) and B with i.i.d entries from a Bernoulli distribution with probah)

bility p(dh ) of being 1, where p(dh ) satisfies dh p(dh ) → ∞ as dh → ∞. 4. Aiθ = HDθi , where H ∈ Rdh ×dh is a fixed matrix with entries bounded uniformly in dh by a constant C satisfying HH ⊤ = dh Idh and Dθi is a diagonal matrix with i.i.d entries from N (0, 1). Proof. The proof of (1), (3), and (4) can be found as Proposition B.6, B.2, B.4 in [Walker et al. 2025], respectively. The proof of (2) can be found as Proposition F.2 in [Movahedi et al. 2025].

137

The expressivity result for the low-rank structure (2) naturally extends to a DPLR structure, by simply taking Dθi = 0. Additionally, condition (3) shows that maximal probabilistic expressivity in the sparse case is retained only when the matrices do not become too sparse, in the sense that the expected number of non-zero entries per row must diverge as dh → ∞. For instance, sparse matrices with O(d1+ϵ h ) nonzero entries for some ϵ > 0 satisfy this condition. Furthermore, a Hadamard matrix matches the conditions of (4). Therefore, Theorem 5.9 confirms that, unlike diagonal matrices, SLiCEs with block-diagonal, DPLR, sparse, and Walsh–Hadamard matrices have maximal probabilistic expressivity.

5.4.4

Comparison

Table 5.2 summarises the differences in parameter count, computational cost, existence of an efficient implementation, and expressivity of the proposed SLiCE structures, where for simplicity we have taken dω = dh . As can be seen, the four proposed structures lead to a reduction in parameter count and recurrent cost of inference, whilst still maintaining maximal expressivity. However, current deep-learning frameworks, such as JAX [Bradbury et al. 2018] and PyTorch [Paszke et al. 2019], are not optimised for unstructured sparsity, so the sparse structure does not lead to practical speed-ups in our implementations. Furthermore, not all the structures reduce the theoretical computational cost of applying a parallel associative scan. This is because the parallel associative scan is repeatedly composing exp

dω X

! (ωtij+1 − ωtij )Aiθ

.

(5.105)

i=1

When the Aiθ are diagonal or block-diagonal, the composition of (5.105) preserves the structure, as these classes of matrices are closed under multiplication. Therefore, using a parallel associative scan reduces the scan depth from n to log(n), whilst having P a computational cost per composition of O(d2h ) or O(dh j b2j ), respectively. However, for DPLR, sparse, and Walsh–Hadamard SLiCEs, the structured matrices are not closed under multiplication, which means that the limiting computational cost per composition is the same as a dense Linear NCDE, O(d3h ). As discussed in Section 5.2.2, parallel associative scans result in high I/O costs for large models, as each state-transition matrix must be materialised in GPU memory [Yang et al. 2024b]. Yang et al. [2024b] introduced an alternative approach 138

Table 5.2: Comparison of SLiCEs with dense, diagonal, diagonal-plus-low-rank (DPLR), sparse, Walsh–Hadamard (WH), and block-diagonal (BD) structure on parameter count, computational cost, the existence of an efficient implementation, and expressivity. Here, dh is the hidden dimension, n is the sequence length, bj are BD-SLiCE’s block-sizes, r is DPLR-SLiCE’s rank, ϵ is S-SLiCE’s sparsity, and for simplicity we have taken dω = dh , as is common in practice when stacking layers. Parallel cost is measured as O(scan depth, cost per composition) when applying a parallel associative scan. Parameters

Recurrent Cost

Parallel Cost

Efficient Impl.

Maximally Expressive

Dense

O(d3h )

O(nd3h )

O(log(n), d3h )

Yes

Yes

Diagonal

O(d2h )

O(nd2h )

O(log(n), d2h )

Yes

No

DPLR

O(rd2h )

O(nrd2h )

O(log(n), d3h )

Yes

Yes

Sparse

O(d2+ϵ h )

O(nd2+ϵ h )

O(log(n), d3h )

No

Yes

WH

O(d2h ) P  O dh j b2j

O(nd2h ) P  O ndh j b2j

O(log(n), d3h ) P  O log(n), dh j b2j

Yes

Yes

Yes

Yes

Structure

BD







for DeltaNet, where a chunk-wise algorithm specifically tailored for diagonal-plusrank-one state-transition matrices is used to bypass the need to materialise every intermediate matrix, significantly cutting down I/O costs [Yang et al. 2024b]. These approaches can also be applied to diagonal state-transition matrices. Therefore, a block-diagonal SLiCE with a large diagonal portion (bi = 1 for i = 1, . . . , k − 1) followed by a small dense block emerges as an attractive solution. The large diagonal section can efficiently utilise the chunk-wise algorithm and the smaller dense section can be processed using parallel associative scans without incurring significant I/O costs. We refer to this structure as diagonal-dense SLiCE (D-DE-SLiCE).

5.4.5

Implementation Details

Algorithm 1 provides a pseudo-code implementation for the forward pass of a SLiCE. The approach is demonstrated for dense state-transition matrices Aiθ , with comments highlighting where a SLiCE’s structure can be used to speed up computation or reduce memory footprint. In this thesis, each SLiCE recurrence is embedded in a simple block structure, combining a linear layer to mix the channels, tanh activation function, layer normalisation [Ba et al. 2016], and a skip connection. Inspired by the 139

Lip(γ) regularisation introduced in Section 4.4.2, all SLiCEs use weight regularisation on their state-transition matrices Aiθ . Additionally, due to instability during training, Walsh–Hadamard’s diagonal matrix Dθi is parametrised to take values between −1 and 1. Finally, to improve training speed the following approximation is made, ! dω dω X X i i i exp (ωtj+1 − ωtj )Aθ ≈ I + (ωtij+1 − ωtij )Aiθ . (5.106) i=1

i=1

This is equivalent to applying an Euler discretisation with step-size 1, and hence aligns with the approach of recurrent models. There is ongoing work to develop an efficient GPU kernel to reduce the computational burden of repeated matrix exponentials, as will be discussed further in Section 5.5. Algorithm 1 Structured Linear NCDE: The algorithm is presented for a dense state-transition matrix Aθ . Comments indicate where the structure of Aθ can be used to reduce memory footprint and speed-up computation. Input: ω : (B, L, dω ) Output: h : (B, L, dh ) 1: h0 : (B, dh ) ← ξϕ (ω 0 ) 2: ω inc : (B, L − 1, dω ) ← diff(ω)

▷ Exploit structure of Aθ

3: Aθ : (dω , dh , dh ) ← Parameter 4: I : (dh , dh ) ← dh × dh identity matrix. 5: if mode = parallel then 6:

F : (B, L − 1, dh , dh ) ← I + einsum(bli, ijk → bljk, ω inc , Aθ ) ▷ Broadcast I, exploit structure of Aθ

7:

Fcomp ← pscan(F)

8:

h1:L−1 ← einsum(bljk, bk → blj, Fcomp , h0 )   h ← h0 , h1:L−1

9:

▷ Parallel associative scan, exploit structure of F

▷ Recurrent pass

10: else 11:

for t ← 0 to L − 2 do Ft : (B, dh , dh ) ← I + einsum(bi, ijk → bjk, ω inc t , Aθ ) ▷ Exploit structure

12:

of Aθ ht+1 ← einsum(bjk, bk → bj, Ft , ht )

13: 14: 15:

end for   h ← h0 , . . . , hL−1

▷ Exploit structure of F ▷ Stack along length axis

16: end if 17: return h

140

5.4.6

Experiments

First, all the SLiCE variants and a wide variety of sequence model baselines are evaluated on the A5 benchmark used in Section 5.3.4. Our experiments follow the approach of Merrill et al. [2024]. The models are trained on sequences ranging from length 3 to 20 and compared on the number of stacked layers required to achieve greater than 90% validation accuracy. Models are trained using a token-tagging loss for 1,000,000 steps with a batch size of 256. For all sequence lengths, a small batch of sequences of length 2 are included at each training step to aid convergence. All models use Adam with weight decay as the optimiser, and linear warm-up followed by cosine annealing with a minimum learning rate of 10−5 and a maximum learning rate of 10−3 [Kingma et al. 2015]. Additionally, all models use dropout with a rate of 0.1 and a trainable embedding layer [Srivastava et al. 2014]. The five baseline models, Mamba, LSTM, mLSTM, sLSTM, and DeltaProduct, all use a hidden dimension of 1024. LSTM uses direct stacking whereas the other baseline models use stacked blocks consisting of a sequence model, a GLU layer [Dauphin et al. 2017], and layer normalisation [Ba et al. 2016]. DeltaProduct uses both gating and negative eigenvalues, maximising the potential expressivity [Yang et al. 2025; Grazzi et al. 2025]. All of the SLiCEs use ωtXj+1 − ωtXj tj+1 − tj

= (1, Xtj )

(5.107)

and 1024 non-zero parameters for each Aiθ . For the diagonal and Walsh–Hadamard SLiCE this corresponds to a hidden dimension of 1024 and for the dense SLiCE this corresponds to a hidden dimension of 32. The DPLR SLiCE uses a rank of 2, giving a hidden dimension of 205, the block-diagonal SLiCE uses bi = 4, giving a hidden dimension of 256, and the diagonal-dense SLiCE uses a dense block size of 23, giving a hidden dimension of 518. The sparse SLiCE uses a hidden dimension of 128 and a sparsity of ϵ = 73 . All SLiCEs use stacked blocks consisting of a SLiCE, a linear layer followed by a tanh activation function, layer normalisation [Ba et al. 2016], and weight regularisation. The second experiment evaluates length generalisation on sequences from the A5 benchmark. Models which achieve at least 90% validation accuracy on sequences of length 20 in the previous experiment are retrained on sequences from length 3 to 40 with early stopping on a validation set of sequences from length 40 to 128. The 141

models are then evaluated on test sequences from length 20 to 5120. The mLSTM is excluded as it operates on fixed-length inputs. The third experiment consists of the four regular tasks from the formal language benchmark, a collection of language style tasks split into categories using the Chomsky Hierarchy [Delétang et al. 2023]. They are: 1. Cycle navigation: Infer the final position of a walk on a cycle starting at the origin. Actions are randomly sampled from “go forward one step”, “stay in the same place”, and “go backward one step”. We use a cycle of length 5. Therefore, a random guesser will achieve an accuracy of 20%. 2. Even pairs: There are two states in the system and the goal is to determine if there is an equal number of transitions between the two states. A random guesser will achieve an accuracy of 50%. 3. Modular arithmetic no brackets: Performs modular arithmetic consisting of only addition and multiplication. We use mod 5 and hence a random guesser will achieve 20%. 4. Parity: There are two elements in the system. To determine the parity, the number of the second element is counted to determine if it is even or odd. This can be viewed as modular summation with mod 2. A random guesser will achieve an accuracy of 50%. All four of these tasks can be solved by processing inputs sequentially with a fixed set of internal states and no external memory, i.e. state-tracking. The models are challenged to generalise to longer sequences, by training on sequences from length 3 to 40 and evaluating on sequences from length 40 to 256. Following Beck et al. [2024], all models use two stacked layers and a trainable embedding layer. In addition to the hidden dimension of 512 used by Beck et al. [2024], we also train the baseline models with a hidden dimension of 128, selecting the value that yields the highest average validation accuracy for each model on each task. For Mamba, which does not support a hidden dimension of 128, we instead choose between 256 and 512 based on validation performance. All models are trained using a token-tagging loss for 100,000 steps with a batch size of 256. Additionally, all models use dropout with a rate of 0.01 [Srivastava et al. 2014], Adam with weight decay as the optimiser [Kingma et al. 2015], and a linear warm-up followed by cosine annealing with a minimum learning 142

rate of 10−5 and a maximum learning rate of 2 × 10−3 . Similarly to the A5 benchmark, LSTM uses direct stacking whereas the other baseline models use stacked blocks consisting of a sequence model, a GLU layer [Dauphin et al. 2017], and layer normalisation [Ba et al. 2016]. The baseline models considered are vanilla DeltaNet [Schlag et al. 2021; Yang et al. 2024a], DeltaNet with negative eigenvalues (DeltaNet[-1,1]) [Grazzi et al. 2025], Gated DeltaNet [Yang et al. 2025], Gated DeltaProduct with negative eigenvalues and a rank of 2 [Siems et al. 2025], sLSTM [Beck et al. 2024], mLSTM [Beck et al. 2024], xLSTM [Beck et al. 2024], RWKV-7 [Peng et al. 2025], a Transformer [Vaswani et al. 2017], S4D [Gu et al. 2022b], and Mamba [Gu et al. 2024]. We consider all SLiCEs on this benchmark except sparse due to the lack of an efficient implementation. All SLiCEs use ωtXj+1 − ωtXj tj+1 − tj

= (1, Xtj ),

(5.108)

and two stacked blocks consisting of the sequence layer, a linear layer followed by a tanh activation function, and layer normalisation [Ba et al. 2016]. For the diagonal and Walsh–Hadamard SLiCE variants, we consider hidden dimensions of 128 and 512, corresponding to 128 and 512 non-zero parameters per state-transition matrix, respectively. For all other SLiCE variants, the number of non-zero parameters in the state-transition matrix is fixed at 512. For DPLR we consider ranks of r = 1, 2, 4, 8, and for block-diagonal we consider two variants, bi = b for all i with b = 2, 4, 8, 16, and bi = 1 for i = 1, . . . , k − 1, and then a final dense block bk = b for b = 2, 4, 8, 16, referred to as diagonal-dense SLiCE. The final experiment expands the comparison of Section 5.2.5 to consider all SLiCE structures and all six datasets from the UEA-MTSCA used in Section 4.4.6. In particular, the vector field of a Log-NCDE is replaced by a structured Aiθ , with all other hyperparameters kept identical to those in Table 4.3. The Log-SLiCEs are then retrained on each of the six UEA-MTSCA datasets from 4.4.6 and compared on average test set accuracy, time per training step, and GPU memory. All timing and GPU memory results were performed on an NVIDIA H100 GPU.

143

5.4.7

Results

Figure 5.4 presents the results on the A5 benchmark. As expected from Theorem 5.9, the DPLR, sparse (S), Walsh–Hadamard (WH), and block-diagonal (BD) structures allow a SLiCE to achieve greater than 90% validation accuracy on all sequence lengths considered with only one layer, matching the performance of the dense Linear NCDE (DE-LNCDE). The only other models to achieve this are the non-linear recurrent models, sLSTM and LSTM. All other parallelisable models require a growing number of layers. This includes the diagonal-dense (D-DE) SLiCE and Gated DeltaProduct with negative eigenvalues, despite their structured state-transition matrices. However, DPLR and BD SLiCE both need one layer for all sequence lengths, suggesting this is not an inherent limitation of these structures. Figure 5.5 presents the results on the A5 length generalisation experiment. The nonlinear recurrent LSTM and sLSTM generalise well, maintaining high test accuracy beyond both the training and validation ranges. Among the parallel-in-time models, three patterns emerge: (i) WH-SLiCE and Mamba do not attain high accuracy even at training lengths; (ii) DeltaProduct and D-DE-SLiCE generalise to approximately twice the training length but not beyond the validation range; and (iii) DE-LNCDE, DPLR-SLiCE, S-SLiCE, and BD-SLiCE sustain high accuracy on sequences at least 8 times the training length, exceeding the maximum validation length. The results presented in Table 5.3 show that expressive structures like BD, D-DE, and DPLR significantly outperform the diagonal baseline on the regular language tasks. The top-performing D-DE and DPLR model, both with an average accuracy of 85.1%, demonstrate a substantial improvement over the best diagonal model’s 70.2%. Conversely, the WH structure performs worse than the diagonal model, despite its greater theoretical expressivity. This provides an empirical demonstration that, although maximal probabilistic expressivity is a desirable property, it is an asymptotic notion and does not guarantee favourable optimisation, sample efficiency, or inductive bias at finite width. We hypothesise that the Walsh–Hadamard structure’s fixed global mixing is poorly matched to the algorithmic state-tracking required by regular language tasks, as also suggested by its poor performance on the A5 length generalisation task. An analysis of the successful hyperparameter choices reveals a fundamental trade144

Minimum Number Of Layers Required

Diagonal mLSTM Mamba D-DE DeltaProduct sLSTM LSTM DPLR/S/WH/BD/DE

4

3

2

1 3

4

5

6

7

8

9 10 11 12 13 14 15 16 17 18 19 20

Sequence Length

Figure 5.4: Comparison of an mLSTM, Mamba, DeltaProduct, sLSTM, LSTM, nd SLiCEs with diagonal, dense (DE), sparse (S), Walsh–Hadamard (WH), blockdiagonal (BD), and diagonal-dense (D-DE) matrices on the A5 benchmark. For each sequence length, the plot shows the minimum number of blocks required to achieve at least 90% validation accuracy, with each shaded band corresponding to a number of blocks. Missing points mean the model did not achieve at least 90% validation accuracy with 4 blocks or less.

145

1.0

Token accuracy

0.8 0.6 0.4 0.2 0.0 20

LSTM sLSTM DPLR-SLiCE S-SLiCE BD-SLiCE DE-LNCDE D-DE-SLiCE WH-SLiCE Mamba DeltaProduct

40

80

160

320

640

Sequence length

1280

2560

5120

Figure 5.5: Comparison of an Mamba, DeltaProduct, sLSTM, LSTM, and SLiCEs with diagonal, dense (DE), sparse (S), Walsh–Hadamard (WH), block-diagonal (BD), and diagonal-dense (D-DE) matrices on A5 length generalisation. Models are trained on sequences from length 3 to 40 with early stopping on a validation set of sequences from length 40 to 128. The plot shows test set token accuracy against sequence length. off between model expressivity and hidden state dimension. For a fixed parameter budget, increasing one of these factors necessitates a decrease in the other. For instance, BD-SLiCE achieves its best performance not at an extreme, but with a block size of b = 4 and hidden dimension dh = 128, yielding an average accuracy of 83.8%. Similarly, DPLR-SLiCE achieves its best performance with a rank of 4, yielding the joint highest average accuracy of 85.1%. This suggests that the strongest results emerge from maintaining a sufficient degree of structure without overly compressing the hidden state. The D-DE structure operates in a notably different regime, with even its largest dense block configuration retaining a larger hidden dimension than any BD or DPLR variant. As a result, D-DE-SLiCE achieves its best performance at the largest block size, matching the top average accuracy of DPLR-SLiCE. Table 5.4 compares SLiCEs to a range of state-of-the-art sequence model baselines. As

146

Table 5.3: Average and standard deviation of validation accuracy over five runs on the regular language tasks for SLiCEs with diagonal, Walsh–Hadamard (WH), blockdiagonal (BD), diagonal-dense (D-DE), and DPLR structures. Model

Cycle Nav.

Even Pairs

Diagonaldh =128

69.5 ± 6.3

100.0 ± 0.0

Diagonaldh =512

59.7 ± 5.1

WHdh =128

Mod Arith.

Parity

Average

20.8 ± 0.2

89.12 ± 18.6

69.9

100.0 ± 0.0

20.9 ± 0.1

100.0 ± 0.0

70.2

69.7 ± 8.8

93.1 ± 13.9

20.5 ± 0.3

50.7 ± 0.3

58.5

WHdh =512

35.5 ± 1.8

58.5 ± 2.5

23.8 ± 1.1

71.4 ± 12.9

47.3

BDdh =256, b=2

92.5 ± 14.0

72.7 ± 3.0

37.7 ± 2.6

99.6 ± 0.8

75.6

BDdh =128, b=4

99.8 ± 0.2

85.9 ± 11.3

54.0 ± 12.5

95.3 ± 3.9

83.8

BDdh =64, b=8

99.9 ± 0.1

91.3 ± 6.3

70.6 ± 21.4

54.1 ± 4.9

79.0

BDdh =32, b=16

97.6 ± 3.5

94.7 ± 6.5

76.6 ± 22.1

50.8 ± 0.3

79.9

D–DEdh =510, b=2

61.9 ± 20.4

91.3 ± 11.5

20.8 ± 0.2

97.8 ± 2.9

67.9

D–DEdh =500, b=4

81.6 ± 15.0

85.3 ± 18.0

29.4 ± 15.4

83.7 ± 9.4

70.0

D–DEdh =456, b=8

90.6 ± 9.4

90.7 ± 3.0

31.0 ± 4.2

79.9 ± 3.5

73.1

D–DEdh =272, b=16

73.3 ± 29.4

84.8 ± 8.5

98.4 ± 0.7

83.8 ± 11.3

85.1

DPLRdh =171,r=1

46.5 ± 26.3

91.1 ± 4.4

25.8 ± 10.2

87.8 ± 9.5

62.8

DPLRdh =102,r=2

53.1 ± 14.7

96.8 ± 5.1

43.9 ± 9.0

79.7 ± 14.4

68.4

DPLRdh =57,r=4

81.1 ± 16.6

100.0 ± 0.0

68.3 ± 19.3

91.0 ± 18.0

85.1

DPLRdh =30,r=8

90.1 ± 10.2

100.0 ± 0.0

60.3 ± 19.7

50.7 ± 0.3

75.3

20.0

50.0

20.0

50.0

35.0

Random

147

No Brack.

expected, the recurrent LSTM generalises near-perfectly on all four tasks, establishing a clear performance benchmark. This highlights the inherent strength of non-linear recurrent architectures for problems that require precise, step-by-step state tracking. Interestingly, sLSTM and xLSTM do not replicate this success. Among the parallel models, the strongest baselines are DeltaNet with negative eigenvalues and Gated DeltaProduct with negative eigenvalues, achieving 77.7% and 80.7%, respectively. This aligns with the expectation that increased complexity in the state-transition matrix improves state-tracking performance. This principle is further reinforced by the observation that a diagonal SLiCE outperforms Mamba. Mamba is restricted to a state-transition matrix with eigenvalues in the range [0, 1], whereas diagonal SLiCE is unrestricted. As shown by Grazzi et al. [2025], expanding the eigenvalue range of the state-transition matrix to [−1, 1] is crucial for solving regular language tasks. On average validation accuracy, the diagonal-dense and DPLR SLiCE are the two strongest performing parallelisable models. They outperform not only widespread modern architectures like Mamba and the Transformer, but also the strongest DeltaNet baselines specifically designed for increased expressivity. A Friedman test detected a statistically significant difference in performance among the parallel-in-time models across the four tasks at the 5% significance level, with χ2 = 25.41, df = 13, and p = 0.0204. To assess our architectural hypothesis more directly, we partitioned the parallel models into those with expressive recurrences and those without. The expressive class consists of DPLR-SLiCE, D-DE-SLiCE, BD-SLiCE, WH-SLiCE, DeltaNet[−1, 1], Gated DeltaProduct[−1, 1], DeltaNet, and Gated DeltaNet, while the non-expressive class consists of RWKV-7, mLSTM, Transformer, Mamba, S4D, and D-SLiCE. We then compared the mean rank of each class on each task, with lower rank indicating better performance. The expressive class attained mean ranks of 5.62, 6.75, 5.25, and 6.12 on Cycle Navigation, Even Pairs, Modular Arithmetic without Brackets, and Parity, respectively, compared to 10.00, 8.50, 10.50, and 9.33 for the non-expressive class. Overall, this corresponds to average ranks of 5.94 for the expressive class and 9.58 for the non-expressive class. We do not extend this descriptive summary to a statistical one, since four paired datasets are not sufficient for a Wilcoxon signed-rank test to assign significance [Wilcoxon 1945]. Table 5.5 and 5.6 present the impact of replacing the Log-NCDE’s non-linear vector 148

Table 5.4: Average and standard deviation of validation accuracy over five runs for a range of recurrent and parallel models on the formal language tasks. Mod Arith.

Parity

Average

99.9 ± 0.1

100.0 ± 0.0

100

100.0 ± 0.0

27.7 ± 0.6

100.0 ± 0.0

65.1

53.5 ± 5.6

99.0 ± 1.9

29.3 ± 1.6

100.0 ± 0.0

70.5

DeltaNet

49.8 ± 4.7

100.0 ± 0.0

42.2 ± 4.8

57.8 ± 0.8

62.5

DeltaNet[−1, 1]

46.7 ± 6.1

100.0 ± 0.0

66.4 ± 8.8

97.7 ± 2.0

77.7

Gated DeltaNet

53.8 ± 8.8

100.0 ± 0.0

42.8 ± 8.2

56.5 ± 1.9

63.3

Gated DeltaProduct[-1,1]

46.3 ± 6.6

100.0 ± 0.0

78.4 ± 10.9

98.0 ± 1.4

80.7

RWKV-7

37.8 ± 5.0

88.1 ± 14.2

39.5 ± 6.1

51.1 ± 0.3

54.1

mLSTM

52.4 ± 10.5

99.9 ± 0.1

28.8 ± 3.1

53.0 ± 2.1

58.5

Model

Cycle Nav.

Even Pairs

LSTM

100.0 ± 0.0

100.0 ± 0.0

sLSTM

32.5 ± 0.4

xLSTM[1:1]

No Brack.

Recurrent

Parallel

Transformer

24.4 ± 0.5

90.4 ± 10.4

23.6 ± 0.7

52.2 ± 0.4

47.7

Mamba

48.4 ± 2.2

100.0 ± 0.0

33.1 ± 6.6

54.2 ± 2.1

58.9

S4D

23.7 ± 1.1

68.7 ± 4.7

21.7 ± 0.4

51.2 ± 1.0

41.3

Diagonaldh =512

59.7 ± 5.1

100.0 ± 0.0

20.9 ± 0.1

100.0 ± 0.0

70.2

WHdh =128

69.7 ± 8.8

93.1 ± 13.9

20.5 ± 0.3

50.7 ± 0.3

58.5

BDdh =128, b=4

99.8 ± 0.2

85.9 ± 11.3

54.0 ± 12.5

95.3 ± 3.9

83.8

D–DEdh =272 b=16

73.3 ± 29.4

84.8 ± 8.5

98.4 ± 0.7

83.8 ± 11.3

85.1

DPLRdh =57,r=4

81.1 ± 16.6

100.0 ± 0.0

68.3 ± 19.3

91.0 ± 18.0

85.1

20.0

50.0

20.0

50.0

35.0

Random

149

Table 5.5: Mean and standard deviation of test set accuracy over five data splits on a subset of the UEA-MTSCA. The best-performing model in each column is highlighted in bold, and the second-best is underlined. Models are sorted by average rank, with the top performing model first. Model

EW

EC

HB

MI

SCP1

SCP2

86.1 ± 3.6

28.6 ± 6.4

77.4 ± 5.6

53.0 ± 2.1

84.9 ± 1.9

54.0 ± 7.4

Log-NCDE

85.6 ± 5.1

34.4 ± 6.4

75.2 ± 4.7

53.7 ± 5.3

83.1 ± 2.9

53.7 ± 4.1

D-DE-SLiCE

85.6 ± 6.0

27.3 ± 6.9

73.9 ± 3.8

54.7 ± 3.5

84.7 ± 3.7

51.6 ± 5.0

WH-SLiCE

85.0 ± 6.0

30.1 ± 4.8

76.1 ± 5.9

49.5 ± 6.8

82.4 ± 2.2

51.9 ± 5.4

DPLR-SLiCE

84.4 ± 5.2

27.6 ± 4.7

74.2 ± 5.4

51.6 ± 5.8

83.5 ± 2.2

50.9 ± 5.8

D-SLiCE

79.4 ± 5.8

27.1 ± 4.6

72.9 ± 5.1

54.4 ± 6.3

83.5 ± 2.2

53.0 ± 5.9

LRU

87.8 ± 2.9

21.5 ± 2.2

78.4 ± 6.7

48.4 ± 5.1

82.6 ± 3.5

51.2 ± 3.6

S6

85.0 ± 16.1

26.4 ± 6.5

76.5 ± 8.3

51.3 ± 4.8

82.8 ± 2.8

49.9 ± 9.5

S5

81.1 ± 3.7

S-SLiCE DE-LNCDE

87.8 ± 4.2 88.3 ± 3.7

24.1 ± 4.4 30.4 ± 6.7

77.7 ± 5.6 72.6 ± 5.5

47.7 ± 5.5 47.7 ± 2.4

89.9 ± 4.7 82.8 ± 1.6

50.5 ± 2.6 49.5 ± 4.0

25.8 ± 4.1

74.2 ± 4.5

49.8 ± 5.3

81.9 ± 4.0

49.8 ± 2.4

NCDE

75.0 ± 4.0

29.9 ± 6.6

73.9 ± 2.6

49.5 ± 2.9

79.8 ± 5.7

53.0 ± 2.9

NRDE

83.9 ± 7.3

25.3 ± 1.8

72.9 ± 4.9

47.0 ± 5.8

80.9 ± 2.6

53.7 ± 6.9

Mamba

70.9 ± 15.9

27.9 ± 4.6

76.2 ± 3.9

47.7 ± 4.5

80.7 ± 1.4

48.2 ± 4.0

BD-SLiCE

field with a dense, BD, WH, diagonal, D-DE, sparse, or DPLR structured linear vector field. The original baselines from Table 4.4 are also included. A tie-corrected Friedman test across the 14 models and 6 datasets did not detect a statistically significant difference in performance at the 5% significance level, with χ2 = 19.89, df = 13, and p = 0.098. Nevertheless, the results show that the block-diagonal structure achieves very similar performance to the non-linear model, whilst reducing the average time per training step by a factor of nearly 20. Notably, BD-SLiCE also outperforms a dense linear vector field of the same hidden dimension, which suggests that the blockdiagonal structure may provide benefits beyond simply reducing computational cost. A possible explanation for this is the structure’s conceptual link to the multi-head attention mechanism found in Transformers. Each block in BD-SLiCE can be viewed as an independent head, processing the input path in its own distinct subspace. This architectural choice encourages the model to learn multiple specialised representations of the time-series dynamics in parallel, with each block potentially focusing on different features or patterns. This inherent modularity could prevent the overfitting that may affect a single dense model, ultimately contributing to the strong performance of BD-SLiCE. 150

Table 5.6: Average test accuracy, rank, training time per 1,000 steps, and GPU memory usage across six datasets from the UEA-MTSCA. All SLiCE variants use a parallel associative scan during training. Therefore, the Walsh–Hadamard, DPLR, and sparse SLiCEs are treated as dense LNCDEs (see Section 5.4.4), and their timing and GPU memory results are omitted. All timing and GPU memory results were performed on an NVIDIA H100 GPU. Model

Av. Acc

Av. Rank

Av. Time / 1000 Steps (s)

Av. GPU mem (MB)

BD-SLiCE

64.0

3.2

68.1

2344

Log-NCDE

64.3

4.0

1321.7

2177

D-DE-SLiCE

63.0

5.7

66.7

2302

WH-SLiCE

62.5

6.7

DPLR-SLiCE

62.0

7.0

D-SLiCE

61.7

7.2

11.0

1875

LRU

61.7

7.3

26.9

4308

S6 S5

62.0 61.8

7.7 8.0

20.1 21.9

2938 3327

S-SLiCE

61.8

8.2

DE-LNCDE

61.6

8.3

77.2

12756

NCDE

60.2

8.8

6923

1962

NRDE

60.6

10.3

3431

2858

Mamba

58.6

10.8

60.0

4535

Figure 5.6 provides a visual summary of the accuracy–speed trade-off on the UEAMTSCA benchmark, with the Pareto frontier highlighting the non-dominated models. The frontier consists of diagonal SLiCE, S6, block-diagonal SLiCE, and Log-NCDE, each representing a different balance between training time and predictive accuracy. Log-NCDE attains the strongest test accuracy, but at a substantially higher average time per training step. Moving along the frontier, block-diagonal SLiCE reduces the average time per training step by a factor of 20 relative to Log-NCDE while maintaining very similar test accuracy. Diagonal SLiCE pushes training time lower still, below that of the SSM baselines, though with some further loss in accuracy consistent with its reduced expressivity. S6 occupies an intermediate point on the frontier, offering a modest improvement in accuracy over diagonal SLiCE, although the gain is smaller than that obtained by moving from S6 to block-diagonal SLiCE. By contrast, dense LNCDE slightly increases run-time and substantially raises GPU memory usage relative to the block-diagonal variant, while also reducing test accuracy, which may indicate over-fitting due to the large number of parameters per state transition. 151

Average test accuracy (%)

65 BD-SLiCE

64

Log NCDE

Model family Non linear CDE Linear CDE SSM NRDE RNN Pareto frontier

63 62 61

S6

DE LNCDE

D SLiCE S5LRU

60 59 58 101

NCDE

MAMBA

102 103 Time per 1000 training steps (s)

Figure 5.6: Average per-step training time versus average validation accuracy across six multivariate time series classification datasets from the UEA-MTSCA. Each point represents a model, with circle area proportional to average GPU memory usage. We compare four families of models: a recurrent neural network (LRU), SSMs (S5, S6, and Mamba), non-linear NCDEs (NCDE, NRDE, and Log-NCDE), and Linear NCDEs (Diagonal SLiCE, Block-Diagonal SLiCE, and Dense LNCDE). All timing and GPU memory results were performed on an NVIDIA H100 GPU. Finally, Figure 5.6 shows that Mamba, NCDE, and NRDE do not offer competitive trade-offs on either axis on this benchmark. To understand their relative impact, we evaluate how the Log-ODE method and parallel associative scan influence time per training step and GPU memory for the diagonal SLiCE, block-diagonal SLiCE, and dense LNCDE. The EigenWorms dataset is chosen for this comparison, as it contains approximately 18,000 observations per time series. Table 5.7 summarises the effect of applying a parallel associative scan with varying chunk sizes on time per 1,000 training steps without the Log-ODE method. For all three models, increasing the number of parallel steps yields strong reductions in time per training step. The impact of the high I/O costs associated with an as152

Table 5.7: Time per 1,000 training steps (s) for diagonal SLiCE, block-diagonal SLiCE, and dense LNCDE on EigenWorms when a parallel associative scan is applied with various chunk sizes. Experiments were performed on an NVIDIA H100, and the batch size is 1. Parallel Steps

D-SLiCE

BD-SLiCE

DE-LNCDE

None

311.0

374.89

444.68

4

134.2

326.75

439.51

16

57.50

161.74

257.56

64

31.01

68.59

126.01

256

21.10

30.53

71.54

sociative scan is evident from the diminishing benefit of a small number of parallel steps as you move from diagonal, through block-diagonal, to dense matrices. Table 5.8 compares the time per 1,000 training steps and GPU memory for diagonal SLiCE, block-diagonal SLiCE, and dense LNCDE on EigenWorms when using a parallel associative scan and the Log-ODE method. As expected, both GPU memory and run-time increase monotonically for every combination of associative scan and Log-ODE method as the model structure transitions from diagonal, through block-diagonal, to dense matrices. The consistent 2.69 GB floor across several configurations likely reflects peak memory usage from fixed operations outside the recurrence. Without the Log-ODE method, the dense LNCDE exhibits high GPU memory consumption, which constrained experiments to a batch size of 4. When both the Log-ODE method and a parallel associative scan are applied, the diagonal and block-diagonal SLiCE achieve comparable times per training step, indicating that the recurrence contributes less to overall computation under these parameter settings. Overall, combining the Log-ODE method with a parallel associative scan reduces the time per training step by a factor of approximately 30 for the diagonal and block-diagonal SLiCE without affecting GPU memory, and by a factor of 16 for the dense LNCDE while lowering GPU memory usage by over a factor of 5.

5.4.8

Limitations

First, we do not impose stability constraints on the matrices Aiθ in the models considered here. Consequently, although we did not observe instability on the long time 153

Table 5.8: Comparison of training time and GPU memory for EigenWorms using a parallel associative scan and applying the Log-ODE method. Experiments were performed on an NVIDIA H100 with a batch size of 4. Model

Metric

Time / 1k steps [s] D-SLiCE GPU Memory [GB] Time / 1k steps [s] BD-SLiCE GPU Memory [GB] Time / 1k steps [s] DE-LNCDE GPU Memory [GB]

Log-ODE

Parallel Steps

Interval

None

128

1

317.49

23.51

12

33.03

10.96

1

2.69

2.69

12

2.69

2.69

1

378.20

48.74

12

46.98

13.24

1

2.69

4.73

12

2.69

2.69

1

465.94

167.86

12

47.95

29.37

1

35.45

51.84

12

2.69

6.79

series considered in this chapter, one should not expect the current parameterisations to remain uniformly stable as the sequence length grows arbitrarily large. Therefore, investigating stable matrix structures for the Aiθ is a natural direction for extending SLiCEs to more extreme long-range settings. Second, SLiCEs are sequence-to-sequence models. They produce a state update for each new sample in the input, and are therefore susceptible to over-sampled data in the same manner as other discrete sequence models. Combining SLiCEs with the Log-ODE method allows them to consume paths as input, by abstracting the flow on each interval away from the individual samples. However, the output of a LogSLiCE is itself a sequence of samples, corresponding to the value of the output path at the end of each interval to which the Log-ODE method is applied. This means that one cannot stack two Log-SLiCEs directly, as the first level produces a sequence whereas the second consumes a path. A natural next step is therefore to develop a path-to-path model, as discussed in more detail in Section 6.2. 154

5.5

Conclusion

This chapter introduced Linear NCDEs, where the non-linear vector field fθ (hs ) is replaced by a linear one, Aθ hs . Linear NCDEs retain the theoretical expressivity of their non-linear counterparts while enabling parallel-in-time computation. The core innovation is removing the recurrent differential equation solve and instead solving for the flow independently on each interval. These flows are then composed using a parallel associative scan. This yields substantial performance gains, particularly for long sequences. On the EigenWorms dataset, which has nearly 18,000 observations per time series, this method reduces the time per training step by a factor of over 250. When combined with the Log-ODE method from Chapter 4, this performance gain increases to a factor of nearly 1500, reducing the time for 10,000 training steps from 3 days to 3 minutes. Section 5.3 used the Linear NCDE framework to theoretically analyse the expressivity of SSMs. This analysis demonstrated that prominent models like S4D and Mamba correspond to affine Linear NCDEs whose state-transition matrices are constrained to be diagonal. The diagonal structure was shown to severely limit theoretical expressivity. This limitation was confirmed empirically on state-tracking benchmarks, where diagonal models required stacking multiple layers to solve tasks that dense Linear NCDEs could solve with one. While theoretically powerful, the number of parameters and computational cost of dense state-transition matrices scales with the cube of the hidden dimension, making them impractical for large models.

To address this, Section 5.4 introduced

SLiCEs, which bridge the efficiency-expressivity gap. By employing structured matrices, such as block-diagonal, diagonal-plus-low-rank, and Walsh-Hadamard, SLiCEs reduce computational complexity while retaining the maximal probabilistic expressivity of their dense counterparts. Extensive experiments validated the SLiCE approach. On formal language benchmarks that test state-tracking, SLiCEs outperformed specialised SSM baselines. In particular, a block-diagonal and DPLR structure established the new state-of-the-art for parallel models on these tasks. This success extends to the real-world UEA datasets, where replacing the non-linear vector field of a LogNCDE with a block-diagonal linear vector field does not decrease performance, while bringing the training time in line with other modern sequence models.

155

SLiCEs provide a strong foundation for future work in several key directions. An immediate technical goal is the development of efficient GPU kernels for the matrix exponential to allow for exact flow computations. Further research can address open questions around path-to-path training, input symmetries, and the inclusion of bidirectional context in the vector fields, all of which are discussed in more detail in Section 6.2. Addressing these challenges will be crucial for the ultimate goal of scaling these expressive, parallelisable architectures to new and more complex domains.

156

Chapter 6 Conclusion We can only see a short distance ahead, but we can see plenty there that needs to be done. —Alan Turing, Computing Machinery and Intelligence (1950)

6.1

Principal Contributions

Chapter 2 established a mathematical framework for understanding data that evolves continuously in time. Paths are the central objects, signatures provide principled summaries of path segments, CDEs describe how paths drive the evolution of hidden states, and the Log-ODE method provides an efficient way to approximate the resulting dynamics. NCDEs translate this framework into machine learning, but their practical scalability is limited by the need to solve a non-linear differential equation sequentially during training. The principal contributions of this thesis addressed this limitation in three complementary stages. First, Chapter 4 applied the Log-ODE method, an efficient and accurate approach to approximating the solution of a CDE, to NCDEs. This improved both their computational efficiency and empirical performance. Second, Section 5.2 introduced Linear NCDEs, which replaced the non-linear vector field of an NCDE with a linear one. This yielded explicit solutions for the flow, removing the need for a non-linear differential equation solver and enabling parallel-in-time computation. Third, Section 5.4 developed SLiCEs, which improved the balance between expressivity and computational efficiency through the use of structured matrices. Together, these contributions reduced the time per training step by up to three orders of magnitude while improving performance on real-world 157

benchmarks, making continuous-time models feasible at scales that were previously impractical. Applying the Log-ODE method to NCDEs required showing that the neural network vector field satisfied the necessary regularity assumptions. Chapter 3 strengthened the regularity theory needed for this step by proving an explicit bound for the composition of Lip(γ) functions when 1 < γ ≤ 2. Chapter 4 then applied this theory to a class of fully connected neural networks parametrising NCDE vector fields, proving explicit Lip(γ) bounds for these architectures. This justified the use of the Log-ODE method during training. Empirically, Log-NCDEs improved upon standard NCDEs across real-world multivariate time series benchmarks, increasing predictive performance while reducing training cost. However, because the hidden state was still evolved by a non-linear differential equation, the forward pass remained inherently sequential. Linear NCDEs addressed this bottleneck by replacing the non-linear vector field with one that is linear in the hidden state. This change yielded closed-form flows on each interval, removing the need for a recurrent differential equation solver and enabling parallel-in-time computation via an associative scan. Section 5.2 further showed that this linearisation preserves the theoretical expressivity of NCDEs while maintaining strong empirical performance on the benchmarks considered. Section 5.3.2 provided a unified interpretation of modern structured state-space models, such as S4D and Mamba, as affine Linear NCDEs with diagonal structure. Both the theory and the state-tracking experiments showed that, although efficient, diagonal structure discards hidden-state interactions that are important for expressivity. SLiCEs refined this picture by improving the trade-off between expressivity and efficiency within the Linear NCDE framework. Rather than using dense or diagonal matrices, Section 5.4 introduced structured matrices, such as block-diagonal and diagonal-plus-low-rank, which reduce the computational cost while retaining maximal probabilistic expressivity. This showed that poor state-tracking is not an unavoidable consequence of efficient parallel training, but instead a consequence of overly restrictive recurrence structure. Empirically, SLiCEs outperformed specialised parallel baselines on formal language and state-tracking benchmarks. On real-world multivariate time series tasks, they also delivered a substantially stronger accuracyspeed trade-off than either non-linear continuous-time models or diagonal structured 158

state-space models. Overall, this thesis showed that the main obstacle to scalable continuous-time learning was not the continuous-time viewpoint itself, but the combination of non-linear vector fields and inefficient numerical methods. By combining the Log-ODE method, closedform linear flows, and expressive structured recurrences, it showed that continuoustime models can be made scalable without giving up the advantages of the continuoustime framework.

6.2

Future Work

There are a number of interesting directions for future work, from which we highlight five we view as particularly promising or important. First, parallel associative scans provide significant benefit for training models on the million parameter scale. However, the high I/O costs prevent scaling to billions of parameters, as discussed in Section 5.4.4. We are currently exploring the possibility of a GPU kernel that will allow fast matrix exponentials and parallel associative scans when we have many small independent systems, i.e. a block-diagonal SLiCE. Another approach to overcoming this barrier is building on the work of Yang et al. 2024b, and developing fast chunk-wise methods for a wider range of structured matrices, as explored by Cirone et al. [2025b]. Second, there is an inherent over-parametrisation in Linear NCDEs. To see why, consider a trained Linear NCDE dhs =

dω X

(6.1)

Aiθ hs dωsX,i ,

i=1

with a linear readout Lθ hs . For any invertible matrix P ∈ Rdh ×dh , we can apply a change of basis h′s = P hs . The dynamics of the transformed state are then given by dh′s =

dω X

P Aiθ P −1 h′s dωsX,i =

i=1

dω X

Bθi h′s dωsX,i .

(6.2)

i=1

When equipped with the transformed linear readout Lθ P −1 h′s , the system described by (6.2) yields an identical output to (6.1), despite having different learnt parameters. This establishes an entire equivalence class of models for any single solution found 159

during training, with each member of the class corresponding to a different choice of basis for the hidden state space. Similarly to the identifiability issues arising in the classical system identification setting discussed in Section 4.2.1, the parameters of a Linear NCDE are therefore only identifiable up to similarity transformations. This equivalence has significant potential implications for optimisation and interpretation. The existence of a continuous family of equivalent solutions creates manifolds in the loss landscape along which the gradient is zero, corresponding to moves in parameter space that amount only to a change of basis [Li et al. 2019]. In principle, this can lead to ill-conditioned optimisation and may hinder the convergence of gradient-based methods [Saarinen et al. 1993]. However, in the SLiCE experiments, we did not observe clear optimisation failures that could be specifically attributed to this symmetry. Even so, it implies that different training runs may converge to parametrisations that realise the same input-output map in different hidden bases, which makes the learned matrices difficult to compare or interpret directly. Therefore, a natural direction for future work is to optimise over similarity classes rather than individual parametrisations. Similar issues have motivated SGD variants for ReLU neural networks that operate on a quotient space of the weights [Meng et al. 2019]. Alternatively, one could reduce the redundancy by imposing additional structure on the hidden-state representation, for example by constraining one of the Aiθ to be upper triangular. Third, Cirone et al. [2024] established that replacing the Linear NCDE’s linear readout with a non-linear function is sufficient to extend their path-to-point universality to path-to-path universality. However, the optimal approach to training a path-to-path Linear NCDE remains an open question. Standard objectives, such as pointwise mean squared error, treat paths as collections of independent samples. This neglects global temporal structure and leads to over-fitting local fluctuations, while failing to capture essential features such as ordering, variability, or long-range dependence [Ramsay et al. 2005; Cuturi et al. 2017; Chen et al. 2025]. Alternative choices include integral norms [Ferraty et al. 2007], distances in signature space [Lyons 1998; Chevyrev et al. 2016b; Király et al. 2019; Salvi et al. 2021; Cass et al. 2024a], or Kernel/MMD-based metrics tailored to streams [Cuturi et al. 2007; Mikalsen et al. 2018; Wynne et al. 2022]. These options can handle irregular sampling, are reparametrisation-invariant when desired, and are suitable for models whose outputs are paths.

160

Fourth, Log-NCDEs are path-to-sequence models, as they produce the value of the output path only at the endpoints of the intervals where the Log-ODE method has been applied. Linear NCDEs provide a tractable approach to path-to-path models, by extending their flow from describing the hidden state trajectory to the signature of those trajectories. In this way, it is possible to query the output path and obtain the signature over an interval in the same manner we would query the input path. This elevates continuous-time learning from path-to-sequence architectures to genuine path-to-path models. Furthermore, this would enable path-to-path stacking, where the output of one Log-Linear NCDE becomes the input to another. Finally, as Linear CDEs allow us to contextualise the state-transition matrix based on the input, we could seek to contextualise the CDE based on the past, and potentially future, of the input path. A possible implementation would be allowing the Linear NCDE’s vector field to depend linearly on the signature of the input path. However, this significantly increases the parameter count and computational complexity of the model. An alternative approach is conditioning the vector field to depend on the output of another Linear NCDE. This is an alternative form of model stacking, where instead of using the output of the Linear NCDE from one layer as the input to the next, we instead condition the vector field of the next layer based on the output of the previous. Each of these directions offers an opportunity to advance both the theoretical underpinnings and the practical scalability of continuous-time models. Pursuing them will mature the path-based methodologies advocated for throughout this thesis, enhancing their power and broadening their applicability.

161

Bibliography Albrecht, F., H. G. Diamond, and M. Heins (1971). “A Converse of Taylor’s Theorem”, Indiana University Mathematics Journal 21.4, pp. 347–350. Apostol, T. M. (1974). Mathematical Analysis. 2nd. Addison-Wesley. Arora, S., S. Eyuboglu, A. Timalsina, I. Johnson, M. Poli, J. Zou, A. Rudra, and C. Ré (2024). “Zoology: Measuring and improving recall in efficient language models”, Proceedings of the 12th International Conference on Learning Representations (ICLR). Åström, K. J. and P. Eykhoff (1971). “System Identification—A Survey”, Automatica 7.2, pp. 123–162. Åström, K. J. and T. Bohlin (1965). “Numerical Identification of Linear Dynamic Systems from Normal Operating Records”, Proc. IFAC Conference on Self-Adaptive Control Systems. Vol. 2. Atkinson, K. E., W. Han, and D. E. Stewart (2009). Numerical Solution of Ordinary Differential Equations. John Wiley & Sons. Ba, J. L., J. R. Kiros, and G. E. Hinton (2016). “Layer normalization”, arXiv preprint arXiv:1607.06450. Bagnall, A., H. A. Dau, J. Lines, M. Flynn, J. Large, A. Bostrom, P. Southam, and E. Keogh (2018). “The UEA multivariate time series classification archive, 2018”, arXiv preprint, arXiv:1811.00075. Bahdanau, D., K. Cho, and Y. Bengio (2015). “Neural Machine Translation by Jointly Learning to Align and Translate”, Proceedings of the 3rd International Conference on Learning Representations (ICLR). Baldi, P., M. Berti, E. Haus, and R. Montalto (2018). “Time quasi-periodic gravity water waves in finite depth”, Inventiones mathematicae 214.2, pp. 739–911. Bayer, C., S. Breneis, and T. Lyons (2023). “An Adaptive Algorithm for Rough Differential Equations”, arXiv preprint arXiv:2307.12590. Beck, M., K. Pöppel, M. Spanring, A. Auer, O. Prudnikova, M. Kopp, G. Klambauer, J. Brandstetter, and S. Hochreiter (2024). “xLSTM: Extended Long Short-Term 162

Memory”, Proceedings of the 38th Conference on Neural Information Processing Systems (NeurIPS). Behrouz, A., P. Zhong, and V. Mirrokni (2025). “Titans: Learning to Memorize at Test Time”, Proceedings of the 39th Conference on Neural Information Processing Systems (NeurIPS). Berlinet, A. and C. Thomas-Agnan (2004). Reproducing Kernel Hilbert Spaces in Probability and Statistics. Springer. Berndt, T., B. Walker, T. Qin, J. Stühmer, and A. Kormilitzin (2025). “Permutation Equivariant Neural Controlled Differential Equations for Dynamic Graph Representation Learning”, Proceedings of the 39th Conference on Neural Information Processing Systems (NeurIPS). Blelloch, G. E. (1993). “Prefix Sums and Their Applications”, Synthesis of Parallel Algorithms, pp. 35–60. Boedihardjo, H., X. Geng, T. Lyons, and D. Yang (2016). “The signature of a rough path: Uniqueness”, Advances in Mathematics 293, pp. 720–737. Bonnier, P., P. Kidger, I. P. Arribas, C. Salvi, and T. Lyons (2019). “Deep Signature Transforms”, Neural Information Processing Systems (NeurIPS). Boutaib, Y. (2016). “Lipschitz Geometry and Rough Paths”. PhD thesis. University of Oxford. Boutaib, Y., L. Gyurkó, T. Lyons, and D. Yang (2013). “Dimension-free Euler estimates of rough differential equations”, Revue Roumaine des Mathematiques Pures et Appliquees 59.1, pp. 25–53. Box, G. E. P. and G. M. Jenkins (1970). Time Series Analysis: Forecasting and Control. San Francisco: Holden-Day. Bradbury, J., R. Frostig, P. Hawkins, M. J. Johnson, C. Leary, D. Maclaurin, G. Necula, A. Paszke, J. VanderPlas, S. Wanderman-Milne, and Q. Zhang (2018). JAX: composable transformations of Python+NumPy programs. url: http : / / github . com/google/jax. Brouwer, E. D., J. Simm, A. Arany, and Y. Moreau (2019). “GRU-ODE-Bayes: Continuous Modeling of Sporadically-Observed Time Series”, Proceedings of the 33rd International Conference on Neural Information Processing Systems (NeurIPS). Brown, T. B., B. Mann, N. Ryder, M. Subbiah, J. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, et al. (2020). “Language models are few-shot learners”, Proceedings of the 34th Conference on Neural Information Processing Systems (NeurIPS).

163

Bryson, A. E. and W. F. Denham (1962). “A Steepest-Ascent Method for Solving Optimum Programming Problems”, Journal of Applied Mechanics 29.2, pp. 247– 257. Cass, T., C. Litterer, and T. Lyons (2012). New Trends in Stochastic Analysis and Related Topics: A Volume in Honour of Professor K. D. Elworthy. Interdisciplinary mathematical sciences. World Scientific. Chap. 2. Cass, T., T. Lyons, and X. Xu (2024a). “Weighted Signature Kernels”, Annals of Applied Probability 34.1A, pp. 585–626. Cass, T. and C. Salvi (2024b). “Lecture notes on rough paths and applications to machine learning”, arXiv preprint arXiv:2404.06583. Castell, F. and J. Gaines (1995). “An efficient approximation method for stochastic differential equations by means of the exponential Lie series”, Mathematics and Computers in Simulation 38.1, pp. 13–19. Chang, J., T. Lyons, and H. Ni (2018). “Super-multiplicativity and a lower bound for the decay of the signature of a path of finite length”, Comptes Rendus Mathématique 356.7, pp. 720–724. Chen, K. T. (1954). “Iterated Integrals and Exponential Homomorphisms”, Proceedings of the London Mathematical Society s3-4.1, pp. 502–512. Chen, K. T. (1957). “Integration of Paths, Geometric Invariants and a Generalized Baker-Hausdorff Formula”, Annals of Mathematics 65.1. Chen, R. T., Y. Rubanova, J. Bettencourt, and D. K. Duvenaud (2018). “Neural Ordinary Differential Equations”, Proceedings of the 32nd Conference on Neural Information Processing Systems (NeurIPS). Chen, Y., J. Zhang, X. Li, et al. (2025). “Patch-wise Structural Loss for Time Series Forecasting”, Proceedings of the 42nd International Conference on Machine Learning (ICML). Chevyrev, I. and A. Kormilitzin (2016a). “A Primer on the Signature Method in Machine Learning”, arXiv preprint arXiv:1603.03788. Chevyrev, I. and T. J. Lyons (2016b). “Characteristic functions of measures on geometric rough paths”, Annals of Probability 44.6, pp. 4049–4082. Cho, K., B. van Merriënboer, D. Bahdanau, and Y. Bengio (2014). “On the Properties of Neural Machine Translation: Encoder–Decoder Approaches”, Proceedings of SSST-8, Eighth Workshop on Syntax, Semantics and Structure in Statistical Translation, pp. 103–111.

164

Choi, J., H. Choi, J. Hwang, and N. Park (2022). “Graph Neural Controlled Differential Equations for Traffic Forecasting”, Proceedings of the 36th AAAI Conference on Artificial Intelligence (AAAI-22). Choi, J. and N. Park (2023). “Graph Neural Rough Differential Equations for Traffic Forecasting”, ACM Transactions on Intelligent Systems and Technology 14.4. Cirone, N. M., M. Lemercier, and C. Salvi (2023). “Neural signature kernels as infinitewidth-depth-limits of controlled ResNets”, Proceedings of the 40th International Conference on Machine Learning (ICML). Cirone, N. M., J. Hamdan, and C. Salvi (2025a). “Genus expansion for non-linear random matrix ensembles with applications to neural networks”, arXiv preprint arXiv:2407.08459. Cirone, N. M., A. Orvieto, B. Walker, C. Salvi, and T. Lyons (2024). “Theoretical Foundations of Deep Selective State-Space Models”, Proceedings of the 38th Conference on Neural Information Processing Systems (NeurIPS). Cirone, N. M. and C. Salvi (2025b). “ParallelFlow: Parallelizing Linear Transformers via Flow Discretization”, arXiv preprint arXiv:2504.00492. Cirone, N. M. and C. Salvi (2025c). “Rough kernel hedging”, arXiv preprint arXiv:2501.09683. Cochrane, T., P. Foster, V. Chhabra, M. Lemercier, T. Lyons, and C. Salvi (2021). “SK-Tree: a systematic malware detection algorithm on streaming trees via the signature kernel”, 2021 IEEE International Conference on Cyber Security and Resilience (CSR). IEEE, pp. 35–40. Cohen, S. N., J. Foster, P. Foster, H. Lou, T. Lyons, S. Morley, J. Morrill, H. Ni, E. Palmer, B. Wang, Y. Wu, L. Yang, and W. Yang (2024). “Subtle variations in sepsis-III definitions markedly affect predictive performance”, Nature Scientific Reports 14.1920. Cohen, S. N., S. Lui, W. Malpass, G. Mantoan, L. Nesheim, Á. de Paula, A. Reeves, C. Scott, E. Small, and L. Yang (2023). “Nowcasting with signature methods”, arXiv preprint arXiv:2305.10256. Compagnoni, E., A. Scampicchio, L. Biggio, A. Orvieto, T. Hofmann, and J. Teichmann (2023). “On the Effectiveness of Randomized Signatures as Reservoir for Learning Rough Dynamics”, International Joint Conference on Neural Networks (IJCNN). Cuchiero, C., L. Gonon, L. Grigoryeva, J.-P. Ortega, and J. Teichmann (2021). “Expressive Power of Randomized Signature”, NeurIPS 2021 Workshop on the Symbiosis of Deep Learning and Differential Equations (DLDE).

165

Cuchiero, C., L. Gonon, L. Grigoryeva, J.-P. Ortega, and J. Teichmann (2022). “Discrete-time Signatures and Randomness in Reservoir Computing”, IEEE Transactions on Neural Networks and Learning Systems 33.11, pp. 6321–6330. Cunningham, J., Z. Ghahramani, and C. Rasmussen (2012). “Gaussian Processes for time-marked time-series data”, Proceedings of the Fifteenth International Conference on Artificial Intelligence and Statistics (AISTATS). Cuturi, M. and M. Blondel (2017). “Soft-DTW: a Differentiable Loss Function for Time-Series”, Proceedings of the 34th International Conference on Machine Learning (ICML). Cuturi, M., J.-P. Vert, Ø. Birkenes, and T. Matsui (2007). “A Kernel for Time Series Based on Global Alignments”, Proceedings of the IEEE International Conference on Acoustics, Speech and Signal Processing. Cybenko, G. (1989). “Approximation by superpositions of a sigmoidal function”, Mathematics of Control, Signals and Systems 2, pp. 303–314. Dao, T. and A. Gu (2024). “Transformers are SSMs: generalized models and efficient algorithms through structured state space duality”, Proceedings of the 41st International Conference on Machine Learning (ICML). Dasgupta, S. and A. Gupta (2003). “An elementary proof of a theorem of Johnson and Lindenstrauss”, Random Structures & Algorithms 22.1, pp. 60–65. Dauphin, Y. N., A. Fan, M. Auli, and D. Grangier (2017). “Language Modeling with Gated Convolutional Networks”, Proceedings of the 34th International Conference on Machine Learning (ICML). Delétang, G., A. Ruoss, J. Grau-Moya, T. Genewein, L. K. Wenliang, E. Catt, C. Cundy, M. Hutter, S. Legg, J. Veness, and P. A. Ortega (2023). “Neural Networks and the Chomsky Hierarchy”, Proceedings of the 11th International Conference on Learning Representations (ICLR). Demšar, J. (2006). “Statistical Comparisons of Classifiers over Multiple Data Sets”, Journal of Machine Learning Research 7. Deng, J., W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei (2009). “ImageNet: A Large-Scale Hierarchical Image Database”, 2009 IEEE Conference on Computer Vision and Pattern Recognition (CVPR). IEEE, pp. 248–255. Elfwing, S., E. Uchibe, and K. Doya (2018). “Sigmoid-weighted linear units for neural network function approximation in reinforcement learning”, Neural Networks 107. Special issue on deep reinforcement learning, pp. 3–11. Elman, J. L. (1990). “Finding Structure in Time”, Cognitive Science 14.2, pp. 179– 211. 166

Faà di Bruno, F. (1855). “Sullo sviluppo delle funzioni”, Annali di Scienze Matematiche e Fisiche 6, pp. 479–480. Fan, T.-H., T.-C. Chi, and A. Rudnicky (2024). “Advancing Regular Language Reasoning in Linear Recurrent Neural Networks”, Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 2: Short Papers), pp. 45–53. Fefferman, C. (2006). “Whitney’s extension problem for C m ”, Annals of Mathematics 164.1, pp. 313–359. Ferraty, F., A. Mas, and P. Vieu (2007). “Nonparametric regression on functional data: Inference and practical aspects”, Australian & New Zealand Journal of Statistics 49.3, pp. 267–286. Friz, P. K. and N. B. Victoir (2010). Multidimensional Stochastic Processes as Rough Paths: Theory and Applications. Cambridge Studies in Advanced Mathematics. Cambridge University Press. Fu, D. Y., T. Dao, K. K. Saab, A. W. Thomas, A. Rudra, and C. Re (2023). “Hungry Hungry Hippos: Towards Language Modeling with State Space Models”, Proceedings of the 11th International Conference on Learning Representations (ICLR). Galtieri, C. A. (1964). Problems of Estimation in Discrete-Time Processes. Tech. rep. RJ-315. San Jose, California: IBM Research Laboratory. Garnelo, M., D. Rosenbaum, C. J. Maddison, T. Ramalho, D. Saxton, M. Shanahan, Y. W. Teh, D. J. Rezende, and S. M. A. Eslami (2018). “Conditional Neural Processes”, Proceedings of the 35th International Conference on Machine Learning (ICML). Gelb, A. (1974). Applied Optimal Estimation. Cambridge, MA: MIT Press. Chap. 6. Giles, C. L., G. Z. Sun, H. H. Chen, Y. C. Lee, and D. Chen (1989). “Higher Order Recurrent Networks and Grammatical Inference”, Proceedings of the 3rd International Conference on Neural Information Processing Systems (NeurIPS). Goel, K., A. Gu, C. Donahue, and C. Ré (2022). “It’s Raw! Audio Generation with State-Space Models”, Proceedings of the 39th International Conference on Machine Learning (ICML). Goldberger, A. L., L. A. Amaral, L. Glass, J. M. Hausdorff, P. C. Ivanov, R. G. Mark, J. E. Mietus, G. B. Moody, C.-K. Peng, and H. E. Stanley (2000). “PhysioBank, PhysioToolkit, and PhysioNet: Components of a new research resource for complex physiologic signals”, Circulation 101.23, e215–e220.

167

Gordon, N., D. Salmond, and A. Smith (1993). “Novel approach to nonlinear/nonGaussian Bayesian state estimation”, IEE Proceedings F (Radar and Signal Processing) 140 (2), pp. 107–113. Graham, B. (2013). “Sparse arrays of signatures for online character recognition”, arXiv preprint arXiv:1308.0371. Grazzi, R., J. Siems, J. K. H. Franke, A. Zela, F. Hutter, and M. Pontil (2025). “Unlocking State-Tracking in Linear RNNs Through Negative Eigenvalues”, Proceedings of the 13th International Conference on Learning Representations (ICLR). Griewank, A. and A. Walther (2008). Evaluating Derivatives: Principles and Techniques of Algorithmic Differentiation. 2nd. Society for Industrial and Applied Mathematics. Gu, A. and T. Dao (2024). “Mamba: Linear-Time Sequence Modeling with Selective State Spaces”, Proceedings of the First Conference on Language Modeling. Gu, A., K. Goel, and C. Ré (2022a). “Efficiently Modeling Long Sequences with Structured State Spaces”, Proceedings of The 10th International Conference on Learning Representations (ICLR). Gu, A., A. Gupta, K. Goel, and C. Ré (2022b). “On the Parameterization and Initialization of Diagonal State Space Models”, Proceedings of the 36th Conference on Neural Information Processing Systems (NeurIPS). Gyurkó, L. G., T. Lyons, M. Kontkowski, and J. Field (2014). “Extracting information from the signature of a financial data stream”, arXiv preprint arXiv:1307.7244. Hall, M. (1950). “A basis for free Lie rings and higher commutators in free groups”, Proceedings of the American Mathematical Society. Vol. 1, pp. 575–581. Hambly, B. and T. Lyons (2010). “Uniqueness for the signature of a path of bounded variation and the reduced path group”, Annals of Mathematics 171, pp. 109–167. Hanson, J. and M. Raginsky (2020). “Universal Simulation of Stable Dynamical Systems by Recurrent Neural Nets”, Proceedings of the 2nd Conference on Learning for Dynamics and Control, pp. 384–392. He, K., X. Zhang, S. Ren, and J. Sun (2016). “Deep Residual Learning for Image Recognition”, Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 770–778. Hess, K., V. Melnychuk, D. Frauen, and S. Feuerriegel (2024). “Bayesian Neural Controlled Differential Equations for Treatment Effect Estimation”, Proceedings of the 12th International Conference on Learning Representations (ICLR).

168

Heun, K. (1900). “Neue Methode zur approximativen Integration der Differentialgleichungen einer unabhängigen Veränderlichen”, Zeitschrift für Mathematik und Physik 45, pp. 23–38. Hinton, G. E. (1987). “Learning Translation Invariant Recognition in Massively Parallel Networks”, Proceedings of the Parallel Architectures and Languages Europe, Volume I: Parallel Architectures. Berlin, Heidelberg: Springer-Verlag, pp. 1–13. Hochreiter, S. (1991). “Untersuchungen zu dynamischen neuronalen Netzen”. PhD thesis. Technische Universität München. Hochreiter, S., Y. Bengio, P. Frasconi, and J. Schmidhuber (2001). “Gradient Flow in Recurrent Nets: The Difficulty of Learning Long–Term Dependencies”, A Field Guide to Dynamical Recurrent Neural Networks. Ed. by S. C. Kremer and J. F. Kolen. Wiley-IEEE Press, pp. 237–244. Hochreiter, S. and J. Schmidhuber (1997). “Long Short-term Memory”, Neural computation 9.8, pp. 1735–80. Holberg, C. and C. Salvi (2024). “Exact Gradients for Stochastic Spiking Neural Networks Driven by Rough Signals”, Proceedings of the 38th Conference on Neural Information Processing Systems (NeurIPS). Hornik, K. (1991). “Approximation capabilities of multilayer feedforward networks”, Neural Networks 4.2, pp. 251–257. Horvath, B., M. Lemercier, C. Liu, T. Lyons, and C. Salvi (2023). “Optimal Stopping via Distribution Regression: A Higher Rank Signature Approach”, arXiv preprint arXiv:2304.01479. Ioffe, S. and C. Szegedy (2015). “Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift”, Proceedings of the 32nd International Conference on Machine Learning (ICML). Jelassi, S., D. Brandfonbrener, S. M. Kakade, and E. Malach (2024). “Repeat after me: Transformers are better than state space models at copying”, Proceedings of the 41st International Conference on Machine Learning (ICML). Jiang, L., W. Yang, X. Zhang, and H. Ni (2024). “GCN-DevLSTM: Path Development for Skeleton-Based Action Recognition”, arXiv preprint, arXiv.2403.15212. Julier, S. J. and J. K. Uhlmann (1997). “New extension of the Kalman filter to nonlinear systems”, Signal Processing, Sensor Fusion, and Target Recognition VI. Vol. 3068. International Society for Optics and Photonics. SPIE, pp. 182–193. Kalman, R. E. (1960). “A New Approach to Linear Filtering and Prediction Problems”, ASME Journal of Basic Engineering 82, pp. 35–45.

169

Katharopoulos, A., A. Vyas, N. Pappas, and F. Fleuret (2020). “Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention”, Proceedings of the 37th International Conference on Machine Learning (ICML). Kermack, W. and A. McKendrick (1927). “A contribution to the mathematical theory of epidemics”, Proceedings of the Royal Society of London. Series A 115.772, pp. 700–721. Kidger, P. (2022). “On Neural Differential Equations”. PhD thesis. University of Oxford. Kidger, P., J. Foster, X. Li, and T. J. Lyons (2021). “Neural SDEs as InfiniteDimensional GANs”, Proceedings of the 38th International Conference on Machine Learning (ICML). Kidger, P., J. Morrill, J. Foster, and T. Lyons (2020). “Neural Controlled Differential Equations for Irregular Time Series”, Proceedings of the 34th Conference on Neural Information Processing System (NeurIPS). Kingma, D. P. and J. Ba (2015). “Adam: A Method for Stochastic Optimization”, Proceedings of the 3rd International Conference on Learning Representations (ICLR). Király, F. J. and H. Oberhauser (2019). “Kernels for sequentially ordered data”, Journal of Machine Learning Research 20.31, pp. 1–45. Kolmogorov, A. N. (1941). “Интерполирование и экстраполирование стационарных случайных последовательностей”, Известия АН СССР. Серия математическая 5.1, pp. 3–14. Kolmogorov, A. N. (1962). Interpolation and Extrapolation of Stationary Random Sequences. Tech. rep. RM-3090-PR. English translation by Worthie L. Doyle and Ivan Selin. Santa Monica, CA: RAND Corporation. Kreyszig, E. (1978). Introductory Functional Analysis with Applications. John Wiley & Sons. Krogh, A. and J. A. Hertz (1991). “A Simple Weight Decay Can Improve Generalization”, Proceedings of the 5th International Conference on Neural Information Processing Systems (NeurIPS). Lang, S. (1999). Fundamentals of Differential Geometry. Vol. 191. Graduate Texts in Mathematics. Springer. Lee, J. M. (2013). Introduction to Smooth Manifolds. 2nd. Vol. 218. Graduate Texts in Mathematics. New York: Springer. Lee, J., T. Kang, N. Kim, S. Han, H. Won, W. Gong, and I. Kwak (2022). “Deep Learning Based Heart Murmur Detection Using Frequency-time Domain Features of Heartbeat Sounds”, Computing in Cardiology (CinC). Vol. 49. 170

Lee, K., M. Kim, Y. Jun, and S. S. Woo (2024). “GDFlow: Anomaly Detection with NCDE-based Normalizing Flow for Advanced Driver Assistance System”, arXiv preprint arXiv:2409.05346. Lemercier, M., C. Salvi, T. Cass, E. V. Bonilla, T. Damoulas, and T. Lyons (2021a). “SigGPDE: Scaling Sparse Gaussian Processes on Sequential Data”, International Conference on Machine Learning (ICML). PMLR. Lemercier, M., C. Salvi, T. Damoulas, E. Bonilla, and T. Lyons (2021b). “Distribution regression for sequential data”, International Conference on Artificial Intelligence and Statistics (AISTATS). PMLR. Levin, D., T. Lyons, and H. Ni (2016). “Learning from the past, predicting the statistics for the future, learning an evolving system”, arXiv preprint arXiv:1309.0260. Li, X., J. Lu, R. Arora, J. Haupt, H. Liu, Z. Wang, and T. Zhao (2019). “Symmetry, Saddle Points, and Global Optimization Landscape of Nonconvex Matrix Factorization”, IEEE Transactions on Information Theory 65.6, pp. 3489–3514. Li, Y., T. Cai, Y. Zhang, D. Chen, and D. Dey (2023). “What Makes Convolutional Models Great on Long Sequence Modeling?”, Proceedings of the 11th International Conference on Learning Representations (ICLR). Li, Z., J. Han, W. E, and Q. Li (2022). “Approximation and Optimization Theory for Linear Continuous-Time Recurrent Neural Networks”, Journal of Machine Learning Research 23.42. Liao, S., T. Lyons, W. Yang, K. Schlegel, and H. Ni (2021). “Logsig-RNN: a novel network for robust and efficient skeleton-based action recognition”, Proceedings of the 32nd British Machine Vision Conference (BMVC 2021). Lim, S., J. Choi, N. Park, S.-H. Yoon, S. Kang, Y.-M. Kim, and H. Kang (2024). “Bridging Dynamic Factor Models and Neural Controlled Differential Equations for Nowcasting GDP”, Proceedings of the 33rd ACM International Conference on Information and Knowledge Management. Lizaire, M., M. Rizvi-Martel, M. Gamal, and G. Rabusseau (2024). “A Tensor Decomposition Perspective on Second-order RNNs”, Proceedings of the 41st International Conference on Machine Learning (ICML). Lotka, A. J. (1925). Elements of Physical Biology. Williams & Wilkins Company. Lou, H., S. Li, and H. Ni (2024). “Path Development Network with Finite-dimensional Lie Group Representation”, Transactions on Machine Learning Research. Lu, C., Y. Schroecker, A. Gu, E. Parisotto, J. Foerster, S. Singh, and F. Behbahani (2023). “Structured State Space Models for In-Context Reinforcement Learning”,

171

Proceedings of the 37th Conference on Neural Information Processing Systems (NeurIPS). Lu, H., J. B. Yip, T. Steigleder, S. Grießhammer, N. V. S. J. Jami, B. Eskofier, C. Ostgathe, and A. Koelpin (2022). “A Lightweight Robust Approach for Automatic Heart Murmurs and Clinical Outcomes Classification from Phonocardiogram Recordings”, Computing in Cardiology (CinC). Vol. 49. Luenberger, D. G. (1969). Optimization by Vector Space Methods. New York: John Wiley & Sons. Lyons, T., M. Caruana, and T. Lévy (2007). Differential Equations Driven by Rough Paths: École D’été de Probabilités de Saint-Flour XXXIV-2004. no. 1908. Springer. Lyons, T. (1994). “Differential Equations Driven by Rough Signals (I): An Extension of an Inequality of L. C. Young”, Mathematical Research Letters 1, pp. 451–464. Lyons, T. (1998). “Differential equations driven by rough signals.”, Revista Matemática Iberoamericana 14.2, pp. 215–310. Lyons, T. (2014). “Rough Paths, Signatures and the Modelling of Functions on Streams”, Proceedings of the International Congress of Mathematicians (ICM). Vol. 4. Lyons, T. and A. McLeod (2025). “Higher order Lipschitz Sandwich theorems”, Journal of the London Mathematical Society 111.3. Lyons, T. and Z. Qian (2002). System Control and Rough Paths. Oxford Mathematical Monographs. Oxford University Press. Magnus, W. (1954). “On the exponential solution of differential equations for a linear operator”, Communications on Pure and Applied Mathematics 7.4, pp. 649–673. Manten, G., C. Casolo, E. Ferrucci, S. W. Mogensen, C. Salvi, and N. Kilbertus (2025). “Signature Kernel Conditional Independence Tests in Causal Discovery for Stochastic Processes”, Proceedings of the 13th International Conference on Learning Representations (ICLR). McDonald, A., M. J. F. Gales, and A. Agarwal (2022). “Detection of Heart Murmurs in Phonocardiograms with Parallel Hidden Semi-Markov Models”, Computing in Cardiology (CinC). Vol. 49. McLeod, A. and T. Lyons (2025). “Signature methods in machine learning”, EMS Surveys in Mathematical Sciences. Meng, Q., S. Zheng, H. Zhang, W. Chen, Q. Ye, Z.-M. Ma, N. Yu, and T.-Y. Liu (2019). “G-SGD: Optimizing ReLU Neural Networks in Its Positively Scale-Invariant Space”, Proceedings of the 7th International Conference on Learning Representations (ICLR). 172

Merrill, W., J. Petty, and A. Sabharwal (2024). “The illusion of state in state-space models”, Proceedings of the 41st International Conference on Machine Learning (ICML). Mikalsen, K. Ø., F. M. Bianchi, C. Soguero-Ruiz, and R. Jenssen (2018). “Time series cluster kernel for learning similarities between multivariate time series with missing data”, Pattern Recognition 76, pp. 569–581. Moan, P. C. and J. Niesen (2008). “Convergence of the Magnus Series”, Foundations of Computational Mathematics 8, pp. 291–301. Moore, P. J., T. J. Lyons, J. Gallacher, and Alzheimer’s Disease Neuroimaging Initiative (2019). “Using path signatures to predict a diagnosis of Alzheimer’s disease”, PLoS One 14.9. Moreno-Pino, F., Á. Arroyo, H. Waldon, X. Dong, and Á. Cartea (2024). “Rough Transformers: Lightweight and Continuous Time-Series Modelling through Signature Patching”, Proceedings of the 38th Conference on Neural Information Processing Systems (NeurIPS). Morrill, J., P. Kidger, L. Yang, and T. Lyons (2022). “On the Choice of Interpolation Scheme for Neural CDEs”, Transactions on Machine Learning Research 2022.9. Morrill, J., A. Kormilitzin, A. Nevado-Holgado, S. Swaminathan, S. Howison, and T. Lyons (2019). “The Signature-Based Model for Early Detection of Sepsis From Electronic Health Records in the Intensive Care Unit”, Computing in Cardiology (CinC). Morrill, J., C. Salvi, P. Kidger, J. Foster, and T. Lyons (2021). “Neural Rough Differential Equations for Long Time Series”, Proceedings of the 38th International Conference on Machine Learning (ICML). Movahedi, S., F. Sarnthein, N. M. Cirone, and A. Orvieto (2025). “Fixed-Point RNNs: From Diagonal to Dense in a Few Iterations”, Proceedings of the 39th Conference on Neural Information Processing Systems (NeurIPS). Nguyen, E., K. Goel, A. Gu, G. W. Downs, P. Shah, T. Dao, S. A. Baccus, and C. Ré (2022). “S4ND: Modeling Images and Videos as Multidimensional Signals Using State Spaces”, Proceedings of the 36th Conference on Neural Information Processing Systems (NeurIPS). Nyquist, H. (1928). “Certain topics in telegraph transmission theory”, Transactions of the American Institute of Electrical Engineers 47.2, pp. 617–644. O’Hagan, A. (1978). “Curve Fitting and Optimal Design for Prediction”, Journal of the Royal Statistical Society. Series B (Methodological) 40.1, pp. 1–42.

173

Orvieto, A., S. De, C. Gulcehre, R. Pascanu, and S. L. Smith (2024). “Universality of Linear Recurrences Followed by Non-linear Projections: Finite-Width Guarantees and Benefits of Complex Eigenvalues”, Proceedings of the 41st International Conference on Machine Learning (ICML). Orvieto, A., S. L. Smith, A. Gu, A. Fernando, Ç. Gülçehre, R. Pascanu, and S. De (2023). “Resurrecting Recurrent Neural Networks for Long Sequences”, Proceedings of the 40th International Conference on Machine Learning (ICML). Paszke, A., S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, Z. Lin, N. Gimelshein, L. Antiga, A. Desmaison, A. Köpf, E. Yang, Z. DeVito, M. Raison, A. Tejani, S. Chilamkurthy, B. Steiner, L. Fang, J. Bai, and S. Chintala (2019). “PyTorch: An Imperative Style, High-Performance Deep Learning Library”, arXiv preprint arXiv:1912.01703. Pearlmutter, B. A. (1989). “Learning State Space Trajectories in Recurrent Neural Networks”, Neural Computation 1.2, pp. 263–269. Peng, B., E. Alcaide, Q. Anthony, A. Albalak, S. Arcadinho, S. Biderman, H. Cao, X. Cheng, M. Chung, L. Derczynski, X. Du, M. Grella, K. Gv, X. He, H. Hou, P. Kazienko, J. Kocon, J. Kong, B. Koptyra, H. Lau, J. Lin, K. S. I. Mantri, F. Mom, A. Saito, G. Song, X. Tang, J. Wind, S. Woźniak, Z. Zhang, Q. Zhou, J. Zhu, and R.-J. Zhu (2023). “RWKV: Reinventing RNNs for the Transformer Era”, Findings of the Association for Computational Linguistics: EMNLP 2023. Peng, B., R. Zhang, D. Goldstein, E. Alcaide, X. Du, H. Hou, J. Lin, J. Liu, J. Lu, W. Merrill, G. Song, K. Tan, S. Utpala, N. Wilce, J. S. Wind, T. Wu, D. Wuttke, and C. Zhou-Zheng (2025). “RWKV-7 ‘Goose with Expressive Dynamic State Evolution”, arXiv preprint arXiv:2503.14456. Peng, H., N. Pappas, D. Yogatama, R. Schwartz, N. A. Smith, and L. Kong (2021). “Random Feature Attention”, Proceedings of the 9th International Conference on Learning Representations (ICLR). Perez Arribas, I. (2018). “Derivatives pricing using signature payoffs”, arXiv preprint arXiv:1809.09466. Perez Arribas, I., G. M. Goodwin, J. R. Geddes, T. Lyons, and K. E. A. Saunders (2018). “A signature-based machine learning model for distinguishing bipolar disorder and borderline personality disorder”, Transl Psychiatry 8.1. Perez Arribas, I., C. Salvi, and L. Szpruch (2020). “Sig-SDEs model for quantitative finance”, ACM International Conference on AI in Finance. Pineda, F. J. (1987). “Generalization of Back-Propagation to Recurrent Neural Networks”, Physical Review Letters 59.19, pp. 2229–2232. 174

Qin, T., B. Walker, T. Lyons, H. Yan, and H. Li (2025). “Learning dynamic graph embeddings with neural controlled differential equations”, IEEE Transactions on Pattern Analysis and Machine Intelligence. Qin, Z., S. Yang, W. Sun, X. Shen, D. Li, W. Sun, and Y. Zhong (2024). “HGRN2: Gated linear RNNs with state expansion”, Proceedings of the 1st Conference on Language Modeling (COLM). Ramsay, J. O. and B. W. Silverman (2005). Functional Data Analysis. 2nd ed. New York: Springer. Rasmussen, C. E. and C. K. I. Williams (2006). Gaussian Processes for Machine Learning. Cambridge, MA: MIT Press. Ree, R. (1958). “Lie Elements and an Algebra Associated With Shuffles”, Annals of Mathematics 68.2. Reiss, A., I. Indlekofer, P. Schmidt, and K. Van Laerhoven (2019). “Deep PPG: LargeScale Heart Rate Estimation with Convolutional Neural Networks”, Sensors 19.14. Reutenauer, C. (1993). Free Lie Algebras. London Mathematical Society Monographs. Clarendon Press. Reyna, M. A., Y. Kiarashi, A. Elola, J. Oliveira, F. Renna, A. Gu, E. A. Perez Alday, N. Sadr, A. Sharma, J. Kpodonu, S. Mattos, M. T. Coimbra, R. Sameni, A. B. Rad, and G. D. Clifford (2023). “Heart murmur detection from phonocardiogram recordings: The George B. Moody PhysioNet Challenge 2022”, PLOS Digital Health 2.9. Rico-Martı́nez, R., K. Krischer, I. G. Kevrekidis, M. C. Kube, and J. L. Hudson (1992). “Discrete-vs. continuous-time nonlinear signal processing of Cu electrodissolution data”, Chemical Engineering Communications 118.1, pp. 25–48. Roman, S. (2007). Advanced Linear Algebra. Graduate Texts in Mathematics. Springer New York. Chap. 14. Rubanova, Y., T. Q. Chen, and D. K. Duvenaud (2019). “Latent Ordinary Differential Equations for Irregularly-Sampled Time Series”, Proceedings of the 33rd International Conference on Neural Information Processing Systems (NeurIPS). Rudin, W. (1991). Functional Analysis. 2nd. New York: McGraw-Hill. Ryan, R. A. (2002). Introduction to Tensor Products of Banach Spaces. Vol. 73. Springer Monographs in Mathematics. Springer. Saarinen, S., R. Bramley, and G. Cybenko (1993). “Ill-Conditioning in Neural Network Training Problems”, SIAM Journal on Scientific Computing 14.3, pp. 693–714. Salvi, C. (2021). “Rough paths, kernels, differential equations and an algebra of functions on streams”. PhD thesis. University of Oxford. 175

Salvi, C., T. Cass, J. Foster, T. Lyons, and W. Yang (2021). “The Signature Kernel is the solution of a Goursat PDE”, SIAM Journal on Mathematics of Data Science 3.3, pp. 873–899. Salvi, C., J. Diehl, T. Lyons, R. Preiss, and J. Reizenstein (2023). “A structure theorem for streamed information”, Journal of Algebra 634, pp. 911–938. Schlag, I., K. Irie, and J. Schmidhuber (2021). “Linear Transformers Are Secretly Fast Weight Programmers”, Proceedings of the 38th International Conference on Machine Learning (ICML). Seedat, N., F. Imrie, A. Bellot, Z. Qian, and M. van der Schaar (2022). “Continuous-Time Modeling of Counterfactual Outcomes Using Neural Controlled Differential Equations”, Proceedings of the 39th International Conference on Machine Learning (ICML). Shannon, C. E. (1949). “Communication in the presence of noise”, Proceedings of the IRE 37.1, pp. 10–21. Shmelev, D. and C. Salvi (2024). “Sparse Signature Coefficient Recovery via Kernels”, arXiv preprint arXiv:2412.08579. Siegelmann, H. T. and E. D. Sontag (1992). “On the computational power of neural nets”, Proceedings of the 5th Annual Workshop on Computational Learning Theory (COLT), pp. 440–449. Siems, J., T. Carstensen, A. Zela, F. Hutter, M. Pontil, and R. Grazzi (2025). “DeltaProduct: Improving State-Tracking in Linear RNNs via Householder Products”, Proceedings of the 39th Conference on Neural Information Processing Systems (NeurIPS). Slutsky, E. E. (1927). “The Summation of Random Causes as the Source of Cyclical Processes”, Voprosy Koniunktury 3.1, pp. 34–64. Slutsky, E. E. (1937). “The Summation of Random Causes as the Source of Cyclical Processes”, Econometrica 5.2. English translation of Slutsky (1927), pp. 105–146. Smith, J. T. H., A. Warrington, and S. W. Linderman (2023). “Simplified State Space Layers for Sequence Modeling”, Proceedings of The 11th International Conference on Learning Representations (ICLR). Solow, R. M. (1956). “A Contribution to the Theory of Economic Growth”, The Quarterly Journal of Economics 70.1, pp. 65–94. Srivastava, N., G. Hinton, A. Krizhevsky, I. Sutskever, and R. Salakhutdinov (2014). “Dropout: A simple way to prevent neural networks from overfitting”, Journal of Machine Learning Research 15.56, pp. 1929–1958. Stein, E. M. (1970). Singular Integrals and Differentiability Properties of Functions. Princeton University Press. 176

Stieltjes, T. J. (1894). “Recherches sur les fractions continues”, Annales de la Faculté des Sciences de Toulouse pour les Sciences Mathématiques et les Sciences Physiques 8.4, pp. 1–122. Stone, M. H. (1948). “The Generalized Weierstrass Approximation Theorem”, Mathematics Magazine 21.4, pp. 167–184. Strichartz, R. S. (1987). “The Campbell–Baker–Hausdorff–Dynkin Formula and Solutions of Differential Equations”, Journal of Functional Analysis 72.2, pp. 320– 345. Sun, Y., X. Li, K. Dalal, J. Xu, A. Vikram, G. Zhang, Y. Dubois, X. Chen, X. Wang, S. Koyejo, T. Hashimoto, and C. Guestrin (2025). “Learning to (Learn at Test Time): RNNs with Expressive Hidden States”, Proceedings of the 42nd International Conference on Machine Learning (ICML). Sutskever, I., J. Martens, and G. E. Hinton (2011). “Generating Text with Recurrent Neural Networks”, Proceedings of the 28th International Conference on Machine Learning (ICML). Szegedy, C., W. Zaremba, I. Sutskever, J. Bruna, D. Erhan, I. J. Goodfellow, and R. Fergus (2014). “Intriguing properties of neural networks”, Proceedings of the 2nd International Conference on Learning Representations (ICLR). Tay, Y., M. Dehghani, S. Abnar, Y. Shen, D. Bahri, P. Pham, J. Rao, L. Yang, S. Ruder, and D. Metzler (2021). “Long Range Arena: A Benchmark for Efficient Transformers”, Proceedings of the 9th International Conference on Learning Representations (ICLR). Touvron, H., T. Lavril, G. Izacard, X. Martinet, M.-A. Lachaux, T. Lacroix, B. Rozière, N. Goyal, E. Hambro, F. Azhar, A. Rodriguez, A. Joulin, E. Grave, and G. Lample (2023). “LLaMA: Open and Efficient Foundation Language Models”, arXiv pre-print arXiv:2302.13971. Tsitouras, C. (2011). “Runge–Kutta pairs of order 5(4) satisfying only the first column simplifying assumption”, Computers & Mathematics with Applications 62.2, pp. 770–775. Van Overschee, P. and B. De Moor (1994). “N4SID: Subspace Algorithms for the Identification of Combined Deterministic-Stochastic Systems”, Automatica 30.1, pp. 75–93. Vaswani, A., N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser, and I. Polosukhin (2017). “Attention Is All You Need”, Proceedings of the 31st Conference on Neural Information Processing Systems (NeurIPS).

177

Vauvelle, A., P. Creed, and S. Denaxas (2022). “Neural-signature methods for structured EHR prediction”, BMC Medical Informatics and Decision Making 22.1. Volterra, V. (1926). “Fluctuations in the abundance of a species considered mathematically”, Nature 118, pp. 558–560. Walker, B., F. Krones, I. Kiskin, G. Parsons, T. Lyons, and A. Mahdi (2022). “Dual Bayesian ResNet: A Deep Learning Approach to Heart Murmur Detection”, Computing in Cardiology (CinC). Vol. 49. Walker, B., A. D. McLeod, T. Qin, Y. Cheng, H. Li, and T. Lyons (2024). “Log Neural Controlled Differential Equations: The Lie Brackets Make a Difference”, Proceedings of the 41st International Conference on Machine Learning (ICML). Walker, B., L. Yang, N. M. Cirone, C. Salvi, and T. Lyons (2025). “Structured Linear CDEs: Maximally Expressive and Parallel-in-Time Sequence Models”, Proceedings of the 39th Conference on Neural Information Processing Systems (NeurIPS). Walker, G. T. (1931). “On Periodicity in Series of Related Terms”, Proceedings of The Royal Society A: Mathematical, Physical and Engineering Sciences 131.818, pp. 518–532. Wang, B., M. Liakata, H. Ni, T. Lyons, A. J. Nevado-Holgado, and K. Saunders (2019). “A Path Signature Approach for Speech Emotion Recognition”, Proc. Interspeech 2019, pp. 1661–1665. Wang, J., J. N. Yan, A. Gu, and A. M. Rush (2023a). “Pretraining Without Attention”, Findings of the Association for Computational Linguistics: EMNLP 2023. Wang, S. and B. Xue (2023b). “State-space Models with Layer-wise Nonlinearity are Universal Approximators with Exponential Decaying Memory”, Proceedings of the 37th Conference on Neural Information Processing Systems (NeurIPS). Weierstrass, K. (1885). “Uber die analytische Darstellbarkeit sogenannter willkurlicher Functionen einer reellen Veranderlichen”, Sitzungsberichte der Akademie zu Berlin, pp. 633–639, 789–805. Wells, J. C. (1973). “Differentiable functions on Banach spaces with Lipschitz derivatives”, Journal of Differential Geometry 8.1, pp. 135–152. Whitney, H. (1934). “Analytic Extensions of Differentiable Functions Defined in Closed Sets”, Transactions of the American Mathematical Society 36.1, pp. 63–89. Whittle, P. (1951). Hypothesis Testing in Time Series Analysis. Almqvist & Wiksells. Wiener, N. (1949). Extrapolation, Interpolation, and Smoothing of Stationary Time Series. Cambridge, MA: The MIT Press. Wilcoxon, F. (1945). “Individual Comparisons by Ranking Methods”, Biometrics Bulletin 1.6. 178

Williams, C. K. I. and C. E. Rasmussen (1996). “Gaussian Processes for Regression”, Advances in Neural Information Processing Systems 8. MIT Press, pp. 514–520. Wynne, G. and A. B. Duncan (2022). “A kernel two-sample test for functional data”, Journal of Machine Learning Research 23. Xu, H. and S. Mannor (2012). “Robustness and Generalization”, Machine Learning 86, pp. 391–423. Xu, Y., X. Bao, H. Lam, and E. N. Kamavuako (2022). “Hierarchical Multi-Scale Convolutional Network for Murmurs Detection on PCG Signals”, Computing in Cardiology (CinC). Vol. 49. Yang, S., J. Kautz, and A. Hatamizadeh (2025). “Gated Delta Networks: Improving Mamba2 with Delta Rule”, Proceedings of the 13th International Conference on Learning Representations (ICLR). Yang, S., B. Wang, Y. Shen, R. Panda, and Y. Kim (2024a). “Gated Linear Attention Transformers with Hardware-Efficient Training”, Proceedings of the 41st International Conference on Machine Learning (ICML). Yang, S., B. Wang, Y. Zhang, Y. Shen, and Y. Kim (2024b). “Parallelizing Linear Transformers with the Delta Rule over Sequence Length”, Proceedings of the 38th Conference on Neural Information Processing Systems (NeurIPS). Yang, W., L. Jin, H. Ni, and T. Lyons (2016). “Rotation-free online handwritten character recognition using dyadic path signature features, hanging normalization, and deep neural network”, Proceedings of the 23rd International Conference on Pattern Recognition (ICPR). Young, L. C. (1936). “An inequality of the Hölder type, connected with Stieltjes integration”, Acta Mathematica 67, pp. 251–282. Yue, B., J. Fu, and J. Liang (2018). “Residual Recurrent Neural Networks for Learning Sequential Representations”, Information 9.3. Yule, G. U. (1927). “On a Method of Investigating Periodicities in Disturbed Series, with Special Reference to Wolfer’s Sunspot Numbers”, Philosophical Transactions of the Royal Society of London. Series A, Containing Papers of a Mathematical or Physical Character 226, pp. 267–298. Zeng, S., L. J. Liu, J. Wen, M. Yetisgen, R. Etzioni, and G. Luo (2025). “TrajSurv: Learning Continuous Latent Trajectories from Electronic Health Records for Trustworthy Survival Prediction”, Proceedings of the Machine Learning for Healthcare (MLHC) Conference. Zhang, Y., S. Yang, R. Zhu, Y. Zhang, L. Cui, Y. Wang, B. Wang, F. Shi, B. Wang, W. Bi, P. Zhou, and G. Fu (2024). “Gated Slot Attention for Efficient Linear-Time 179

Sequence Modeling”, Proceedings of the 38th Conference on Neural Information Processing Systems (NeurIPS). Zucchet, N. and A. Orvieto (2024). “Recurrent neural networks: vanishing and exploding gradients are not the end of the story”, Proceedings of the 38th Conference on Neural Information Processing Systems (NeurIPS).

180

Record · ID 343476 · SHA-256 3cd8b318b3860e1e
Retrieved via Conceptio — every document is proof-bundled with source, license, and retrieval metadata.