NN-based compression