Diffusion-model approach to flavor models: A case study for S′ 4 modular flavor model | Synapse