Introduction
Tsetlin Machines (TMs) represent a promising frontier in interpretable machine learning, utilizing propositional logic and learning automata to identify patterns. However, their practical application is often hindered by a complex hyperparameter tuning process. Specifically, a standard TM requires optimizing three primary variables: the number of clauses ($m$), the voting target ($T$), and the specificity ($s$).
The specificity parameter ($s$) is particularly challenging to tune. It dictates the "granularity" of the logic clauses—high specificity yields precise but narrow clauses (high precision, low recall), while low specificity produces broader, simpler ones (high recall, lower precision). Finding the optimal $s$ is often a tedious grid-search exercise, as real-world data frequently contains patterns at multiple scales that a single global specificity value cannot capture effectively.
The Multigranular Tsetlin Machine (MTM)
To address this limitation, the authors introduce the Multigranular Tsetlin Machine (MTM). The fundamental shift is moving from a global specificity parameter to a distributed, local one.
In the MTM architecture, each clause $C_j$ is assigned its own unique specificity value $s_j$. These values are distributed linearly across a predefined range $[l, u]$. For the experiments presented, the authors utilized a range from $2.0$ (coarse) to $200.0$ (fine). The specificity for a given clause $j$ is determined by: $$s_j = (u - l) \cdot \frac{m - j}{m - 1} + l$$ where $m$ is the total number of clauses.
This "multigranular" approach allows the model to simultaneously learn broad, frequent patterns and rare, highly specific sub-patterns. By fixing the specificity range, the MTM effectively reduces the hyperparameter search space from three dimensions to two ($m$ and $T$), significantly simplifying the training workflow.
Experimental Evaluation
The MTM was evaluated against a standard TM on two distinct datasets: a custom artificial binary problem and the classic Iris flower dataset.
Artificial Dataset
The artificial dataset was designed to test the model's ability to handle mixed complexity, combining simple AND-gate patterns with complex XOR/parity-based patterns.
As shown in the accuracy landscapes, finding the optimal configuration requires navigating a sensitive parameter space. Despite eliminating the need to tune $s$, the MTM achieved a peak accuracy of 98.0% with 500 clauses, matching the performance of a meticulously tuned standard TM.
Iris Flower Dataset
On the Iris dataset, continuous features were binarized to 5 bits per feature. The MTM reached an accuracy of 95.0%, compared to 95.7% for the finely-tuned standard TM.
While there is a marginal trade-off in peak accuracy, the MTM offers a significant reduction in computational overhead and manual configuration time.
Conclusion
The Multigranular Tsetlin Machine demonstrates that diversity in clause specificity is a powerful feature rather than a tuning burden. By distributing specificity across a spectrum, the MTM captures multi-scale patterns automatically and robustly. This approach not only maintains competitive accuracy but also enhances the practical usability of Tsetlin Machines by simplifying the hyperparameter optimization process. Future work aims to further automate the selection of the remaining parameters, $m$ and $T$, moving toward a fully parameter-free Tsetlin Machine.
Summary updated