Skip to main content
QUICK REVIEW

[Paper Review] Nonuniform Negative Sampling and Log Odds Correction with Rare Events Data

HaiYing Wang, Aonan Zhang|arXiv (Cornell University)|Oct 25, 2021
Imbalanced Data Classification TechniquesComputer Science36 references8 citations
TL;DR

This paper proposes a nonuniform negative sampling strategy with log odds correction to improve parameter estimation in rare events data, where positive instances are extremely scarce. By deriving optimal sampling probabilities and introducing a likelihood-based estimator that corrects for sampling bias, the method achieves the smallest asymptotic variance and outperforms inverse probability weighting, validated on simulated data and a real-world CTR dataset with 0.3 trillion instances.

ABSTRACT

We investigate the issue of parameter estimation with nonuniform negative sampling for imbalanced data. We first prove that, with imbalanced data, the available information about unknown parameters is only tied to the relatively small number of positive instances, which justifies the usage of negative sampling. However, if the negative instances are subsampled to the same level of the positive cases, there is information loss. To maintain more information, we derive the asymptotic distribution of a general inverse probability weighted (IPW) estimator and obtain the optimal sampling probability that minimizes its variance. To further improve the estimation efficiency over the IPW method, we propose a likelihood-based estimator by correcting log odds for the sampled data and prove that the improved estimator has the smallest asymptotic variance among a large class of estimators. It is also more robust to pilot misspecification. We validate our approach on simulated data as well as a real click-through rate dataset with more than 0.3 trillion instances, collected over a period of a month. Both theoretical and empirical results demonstrate the effectiveness of our method.

Motivation & Objective

  • To address parameter estimation challenges in rare events data with extreme class imbalance, where positive instances are rare compared to negatives.
  • To justify negative sampling as information-preserving when only positive instances are retained, by showing estimation accuracy depends only on positive sample size asymptotically.
  • To derive optimal nonuniform negative sampling probabilities that minimize the unconditional asymptotic variance of inverse probability weighted (IPW) estimators.
  • To develop a likelihood-based estimator via nonuniform log odds correction that achieves lower asymptotic variance than IPW and is more robust to model misspecification.
  • To validate the method on both simulated data and a real-world online CTR dataset with over 0.3 trillion instances.

Proposed method

  • The authors derive the asymptotic distribution of a general inverse probability weighted (IPW) estimator under general binary response models, showing that estimation error depends only on the number of positive instances.
  • They derive the optimal sampling probability for negative instances that minimizes the unconditional asymptotic variance of the IPW estimator, accounting for data randomness beyond conditional variance.
  • A likelihood-based estimator is proposed by correcting the log odds in the likelihood function to account for nonuniform sampling, improving efficiency over IPW.
  • The method uses a nonuniform weighting scheme in the log-likelihood to adjust for sampling bias, ensuring consistent parameter estimation under subsampling.
  • Theoretical analysis proves the proposed likelihood estimator has the smallest asymptotic variance among a broad class of estimators.
  • The approach is implemented and evaluated on a large-scale online CTR dataset with over 0.3 trillion instances, demonstrating scalability and robustness.

Experimental results

Research questions

  • RQ1Can negative sampling be used without information loss in rare events data, and under what conditions is this justified?
  • RQ2What is the optimal nonuniform sampling probability for negative instances that minimizes the asymptotic variance of the IPW estimator?
  • RQ3How can the estimation efficiency of IPW be improved, and does a likelihood-based approach with log odds correction yield lower variance?
  • RQ4How robust is the proposed likelihood estimator to model misspecification in the presence of non-uniform sampling?
  • RQ5Does the proposed method maintain superior performance on real-world, massive-scale rare events data such as online click-through rate prediction?

Key findings

  • The difference between the full data estimator and the true parameter converges to a normal distribution at a rate determined solely by the number of positive instances, justifying aggressive negative sampling.
  • When negative instances are subsampled to the same level as positive instances, information loss occurs and is quantified as variance inflation in the IPW estimator.
  • The optimal nonuniform sampling probability derived minimizes the unconditional asymptotic variance of the IPW estimator, outperforming uniform sampling.
  • The proposed likelihood-based estimator with nonuniform log odds correction achieves the smallest asymptotic variance among a large class of estimators, offering superior efficiency.
  • Empirical results on a real CTR dataset with over 0.3 trillion instances confirm the method’s effectiveness and scalability, with the likelihood-based estimator consistently outperforming IPW and other baselines.
  • The method remains robust under model misspecification, particularly when the true data-generating process deviates from linearity, as shown in ablation studies with non-linear activation functions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.