Try to accelerate model gradient computation.