Normalizing Flow Density Estimation (RealNVP)
A normalizing flow models a joint density by an invertible transformation that maps the data to standard normal noise; the change-of-variables formula then gives the exact density. RealNVP builds the transformation from affine coupling layers, in which half of the variables shift and rescale the other half.
정규화 흐름은 자료를 표준정규 잡음으로 보내는 가역 변환으로 결합 밀도를 나타내고, 변수변환 공식으로 정확한 밀도를 얻습니다. RealNVP는 변수의 절반이 나머지 절반을 이동하고 늘리거나 줄이는 아핀 결합층을 쌓아 이 변환을 만듭니다.
Can I estimate the joint density of several variables flexibly enough to capture curved, skewed or multimodal shapes?
여러 변수의 결합 밀도를 휘어지거나 치우치거나 봉우리가 여럿인 모양까지 잡을 만큼 유연하게 추정하고 싶습니다.
The method standardises the data and fits a stack of affine coupling layers, each with a small neural network giving scales and shifts, by maximising the exact log-likelihood with L-BFGS. The held-out mean log-likelihood is compared with a multivariate normal distribution and a Gaussian kernel density estimate.
When to use Normalizing Flow Density Estimation (RealNVP)
- You need a density of two or more variables with nonlinear dependence.
- You want exact log-likelihoods for comparing density models on held-out data.
- A multivariate normal is clearly too simple for your data.
When to use something else
- You have a single variable: use Kernel Density Estimation
- You need a conditional distribution of an outcome given predictors: use Mixture Density Network
- You want clusters rather than a density: use Gaussian Mixture Model (GMM)
Assumptions and requirements
- Continuous variables without exact ties or point masses
- Independent rows
- Enough rows for the number of parameters
What the analysis reports
- Training and held-out mean log-likelihood
- The same for a multivariate normal and a kernel density estimate
- Number of parameters and convergence
- Mean and spread of held-out latent codes
How to report it
A RealNVP flow with [value] coupling layers gave a held-out mean log-likelihood of [value] nats per row against [value] for a multivariate normal distribution.
Related methods
- Kernel Density Estimation
- Gaussian Mixture Model (GMM)
- Noise-Contrastive Estimation of an Unnormalised Density
- Mixture Density Network
How this method is validated
이 방법의 검증 근거
- Independent computation. 3 reference tests compare the results with reference values computed independently in the test suite.
독립 계산. 시험에서 따로 계산한 참조값 대조 참조 시험 3건 통과.
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 Normalizing Flow Density Estimation (RealNVP) on Quorant
- Data you need
- a table (CSV or Excel) with predictor (feature) columns
- Price
- 600 credits for one analysis up to 10,000 rows (complexity level 4); larger or wider data costs more. Optional methodologist review: 2400 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.