Abstract
This paper challenges the long-standing machine learning dogma that linear models are fundamentally incapable of solving the XOR problem. By introducing a new paradigm called equality separation, the authors demonstrate that a single linear neuron can classify non-linearly separable data. This framework provides a powerful new approach for anomaly detection, particularly in identifying both known and "zero-day" threats by creating closed decision regions that avoid the pitfalls of traditional halfspace classifiers.
Introduction
In introductory artificial intelligence courses, the failure of the perceptron to solve the XOR function is often cited as the historical justification for the shift toward deep, non-linear neural networks. This paper argues that the limitation was not inherent to the linear model itself, but rather to the standard method of application: halfspace separation.
Traditional classifiers draw a hyperplane to divide space into two infinite regions. In Anomaly Detection (AD), these "open" regions are a liability; an unseen attack might fall deep into a "normal" halfspace simply because it lacks the specific features of known training anomalies. To address this, the authors propose a shift from asking "which side of the line is this point on?" to "how close is this point to the line?"
Methodology: Equality Separation
The core of the proposed approach is the Equality Separator. Unlike a halfspace separator that classifies based on the sign of a linear function, the equality separator defines "normal" data as points residing on or near a specific hyperplane.
To implement this in modern architectures, the authors utilize:
- Bump Activations: By using a Gaussian-like "bump" activation function, the model can be trained via standard gradient descent. This allows the network to learn the geometric properties of equality separation while maintaining computational efficiency.
- Closing Numbers: The authors introduce the "closing number" metric—the minimum number of classifiers required to create a finite, enclosed decision region. They prove that while standard linear separators require $n+1$ dimensions to "trap" a point in $n$-dimensional space, equality separators require only $n$.
Theoretical Insights: Solving XOR
A primary contribution of this work is the proof that the XOR problem is linearly solvable under the equality separation paradigm. By placing the hyperplane such that the XOR-positive points $(0,1)$ and $(1,0)$ lie directly on it, a single linear unit can achieve perfect classification.
Furthermore, the authors prove that equality separators possess a Vapnik-Chervonenkis (VC) dimension of $2n+1$, nearly double that of standard linear separators ($n+1$). This indicates that equality separators are significantly more expressive than traditional linear models without requiring the complexity of additional hidden layers. This "semi-locality" allows the models to generalize to unseen anomalies better than global linear models or hyper-local RBF kernels.
Experimental Results
The researchers evaluated the equality separation framework across several benchmarks:
- Synthetic Benchmarks: On a concentric circle task where normal data is sandwiched between two types of anomalies, equality separators achieved a perfect 1.00 AUPR, whereas standard SVMs and Logistic Regression performed near random chance (~0.54).
- Cybersecurity (NSL-KDD): The proposed ES-SAD method outperformed state-of-the-art deep semi-supervised models, showing particular strength in detecting previously unseen attack types.
- Industrial Inspection (MVTec AD): Using DINOv2 embeddings, equality separators consistently outperformed RBF-based models, achieving perfect scores on categories like zippers and leather.
Limitations and Future Work
Despite its expressiveness, the method faces challenges regarding initialization sensitivity. If the "bump" activation is initialized too narrowly, the model may suffer from vanishing gradients. Additionally, while the theory scales to high dimensions, further research is needed to optimize the balance between "closing" decision regions and learning complex manifolds in high-dimensional latent spaces. Future work will also explore specialized optimization schemes beyond standard Adam or BFGS to better navigate the unique landscapes created by bump activations.
Summary updated