sparse penalty term to average over a batch