[Paper Review] Learning a Neural-network-based Representation for Open Set Recognition
This paper proposes a neural network-based representation learning method that clusters same-class instances closely while pushing different-class instances apart, enabling effective open set recognition. By introducing a novel loss function that aligns training and inference distance metrics, the approach achieves statistically significant performance gains over baseline and OpenMax on malware and image datasets.
Open set recognition problems exist in many domains. For example in security, new malware classes emerge regularly; therefore malware classification systems need to identify instances from unknown classes in addition to discriminating between known classes. In this paper we present a neural network based representation for addressing the open set recognition problem. In this representation instances from the same class are close to each other while instances from different classes are further apart, resulting in statistically significant improvement when compared to other approaches on three datasets from two different domains.
Motivation & Objective
- Address the challenge of open set recognition, where unknown classes emerge during testing, particularly in security domains like malware classification.
- Overcome limitations of traditional classifiers that misclassify unknown instances as known classes.
- Develop a deep learning-based representation that inherently supports both known-class classification and unknown-class detection.
- Enable robust detection of novel classes by learning a feature space where inter-class distances are maximized and intra-class compactness is enforced.
- Provide a unified framework using a single distance function for both training and outlier scoring, improving consistency and performance.
Proposed method
- Train a deep neural network with a novel loss function that encourages intra-class compactness and inter-class separation in the learned representation space.
- Use a combined distance metric—weighted combination of normalized Euclidean and cosine distances—during both training and inference for consistency.
- Introduce a threshold estimation technique based on contamination ratio (0.01) to identify unknown class instances using the distance from class prototypes.
- Apply batch normalization and dropout for regularization across all layers, with ReLU activation in non-linear layers.
- Train the network using Adam optimizer with specific hyperparameters (e.g., 0.001 learning rate, beta1=0.5, beta2=0.999) for 5000 iterations on MNIST and 10,000 on Android/MS Challenge datasets.
- For comparison, evaluate the same architecture with standard cross-entropy loss (ce), instance-wise loss (ii), and combined loss (ii+ce), and compare against OpenMax using the same backbone.
Experimental results
Research questions
- RQ1Can a neural network representation be learned such that same-class instances are closer together and different-class instances are farther apart, improving open set recognition?
- RQ2Does using a unified distance function for both training and outlier scoring enhance detection performance compared to separate metrics?
- RQ3How does the proposed loss function compare to standard cross-entropy and instance-wise losses in terms of open set recognition accuracy?
- RQ4Can the proposed method generalize across domains, including malware and image recognition, beyond the original training data?
- RQ5Is the threshold estimation technique based on contamination ratio effective in identifying unknown class instances without requiring labeled outliers?
Key findings
- The proposed method achieves statistically significant improvement over both standard cross-entropy training and OpenMax on three diverse datasets: MNIST, MS Challenge (malware), and Android malware.
- The ii+ce loss variant, combining instance-wise and cross-entropy losses, outperforms both individual losses and OpenMax in open set recognition performance.
- The use of a unified distance metric for training and inference leads to more consistent and reliable outlier detection across all evaluated datasets.
- The method maintains strong performance in closed-set classification while simultaneously enabling effective detection of unknown classes.
- The threshold estimation based on contamination ratio (0.01) effectively identifies unknown instances without requiring additional labeled data.
- The approach generalizes well across domains, demonstrating strong performance on both image and malware classification tasks.
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.