Stochastic Amortization: A Unified Approach to Accelerate Feature and Data Attribution