Diffusion stochastic optimization for min-max problems