Label quantization