Position: Curvature Matrices Should Be Democratized via Linear Operators

Felix Dangel, Runa Eschenhagen, Weronika Ormaniec, Andres Fernandez, Lukas Tatzel +1 more
1/31/2025
cs.LG

No confident code implementation found for this paper.

Abstract

Structured large matrices are prevalent in machine learning. A particularly important class is curvature matrices like the Hessian, which are central to understanding the loss landscape of neural nets (NNs), and enable second-order optimization, uncertainty quantification, model pruning, data attribution, and more. However, curvature computations can be challenging due to the complexity of automatic differentiation, and the variety and structural assumptions of curvature proxies, like sparsity and Kronecker factorization. In this position paper, we argue that linear operators -- an interface for performing matrix-vector products -- provide a general, scalable, and user-friendly abstraction to handle curvature matrices. To support this position, we developed $\textit{curvlinops}$, a library that provides curvature matrices through a unified linear operator interface. We demonstrate with $\textit{curvlinops}$ how this interface can hide complexity, simplify applications, be extensible and interoperable with other libraries, and scale to large NNs.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{dangel2025position,
  title  = {Position: Curvature Matrices Should Be Democratized via Linear Operators},
  author = {Felix Dangel and Runa Eschenhagen and Weronika Ormaniec and Andres Fernandez and Lukas Tatzel and Agustinus Kristiadi},
  year   = {2025},
  eprint = {2501.19183},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.19183v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.19183.svg)](https://codeofpaper.com/paper/2501.19183)

Discussion