[2301.05744] Adaptive Neural Networks Using Residual Fitting