Density ratios quantify distribution shift from a probability-mass point of view, whereas displacement fields describe, from a dynamical point of view, how one distribution is transported onto another. Although both offer complementary insights, they are usually estimated separately, and converting one into the other requires post-processing. In this paper, we estimate the density ratio between a target and a base distribution by parametrizing it through 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 gives both statistical and dynamical descriptions of the distribution shift through a single convex optimization problem. Iterating this estimate-and-move step gives two inference algorithms: push-forward moves the model and corrects a pretrained sampler without retraining it, whereas pull-back moves the data closer to the base and fits a transformation model one layer at a time. Applications to distribution shift in simulation-based inference and to nonlinear independent component analysis illustrate the benefits and limitations of the approach.
Figures & tables
Figure 1: Layer construction in the push-forward and pull-back algorithms. Push-forward appends Tk to the model output; pull-back applies Tk−1 to the current latent samples and refits the base between layers. In both panels, Φk maps the latent base to data.
Prior change
Simulator change
Partial coverage
Method
unimodal
bimodal
GLM
nreal=500
nreal=2000
covered
uncovered
Frozen NPSE
0.724 ± .001
0.760 ± .001
0.619 ± .002
0.619 ± .004
0.619 ± .004
0.632 ± .001
0.638 ± .003
PriorGuide, ODE
0.638 ± .028
0.634 ± .017
0.665 ± .014
×
×
×
×
PriorGuide + Langevin ∗†
0.511 ± .002
0.512 ± .001
0.543 ± .020
×
×
×
×
Classifier DRE + SIR ∗
0.816 ± .005
0.862 ± .003
0.717 ± .005
0.722 ± .009
0.721 ± .007
0.727 ± .004
0.759 ± .007
DG + Langevin ∗
0.531 ± .005
0.555 ± .002
0.559 ± .005
0.589 ± .002
0.575 ± .004
0.607 ± .009
0.859 ± .036
Table 1: Posterior correction in simulation-based inference: C2ST against reference posteriors ( 0.5 = indistinguishable; mean ± std). Best per column in bold, second best underlined (reference rows excluded). ∗ No tractable density. † Hyperparameters selected by test C2ST. × : not applicable; –: not evaluated. The last row reports retraining on new target simulations as a reference. Experimental details are in Appendix I .
Synthetic ( d=5 )
CMU ARCTIC
LibriSpeech
Method
nc=200
nc=1000
d=3
d=5
d=3
d=5
iVAE
0.484 ± 0.045
0.492 ± 0.067
0.538 ± 0.090
0.383 ± 0.034
0.578 ± 0.131
0.461 ± 0.069
GIN
0.602 ± 0.087
0.635 ± 0.055
0.645 ± 0.084
0.440 ± 0.037
0.575 ± 0.077
0.438 ± 0.037
SDRE (from scratch)
0.689 ± 0.061
0.673 ± 0.062
0.621 ± 0.150
0.518 ± 0.047
0.770 ± 0.068
0.537 ± 0.026
OSF ∗
0.795 ± 0.068
0.762 ± 0.084
0.854 ± 0.024
0.747 ± 0.046
0.850 ± 0.014
0.736 ± 0.046
GIN + SDRE
0.660 ± 0.104
0.687 ± 0.066
0.747 ± 0.090
0.587 ± 0.081
0.588 ± 0.056
0.467 ± 0.043
Table 2: Nonlinear ICA: validation MCC (mean ± std). Top: standalone estimators; bottom: pretrained models refined by SDRE . Best per column within each block is bold, excluding the starred standalone row. ∗ Uses oracle knowledge of the mixing architecture. Experimental details are in Appendix H .
Synthetic
ARCTIC
LibriSpeech
nc=200
nc=1000
d=3
d=5
d=3
d=5
wins
GIN
0.602
0.635
0.645
0.440
0.575
0.438
Extended training
0.619
0.658
0.623
0.433
0.587
0.445
+ SDRE
0.660
0.687
0.747
0.587
0.588
0.467
19/22
OSF
0.795
0.762
0.854
0.747
0.850
0.736
Extended training
0.837
0.856
0.858
0.771
0.833
0.790
Table 3: Refinement versus extended training: validation MCC (seed means). Extended training uses 4× the original training steps; “wins” counts seeds on which refinement beats extended training. Best per column within each model is bold. Experimental details are in Appendix H .
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 2: Iteration loops for the two inference algorithms of Section 4 .
Synthetic
ARCTIC
LibriSpeech
nc=200
nc=1000
d=3
d=5
d=3
d=5
wins
Structured flow (true arch.)
0.591 ± 0.071
0.574 ± 0.061
0.767 ± 0.144
0.614 ± 0.013
0.750 ± 0.139
0.651 ± 0.075
Extended training
0.604 ± 0.074
0.595 ± 0.072
0.759 ± 0.134
0.670 ± 0.095
0.756 ± 0.143
0.673 ± 0.065
+ SDRE
0.768 ± 0.076
0.734 ± 0.073
0.783 ± 0.166
0.704 ± 0.074
0.792 ± 0.160
0.712 ± 0.123
19/22
Appendix
Table 4: The true-architecture structured flow (leaky-ReLU activation), complementing Tables 2 and 3 : validation MCC (mean ± std over mixing seeds). Last column: seeds on which refinement beats extended training.
Pretrained model
no refinement
all 40 layers
oracle layer
κ=1
κ=4
κ=16
all
0.706
0.770
0.777
0.736 (15.2)
0.717 (5.2)
0.705 (1.4)
GIN
0.589
0.662
0.664
0.630 (8.6)
0.617 (3.4)
0.595 (0.4)
Structured (true)
0.706
0.769
0.788
0.726 (23.7)
0.694 (7.4)
0.691 (2.4)
Structured (tanh)
0.824
0.878
0.879
0.851 (13.4)
0.841 (4.9)
0.829 (1.3)
Appendix
Table 5: Stopping refinement by J^<κm/(2n) , post hoc on 42 traced 40-layer refinements (ARCTIC and LibriSpeech d=3 , ARCTIC 20 s d=3 , synthetic nc=200 ). Mean validation MCC at the stopping layer (mean number of accepted layers).
d=3
d=5
Method
5 s
20 s
5 s
20 s
iVAE
0.538 ± 0.090
0.573 ± 0.033 †
0.383 ± 0.034
0.494 ± 0.014
GIN
0.645 ± 0.084
0.525 ± 0.057
0.440 ± 0.037
0.432 ± 0.019
Structured flow (true arch.)
0.767 ± 0.144
0.792 ± 0.073
0.614 ± 0.013
0.627 ± 0.058
Structured flow (tanh)
0.854 ± 0.024
0.816 ± 0.017
0.747 ± 0.046
0.711 ± 0.062
SDRE (from scratch)
0.621 ± 0.150
0.598 ± 0.057
0.518 ± 0.047
0.480 ± 0.007
Appendix
Table 6: ARCTIC with 5 s versus 20 s per source (validation MCC, mean ± std over 3 seeds). The 20 s setting uses seven speakers with a different speaker subset per seed. † One iVAE run diverged; mean over 2 seeds.
Method
smooth_polarizers
color_mix
Supervised bound
0.946 ± 0.002
0.949 ± 0.008
Principal components (no unmixing)
0.754 ± 0.002
0.582 ± 0.013
FastICA (linear)
0.878 ± 0.001
0.815 ± 0.006
iVAE
0.798 ± 0.034
0.583 ± 0.016
GIN
0.638 ± 0.001
0.533 ± 0.026
Structured flow (true arch.)
0.665 ± 0.004
0.615 ± 0.006
Appendix
Table 7: Causal Chambers light tunnel ( lt_walks_v1 ): photodiode readings projected on their top three principal components (the six sensors come in near-duplicate pairs), 20 time segments, validation MCC against the recoverable actuators, mean ± std over 3 train/validation splits. Targets: red, blue and cos2 of the polarizer angle ( smooth_polarizers ); red, green, blue ( color_mix ). The supervised bound regresses each target on the inputs with random Fourier features.