Score Matching for Energy-Based Models
Score matching fits an energy-based model, a density known only up to its normalising constant, by matching the gradient of the model's log-density to that of the data. The method uses energies that are linear in their parameters, a Gaussian energy (a precision matrix and a linear term) or a quartic energy that adds cubic and fourth-power terms for skewed or heavy-tailed data, for which the estimate has a closed form.
점수 맞춤은 정규화 상수를 모르는 밀도, 즉 에너지 기반 모형을 모형 로그밀도의 기울기를 자료의 것과 맞추는 방식으로 적합합니다. 방법은 모수에 대해 선형인 에너지를 쓰며, 정밀도 행렬과 선형항으로 된 가우스 에너지 또는 비대칭이거나 꼬리가 두꺼운 자료를 위해 3차와 4차 항을 더한 4차 에너지를 닫힌 형태로 추정합니다.
What multivariate density, including non-Gaussian shapes, best describes my continuous variables when the normalising constant is intractable?
정규화 상수를 계산할 수 없을 때, 비정규 형태를 포함해 내 연속형 변수들을 가장 잘 설명하는 다변량 밀도는 무엇입니까?
The method reports every energy parameter with a sandwich standard error, z and p value, the Hyvarinen score of the fit, and cross-validated Hyvarinen scores of the Gaussian and quartic energies so you can see whether the extra terms help. For the Gaussian energy it also gives partial correlations, and it checks that the fitted energy defines a proper density.
When to use Score Matching for Energy-Based Models
- You want a density model whose normalising constant cannot be computed in closed form.
- You want to test whether a non-Gaussian energy improves on a Gaussian one.
- You want conditional-dependence estimates (precision matrix) without maximum likelihood.
When to use something else
- You need a flexible one-dimensional density curve: use Kernel Density Estimation
- You want a neural density model you can sample from: use Normalizing Flow Density Estimation (RealNVP)
- You prefer a classification-based fit of an unnormalised density: use Noise-Contrastive Estimation of an Unnormalised Density
Assumptions and requirements
- Variables are continuous with a smooth density on the whole real line
- The score of the density vanishes in the tails
- Enough rows per energy parameter
What the analysis reports
- Energy parameters with sandwich SE, z and p
- In-sample and cross-validated Hyvarinen scores
- Partial correlations (Gaussian energy)
- Normalisability check
How to report it
A quartic exponential-family energy for [value] variables ([value] rows, [value] parameters) was estimated by score matching; the 5-fold cross-validated Hyvarinen score was [value] for the Gaussian and [value] for the quartic energy.
Related methods
- Noise-Contrastive Estimation of an Unnormalised Density
- Normalizing Flow Density Estimation (RealNVP)
- Kernel Density Estimation
- Variational Bayesian Gaussian Mixture Model
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with SciPy and direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-4.
독립 계산. SciPy·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과(허용오차 1e-4).
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Score Matching for Energy-Based Models on Quorant
- Data you need
- a table (CSV or Excel) with predictor (feature) columns
- Price
- 400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.