Perhaps the solution could be approached from the receiving end, during decompression, given some kind of information about the appropriate form of the decompressed stream.
Like feed in a compressed file (OGG or whatever) feed in a lossless file (FLAC say) and have the [ML] system create an algorithm to run at the receiver that will more closely approximate the lossless output.
This has been done before surely, like compression with varying decompression algos the characteristics of which are sent with the compressed stream to enable more optimal reproduction of the originally encoded data??