[Paper Review] Differentiable PAC–Bayes Objectives with Partially Aggregated Neural Networks
This paper introduces partially aggregated Monte Carlo estimators for stochastic neural networks, enabling lower-variance gradient estimation in non-differentiable signed-output networks. It derives a directly differentiable PAC-Bayesian objective that yields tighter generalization bounds without surrogate losses, achieving a bound twice as tight as Letarte et al. (2019) on similar networks while enabling stable training via pathwise gradients.
We make two related contributions motivated by the challenge of training stochastic neural networks, particularly in a PAC–Bayesian setting: (1) we show how averaging over an ensemble of stochastic neural networks enables a new class of partially-aggregated estimators, proving that these lead to unbiased lower-variance output and gradient estimators; (2) we reformulate a PAC–Bayesian bound for signed-output networks to derive in combination with the above a directly optimisable, differentiable objective and a generalisation guarantee, without using a surrogate loss or loosening the bound. We show empirically that this leads to competitive generalisation guarantees and compares favourably to other methods for training such networks. Finally, we note that the above leads to a simpler PAC–Bayesian training scheme for sign-activation networks than previous work.
Motivation & Objective
- To address the challenge of training stochastic neural networks in the PAC-Bayesian framework, particularly when non-differentiable activation functions like sign lead to high-variance gradient estimates.
- To close the gap between PAC-Bayesian bounds and optimization objectives by deriving a differentiable, directly optimizable objective that preserves the tightness of the original bound.
- To improve generalization guarantees by reformulating a PAC-Bayesian bound for signed-output networks using aggregation, avoiding the use of surrogate losses or loosened bounds.
- To develop a new class of partially aggregated estimators that balance analytical tractability and computational feasibility for deep stochastic networks.
Proposed method
- Proposes a partially aggregated Monte Carlo estimator that averages outputs across multiple forward passes while maintaining gradient pathwise estimation, reducing variance compared to REINFORCE and naive Monte Carlo.
- Derives a new PAC-Bayesian bound for signed-output networks by combining aggregation with Catoni's (2007) bound formulation, ensuring the bound remains directly optimizable and differentiable.
- Uses the linearity of the linear loss and Jensen’s inequality to equate the expected misclassification loss with the loss of the Q-aggregated predictor, enabling differentiability despite non-differentiable sign activations.
- Introduces two training objectives: 'fix-λ' with a fixed regularization parameter and 'optim-λ' that tunes λ automatically via the bound, enabling adaptive regularization.
- Employs pathwise gradient estimation by standardizing the parameter distribution (e.g., via z = (θ - μ)/σ), allowing low-variance gradients even with non-differentiable output functions.
- Applies the framework to fully connected neural networks with sign, sigmoid, or ReLU activations, using isotropic normal priors and posterior distributions for parameter uncertainty.
Experimental results
Research questions
- RQ1Can partially aggregated estimators reduce gradient variance in non-differentiable signed-output neural networks compared to REINFORCE and naive Monte Carlo?
- RQ2Can a PAC-Bayesian bound for signed-output networks be reformulated into a directly differentiable objective without using surrogate losses or loosening the bound?
- RQ3Does the proposed method yield tighter generalization guarantees than prior work, particularly Letarte et al. (2019), on similar network architectures?
- RQ4Can the 'optim-λ' objective automatically tune regularization strength during training, improving generalization without manual hyperparameter tuning?
Key findings
- The proposed partially aggregated estimators achieve lower-variance gradient estimates than REINFORCE and naive Monte Carlo for non-differentiable signed-output networks.
- The derived PAC-Bayesian objective is directly differentiable and yields a generalization bound that is twice as tight as that of Letarte et al. (2019) on the same network type.
- On binary-MNIST, the 'optim-λ' objective achieved a test 0-1 error of 5.61% with a non-vacuous bound of 16.0% (δ=0.05), outperforming the baseline PBGNet model in terms of bound tightness.
- The 'fix-λ' objective with λ = m = 60,000 achieved a test 0-1 error of 5.41% and a bound of 16.0%, demonstrating competitive performance with stable training.
- The method enables training of deep, multi-layer, non-differentiable neural networks in the PAC-Bayesian setting, which was previously challenging due to high-variance gradients.
- Despite tighter theoretical bounds, the non-stochastic ReLU MLP baseline achieved lower test error (1.82%) than the stochastic models, highlighting a gap between generalization bounds and empirical performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.