Back to results

Universität Würzburg

The Pontryagin Maximum Principle and Defect Correction in Supervised Learning

Abstract

dc:description.abstract

In this thesis, the dynamical systems approach to deep learning is employed to leverage the theory of optimal control and derive algorithms based on the Pontryagin Maximum Principle (PMP) for solving supervised learning problems. To this end, well-known neural network architectures, such as multilayer perceptrons (MLPs) and convolutional neural networks (CNNs), are modeled as discrete-time controlled systems, where the trainable parameters act as discrete-time control functions. Furthermore, novel Runge-Kutta structured neural networks (RKNNs) are introduced, whose forward structure follows the form of Runge-Kutta (RK) schemes, thereby representing an extension of classical residual neural networks (ResNets). Within the dynamical systems framework for machine learning, where the supervised learning task is formulated as a continuous-time optimal control problem, control-affine neural ordinary differential equations (NODEs) are motivated as the continuous-time limit of these specially constructed RKNNs. Inspired by this relation, necessary optimality conditions for supervised learning problems are formulated by means of the PMP. In contrast to the classical machine learning setting, where the first-order optimality conditions are based on the Karush-Kuhn-Tucker (KKT) conditions, the PMP states that optimal trainable parameters are characterized by maximizing an auxiliary function at each layer, which is referred to as the Hamilton-Pontryagin (HP) function. This maximization criterion, in particular, enables the formulation of optimality conditions for supervised learning problems, even when both the cost function and the underlying neural network do not admit gradients with respect to the trainable parameters. Motivated by the PMP, a generalized backpropagation algorithm for training neural networks is developed based on a discrete version of the method of successive approximations (MSA), which was initially introduced by Krylov and Chernous’ko for solving continuous-time optimal control problems. In contrast to the original MSA, the novel batch sequential quadratic Hamiltonian (bSQH) scheme, introduced in this thesis, extends the HP function with a weighted quadratic penalty term and maximizes the resulting augmented Hamiltonian at each iteration to determine updates for the trainable parameters. To guarantee a stable and convergent training procedure, the bSQH scheme employs a sufficient decrease condition to automatically determine an appropriate weighting parameter for the quadratic augmentation of the HP function at each iteration. This guarantees a monotonic decrease in the cost function value and the well-posedness of the presented method. The minimizing property of the bSQH scheme is analyzed theoretically, and its convergence is established by proving its ability to determine neural network parameters that satisfy the necessary optimality conditions formulated in the PMP. Furthermore, since the formulation of the update step in the bSQH scheme does not require gradients with respect to the trainable parameters, it constitutes an efficient algorithm for sparse network training, where a supervised learning problem commonly involves non-differentiable regularization terms. While in the classical backpropagation framework an L1-norm based regularization is commonly employed to induce sparsity, it is proved that the minimizing property of the bSQH technique also extends to L0-seminorm-regularized machine learning problems. Furthermore, in this framework, a closed-form expression is derived for the trainable parameters that maximize the augmented HP function at each iteration of the bSQH scheme. Using this formulation, neural networks can be trained so that their parameters admit a higher degree of sparsity than those optimized with the classical L1-norm based approach, without compromising the network’s accuracy. Particularly in the context of CNNs, where models are often over-parameterized, this property can greatly reduce the memory usage of a trained model while simultaneously improving the computational efficiency of the forward propagation process. To further address the computational challenges posed by the large number of parameters and high-dimensional datasets in CNN-based supervised learning, a stochastic mini-batch variant is incorporated into the bSQH scheme. The well-posedness of the bSQH method in this mini-batch setting is both proved theoretically and substantiated numerically. A numerical investigation in the context of image classification with CNNs and sparsity-enforcing, L0-based regularization demonstrates the effectiveness of the proposed method in its full-batch and mini-batch modes. In addition, numerical comparisons with state-of-the-art and MSA-based backpropagation schemes confirm the superior performance and robustness of the bSQH algorithm across different regularization techniques and network architectures. Interpreting supervised learning problems with RKNN constraints as discrete-time optimal control problems also implies that the trajectories generated by, for example, the bSQH scheme can serve as approximations to their continuous-time equivalents. The convergence properties of these approximations can certainly be analyzed within the optimal control framework using the convergence theory of RK schemes. However, while substantial research has been devoted to convergence and convergence rates within this framework, these results generally provide no insight into the pointwise distribution of the global errors, even though such information can be essential for improving the quality of discrete-time solutions. Thus, in this thesis, inspired by the ideas of Zadunaisky, originally formulated in the framework of Cauchy and boundary value problems, a numerically feasible, continuous representation for the global errors in approximations to optimal control problems with control-affine NODE constraints is developed. To characterize this continuous representation of the global errors, an auxiliary optimal control problem is constructed, which can be solved independently of the originally considered problem and whose solutions provide the desired error functions. For its construction, appropriate interpolation operations are defined that preserve the asymptotic properties of the underlying discrete-time approximations for which a continuous error extension is desired. In a first step to develop a numerical strategy for generating accurate continuous estimates for the global error, linear quadratic regulator (LQR) problems are considered, which can be viewed as local approximations to the nonlinear optimal control problems under investigation. In this framework, the continuous error functions are uniquely characterized by the solution to an auxiliary non-autonomous Hamiltonian system derived from the PMP. With this formulation, reliable pointwise error estimates are generated using a first-optimize-then-discretize approach to optimal control, which combines a successive application of the symplectic Euler scheme with techniques of defect control. A novel iterative defect correction based scheme is presented, providing pointwise estimates of the global errors in numerical approximations to optimal control solutions of LQR problems up to any prescribed accuracy. In this framework, also a cyclic reduction based direct method for solving linear systems is proposed, which exploits the special structure of the systems arising from the application of the symplectic Euler method to the auxiliary non-autonomous Hamiltonian system. The method developed for error estimation in numerical solutions of LQR problems is subsequently extended to optimal control problems with control-affine NODEs. In this setting, the auxiliary optimal control problem, representing continuous error extensions, is solved using a first-discretize-then-optimize approach of optimal control. For this purpose, the auxiliary problem is first reformulated as a supervised learning problem for RKNNs and subsequently solved using the bSQH method. For a subsequent correction of the generated approximations to the global error, a defect correction based strategy is applied, which includes the LQR-based approach as a special case. In a series of numerical experiments, including a numerical order analysis, compelling evidence is provided demonstrating that the proposed schemes can effectively produce high-order approximations to the solutions of both LQR problems and optimal control problems with control-affine NODE constraints.

Degree

thesis:*
Level thesis:degree_level
thesis.doctoral
Department thesis:degree_department
Fakultät für Mathematik und Informatik
Grantor dc:publisher
Universität Würzburg
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Hofmann, Sebastian
Person Identifier Gnd person:identifier.gnd
  • 1378990358

Subjects

dc:subject × 5

Rights

dc:rights.accessrights
Statement dc:rights.accessrights
  • free
  • Deutsches Urheberrecht mit Print on Demand
Language dc:language.dcterms_iso639_2
eng

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
Universität Wüzburg
Base URL
opus.bibliothek.uni-wuerzburg.de/oai
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
citation

Hofmann, Sebastian. The Pontryagin Maximum Principle and Defect Correction in Supervised Learning. thesis.doctoral thesis, Universität Würzburg, 2025. https://doi.org/10.25972/OPUS-42590