NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

One-class Text Classification with Multi-modal Deep Support Vector Data Description

Chenlong Hu, Yukun Feng, Hidetaka Kamigaito, Hiroya Takamura, Manabu OkumuraEACL 2021

Introduction

One-Class Classification (OCC) is a specialized machine learning task where the model is trained exclusively on data from a single target category. The objective is to learn a robust boundary that distinguishes this target class from all other possible "anomalies." This is particularly relevant in domains like spam detection or topic-specific document filtering, where obtaining a representative sample of the "non-target" class is often impractical.

Traditional approaches, such as Deep Support Vector Data Description (Deep SVDD), attempt to enclose the target data within a single high-dimensional hypersphere. However, text data is inherently multi-modal. A broad category like "Sports" may comprise distinct sub-topics such as "Baseball" and "Soccer." A single hypersphere large enough to encompass all these modes often becomes overly permissive, capturing significant "empty space" that may contain anomalies.

Methods: Multi-modal Deep SVDD (mSVDD)

To address the limitations of uni-modal boundaries, the authors propose mSVDD, a framework that utilizes multiple hyperspheres to characterize a single class.

Illustration of the mSVDD mapping from input space to multi-modal hyperspheres.

The mSVDD approach incorporates several key innovations:

  1. Multi-modal Hyperspheres: The model learns $m$ distinct centers. An attention mechanism dynamically assigns documents to the most appropriate "bubble," allowing the model to capture the internal structure of the target class.
  2. End-to-End Learning: The framework jointly optimizes text representation (via a BiLSTM with attention) and the coordinates of the hypersphere centers.
  3. Pseudo-Negative Supervision: To sharpen the decision boundary in the absence of true negative samples, the authors leverage external text (e.g., Wikipedia) as "pseudo-negatives." Reformulated Contrastive and Triplet losses are employed to push these samples away from the target hyperspheres.
  4. Unified Framework: mSVDD is mathematically shown to be a generalization of existing models; by tuning parameters, it can revert to Deep SVDD or CVDD.

Experimental Setup

The model was evaluated on two benchmark text classification datasets:

  • Reuters-21578: A news corpus where models are trained on individual topics (e.g., "earn", "acq") and tested against the rest.
  • 20 Newsgroups: A standard dataset for evaluating text categorization.
  • WikiText-2: Used as the source for pseudo-negative samples to provide a "background" for the target class during training.

Key Results and Discussion

The experimental results demonstrate that mSVDD consistently outperforms uni-modal baselines.

Performance comparison (AUC) of mSVDD variants on Reuters and 20 Newsgroups datasets.

The Impact of Multi-modality

By using multiple spheres, the model creates a "Swiss Cheese" boundary that is much tighter than a single large sphere. As shown in the results table, increasing the number of spheres ($m$) generally improves performance. For instance, on the 20 Newsgroups "comp" class, mSVDD(10) achieved an AUC of 86.7%, surpassing the 85.3% achieved by the uni-modal mSVDD(1).

The Role of Pseudo-Negatives

The inclusion of pseudo-negative data from Wikipedia provided the most significant performance boost. This external "foil" prevents the hyperspheres from expanding excessively, effectively regularizing the boundary. The authors found that a "Max" strategy—calculating loss based on the single best-fitting hypersphere—tended to outperform a "Mean" strategy, suggesting that specializing spheres for specific sub-topics is more effective than global averaging.

Loss Function Comparison

The reformulated Contrastive loss generally outperformed the Triplet loss. This is attributed to the Contrastive loss's more aggressive penalty for negative samples that fall within the target boundary, leading to a more discriminative model.

Limitations and Future Work

While effective, mSVDD's performance is sensitive to the choice of $m$. If $m$ is too high relative to the dataset size, the model may become over-parameterized and difficult to optimize. Additionally, the choice of pseudo-negatives is critical; if the external data is too dissimilar from the target class, the resulting boundary may still be too loose. Future research will focus on more sophisticated sampling strategies for pseudo-negatives to further refine the classification boundaries.

Summary updated

BibTeX
@inproceedings{hu2021one,
  author = {Chenlong Hu and Yukun Feng and Hidetaka Kamigaito and Hiroya Takamura and Manabu Okumura},
  title = {{One-class Text Classification with Multi-modal Deep Support Vector Data Description}},
  booktitle = {EACL},
  year = {2021},
  doi = {10.18653/v1/2021.eacl-main.296},
}
Figure