Abstract
Traditional word embeddings rely on dense floating-point vectors, which are computationally expensive and lack human interpretability. This paper introduces a novel approach using Tsetlin Machines (TM) to create "logical embeddings"—sparse, interpretable representations based on propositional logic. By utilizing a TM-based autoencoder, the researchers generate word meanings through conjunctive clauses that outperform traditional GloVe embeddings on several classification tasks while offering significant energy efficiency and native transparency.
Introduction
In modern Natural Language Processing (NLP), words are typically represented as dense vectors of hundreds of floating-point numbers. While effective, these embeddings are "black boxes"; it is nearly impossible for a human to discern why a specific vector represents a particular concept. Furthermore, the reliance on high-dimensional linear algebra makes these models computationally intensive and energy-demanding, particularly for edge devices.
This research addresses these inefficiencies by proposing word representations that are both interpretable—defined by logical relationships—and hardware-friendly. By mimicking how a dictionary defines a word using a few other words, the authors create a system where semantic meaning is derived from logical clauses rather than opaque decimal matrices.
Methodology: The Tsetlin Machine Autoencoder
The core innovation is the Tsetlin Machine (TM) Autoencoder. Unlike neural networks that rely on backpropagation, Tsetlin Machines use a collective of "Tsetlin Automata" to learn conjunctive clauses (AND-expressions) through simple increment and decrement operations.
The training process follows a self-supervised masking approach similar to BERT. The model masks a word in a sentence and attempts to predict it using the remaining context words. Instead of weights in a neuron, the model learns logical clauses. For example, it might learn that the presence of "black," "cup," and "hot" logically implies the word "coffee."
Interpretability and Sparsity
Unlike traditional embeddings that require post-hoc explanation tools like LIME or SHAP, TM embeddings are natively interpretable. The embedding is the explanation. One can directly read the learned clauses to understand the semantic links established by the model.
As illustrated above, a clause such as went ∧ hospital triggers associations with "surgery" and "heart." This transparency allows for a clear understanding of how the model handles polysemy (multiple meanings) by participating in different logical clauses. Furthermore, these representations are incredibly sparse; typically, less than 10% of the learned logical expressions are active for any given word. This sparsity, combined with bit-level logic, makes the model ideal for low-power IoT devices.
Experimental Results
The authors evaluated the TM embeddings against standard benchmarks, including the One Billion Word dataset for training and various similarity and classification tasks (SentEval):
- Classification Performance: The hybrid model ($TM_{hybrid}$), which combines logical embeddings with traditional GloVe vectors, outperformed standard GloVe on all six downstream classification tasks. Notably, on the R52 news dataset, it achieved 94.23% accuracy compared to GloVe’s 90.34%.
- Competitive Similarity: In intrinsic word similarity tasks (e.g., SimLex-999), the TM approach remained competitive with Word2Vec and FastText.
- Data Efficiency: The TM-based approach remained robust even when trained on significantly less data than traditional models, suggesting high data efficiency.
Conclusion and Future Work
Tsetlin Machine embeddings offer a compelling alternative to dense vector representations by trading floating-point complexity for logical clarity. While the current work focuses on word-level embeddings and requires further GPU optimization for massive scaling, it paves the way for interpretable reasoning across entire texts. Future research will focus on extending these logical representations to sentence and document levels, enabling fully transparent AI reasoning systems.
Summary updated