I was looking into gradient flows and their particle representations, mostly in the context of probability.
A simple example of this is the continuity equation. Consider evolving a sample $x \sim \rho_0(x)$ using the ODE $\dot x(t) = v(x(t), t)$, with $v$ a vector field. We have $x(0) \sim \rho_0(x)$. The continuity equation tells us that the marginal density evolves in time following the PDE $\frac{\partial{\rho_t(x)}}{\partial{t}} + \nabla \cdot (v(x, t) \rho_t(x))$. This is described for instance here.
In that same reference here, they show two more examples where we have this correspondence between some PDE determining how a density evolves and the particle representation. (One of the examples is the Fokker-Planck equation.)
My question is, is there some intuition to explain this relationship between the particle representations and the PDE for the density? Are there simple rules that determine how can we move from one to the other. In the same video, at some point they say this step requires some creativity, but would still be interested in hearing people's thoughts. Given a nice enough PDE for the time evolution of a density, can we always find the particle representation? And the other way around?
References are appreciated! Just as background, I'm from Computer Science. I'm very comfortable with multivariate Calculus, algebra, etc, but real analysis is not my strong suite (though I did take a class). At this point I'm not that interested in formal proofs / statements as much as getting intuition about what's happening.