[Paper Review] Deep Verifier Networks: Verification of Deep Discriminative Models with Deep Generative Models
DVNs verify predictions of discriminative models by modeling p(x|y) with a disentangled conditional VAE, enabling robust out-of-distribution and adversarial input detection without retraining the classifier.
AI Safety is a major concern in many deep learning applications such as autonomous driving. Given a trained deep learning model, an important natural problem is how to reliably verify the model's prediction. In this paper, we propose a novel framework -- deep verifier networks (DVN) to verify the inputs and outputs of deep discriminative models with deep generative models. Our proposed model is based on conditional variational auto-encoders with disentanglement constraints. We give both intuitive and theoretical justifications of the model. Our verifier network is trained independently with the prediction model, which eliminates the need of retraining the verifier network for a new model. We test the verifier network on out-of-distribution detection and adversarial example detection problems, as well as anomaly detection problems in structured prediction tasks such as image caption generation. We achieve state-of-the-art results in all of these problems.
Motivation & Objective
- Motivate reliable verification of deep model predictions in safety-critical settings.
- Propose a framework that uses deep generative models to estimate p(x|y) and verify input-label consistency.
- Introduce a disentangled conditional VAE to ensure label information is preserved in the latent space.
- Enable unified detection of OOD, adversarial, and misclassified inputs without retraining classifiers.
Proposed method
- Train a verifier q(x|y) as an approximation to p(x|y) using a modified conditional variational auto-encoder.
- Impose a disentanglement constraint to minimize mutual information between latent z and label y to prevent y from being ignored.
- Estimate log p(x|y) with a k-sample importance-weighted bound L_k to score verification.
- Use a GAN-based discriminator D_z to align the latent distribution q(z) with the Gaussian prior p(z) and correct the prior for likelihood estimation.
- Threshold verification using L_k compared to a validation threshold delta to label inputs as ID or OOD.
Experimental results
Research questions
- RQ1Can a deep verifier network accurately discriminate between in-distribution and out-of-distribution inputs without retraining the classifier?
- RQ2Does modeling p(x|y) with a disentangled conditional VAE provide robustness to adversarial inputs and anomalies across tasks?
- RQ3Can the DVN framework be applied to structured prediction like image captioning beyond standard classification?
- RQ4What is the impact of disentangling y from z on verification performance?
- RQ5How does the choice of density estimator (VAE vs. PixelCNN/Glow) affect OOD/adversarial detection performance?
Key findings
- DVN achieves state-of-the-art performance for both OOD and adversarial detection across multiple datasets and backbones.
- Disentangling y from z is critical and significantly improves verification metrics.
- Replacing the VAE with PixelCNN or Glow generally underperforms DVN, highlighting robustness of the proposed approach.
- The verification threshold can be set using in-distribution validation data without requiring OOD samples, enhancing practicality.
- DVN generalizes to structured prediction tasks such as image captioning without retraining the classifier.
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.