-
Notifications
You must be signed in to change notification settings - Fork 4
Description
I'm using a dataset contains airplanes and cars (910 train+390 test) from ImageNet, and trained several fine-tuned models including vgg16_bn, mobilenetv2, alexnet, resnet50. I tried to use this code to diagnose models by influence functions, but I found that it's really hard to make h_estimate stabilize or converge, which makes the influences output of a same test point different every time and makes top N influential train points varies every time.
The picture following is the results of h_estimate when I tried to calculate influence on a test point with resnet50. The original paper suggested that we make r*depth = len(trainset), and I have tried different combinations of r and depth. When the depth is big, like 500 (less than len(trainset)), the est_norm goes larger and larger and finally ends up with inf. So I keep depth small like 50 or 100, and make r large like 10 or 20. However, the est_norm still doesn't seem to converge. I would like to ask that is there any tricks to stabilize h_estimate? I'm really stuck here...

Thank you very much!