Abstract
Standard deep learning models often struggle with "open-set" recognition, either misclassifying novel inputs with high confidence or providing vague uncertainty scores. We present a "spatially forked" architecture that combines a standard classifier with a structured memory bank and a comparator network. This system not only detects novel inputs but also characterizes them by relating their attributes to known concepts. Evaluated on synthetic geometric shapes and CIFAR-10, the model demonstrates superior performance in novelty characterization compared to traditional uncertainty-based methods.
Introduction
Standard deep learning models excel at "closed-set" recognition. If trained on cats and dogs, they become highly proficient at identifying those specific categories. However, when presented with a "novel" input—such as a horse—these models typically force it into a known category or output a generic uncertainty score. This limitation stems from a lack of relational reasoning. Humans, by contrast, understand new objects by comparing their attributes to familiar ones. The challenge is building an architecture that maintains standard classification performance while providing a relational framework for novel observations.
Proposed Architecture
The framework consists of three integrated components designed to mimic human-like relational reasoning:
- The Primary Learner: A standard neural network (e.g., a ConvNet) that maps inputs to known class labels.
- The Representational Memory Bank: Instead of storing the entire training set, the system uses a sampling function (such as k-medoids) to select a diverse set of representative feature vectors from the network's higher layers.
- The Comparator Network: A Siamese-style network that processes pairs of representations—one from the current input and one from the memory bank. It learns relational attributes, such as "Object A has more edges than Object B."
During inference, if the primary learner's confidence is low, the input is passed to the comparator. The comparator relates the unknown input to the sampled memories of known classes, producing a "characterization vector" that describes the novel input's relationship to the known world.
Relational Reasoning and Novelty Characterization
The core innovation is that novelty detection is not a binary "yes/no" flag. By learning a skew-symmetric mapping function, the model places novel inputs on a spectrum relative to known categories. For example, when encountering an "angle" (two connected lines) for the first time, the model can characterize it as having more edges than a single line but fewer than a triangle.
The authors also introduce a hyperparameter ($\gamma$) that acts as a threshold for novelty, analogous to human aging. A low $\gamma$ represents a child's high sensitivity to new things, while a high $\gamma$ represents an adult's prudence in sticking to known categories.
Experimental Evaluation
The model was evaluated on two datasets:
- Synthetic Geometrical Shapes: 30,000 images of lines, triangles, quadrilaterals, and pentagons. The "novel" class was an angle.
- CIFAR-10: Trained on four classes (automobiles, trucks, horses, dogs) with "ships" as the novel class to test reasoning about "liveliness" (living vs. non-living).
Key Results
- Superior Characterization: On the CIFAR-10 "ship" test, the model achieved 85.2% accuracy in characterizing the ship as non-living, significantly outperforming standard uncertainty-based methods (54.9%).
- Robust Detection: For geometric shapes, the model achieved a novelty detection rate over 90%, correctly identifying the relative edge count of the unseen angle.
- Efficiency: By using a sampled memory bank ($M$ samples) rather than the full training set ($N$), training complexity for the structured memory is reduced from $O(N^2)$ to $O(C^2)$, where $C$ is the number of categories.
Conclusion and Future Work
This research demonstrates that integrating a structured memory bank allows deep models to move beyond simple classification toward relational reasoning. While currently requiring pre-defined relative attributes (like "liveliness"), future work could involve unsupervised discovery of these attributes. Additionally, scaling this approach to hundreds of classes and applying it to domains like Natural Language Processing (NLP) for sentiment or genre analysis remains a promising direction.
Summary updated