Loading: Differentiating through Resilience