Variable selection in the curse of dimensionality