add sparse penalty for encoders