rank-based colouring; log-linear quantization