There is an older paper that also looks at gzip for ML: https://arxiv.org/abs/2212.09410
Video from tsoding where he implements the algorithm: https://www.youtube.com/watch?v=9n39SbRPXKQ