Determinant Estimation under Memory Constraints and Neural Scaling Laws

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Ameli, Siavash, van der Heide, Chris, Hodgkinson, Liam, Roosta, Fred, Mahoney, Michael W.
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913934603190272
author Ameli, Siavash
van der Heide, Chris
Hodgkinson, Liam
Roosta, Fred
Mahoney, Michael W.
author_facet Ameli, Siavash
van der Heide, Chris
Hodgkinson, Liam
Roosta, Fred
Mahoney, Michael W.
contents Calculating or accurately estimating log-determinants of large positive definite matrices is of fundamental importance in many machine learning tasks. While its cubic computational complexity can already be prohibitive, in modern applications, even storing the matrices themselves can pose a memory bottleneck. To address this, we derive a novel hierarchical algorithm based on block-wise computation of the LDL decomposition for large-scale log-determinant calculation in memory-constrained settings. In extreme cases where matrices are highly ill-conditioned, accurately computing the full matrix itself may be infeasible. This is particularly relevant when considering kernel matrices at scale, including the empirical Neural Tangent Kernel (NTK) of neural networks trained on large datasets. Under the assumption of neural scaling laws in the test error, we show that the ratio of pseudo-determinants satisfies a power-law relationship, allowing us to derive corresponding scaling laws. This enables accurate estimation of NTK log-determinants from a tiny fraction of the full dataset; in our experiments, this results in a $\sim$100,000$\times$ speedup with improved accuracy over competing approximations. Using these techniques, we successfully estimate log-determinants for dense matrices of extreme sizes, which were previously deemed intractable and inaccessible due to their enormous scale and computational demands.
format Preprint
id arxiv_https___arxiv_org_abs_2503_04424
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Determinant Estimation under Memory Constraints and Neural Scaling Laws
Ameli, Siavash
van der Heide, Chris
Hodgkinson, Liam
Roosta, Fred
Mahoney, Michael W.
Machine Learning
Numerical Analysis
Calculating or accurately estimating log-determinants of large positive definite matrices is of fundamental importance in many machine learning tasks. While its cubic computational complexity can already be prohibitive, in modern applications, even storing the matrices themselves can pose a memory bottleneck. To address this, we derive a novel hierarchical algorithm based on block-wise computation of the LDL decomposition for large-scale log-determinant calculation in memory-constrained settings. In extreme cases where matrices are highly ill-conditioned, accurately computing the full matrix itself may be infeasible. This is particularly relevant when considering kernel matrices at scale, including the empirical Neural Tangent Kernel (NTK) of neural networks trained on large datasets. Under the assumption of neural scaling laws in the test error, we show that the ratio of pseudo-determinants satisfies a power-law relationship, allowing us to derive corresponding scaling laws. This enables accurate estimation of NTK log-determinants from a tiny fraction of the full dataset; in our experiments, this results in a $\sim$100,000$\times$ speedup with improved accuracy over competing approximations. Using these techniques, we successfully estimate log-determinants for dense matrices of extreme sizes, which were previously deemed intractable and inaccessible due to their enormous scale and computational demands.
title Determinant Estimation under Memory Constraints and Neural Scaling Laws
topic Machine Learning
Numerical Analysis
url https://arxiv.org/abs/2503.04424