process sparse targets in GLM