Skip to content

Studying the generalization of large language models with influence functionsStudying Large Language Model Generalization with Influence Functions

arXiv· arXiv:2308.03296· Roger Grosse, Juhan Bae, Cem Anil, Nelson Elhage, Alex Tamkin, Amirhossein Tajdini, Benoit Steiner, Dustin Li, Esin Durmus, Ethan Perez, Evan Hubinger, Kamilė Lukošiūtė, Karina Nguyen, Nicholas Joseph, Sam McCandlish, Jared Kaplan, Samuel R. Bowman·Indexed by this site · 27 days ago· Originally publishedAlignment
AI summary

Researchers used the EK-FAC approximation to scale influence functions to large language models with up to 52 billion parameters, for tracing which training samples contribute most to a given model behavior. Influence functions answer a counterfactual question, namely how model parameters and outputs would change after adding a certain sequence to the training set; previously this method was difficult to apply to large models because of the difficulty of computing inverse Hessian-vector products (IHVP). In experiments, EK-FAC achieved accuracy comparable to traditional influence function estimators while computing IHVP orders of magnitude faster, and the authors also used TF-IDF filtering and query batching to reduce the computational cost of gradients for candidate training sequences. The authors used this method to examine the model's generalization patterns, including the sparsity of influence patterns, abstraction that strengthens with scale, mathematical and programming abilities, cross-lingual generalization, and role-playing behavior, and found an unexpected limitation, namely that when the order of key phrases was swapped, influence decayed to near zero.

Read originalarxiv.org