- This event has passed.
In-Context Kernel Ridge Regression with Transformers (Mingsong Yan, UCSB)
Large language models (LLMs) can use examples provided in a prompt to make predictions for new queries without updating their parameters, a capability known as in-context learning. In this talk, I will explore how transformers, the architectural backbone of many LLMs, can perform nonlinear kernel ridge regression (KRR). I will first present numerical observations showing that transformers pretrained on regression tasks match KRR predictions more closely as depth increases. Motivated by these observations, I will present a theoretical construction showing how a transformer can approximate the Gaussian KRR predictor through an intuitive connection to a convergent iterative solver. This construction has a natural interpretation: successive transformer layers approximate steps of the solver, progressively refining the solution to the underlying kernel system. Together, these results provide theoretical and empirical insights into in-context learning with transformers for nonlinear regression.
