Reserve sparse vector space when computing sparse gradients.