FastOmniTMAE: Parallel Clause Learning for Scalable and Hardware-Efficient Tsetlin Embeddings

Ahmed K. Kadhim, Lei Jiao, Rishad Shafik, Ole-Christoffer Granmo, Mayur Kishor ShendearXiv 2026

TL;DR

FastOmniTMAE reformulates Tsetlin Machine-based text embedding models by eliminating global training dependencies, unlocking a 5× training speedup while preserving embedding quality. By shifting from global synchronization to local, clause-level updates, the architecture becomes highly parallelizable and perfectly suited for custom SoC-FPGA hardware deployment.

What Problem Does This Paper Address?

While deep learning architectures like BERT dominate Natural Language Processing (NLP), they operate as black boxes, relying on continuous numerical weights that obscure their decision-making processes. Simpler alternatives like Word2Vec are efficient but still lack structural interpretability.

The Tsetlin Machine (TM) offers a promising alternative: a logic-based machine learning paradigm that uses interpretable propositional logic expressions (clauses) driven by Tsetlin Automata. Recently, the Omni TM Autoencoder (Omni TM-AE) applied this to static word embeddings. However, Omni TM-AE is notoriously slow to train, sometimes taking days or months on large datasets.

A major culprit is a global synchronization bottleneck: the algorithm requires calculating a global class_sum across all clauses before any updates can occur. Furthermore, because TMs rely entirely on bitwise logical operations (AND, OR, XOR, NOT), they run inefficiently on modern GPUs, which are fundamentally designed for dense, floating-point matrix math. This paper tackles both the algorithmic bottleneck and the hardware mismatch.

Methods

The authors introduce FastOmniTMAE, which redesigns the training flow by decoupling clause evaluation and clause updates into a two-stage parallel process:

  1. Local Decision-Making: The global class_sum calculation is completely removed. Instead, each clause independently computes its own update probability based locally on its own evaluation outcome. This eliminates the global synchronization step, allowing clauses to be evaluated and updated concurrently.
  2. Hardware-Centric Design: To bypass GPU inefficiencies, the authors designed a reusable Intellectual Property (IP) core for SoC-FPGA platforms.

The hardware architecture leverages a Finite State Machine (FSM) to manage a three-step workflow: fetching data blocks via high-throughput AXI Memory-Mapped interfaces, executing TM logic operations directly using hardware logic gates, and writing updated automaton states back to external DDR memory.

Figure 3: SoC-based architecture of the FastOmniTMAE accelerator with PS–PL communication over AXI interfaces for efficient parallel training.

Datasets

The model was trained and evaluated using several standard NLP datasets and benchmarks:

  • Training Corpus: The 1 Billion Word dataset (with a 40,000-token vocabulary) and the IMDb dataset.
  • Evaluation Benchmarks: The authors introduced a Single-Run Multi-Environment Benchmark spanning classification, semantic similarity, and clustering.
  • Word Similarity Datasets: Human-annotated pairs from RG65, WS-353-Sim, MTurk-287, MTurk-771, and MEN.

Key Insights and Ideas

  • Data Richness Trumps Strict Convergence: The original global class_sum was designed to scale down updates as the model converged. The authors discovered that for NLP embeddings, embedding quality is driven far more by the contextual richness of the data than by this strict mathematical convergence behavior. Removing it yielded massive speedups without harming representation accuracy.
  • The GPU Mismatch: High-end GPUs (like the NVIDIA H100) leave a massive portion of their hardware underutilized when running TMs. Tensor Cores and Fused Multiply-Add (FMA) units sit idle because TMs do not use floating-point math.
  • Reasoning by Elimination: State-space analysis revealed that FastOmniTMAE heavily pushes original vocabulary features to low states while keeping negated literals in high states. This means the model creates embeddings by learning what a word is not, effectively utilizing "reasoning by elimination."
Figure 2: (a on the left) Relationship between the class_sum and the update probability update_p. (b in the middle) Update probability update_p over epochs for different datasets and hyperparameters. (c on the right) Clause weights variation over epochs.

Key Results

  • 5× Training Speedup: In classification benchmarks, Omni TM-AE took 1,709 seconds to train for 100 epochs, whereas FastOmniTMAE finished in just 310 seconds while demonstrating more stable F1-scores (consistently above 0.6).
  • Competitive Embedding Quality: On the word-similarity benchmark, FastOmniTMAE on CPU achieved an average Kendall correlation ($\tau$) of 0.392, slightly outperforming the original Omni TM-AE (0.390) and FastText (0.382).
  • Hardware Efficiency: When deployed on a Xilinx ZCU104 SoC-FPGA board running 12 parallel engines, the hardware accelerator achieved a 7.08× speedup over a local ARM CPU and scored a high semantic similarity of 0.696 on the RG65 dataset. Crucially, it did this with near-zero DSP utilization, proving it is constrained by memory (BRAM) rather than arithmetic logic.

Limitations and Future Work

  • Lack of Early Stopping Criteria: While analyzing the literal state-space distribution provides insights into training dynamics, there is currently no established mathematical mapping between state distributions and downstream embedding performance. This makes formulating early stopping criteria difficult.
  • Static Embeddings Only: FastOmniTMAE currently produces static word embeddings (similar to Word2Vec or GloVe) rather than contextualized embeddings (like BERT or GPT architectures). Extending this hardware-efficient logic paradigm to contextual representations remains an open challenge.

Summary updated

BibTeX
@misc{kadhim2026fastomnitmae,
  author = {Ahmed K. Kadhim and Lei Jiao and Rishad Shafik and Ole-Christoffer Granmo and Mayur Kishor Shende},
  title = {{FastOmniTMAE: Parallel Clause Learning for Scalable and Hardware-Efficient Tsetlin Embeddings}},
  year = {2026},
  eprint = {2605.06982},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.06982},
}
Figure