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

Measuring the Novelty of Natural Language Text using the Conjunctive Clauses of a Tsetlin Machine Text Classifier

Bimal Bhattarai, Ole-Christoffer Granmo, Lei Jiao

TL;DR

Researchers have developed a new way to detect "novel" or unseen topics in text by leveraging the transparent, logic-based architecture of Tsetlin Machines. By counting how many learned logical rules (conjunctive clauses) a piece of text triggers, the system can accurately flag when it encounters something it wasn't trained to recognize, outperforming several deep learning and statistical baselines.

What Problem Does This Paper Address?

Most AI text classifiers operate under a "closed-world assumption." This means they assume every piece of data they see during operation will belong to one of the categories they saw during training.

Imagine a banking chatbot trained to recognize two intents: "apply for a loan" and "check balance." If a user asks for a "lower interest rate," a standard neural network—using a softmax layer—will force that input into one of the two known categories, likely giving a confident but completely wrong response. This happens because neural networks are "black boxes" that struggle to say, "I don't know what this is."

The challenge is novelty detection: the ability of a classifier to operate in an "open world," identifying and flagging inputs that belong to previously unseen classes rather than misclassifying them.

Methods

The authors propose using a Tsetlin Machine (TM), a relatively new machine learning model that uses propositional logic instead of the complex calculus found in neural networks.

  1. Conjunctive Clauses: Instead of weights and biases, a TM learns "clauses"—logical rules like (word1 AND word2 AND NOT word3). These clauses represent frequent patterns that characterize a specific class.
  2. The Novelty Score: In a standard TM, clauses vote for or against a class. In this paper, the authors use the sum of triggered clauses as a novelty score. If a piece of text matches many of the logical patterns learned during training, it is considered "known." If it matches very few, it is flagged as "novel."
  3. Two-Stage Architecture: The system first uses a Multiclass Tsetlin Machine (MTM) to generate novelty scores for each known class. These scores are then fed into a secondary, simple classifier (like a Multilayer Perceptron or Decision Tree) to make the final "Novel vs. Not Novel" determination.

Datasets

The researchers evaluated their approach on five diverse text datasets:

  • 20-Newsgroup: A classic benchmark; they used "graphics" and "politics" as known, and "baseball" as novel.
  • CMU Movie Summary: Categorizing movie plots (e.g., "action" and "horror" vs. "fantasy").
  • Spooky Author Identification: Distinguishing between horror authors like Poe and Lovecraft vs. Mary Shelley.
  • Web of Science (WOS): Academic paper abstracts across different domains.
  • BBC Sports: News articles (e.g., "cricket" and "football" vs. "rugby").

Key Insights and Ideas

  • Interpretability is the Killer Feature: Unlike deep learning models, you can look at the TM's clauses and see exactly why a text was flagged. You can read the specific combination of words that the model expected to see but didn't.
  • Pattern Density as a Proxy for Knowledge: The core "aha" moment is that novelty isn't just about the presence of new words; it's about the absence of expected logical patterns. If a text doesn't "fit" the logical structure of known topics, it is statistically likely to be novel.
  • Avoiding the Softmax Trap: By using raw clause counts rather than normalized probabilities, the model avoids the mathematical quirk that forces neural networks to be overconfident about unknown data.

Key Results

The TM-based framework was compared against seven other novelty detection algorithms (including One-class SVM and K-Means clustering).

  • Top Performance: The TM approach outperformed all other schemes on three out of five datasets (Spooky Author, CMU Movie, and BBC Sports).
  • High Accuracy: On the BBC Sports dataset, the model achieved an impressive 89.47% accuracy in distinguishing novel topics from known ones.
  • Best Secondary Classifier: While several classifiers were tested to interpret the novelty scores, the Multilayer Perceptron (MLP) consistently yielded the best results across all datasets.

Limitations and Future Work

The authors noted that on the Web of Science (WOS) dataset, their method was surpassed by distance-based algorithms. They attribute this to the fact that different academic fields often share a high volume of similar technical vocabulary, making it harder for logical clauses to find distinct "boundaries."

Future Work: * Testing the framework on much larger, more complex text corpora. * Developing a deeper theoretical understanding of the properties of the TM novelty score. * Exploring how to handle "outliers" (noisy data within a known class) versus true "novelty" (entirely new classes).

Summary updated

BibTeX
@inproceedings{bhattarai2021measuring,
  author = {Bimal Bhattarai and Ole-Christoffer Granmo and Lei Jiao},
  title = {{Measuring the Novelty of Natural Language Text using the Conjunctive Clauses of a Tsetlin Machine Text Classifier}},
  booktitle = {Icaart},
  year = {2021},
  doi = {10.5220/0010382204100417},
}

Loading related content...

Figure