Attention in Krylov Space
Zihao Qi, Christopher Earls
TL;DR
The paper addresses the difficulty of obtaining long Lanczos coefficient sequences $b_n$ due to numerical instability and memory limits, which hinders accurate reconstruction of operator dynamics via Krylov space. It reframes the problem as causal sequence forecasting and trains a decoder-only transformer to predict future $b_n$ from a short prefix using $ abla b_n = b_n - b_{n-1}$, ensuring stable training. The key contributions are: (i) a substantial accuracy boost over traditional asymptotic fits in both $b_n$ extrapolation and observable reconstruction of $K(t)$ and $C(t)$, (ii) successful zero-shot transfer to larger system sizes, and (iii) insights into which history segments drive predictions through attention analysis. This approach enables reliable probing of long-time operator dynamics from limited data, with potential experimental links via spectral moments and broad applicability to diverse Krylov-space problems.
Abstract
The Universal Operator Growth Hypothesis formulates time evolution of operators through Lanczos coefficients. In practice, however, numerical instability and memory cost limit the number of coefficients that can be computed exactly. In response to these challenges, the standard approach relies on fitting early coefficients to asymptotic forms, but such procedures can miss subleading, history-dependent structures in the coefficients that subsequently affect reconstructed observables. In this work, we treat the Lanczos coefficients as a causal time sequence and introduce a transformer-based model to autoregressively predict future Lanczos coefficients from short prefixes. For both classical and quantum systems, our machine-learning model outperforms asymptotic fits, in both coefficient extrapolation and physical observable reconstruction, by achieving an order-of-magnitude reduction in error. Our model also transfers across system sizes: it can be trained on smaller systems and then be used to extrapolate coefficients on a larger system without retraining. By probing the learned attention patterns and performing targeted attention ablations, we identify which portions of the coefficient history are most influential for accurate forecasts.
