Table of Contents
The objective of this thesis is to evaluate the error and time complexity of both the
Explicit Euler Method and the Krylov Subspace Method, depending on their respective
parameters step size and subspace dimension, so we can assess their performance in a
direct comparison.
This repository contains brief explanations and findings as well as all necessary code. For more information, be sure to take a look at the full document.
This section will cover the background of the thesis very briefly.
Implementation
The Linear Assignment Flow (Zeilmann et al., 2020) is represented by an ODE on the
tangent space
at the barycenter of the assignment Manifold
meaning that every row of
where
-
$V(t) \in \mathcal{T}_0$ is our tangent vector
-
$A \in \mathbb{R}^{IJ\times IJ}$ represents the weights in pixel neighborhood -
$b \in \mathbb{R}^{IJ}$ carries the image data
For a standard sized image of
so sparse matrix representations have to be used.
For a matrix
The φ-Functions represent special cases of the Mittag-Leffler Function and have the form
or as Taylor-Series
The solution of an inhomogeneous ODE is given by
respectively
if
Implementation
The Explicit Euler Method (also called ”forward Euler“) is the most basic method to solve an ODE.
It is calculated iteratively by
where
Implementation
The Krylov Subspace Method (Niesen and Wright, 2012, pp. 4-6) is a more advanced method than the Explicit Euler Method. It tries to approximate
By orthonormalizing it, we get
These basis vectors combined, form the matrix
respectively
where
so the matrix exponential does not have to be calculated on a very big matrix anymore, but instead one of size
The global error of the Explicit Euler Integration has an upper bound
so it shrinks linearly with
The Krylov Subspace Methods a priori error has an upper bound
and in the Linear Assignment Flow
So its a priori error shrinks factorially with
More info on the possible error correction and the estimation of an a posteriori error are the full document.
Parameters:
-
$I$ : Number of pixels,$J$ : Number of labels -
$m$ : Krylov Subspace Dimension -
$h$ : step size -
$t$ : total integrated distance -
$q$ : degree of the Padé approximation (small) -
$s$ : number that is needed to bring the spectral radius of$A$ below 0.5 by$A/2^s$ (small)
The Complexity of the Explicit Euler Method lies in
so it shrinks inversely proportional with the step size.
The Complexity of the Krylov Subspace Method lies in
when the Lanczos Iteration can be used for orthonormalization. Because the usually high number of pixels the left term dominates the right one and the methods complexity grows linearly proportional with
As can be seen in the following, the experiments support the theoretical findings.
For small
(Euler) Error for varying step size h. left: linear, right: log
The error of the Krylov Subspace Method shrinks factorially fast with
(Krylov) A priori bounds and the actual error for t = 1 (left) and t = 5
(right)
For a growing step size, the run time of the Explicit Euler Method shrinks inversely proportional.
(Euler) Run times for varying h and a fixed IJ
The run time of the Krylov Subspace Method grows linearly with
(Krylov) Run times for varying m, if m ≪ IJ (left) and m = IJ (right)
- Zeilmann, A., Savarino, F., Petra, S., and Schnörr, C. (2020). Geometric numerical
integration of the assignment flow. Inverse Problems
- Niesen, J. and Wright, W. M. (2012). Algorithm 919. ACM Transactions on Mathematical Software
Distributed under the MIT License. See LICENSE
for more information.