Add sparsification to decoders and test script