Bounding generalization error with input compression: An empirical study with infinite-width networks