ECT* Bridging machine learning and statistical field theory through generative and diffusion processes