Sparse code shrinkage