Lipschitz Density-Ratios, Structured Data, and Data-driven Tuning

Samory KpotufeAISTATS 2017

Abstract

Density-ratio estimation is a fundamental task in machine learning, yet it often suffers from the curse of dimensionality and the difficulty of parameter tuning. This paper demonstrates that density-ratio estimation is fundamentally "easier" than density estimation itself, with convergence rates depending only on the smoothness of the ratio and the intrinsic dimension of the data. We present a practical, data-driven tuning procedure that achieves near-optimal rates without prior knowledge of data geometry.

Introduction

Density-ratio estimation—calculating $f = f_Q/f_P$ for two unknown distributions—is a cornerstone of modern machine learning, essential for transfer learning, importance sampling, and two-sample testing. Traditional non-parametric estimation faces two major hurdles: the curse of dimensionality in high-dimensional spaces ($R^D$) and the requirement for "oracle" knowledge of smoothness or intrinsic dimension for parameter tuning.

This research addresses these challenges by exploring Lipschitz/Hölder smoothness conditions and leveraging "structured data" (e.g., data on low-dimensional manifolds) to bypass the curse of dimensionality.

Methodology: Truncated Local Averaging

The proposed approach utilizes a truncated local averaging estimator. The estimate $\hat{f}_r(x)$ is defined as the ratio of the empirical masses of a ball $B(x, r)$ under the two samples. To ensure stability, the estimator ignores regions where the denominator (the sample from $P$) is too small.

Data-driven Tuning

A key contribution is Procedure 1 (Stability-based Tuning), a data-driven method inspired by Lepski’s method. Unlike cross-validation, which can be unstable for ratios, this algorithm starts with a small bandwidth $r$ and increases it until the estimate becomes "unstable"—meaning the change in the estimate exceeds a calculated variance surrogate.

Illustration of stability-based tuning (Lepski's method)

Theoretical Insights

  • Ratio Smoothness: The difficulty of estimation depends on the smoothness of the ratio $f$, not the individual densities $f_Q$ and $f_P$. Even if both densities are complex, a smooth ratio makes the problem tractable.
  • Intrinsic Dimension: Performance scales with the data's actual complexity (covering dimension $d$), not its ambient dimension $D$. This allows the estimator to perform efficiently on high-dimensional data lying on low-dimensional manifolds.
  • Minimax Optimality: The derived rates $(n \wedge N)^{-\beta/(2\beta+d)}$ match known lower bounds, proving the estimator's efficiency.

Key Results and Empirical Validation

The theory was validated using controlled synthetic datasets in $R^{20}$ and $R^{30}$, where distributions were supported on 1D lines ($d=1$).

Simulation results showing f-estimates and error curves across different bandwidths

As shown in the simulation results above, the data-driven choice of $r$ closely tracks the error of the best possible theoretical bandwidth, even in high ambient dimensions. This confirms that unsupervised tuning using stability as a proxy for the bias-variance tradeoff is effective.

Conclusion and Future Work

While the proposed estimator achieves near-optimal rates, some limitations remain. The tuning procedure requires a rough initial upper bound on the density ratio, which can be sensitive in small-sample regimes. Future work could extend this "first-order" estimator to higher-order smoothness conditions and further refine initial estimates for scarce data scenarios.

Summary updated

BibTeX
@inproceedings{kpotufe2017lipschitz,
  author = {Samory Kpotufe},
  title = {{Lipschitz Density-Ratios, Structured Data, and Data-driven Tuning}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2017},
}
Figure