Surprised no one has tried to build a GANN to do this (remove JPEG artifacts).
Denoiser in ray tracing are quite a success, and this strikes me as quite similar.
In fact, now that I think of it, you probably don't even need a GANN, since you can create an infinite training set for quasi-free.