Similar Items: Nonparametric Estimation of a Factorizable Density using Diffusion Models