Nicholas Krämer
· 5 previous affiliations
- Technical University of DenmarkSince 2023
- Forscher (Postdoktorand) · Since 2023
- University of Tübingen2019–2024
- Doktor (Ph.D.), Computer Science · 2019–2024
- Research Assistant · 2019–2023
- University of Bonn2016–2019
- Master of Science, Mathematics · 2016–2019
- Research Assistant · 2017
- University of Mannheim2015–2016
- Teaching Assistant · 2015–2016
- avantum consult AG2015
- Intern · 2015
Research Overview
Nicholas Krämer focuses on the intersection of numerical analysis and machine learning, with a particular emphasis on probabilistic numerics, differentiable programming, and numerical linear algebra. His research aims to integrate uncertainty quantification and automatic differentiation into classical numerical methods, facilitating their application in high-dimensional scientific computing and AI4Science. By reframing numerical tasks—such as solving differential equations or performing linear algebra—as statistical inference problems, he develops algorithms that are both computationally efficient and capable of providing calibrated measures of numerical error.
Research Trajectory
Krämer’s early work was centered on the foundational challenges of probabilistic numerics, specifically Solving Differential Equations via Bayesian State Estimation. During his doctoral research, he addressed the gap between the theoretical convergence of probabilistic solvers and their practical numerical stability. While probabilistic ordinary differential equation (ODE) solvers offer a principled way to quantify discretization error, they historically suffered from instability when applied at high orders or with small step sizes. In Stable Implementation of Probabilistic ODE Solvers, Krämer introduced a suite of techniques to mitigate these issues, including coordinate-change preconditioning and Square-Root Filtering for Stable Covariance Propagation. By propagating Cholesky factors rather than full covariance matrices, these formulations ensure that the "uncertainty bubbles" represented by the solver remain symmetric and positive-definite even in the presence of floating-point errors.
Following these stability improvements, Krämer expanded the scope of probabilistic numerics to more complex classes of equations. He addressed the computational bottleneck of Boundary Value Problems (BVPs), which typically require iterative "shooting" methods or global optimizations that lack native uncertainty quantification. In Linear-Time Probabilistic Solution of Boundary Value Problems, he demonstrated that by leveraging Gauss-Markov priors and state-space inference, BVPs could be solved in linear time relative to the number of mesh points. This approach not only matched the speed of traditional deterministic solvers but also provided self-tuning hyperparameters and automatic mesh refinement, integrating BVP solvers more effectively into statistical modeling pipelines.
The evolution of his work then moved toward time-dependent partial differential equations (PDEs). Standard PDE solvers often treat spatial and temporal discretizations as separate, black-box processes, which can obscure the interaction between different sources of error. In Probabilistic Numerical Method of Lines for Time-Dependent Partial Differential Equations, Krämer proposed a probabilistic version of the method of lines. This method uses a Gaussian process interpretation of finite differences to quantify spatial discretization error, which then interacts naturally with filtering-based ODE solvers to provide a holistic quantification of the total approximation error. This work highlights a recurring theme in his research: the identification and mitigation of Numerical Artifacts in Discrete Time Neural Simulations, where the transition from continuous-time models to discrete-time implementations can introduce spurious behaviors.
As the field of AI4Science demanded greater scalability, Krämer focused on extending these probabilistic methods to high-dimensional systems. A significant milestone in this direction was Probabilistic ODE Solutions in Millions of Dimensions, where he demonstrated that the computational overhead of uncertainty quantification could be managed even in extremely large-scale simulations. This was achieved by exploiting the structure of the state-space models and using efficient implementation strategies in JAX, moving probabilistic numerics from a theoretical niche into a viable tool for large-scale scientific machine learning.
Current Directions
Krämer’s current research, primarily conducted during his postdoctoral tenure at DTU, shifts toward differentiable programming and matrix-free numerical linear algebra. This work is driven by the need to integrate complex numerical simulators into deep learning workflows, which requires efficient ways to compute gradients through iterative numerical processes. A core challenge in this domain is Numerical Stability and Accuracy in Kernel Methods, where the very properties that ensure high accuracy can lead to ill-conditioned systems.
A major contribution in this area is the development of adjoint systems for matrix-free iterations. In Gradients of Functions of Large Matrices, Krämer derived custom reverse-mode automatic differentiation rules for the Lanczos and Arnoldi algorithms. These algorithms are the standard for computing functions of matrices that are too large to be stored explicitly. By enabling exact, memory-efficient gradients for these iterations, he provided a way to differentiate through operations like matrix exponentials or log-determinants in high-dimensional settings, which is critical for Gaussian process regression and score-based generative models.
This focus on differentiability extends to the method of least squares, a fundamental tool in scientific computing. In Matrix-Free Least Squares Solvers: Values, Gradients, and What to Do With Them, where Krämer served as the senior author, the research team transformed iterative least squares solvers (such as LSMR) into differentiable operators. This allows least squares solvers to function as layers within neural networks, enabling the imposition of physical constraints—such as conservativeness in generative models or weight sparsity in large-scale architectures—directly through the optimization objective. This work exemplifies the broader goal of Building Composable and Interoperable Probabilistic Programming Ecosystems, where numerical solvers are not isolated black boxes but integrated, differentiable components of a larger learning system.
Krämer also continues to refine the underlying state-space estimation techniques that support these methods. His recent work on Numerically Robust Fixed-Point Smoothing Without State Augmentation addresses a long-standing gap in Gaussian smoothing literature. While fixed-interval smoothing (estimating a whole time series) is well-studied, fixed-point smoothing (estimating initial states) is often overlooked or implemented via inefficient state augmentation. Krämer’s formulation provides a Cholesky-based, numerically stable approach that requires only constant memory, which is essential for Constrained State Estimation for Physical Systems where initial conditions are unknown or subject to physical boundaries.
Representative Work
The following papers represent the core methodological contributions of Krämer’s research, spanning from stable probabilistic ODE solvers to differentiable matrix-free linear algebra.
- Stable Implementation of Probabilistic ODE Solvers (2020): This first-author paper established the practical viability of probabilistic ODE solvers by introducing square-root filtering and preconditioning techniques. It solved the problem of numerical instability at high orders, which had previously limited the adoption of these methods in high-precision scientific computing.
- Linear-Time Probabilistic Solution of Boundary Value Problems (2021): In this work, Krämer demonstrated that BVPs could be solved using state-space inference in linear time. This contribution was significant for its ability to provide calibrated uncertainty and automated hyperparameter tuning without the manual initialization required by traditional BVP solvers.
- Probabilistic Numerical Method of Lines for Time-Dependent Partial Differential Equations (2022): This first-author paper extended probabilistic numerics to PDEs. By framing the method of lines within a Gaussian process framework, it allowed for the joint quantification of spatial and temporal discretization errors, providing a more rigorous approach to error analysis in complex dynamical systems.
- Probabilistic ODE Solutions in Millions of Dimensions (2022): This paper addressed the scalability of probabilistic numerics, demonstrating that filtering-based solvers could be applied to systems with millions of degrees of freedom. This work was crucial for proving that uncertainty quantification is computationally feasible for the large-scale models common in modern AI4Science.
- Gradients of Functions of Large Matrices (2024): As the first author, Krämer derived the adjoint systems for Lanczos and Arnoldi iterations. This enabled reverse-mode automatic differentiation for matrix-free linear algebra, allowing researchers to compute gradients of functions of massive matrices without the prohibitive memory costs of storing the full matrix or the iteration history.
- Matrix-Free Least Squares Solvers: Values, Gradients, and What to Do With Them (2026): In this senior-author paper, Krämer and his collaborators developed custom gradients for iterative least squares solvers. This work transformed the solver into a differentiable operator, enabling its use for enforcing constraints in neural networks and tuning hyperparameters in Gaussian processes at a scale of tens of millions of parameters.
Krämer’s research is supported by a strong commitment to open-source software, as evidenced by his development of libraries such as Matfree (for matrix-free linear algebra), Probdiffeq (for probabilistic differential equation solvers), and TUEplots (for scientific visualization). These tools translate his theoretical and algorithmic contributions into accessible resources for the broader scientific machine learning community.
Profile updated
Loading new papers…
Other researchers whose papers cluster into the same research directions — a proxy for overlapping technical interests and shared intellectual neighborhoods.
See something wrong? Report a mistake