Approximate co-sufficient sampling with regularization

Wanrong Zhu, Rina Foygel BarberarXiv 2023 · DOI

Abstract

In this work, we consider the problem of goodness-of-fit (GoF) testing for parametric models. This testing problem involves a composite null hypothesis, due to the unknown values of the model parameters. In some special cases, co-sufficient sampling (CSS) can remove the influence of these unknown parameters via conditioning on a sufficient statistic—often, the maximum likelihood estimator (MLE) of the unknown parameters. However, many common parametric settings do not permit this approach, since conditioning on a sufficient statistic leads to a powerless test. The recent approximate co-sufficient sampling (aCSS) framework of Barber and Janson (2022) offers an alternative, replacing sufficiency with an approximately sufficient statistic (namely, a noisy version of the MLE). This approach recovers power in a range of settings where CSS cannot be applied, but can only be applied in settings where the unconstrained MLE is well-defined and well-behaved, which implicitly assumes a low-dimensional regime. In this work, we extend aCSS to the setting of constrained and penalized maximum likelihood estimation, so that more complex estimation problems can now be handled within the aCSS framework, including examples such as mixtures-of-Gaussians (where the unconstrained MLE is not well-defined due to degeneracy) and high-dimensional Gaussian linear models (where the MLE can perform well under regularization, such as an $\ell_1$ penalty or a shape constraint).

Introduction

Goodness-of-fit (GoF) testing is a fundamental task in statistics, designed to determine whether a given dataset follows a specific parametric model. However, real-world applications often involve unknown parameters ($\theta$), creating a "composite null hypothesis." Traditional methods like Co-Sufficient Sampling (CSS) attempt to eliminate the influence of these parameters by conditioning on a sufficient statistic. While theoretically sound, CSS often fails in modern statistical settings—such as logistic regression—where the sufficient statistic is so informative that it leaves no remaining randomness in the data, resulting in a test with zero power.

To address this, the approximate co-sufficient sampling (aCSS) framework was recently introduced. By conditioning on a noisy version of the Maximum Likelihood Estimator (MLE), aCSS preserves testing power. However, the original aCSS framework was limited to unconstrained, low-dimensional models. This paper extends aCSS to handle constrained and penalized maximum likelihood estimators, enabling robust testing for high-dimensional and degenerate models.

Methodology: Regularized aCSS

The authors introduce Regularized aCSS, which utilizes a perturbed and regularized optimization problem to find an estimate $\hat{\theta}$:

$$\hat{\theta} = \text{argmin}_{\theta \in \Theta} \{ -\log f(X; \theta) + R(\theta) + \sigma W^\top \theta \}$$

In this formulation, $R(\theta)$ represents a regularizer (such as an $\ell_1$ penalty for sparsity or a shape constraint), and $\sigma W^\top \theta$ is a small Gaussian noise term added to prevent the estimator from overfitting the data realization too perfectly.

A critical innovation in this work is the identification of the approximately sufficient statistic. In the unconstrained case, conditioning on $\hat{\theta}$ was sufficient. However, in constrained optimization—where the estimator may lie on a boundary—the authors demonstrate that one must condition on both the estimate $\hat{\theta}$ and the gradient of the loss function at that estimate ($\hat{g}$). This pair allows for the reconstruction of the original noise and the derivation of a valid conditional density for the data.

The Algorithm

The Regularized aCSS procedure follows four primary steps:

  1. Optimization: Solve the regularized and perturbed optimization problem to obtain $(\hat{\theta}, \hat{g})$.
  2. Conditional Density Calculation: Determine the specific conditional distribution of the data given the approximately sufficient statistics.
  3. Sampling: Generate "copies" of the data from this conditional distribution. In complex cases where closed-form solutions are unavailable, Markov Chain Monte Carlo (MCMC) methods are employed.
  4. Testing: Compare the original data to the generated copies to calculate a valid p-value.

Theoretical Insights

The paper provides several key theoretical contributions regarding the validity and efficiency of the regularized approach:

  • Error Control: The authors prove that the Type I error inflation is proportional to the estimation error $\|\hat{\theta} - \theta_0\|$. By using regularization to improve estimation accuracy in high dimensions, the validity of the GoF test is actually enhanced.
  • Effective Dimensionality: In sparse models, the error bounds are shown to depend on the number of non-zero parameters (effective dimension) rather than the total number of features ($d$). This justifies the use of the method even when $d \gg n$.
  • Gaussian Efficiency: For Gaussian linear models, the authors identify an $O(\sqrt{d})$ improvement in error bounds, allowing for larger noise perturbations ($\sigma$) which directly translates to higher testing power.

Empirical Performance

The framework was evaluated across three challenging simulated scenarios:

  1. Gaussian Mixture Models (GMM): Where constraints prevent the likelihood from becoming degenerate.
  2. Isotonic Regression: Where parameters are constrained to be monotonic.
  3. Sparse Regression: High-dimensional linear models using Lasso penalties.

In all simulations, Regularized aCSS maintained the Type I error at the nominal 5% level. In contrast, the original unconstrained aCSS failed significantly, often rejecting the true model at rates of 40-100% as noise increased. Furthermore, the method demonstrated superior power compared to "Universal Inference" (a split-sample method), as it utilizes the entire dataset for both estimation and testing.

Conclusion and Future Work

Regularized aCSS extends the reach of GoF testing to complex, high-dimensional regimes that were previously inaccessible. While the method is robust and theoretically grounded, it faces computational challenges. Sampling from the conditional distribution often requires MCMC, which can be intensive. Future research aims to improve sampling efficiency and extend the framework from linear constraints to non-linear or manifold constraints, further broadening the applicability of co-sufficient sampling in modern data science.

Summary updated

BibTeX
@misc{zhu2023approximate,
  author = {Wanrong Zhu and Rina Foygel Barber},
  title = {{Approximate co-sufficient sampling with regularization}},
  year = {2023},
  eprint = {2309.08063},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.08063},
}

Loading related content...

Figure