Efficient Differentiable Approximation of Generalized Low-rank Regularization