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

Scalable Multi-phase Word Embedding Using Conjunctive Propositional Clauses

Lei Jiao, Ahmed K. Kadhim, Lei Jiao 0001, Rishad A. Shafik, Ole-Christoffer Granmo, Bimal Bhattarai · DOI

Abstract

Traditional Natural Language Processing (NLP) relies heavily on deep learning-based word embeddings, which, while effective, function as "black boxes" lacking transparency. The Tsetlin Machine (TM) offers a logic-based alternative through conjunctive propositional clauses, yet previous implementations suffered from severe scalability and reusability constraints. This paper presents a novel two-phase training architecture—the Coalesced Tsetlin Machine (CoTM)—that decouples knowledge extraction from embedding construction. By training on individual words to extract logical rules and subsequently assembling them into hierarchical structures, the proposed method achieves high-precision semantic similarity and competitive downstream performance while maintaining human-readability and modularity.

Introduction

In modern NLP, word embeddings are essential for translating linguistic context into mathematical vectors. However, dominant models like Word2Vec, GloVe, and BERT produce dense vectors that are nearly impossible for humans to interpret. When a model associates "doctor" with "hospital," the underlying logic remains hidden.

Logic-based alternatives, specifically the Tsetlin Machine (TM), utilize propositional logic (e.g., IF 'driver' AND 'road' THEN 'car') to create interpretable embeddings. Despite their potential, early TM-based Autoencoders (TM-AE) were computationally prohibitive, requiring approximately 10 hours to process a mere 100 words. Furthermore, these models lacked reusability; any change to the input vocabulary necessitated a full retraining of the system. This research introduces a scalable, multi-phase approach to overcome these bottlenecks.

Methodology: The Two-Phase Coalesced Tsetlin Machine (CoTM)

The core innovation of this work is the transition from a monolithic training process to a modular, two-phase architecture designed for scalability.

Phase 1: Knowledge Extraction

Instead of training on entire sequences or corpora simultaneously, the model performs "knowledge extraction" on a per-word basis. For every word in the target vocabulary, the TM identifies documents where the word is present versus absent. It then generates a library of conjunctive propositional clauses—logical "AND" rules—that define the semantic boundaries of that specific word. This modularity ensures that the "pure form" of a word's meaning is captured independently of specific downstream contexts.

Phase 2: Embedding Construction

Once the library of logical clauses is established, the model constructs embeddings for new sequences by pulling pre-learned clauses and assembling them into a hierarchical tree. This "plug-and-play" mechanism allows the system to handle new data without retraining the entire vocabulary. If a new word is added to the system, only that specific word needs to undergo Phase 1 training, significantly enhancing the system's flexibility compared to previous TM-AE iterations.

Experimental Setup

The researchers evaluated the CoTM model using a comprehensive suite of datasets:

  • Training: The model was trained on the One Billion Word dataset with a vocabulary of 40,000 words.
  • Similarity Benchmarks: To measure semantic accuracy, the model was tested against human-annotated benchmarks, including RG65, MTURK287, MTURK717, and WS-353.
  • Downstream Application: The embeddings were applied to the IMDB dataset (50,000 samples) for sentiment analysis to test their utility in practical classification tasks.

Results and Discussion

Semantic Similarity

The CoTM model demonstrated exceptional precision in word similarity tasks. On the RG65 benchmark, the two-phase TM-AE achieved a Cosine similarity score of 0.91, notably outperforming established models such as Word2Vec (0.84) and FastText (0.69). This suggests that logical clauses can capture semantic nuances more accurately than traditional dense vectors in specific contexts.

Sentiment Analysis

In sentiment classification on the IMDB dataset, the model achieved an accuracy of 0.78. While this trails state-of-the-art transformer models like BERT (0.82) and ELMo (0.83), it significantly outperformed GloVe (0.60). The results indicate that the CoTM provides a competitive balance between performance and interpretability, matching the accuracy of other interpretable classifiers while offering deeper insights into the decision-making process.

Interpretability and Efficiency

Unlike "black box" models, CoTM embeddings are fully auditable. Developers can inspect the logical clauses (e.g., seeing that "drive" is defined by vehicle AND license) to ensure the model has not adopted biased or irrelevant associations. While the initial Phase 1 training is computationally intensive—requiring six months on a DGX H100 server to map 40,000 words—the resulting modular library is far more efficient for real-world deployment and incremental updates than previous logic-based models.

Limitations and Future Work

Despite the breakthrough in scalability, challenges remain. The initial knowledge extraction phase remains a significant temporal investment. Additionally, while the model captures semantic relationships, it currently lacks the dynamic contextual depth of bidirectional models like BERT, which adjust embeddings based on a word's specific position in a sentence. Future research will focus on optimizing the TM algorithm's training speed and refining clause construction to better capture complex, shifting contexts.

Conclusion

The Two-Phase Coalesced Tsetlin Machine represents a significant step forward for interpretable AI. By successfully scaling logic-based word embeddings to a 40,000-word vocabulary, this research proves that human-readable models can compete with deep learning architectures, providing a transparent alternative for sensitive NLP applications where accountability and auditability are paramount.

Summary updated

BibTeX
@misc{jiao2025scalable,
  author = {Lei Jiao and Ahmed K. Kadhim and Lei Jiao and Rishad A. Shafik and Ole-Christoffer Granmo and Bimal Bhattarai},
  title = {{Scalable Multi-phase Word Embedding Using Conjunctive Propositional Clauses}},
  year = {2025},
  eprint = {2501.19018},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.19018},
}
Figure