Abstract
We consider the problem of estimating the parameters of a $d$-dimensional rectified Gaussian distribution from i.i.d. samples. A rectified Gaussian distribution is defined by passing a standard Gaussian distribution through a one-layer ReLU neural network. We give a simple algorithm to estimate the parameters (i.e., the weight matrix and bias vector of the ReLU neural network) up to an error $\epsilon||W||_F$ using $\tilde{O}(1/\epsilon^2)$ samples and $\tilde{O}(d^2/\epsilon^2)$ time. This implies that we can estimate the distribution up to $\epsilon$ in total variation distance using $\tilde{O}(\kappa^2d^2/\epsilon^2)$ samples, where $\kappa$ is the condition number of the covariance matrix. Our only assumption is that the bias vector is non-negative. Without this non-negativity assumption, we show that estimating the bias vector within any error requires the number of samples at least exponential in the infinity norm of the bias vector. Our algorithm is based on the key observation that vector norms and pairwise angles can be estimated separately. We use a recent result on learning from truncated samples. We also prove two sample complexity lower bounds: $\Omega(1/\epsilon^2)$ samples are required to estimate the parameters up to error $\epsilon$, while $\Omega(d/\epsilon^2)$ samples are necessary to estimate the distribution up to $\epsilon$ in total variation distance. The first lower bound implies that our algorithm is optimal for parameter estimation. Finally, we show an interesting connection between learning a two-layer generative model and non-negative matrix factorization.
Introduction
Modern generative models like GANs and VAEs are incredibly powerful but often lack theoretical guarantees regarding sample complexity and convergence. This work addresses a fundamental version of this problem: learning a Rectified Gaussian distribution. This distribution is formed by taking a standard Gaussian latent variable $z \sim \mathcal{N}(0, I)$, passing it through a one-layer ReLU neural network $x = \text{ReLU}(Wz + b)$, and observing only the output $x$. The objective is to recover the weight matrix $W$ and the bias vector $b$.
The problem presents two primary challenges. First, the ReLU function is non-invertible, as it maps all negative inputs to zero, complicating maximum likelihood estimation. Second, if the bias $b$ is significantly negative, the "vanishing" problem occurs: most samples become zero, effectively hiding the information needed for parameter recovery.
Methods
The proposed approach decouples the estimation of magnitudes and directions into a two-step algorithm.
1. Estimating Norms and Bias
The algorithm treats each coordinate of the output independently. Each coordinate follows a univariate Gaussian distribution truncated at zero. To estimate the parameters of these truncated Gaussians, the authors adapt techniques for estimation from truncated samples. Specifically, they employ a projected Stochastic Gradient Descent (SGD) approach to find the bias $b_i$ and the row norms of $W$.
As shown in Algorithm 2 and 3, the NormBiasEst procedure utilizes ProjSGD to iteratively refine the parameter estimates. This step is crucial for handling the non-invertibility of the ReLU activation and the truncation of the Gaussian samples.
2. Estimating Angles
To determine the relationship between different rows of $W$, the algorithm exploits a geometric property of Gaussians: the probability that two coordinates are simultaneously positive is directly related to the angle between their corresponding weight vectors. By calculating the empirical frequency of pairs of non-zero outputs, the pairwise angles can be estimated.
Finally, the row norms and angles are combined to reconstruct the matrix $WW^T$. Note that $W$ is identifiable only up to a rotation, which is sufficient to define the generated distribution.
Key Insights
- Non-Negativity Necessity: A critical finding is that if the bias $b$ can be negative, the sample complexity grows exponentially with the bias magnitude. The assumption $b \ge 0$ makes the problem computationally tractable (polynomial time and samples).
- Optimal Complexity: The paper establishes a lower bound of $\Omega(1/\epsilon^2)$ for parameter estimation, proving that the proposed algorithm is statistically optimal for this task.
Results
The algorithm's performance was validated using synthetic datasets where $z$ is drawn from a $k$-dimensional standard Gaussian, $W$ is a random orthonormal matrix, and $b$ is a random non-negative vector.
- Sample Complexity: Parameters are estimated within error $\epsilon$ using $\tilde{O}(1/\epsilon^2)$ samples.
- Total Variation (TV) Distance: To ensure the learned distribution is close to the true distribution in TV distance, the complexity scales as $\tilde{O}(\kappa^2 d^2 / \epsilon^2)$, where $\kappa$ is the condition number of the covariance matrix.
- Computational Efficiency: The algorithm runs in $\tilde{O}(d^2/\epsilon^2)$ time, demonstrating high efficiency for high-dimensional data.
- Empirical Validation: Experiments confirm that parameter estimation error is independent of dimension $d$, while distribution error (KL divergence) increases with $d$ and $\kappa$, aligning with theoretical predictions.
Discussion and Limitations
While this work provides the first provable guarantees for learning single-layer ReLU generative models, several avenues for future research remain:
- Architecture Depth: The current proofs are limited to one-layer networks. Extending these to multi-layer architectures is a significant open challenge.
- Bias Constraints: Although the non-negative bias assumption is theoretically justified, real-world models often utilize negative biases. Finding ways to relax this is a logical next step.
- Robustness: The model assumes noiseless ReLU outputs. Exploring the robustness of this geometric approach to noise and model misspecification (agnostic learning) is necessary for broader applicability.
Summary updated