Density ratios and displacement fields offer complementary views of distribution shift: one describes the change in probability mass, the other describes how one distribution is transported onto another. In practice, they are usually estimated separately, and converting one into the other requires post-processing. A new arXiv preprint by Song Liu proposes a method that estimates both simultaneously through a single convex optimization.

The key idea is to parametrize the density ratio between a target and a base distribution using a displacement field acting on the base. The log-ratio is modeled as minus the Stein operator of the base applied to the field, up to a normalizing constant. This formulation gives both statistical and dynamical descriptions of the shift without needing a separate conversion step.

By iterating this estimate-and-move step, the author derives two inference algorithms. Push-forward moves the model and corrects a pretrained sampler without retraining it, while pull-back moves the data closer to the base and fits a transformation model one layer at a time. The paper demonstrates the approach on distribution shift in simulation-based inference and on nonlinear independent component analysis, illustrating both its benefits and its limitations.