Can LLMs predict the convergence of Stochastic Gradient Descent?
Oussama Zekri, Abdelhakim Benechehab, Ievgen Redko
TL;DR
Can LLMs predict SGD convergence by treating SGD as a Markov chain and using in-context learning to infer the transition kernel from observed iterates, enabling zero-shot forecasting on unseen initializations. The paper introduces a pipeline that estimates the diagonal blocks $P^{(i,i)}$ of the discretized kernel from LLM logits and completes the global kernel $Q$ with a debiased Sinkhorn barycenter to forecast convergence in both convex and non-convex settings. It also revisits neural scaling laws of ICL from a Markov-chain perspective, highlighting the role of the spectral gap $\rho$ in the learnability of transition dynamics. This framework points toward zero-shot randomized trials for larger DL models, while acknowledging practical scalability and kernel-estimation challenges when extending to real-world, trillion-parameter systems.
Abstract
Large-language models are notoriously famous for their impressive performance across a wide range of tasks. One surprising example of such impressive performance is a recently identified capacity of LLMs to understand the governing principles of dynamical systems satisfying the Markovian property. In this paper, we seek to explore this direction further by studying the dynamics of stochastic gradient descent in convex and non-convex optimization. By leveraging the theoretical link between the SGD and Markov chains, we show a remarkable zero-shot performance of LLMs in predicting the local minima to which SGD converges for previously unseen starting points. On a more general level, we inquire about the possibility of using LLMs to perform zero-shot randomized trials for larger deep learning models used in practice.
