Faithful and Fast Influence Function via Advanced Sampling
Department of Electrical Engineering, Pohang University of Science and Technology, Pohang, Republic of Korea(电子工程系,釜山科学技术大学);Department of Electrons Engineering, Chungnam University, Daejeon, Republic of Korea(电子工程系,全南大学);Department of Electrical and Computer Engineering, Seoul National University, Seoul, Republic of Korea(电气与计算机工程系,首尔国立大学)
Jungyeon Koh, Hyeonsu Lyu, Jonggyu Jang, Hyun Jong Yang
How can we explain the influence of training data on black-box models? Influence functions (IFs) offer a post-hoc solution by utilizing gradients and Hessians. However, computing the Hessian for an entire dataset is resource-intensive, necessitating a feasible alternative. A common approach involves randomly sampling a small subset of the training data, but this method often results in highly inconsistent IF estimates due to the high variance in sample configurations. To address this, we propose two advanced sampling techniques based on features and logits. These samplers select a small yet representative subset of the entire dataset by considering the stochastic distribution of features or logits, thereby enhancing the accuracy of IF estimations. We validate our approach through class removal experiments, a typical application of IFs, using the F1-score to measure how effectively the model forgets the removed class while maintaining inference consistency on the remaining classes. Our method reduces computation time by 30.1% and memory usage by 42.2%, or improves the F1-score by 2.5% compared to the baseline.
Efficiently Sampling Functions from Gaussian Process Posteriors
Imperial College London(伦敦帝国学院);St. Petersburg State University(圣彼得堡国立大学);St. Petersburg Department of Steklov Mathematical Institute of Russian Academy of Sciences(俄罗斯科学院斯捷克洛夫数学研究所圣彼得堡分所);University College London(伦敦大学学院)