Generalized One-Class Learning Using Pairs of Complementary Classifiers

Anoop Cherian, Jue Wang

This paper, published in IEEE Transactions on Pattern Analysis and Machine Intelligence, introduces a novel framework for one-class learning—the task of identifying "normal" data and flagging anomalies when only the normal class is available for training.

TL;DR

The authors propose Generalized One-class Discriminative Subspaces (GODS), a framework that uses pairs of complementary orthonormal frames to "sandwich" normal data within a minimal volume. By optimizing these boundaries on a Riemannian manifold, the method achieves state-of-the-art anomaly detection performance across computer vision and general machine learning benchmarks while remaining computationally efficient.

What Problem Does This Paper Address?

One-class learning (OCL) is essential for applications like anomaly detection, where "abnormal" data is rare or impossible to collect (e.g., a network intrusion or a rare medical condition).

Existing solutions have significant trade-offs:

  • One-Class SVM (OC-SVM): Uses a single hyperplane, which is often too simple to capture complex data distributions.
  • Support Vector Data Description (SVDD): Assumes data fits into a hypersphere, which fails if the data is non-isotropic (stretched or oddly shaped).
  • Deep Autoencoders: Rely on reconstruction error, which can be computationally expensive and sometimes fails to distinguish anomalies that "look" like normal data to the encoder.

The authors sought a method that combines the efficiency of linear classifiers with the flexibility to bound data of arbitrary shapes without making rigid assumptions like SVDD.

Methods

The core innovation is the use of complementary classifiers. Instead of one boundary, the system learns a pair:

  1. The "Sandwich" Approach: The data is constrained to belong to the positive half-space of one classifier and the negative half-space of the other. This effectively "traps" the normal data between two boundaries.
  2. Orthonormal Frames: Rather than simple vectors, the classifiers are designed as orthonormal frames (matrices with independent unit-norm columns). This allows for piecewise linear decision surfaces, which can approximate complex non-linear boundaries while keeping inference very cheap (requiring only simple inner products).
  3. Dual Objectives: The model jointly optimizes two conflicting goals:
  4. Minimize Volume: Keep the two frames as close as possible to tightly bound the data.
  5. Maximize Margin: Maintain a large distance between the boundaries and the data points to ensure robustness against noise.
  6. Riemannian Optimization: Because the frames must remain orthonormal, the parameters live on a Stiefel manifold. The authors use Riemannian conjugate gradient (RCG) descent to navigate this non-convex space efficiently.
  7. KODS (Kernelized GODS): For extremely complex distributions (like ring-shaped data), the authors derived a kernelized version that embeds data into a high-dimensional Hilbert space.

Datasets

The authors evaluated their approach on a wide array of benchmarks:

  • Dash-Cam-Pose (New): A dataset introduced in this paper containing 1.06 million poses from 104 videos to detect "out-of-position" (OOP) passengers and drivers for vehicle safety.
  • Vision Benchmarks: JHMDB (action recognition), UCF-Crime (large-scale surveillance), and UCSD Ped2 (pedestrian anomalies).
  • UCI Datasets: Five non-vision datasets (Sonar, Pump, Scale, Survival, and Banknote) to demonstrate general applicability.

Key Insights and Ideas

  • Piecewise Linearity is a "Sweet Spot": By using multiple hyperplanes (frames) instead of one, GODS can model non-linear distributions without the heavy computational overhead of deep learning or complex kernel matrices.
  • Bounding from "Inside" and "Outside": Unlike SVDD, which only bounds from the outside, the complementary pair in KODS can capture "hollow" distributions (like a ring) by defining an inner and outer boundary.
  • Manifold Geometry Matters: Treating the orthogonality constraint as a geometric property (Stiefel manifold) rather than a hard penalty leads to more stable and faster convergence.

Key Results

  • State-of-the-Art Performance: On the new Dash-Cam-Pose dataset, KODS achieved an F1 score of 0.664, significantly outperforming the standard OC-SVM (0.279).
  • Action Recognition: On the JHMDB dataset, GODS improved classification accuracy by over 30% compared to the best kernel-based baselines.
  • Generalization: On UCI datasets, GODS variants consistently outperformed the previous best method (S-SVDD) by 2–8%.
  • Efficiency: The method is computationally "cheap" during inference, making it suitable for real-time applications like dashboard camera monitoring.

Limitations and Future Work

  • Subspace Selection: While the non-compact Stiefel variant allows for some automatic selection of subspace dimensions, choosing the optimal number of hyperplanes ($K$) still requires some manual tuning or cross-validation.
  • Scaling KODS: Like most kernel methods, the kernelized version (KODS) may face scalability challenges as the number of training samples grows very large.
  • Deep Integration: The authors suggest that integrating GODS as a specialized layer within an end-to-end deep neural network is a promising future direction.

Summary updated

BibTeX
@article{cherian2022generalized,
  author = {Anoop Cherian and Jue Wang},
  title = {{Generalized One-Class Learning Using Pairs of Complementary Classifiers}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2022},
  url = {https://openreview.net/forum?id=NUGHXMk8Gf3},
}
Figure