[Paper Review] Discriminative Multi-level Reconstruction under Compact Latent Space for One-Class Novelty Detection
This paper proposes Discriminative Compact Autoencoder (DCAE), a one-class novelty detection model that learns compact, collapse-free latent representations via internal discriminative layers in a generative adversarial framework. By leveraging multi-level reconstruction and a novel semantic-based reconstruction error using the discriminator's penultimate layer, DCAE achieves state-of-the-art performance on both novelty and adversarial example detection across CIFAR-10 and other benchmarks.
In one-class novelty detection, a model learns solely on the in-class data to single out out-class instances. Autoencoder (AE) variants aim to compactly model the in-class data to reconstruct it exclusively, thus differentiating the in-class from out-class by the reconstruction error. However, compact modeling in an improper way might collapse the latent representations of the in-class data and thus their reconstruction, which would lead to performance deterioration. Moreover, to properly measure the reconstruction error of high-dimensional data, a metric is required that captures high-level semantics of the data. To this end, we propose Discriminative Compact AE (DCAE) that learns both compact and collapse-free latent representations of the in-class data, thereby reconstructing them both finely and exclusively. In DCAE, (a) we force a compact latent space to bijectively represent the in-class data by reconstructing them through internal discriminative layers of generative adversarial nets. (b) Based on the deep encoder's vulnerability to open set risk, out-class instances are encoded into the same compact latent space and reconstructed poorly without sacrificing the quality of in-class data reconstruction. (c) In inference, the reconstruction error is measured by a novel metric that computes the dissimilarity between a query and its reconstruction based on the class semantics captured by the internal discriminator. Extensive experiments on public image datasets validate the effectiveness of our proposed model on both novelty and adversarial example detection, delivering state-of-the-art performance.
Motivation & Objective
- To address the issue of latent representation collapse in autoencoder-based one-class novelty detection, which degrades in-class reconstruction quality.
- To improve reconstruction-based novelty detection by learning compact yet non-collapsed latent representations of in-class data.
- To develop a more effective and robust reconstruction error metric that captures high-level semantic differences between in-class and out-class samples.
- To enable accurate inference without relying on external classifiers or complex sampling techniques.
- To achieve strong performance on both standard novelty detection and adversarial example detection tasks.
Proposed method
- DCAE employs a deep autoencoder with a bottleneck latent space constrained via a discriminator to ensure compact and collapse-free representations.
- It uses multi-level reconstruction loss (Leaf) that enforces reconstruction at multiple encoder-decoder layers, improving feature learning and generalization.
- The model leverages the internal discriminator's penultimate layer to project inputs and reconstructions, enabling a novel semantic-aware reconstruction error score.
- The novelty score function sa(x) is defined as 1 minus the cosine similarity between normalized features of input and reconstruction in the discriminator's penultimate layer, capturing class semantics.
- The encoder is designed to be vulnerable to open-set risk, so out-class samples are poorly reconstructed even when mapped to the same compact latent space.
- The method avoids external classifiers and complex sampling by embedding the novelty detection mechanism within the autoencoder's internal architecture.
Experimental results
Research questions
- RQ1Can a reconstruction-based one-class novelty detection model achieve both fine and exclusive reconstruction of in-class data by learning compact and collapse-free latent representations?
- RQ2Does using the internal discriminator's penultimate layer to compute a semantic-aware reconstruction error improve novelty detection performance over pixel-wise reconstruction loss?
- RQ3Can multi-level reconstruction loss enhance feature learning and improve detection accuracy in one-class settings?
- RQ4How does the proposed method compare to state-of-the-art models in detecting both out-of-distribution samples and adversarial examples?
- RQ5Does explicitly bounding the latent space via tanh activation degrade performance due to representation collapse?
Key findings
- DCAE achieves a mean AUC of 0.7412 on CIFAR-10 under Protocol B, outperforming all baselines including OCGAN, D-SVDD, and AnoGAN.
- On adversarial example detection using boundary attack, DCAE with semantic-aware score (sa) achieves an AUC of 0.929, significantly outperforming DCAE with score function sc (0.877) and prior methods like D-SVDD (0.803).
- Ablation studies confirm that removing the Leaf multi-level reconstruction loss or Linv−z components reduces performance, with DCAE without these components achieving only 0.7080 mean AUC.
- The model without the proposed components but with tanh-bounded latent space (tanh-DCAE) performs worse (0.6796 mean AUC), confirming that explicit bounding causes representation collapse.
- The performance monotonically improves with deeper layers used for score computation, validating that higher-level features in the discriminator capture more discriminative semantics.
- The proposed score function sa(x), based on the discriminator's penultimate layer, consistently outperforms the per-pixel reconstruction error (sper−pixel) across all classes, proving its superiority in capturing semantic novelty.
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.