NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Robust Score Matching

Richard Schwank, Andrew McCormack, Mathias Drton

Abstract

Parameter estimation in complex statistical models often involves intractable normalizing constants. Score matching (SM) offers a computationally efficient alternative by matching the derivatives of the model and data densities. However, standard SM is highly sensitive to outliers. This paper introduces a robust score matching framework that utilizes the Geometric Median of Means (GMoM) to achieve resilience against data contamination while preserving the convexity of the optimization problem. Empirical results on synthetic and real-world datasets demonstrate significant improvements in support recovery and estimation accuracy compared to classical methods.

Introduction

Exponential families are fundamental to modern machine learning, yet their application is often hindered by the "normalizing constant" problem—the requirement to calculate a partition function that is often mathematically intractable. Score matching (SM) sidesteps this by focusing on the gradient of the log-density, or the "score." While efficient, SM relies on empirical averages, making it notoriously fragile in the presence of even a small percentage of outliers.

Existing robust statistical methods often sacrifice the convexity of the objective function, leading to difficult optimization landscapes with numerous local minima. This paper addresses this gap by proposing a robust estimator that maintains the attractive computational properties of standard score matching.

Methodology: Geometric Median of Means (GMoM)

The core innovation is the replacement of the standard empirical mean in the score matching loss function with the Geometric Median of Means (GMoM).

The GMoM approach involves two steps:

  1. Partitioning: The dataset is divided into $K$ disjoint blocks, and the sample mean is calculated for each block.
  2. Geometric Median: The final estimator is the geometric median of these block means.

Unlike a simple component-wise median, the geometric median is a convex combination of its inputs. This property is crucial as it ensures the resulting robust loss function remains quadratic and convex, allowing for efficient global optimization. For high-dimensional "wide" data, the authors incorporate $\ell_1$-regularization to facilitate support recovery, identifying the underlying network structure of the variables.

Experimental Results

Synthetic Support Recovery

The method was tested on simulated graphical models with contamination introduced via heavy-tailed Pareto distributions. As shown in Figure 1, the robust GMoM estimator significantly outperforms the classic SM estimator in contaminated settings.

ROC curves for support recovery under contamination, comparing GMoM SM with Classic SM across different sample sizes.

While classic SM performance degrades sharply when data is corrupted (dashed red line), the GMoM version (solid red line) maintains an Area Under the ROC Curve (AUC) much closer to its performance on clean data.

Alps Precipitation Modeling

The framework was applied to a real-world dataset of monthly precipitation from 30 weather stations across the Alps. Using the known topography of the Alps as a ground truth, the authors evaluated the "False Discovery Rate"—the frequency of the model predicting edges (dependencies) that cross the highest mountain peaks, which act as natural weather barriers.

False discovery rates (percentage of edges crossing mountain barriers) in the Alps precipitation dataset under varying contamination levels.

As detailed in Figure 3, the GMoM SM method consistently achieves lower error rates than both classic SM and standard Gaussian Graphical Models (GGM). At 5% contamination, GMoM SM reduced the false discovery rate to 7.0%, nearly half that of classic SM (13.5%).

Conclusion

Robust Score Matching provides a powerful tool for parameter estimation in the presence of outliers. By leveraging the Geometric Median of Means, the method achieves robustness without sacrificing the convexity that makes score matching scalable to high-dimensional problems. Future work includes automating the selection of the block parameter $K$ and extending the framework to handle cellwise corruption.

This paper was presented at AISTATS 2025.

Summary updated

BibTeX
@inproceedings{schwank2025robust,
  author = {Richard Schwank and Andrew McCormack and Mathias Drton},
  title = {{Robust Score Matching}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=kObf5fh99b},
}
Figure