Relative Density-Ratio Estimation for Robust Distribution Comparison

Makoto Yamada, Taiji Suzuki, Takafumi Kanamori, Hirotaka Hachiya, Masashi Sugiyama · DOI

TL;DR

This paper introduces a new method for comparing probability distributions called "a-relative divergence estimation." By focusing on smoother "a-relative density ratios" instead of the potentially wild "ordinary density ratios," the authors achieve more robust and faster convergence in tasks like outlier detection and transfer learning. Crucially, their method is less prone to overfitting, even with complex models.

What Problem Does This Paper Address?

Comparing probability distributions is fundamental to many machine learning tasks, including outlier detection, determining if two datasets come from the same distribution (two-sample homogeneity test), and adapting models to new data distributions (transfer learning). A common approach is to estimate the "divergence" between distributions, often by directly approximating the ratio of their probability density functions (PDFs). However, these density ratios can be highly "fluctuating" or even "diverge to infinity," making estimation difficult and unreliable, especially when the denominator PDF is small. This instability hinders the practical application of these methods.

Methods

The core innovation is the introduction of a-relative divergence and the estimation of a-relative density ratios. Instead of directly estimating $p(x)/p'(x)$, the authors propose estimating $p(x) / (\alpha p(x) + (1-\alpha)p'(x))$, where $\alpha$ is a parameter between 0 and 1. This "a-relative density ratio" is guaranteed to be bounded (by $1/\alpha$), making it inherently smoother and more stable than the ordinary density ratio.

The estimation is performed using a kernel-based approach called Relative Unconstrained Least-Squares Importance Fitting (RuLSIF). This method directly approximates the a-relative density ratio by minimizing an expected squared error, incorporating regularization to prevent overfitting. When $\alpha=0$, RuLSIF reduces to the standard uLSIF method.

The paper also provides theoretical analysis of the proposed method, deriving non-parametric convergence rates and analyzing the asymptotic variance under parametric assumptions. They show that the a-relative divergence estimator has an asymptotic variance that is independent of model complexity, suggesting robustness against overfitting.

Datasets

The paper uses several datasets for evaluation:

  • Artificial Datasets: Used for illustrative examples and theoretical analysis, including various Gaussian distributions and mixtures.
  • IDA Repository: A collection of binary classification datasets used for two-sample homogeneity testing.
  • Speech Dataset: An in-house speech dataset for outlier detection.
  • 20 Newsgroup Dataset: A text dataset used for outlier detection.
  • USPS Hand-written Digit Dataset: A dataset of digit images used for outlier detection.
  • Human Activity Recognition Dataset: A real-world dataset from accelerometer data collected by iPod touch, used for transfer learning.

Key Insights and Ideas

  • Smoothness is Key: The fundamental insight is that by "smoothing" the density ratio through the $\alpha$-mixture, the estimation problem becomes significantly more tractable and robust. This is a clever way to sidestep the "curse of dimensionality" and the instability of direct density ratio estimation.
  • Overfitting Resistance: The theoretical analysis showing that the asymptotic variance is independent of model complexity is a major win. This means researchers can use more complex models without fear of overfitting, which is a common problem in density estimation.
  • Parameter $\alpha$ as a Trade-off: The parameter $\alpha$ offers a tunable trade-off. Larger $\alpha$ leads to smoother density ratios and better non-parametric convergence, while smaller $\alpha$ might be more sensitive to subtle differences but can be less stable. The paper explores how $\alpha$ impacts performance across different tasks.

Key Results

  • Improved Convergence: The proposed a-relative divergence estimators achieve better non-parametric convergence rates compared to standard density-ratio based methods, especially when ordinary density ratios are unbounded.
  • Robustness to Model Complexity: In parametric settings, the estimator's variance is independent of model complexity, indicating strong resistance to overfitting.
  • Experimental Success: RuLSIF demonstrated strong performance across various tasks:
  • Two-Sample Homogeneity Test: Adaptive LSTT with $\alpha=0.5$ showed comparable or better type-I error control and improved type-II error performance compared to other methods like MMD.
  • Outlier Detection: RuLSIF achieved competitive AUC scores, with performance varying based on $\alpha$ and dimensionality. Larger $\alpha$ was found to be more favorable in higher dimensions.
  • Transfer Learning: Relative importance weighting (RIW-LS) with $\alpha=0.5$ outperformed standard importance weighting and exponentially-flattened methods, showing improved test accuracy and reduced variance, especially under covariate shift.

Limitations and Future Work

  • Parameter Tuning: The performance of RuLSIF depends on the choice of the kernel function (e.g., kernel width $\sigma$) and the regularization parameter $\lambda$. While cross-validation can be used, it adds computational overhead.
  • Choice of $\alpha$: While the paper explores the impact of $\alpha$, finding the optimal $\alpha$ for a specific task might require further investigation. The paper suggests that middle values of $\alpha$ often provide a good balance.
  • Broader Applications: The authors suggest that the relative density-ratio approximator could be promising for many other machine learning problems beyond the ones explored, such as multi-task learning, independence testing, and causal inference. This opens up avenues for future research.

Summary updated

BibTeX
@inproceedings{yamada2011relative,
  author = {Makoto Yamada and Taiji Suzuki and Takafumi Kanamori and Hirotaka Hachiya and Masashi Sugiyama},
  title = {{Relative Density-Ratio Estimation for Robust Distribution Comparison}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2011},
}
Figure