{"title":"Interpretable Text Classification in Legal Contract Documents using Tsetlin Machines","authors":"Rupsa Saha, Sander Jyhne","doi":"10.1109/ISTM54910.2022.00011","DOIUrl":"https://doi.org/10.1109/ISTM54910.2022.00011","url":null,"abstract":"Legal text contains various challenges in automated processing, compounded by the lack of detailed resources available for them. However, the ability of process such texts automatically is highly sought after. In this paper we try to parse a set of contract documents and identify key legal terminologies present in them, with the help of four text processing methods from different backgrounds: Tsetlin Machines, BERT, CNNBiLSTM and FastText. We show that the TM based approach works at par with other popular methods, with the added benefit of making available important clause literals that can act as specific linguistic cues to legal terminology.","PeriodicalId":411697,"journal":{"name":"2022 International Symposium on the Tsetlin Machine (ISTM)","volume":"1 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2022-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"127545104","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Xuanyu Zhang, Hao Zhou, Ke Yu, Xuan Zhang, Xiaofei Wu, A. Yazidi
{"title":"Sentiment Analysis for Chinese Dataset with Tsetlin Machine","authors":"Xuanyu Zhang, Hao Zhou, Ke Yu, Xuan Zhang, Xiaofei Wu, A. Yazidi","doi":"10.1109/ISTM54910.2022.00010","DOIUrl":"https://doi.org/10.1109/ISTM54910.2022.00010","url":null,"abstract":"With the increasing popularity of deep learning, researchers and practitioners seem to prefer deep neural networks (DNN) in Natural Language Processing (NLP) owing to the superior performance compared with classical machine learning techniques. However, the black box nature of deep learning poses transparency and explainability barriers and reduces their trustworthiness. Recently, a newly mentioned model, Tsetlin Machine (TM), offered reliable performance and human-level interpretability in many natural language processing (NLP) tasks. However, the related work is concentrated on English language, while the research on Chinese datasets is still open. In this paper, we employ the TM model for sentiment analysis for Chinese datasets, where the learning process is transparent and easily-understandable. More specifically, the clauses of TM make it capable of learning semantic information of Chinese vocabulary. Experiment results have shown that TM can provide similar or even higher accuracy and F1 score than more complex but non-transparent deep learning models.","PeriodicalId":411697,"journal":{"name":"2022 International Symposium on the Tsetlin Machine (ISTM)","volume":"20 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2022-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"123773631","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Tsetlin LOB: Realtime Regime Learning and Interpretable Prediction in Financial Limit Orderbooks using Convolutional Tsetlin Machines","authors":"Christopher D. Blakely","doi":"10.1109/ISTM54910.2022.00012","DOIUrl":"https://doi.org/10.1109/ISTM54910.2022.00012","url":null,"abstract":"We propose a Convolutional Tsetlin Machine approach for the problem of detecting and analysing regime changing in multivariate time series generated by financial limit orderbooks. Such time series comprise of multiple time series exhibiting changing behaviors at different time intervals and contain different nonlinear noise and signal characteristics over time. Learning and predicting these changing regime behaviors has several challenges: (1) failure to take relationships between time series into consideration for discovering regimes in multiple time series; (2) lack of an effective approach that models time-dependent behaviors exhibited by series; (3) difficulties in handling outliers or discontinuities which may be informative. We show that our adapted approach of Convolutional Tsetlin Machines to multivariate time series regime classification enjoys many properties of traditional Tsetlin Machines while providing informative insights to regime detection in limit orderbooks while aiming to overcome these challenges.","PeriodicalId":411697,"journal":{"name":"2022 International Symposium on the Tsetlin Machine (ISTM)","volume":"27 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2022-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"131899829","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Focused Negative Sampling for Increased Discriminative Power in Tsetlin Machines","authors":"Sondre Glimsdal, Rupsa Saha, Bimal Bhattarai, Charul Giri, Jivitesh Sharma, S. Tunheim, Rohan Kumar Yadav","doi":"10.1109/ISTM54910.2022.00021","DOIUrl":"https://doi.org/10.1109/ISTM54910.2022.00021","url":null,"abstract":"Tsetlin Machines learn from input data by creating patterns in propositional logical, using the literals available in the data. These patterns vote for the classes in a classification task. Despite their simplistic premise, Tsetlin machine (TM)s have been performing at with other popular machine learning methods across various benchmarks. Not only accuracy, TMs also perform well in terms of energy efficiency and learning speed. The general TM scheme works best when there is sufficient discriminatory information available between two classes. In this paper, we explore the use of focused negative sampling (FNS) to discriminate between classes which are not easily distinguishable from each other. We carry out experiments across diverse classification tasks ranging over natural language processing, image processing, reinforcement learning to show that this approach forces the TM to arrive at patterns that can successfully tell apart two classes that are correlated. Further, we show that the proposed method achieves accuracy comparable to a vanilla Tsetlin Machine approach but in approximately 42% less number of epochs on average.","PeriodicalId":411697,"journal":{"name":"2022 International Symposium on the Tsetlin Machine (ISTM)","volume":"31 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2022-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"124535140","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Tousif Rahman, A. Wheeldon, R. Shafik, A. Yakovlev, Jie Lei, Ole-Christoffer Granmo, Shidhartha Das
{"title":"Data Booleanization for Energy Efficient On-Chip Learning using Logic Driven AI","authors":"Tousif Rahman, A. Wheeldon, R. Shafik, A. Yakovlev, Jie Lei, Ole-Christoffer Granmo, Shidhartha Das","doi":"10.1109/ISTM54910.2022.00014","DOIUrl":"https://doi.org/10.1109/ISTM54910.2022.00014","url":null,"abstract":"The incorporation of Machine Learning (ML) models into smart devices and wearables has increased design focus on scalability and energy efficiency considerations. To transition towards on-device training, there must be a balance between data compaction to reduce ML complexity and data significance to maintain high learning efficacy. In this paper we examine a novel approach towards low-energy booleanization (i.e. Boolean encoding of raw data, which is different from binarization with positional significance used for encoding raw data) for a recently proposed machine learning method — the Tsetlin Machine. The approach in this paper offers a unique synergy between quantile binning for initial data encoding and logic minimization for significance-driven compaction of the dataset. Through this approach, the paper demonstrates how energy-frugal Tsetlin Machine models can be created with, for some datasets, up to 38.8x less energy consumption per datapoint during training. The proposed method offers significantly better energy efficiency with similar performance when compared with Binary Neural Network counterparts.","PeriodicalId":411697,"journal":{"name":"2022 International Symposium on the Tsetlin Machine (ISTM)","volume":"93 6","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2022-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"114127428","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Jordan Morris, A. Rafiev, F. Xia, R. Shafik, A. Yakovlev, Andrew D. Brown
{"title":"An Alternate Feedback Mechanism for Tsetlin Machines on Parallel Architectures","authors":"Jordan Morris, A. Rafiev, F. Xia, R. Shafik, A. Yakovlev, Andrew D. Brown","doi":"10.1109/ISTM54910.2022.00018","DOIUrl":"https://doi.org/10.1109/ISTM54910.2022.00018","url":null,"abstract":"This work proposes an alternative feedback mechanism for the Tsetlin Machine, a nascent machine learning algorithm that accepts binarized input data and uses propositional logic to identify and accumulate sub-patterns from a given entropy. The proposed method monitors and limits the included literals that contribute to the sub-patterns. This permits the algorithm to converge without requiring the class sum, the primary hurdle of a fully parallelized implementation. Empirical results from a custom RISC-V NoC cluster demonstrate up to a 36X reduction in wall-clock runtime for a 2.5% reduction in accuracy using the MNIST dataset. The proposed method outperforms the original feedback mechanism by 2% when the number of accumulated sub-patterns (clauses) are tightly constrained for the same dataset. This is achieved with a 1.8X reduction in wall-clock runtime.","PeriodicalId":411697,"journal":{"name":"2022 International Symposium on the Tsetlin Machine (ISTM)","volume":"15 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2022-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"123655708","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
A. Rafiev, Jordan Morris, F. Xia, R. Shafik, A. Yakovlev, Ole-Christoffer Granmo, Andrew D. Brown
{"title":"Visualization of Machine Learning Dynamics in Tsetlin Machines","authors":"A. Rafiev, Jordan Morris, F. Xia, R. Shafik, A. Yakovlev, Ole-Christoffer Granmo, Andrew D. Brown","doi":"10.1109/ISTM54910.2022.00020","DOIUrl":"https://doi.org/10.1109/ISTM54910.2022.00020","url":null,"abstract":"The black-box approach towards machine learning models is not helpful for creating fast and efficient implementations. optimization of these models requires a clear understanding of every aspect of the system, including the architecture, algorithms, and dynamics of the training process. This paper presents a range of visualizations for investigating the dynamics of the Tsetlin Machine, which is a new machine-learning algorithm with logic underpinning. These include static visualizations such as architecture and algorithm diagrams and dynamic visualizations such as plotting the evolution of the internal state of the machine. The workflow that supports the visualizations is generalized into an extendable open-source development kit that can be used with future generations of Tsetlin Machines. The example visualization diagrams from the MNIST dataset are discussed from the viewpoint of parallel implementation, hardware acceleration, and opportunities for architectural optimization.","PeriodicalId":411697,"journal":{"name":"2022 International Symposium on the Tsetlin Machine (ISTM)","volume":"36 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2022-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"122934242","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Anna Jenul, Bimal Bhattarai, K. H. Liland, Lei Jiao, Stefan Schrunner, C. Futsaether, Ole-Christoffer Granmo, O. Tomic
{"title":"Component Based Pre-filtering of Noisy Data for Improved Tsetlin Machine Modelling","authors":"Anna Jenul, Bimal Bhattarai, K. H. Liland, Lei Jiao, Stefan Schrunner, C. Futsaether, Ole-Christoffer Granmo, O. Tomic","doi":"10.1109/ISTM54910.2022.00019","DOIUrl":"https://doi.org/10.1109/ISTM54910.2022.00019","url":null,"abstract":"Tabular data with few observations and many features are common in the healthcare domain. With its rule-based approach to data modelling, the Tsetlin Machine has considerable potential to be a valuable tool in healthcare data analysis by providing interpretability to medical personnel. However, the performance of Tsetlin Machine models may be hampered by the presence of noise, which may often be the case with healthcare data due to individual differences across patients. This study shows that intelligent pre-filtering of healthcare measurement data using so-called component-based methods, such as Principal Component Analysis or Partial Least Squares Regression, can be beneficial for the performance of Tsetlin Machines. Modelling four healthcare data sets shows that the Tsetlin Machine achieved better predictive performance on pre-filtered data for data sets with high features-to-observations ratios.","PeriodicalId":411697,"journal":{"name":"2022 International Symposium on the Tsetlin Machine (ISTM)","volume":"169 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2022-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"131935461","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Ivan Shmarov, Pablo Docampo, Thomas Billam, R. Shafik, A. Yakovlev
{"title":"Fuzlearn: A Fuzzy Clusterization based Machine Learning using Learning Automata","authors":"Ivan Shmarov, Pablo Docampo, Thomas Billam, R. Shafik, A. Yakovlev","doi":"10.1109/ISTM54910.2022.00023","DOIUrl":"https://doi.org/10.1109/ISTM54910.2022.00023","url":null,"abstract":"Existing machine learning (ML) algorithms, such as Neural Networks (NNs), typically consist of complex data encoding and preprocessing on real-world data followed by extensive arithmetic. As such when implemented in hardware or software they incur high energy consumption as well as increased data-to-decision latency. Recently, the Tsetlin Machine (TM) was proposed as a promising new alternative which takes advantage of logic propositions founded on the principle of Tsetlin Automata, leading to higher energy efficiency, faster training convergence and lower latency. However, TM interfaces require complex data encoding procedures which can add significant overheads.In this paper, we propose a new machine learning approach that is built on the principle of fuzzy clusterization of decision boundaries directly from analog data. This approach effectively excludes the usual booleanization or analog-to-digital (A2D) conversion necessary in conventional approaches, thus offering low-complexity and potentially energy efficiency gains. Fundamental to this algorithm is a team of Learning Automata constituting a clusterization unit termed Clause that act as an Analog-to-Boolean classifier. Depending on the complexity of the ML dataset, a team of clauses derive the classification rules with minimal algorithmic and arithmetic complexities. The software implementation of the algorithm is tested against several problems. Experiments show that the proposed algorithm manages to achieve comparable accuracy as the Tsetlin Machine with fewer clauses. To study the impact of noise in the input features, we subsequently validate our algorithm with a few variants of noisy XOR datasets. Experiments with these datasets show that our approach is capable of mitigating noise effectively due to fuzzy classification boundaries.","PeriodicalId":411697,"journal":{"name":"2022 International Symposium on the Tsetlin Machine (ISTM)","volume":"3 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2022-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"114363100","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
S. Tunheim, Lei Jiao, R. Shafik, A. Yakovlev, Ole-Christoffer Granmo
{"title":"A Convolutional Tsetlin Machine-based Field Programmable Gate Array Accelerator for Image Classification","authors":"S. Tunheim, Lei Jiao, R. Shafik, A. Yakovlev, Ole-Christoffer Granmo","doi":"10.1109/ISTM54910.2022.00013","DOIUrl":"https://doi.org/10.1109/ISTM54910.2022.00013","url":null,"abstract":"This paper presents a Field Programmable Gate Array (FPGA) implementation of an image classification accelerator based on the Convolutional Tsetlin Machine (CTM). The work is a concept design, and the solution demonstrates recognition of two classes in 4 × 4 images with a 2 × 2 convolution window. More specifically, there are two sub-Tsetlin Machines (TMs), one per class. A single sub-TM employs 40 clauses, each controlled by 20 Tsetlin Automata. The accelerator features random patch selection, in parallel for all clauses, based on reservoir sampling. The design is implemented in a Xilinx Zync XC7Z020 FPGA. With an operating clock speed of 30 MHz, the accelerator is capable of inferring at the rate of 3.3 million images per second with an additional power consumption of 20 mW from idle mode. The average test accuracy is 96.7% when trained on data with 10% noise. A training session with 100 epochs and 8192 examples takes 1.5 seconds. Due to the limited hardware resources required, the CTM accelerator represents a promising concept for online learning in energy-frugal systems. The solution can be scaled to multi-class systems and larger images.","PeriodicalId":411697,"journal":{"name":"2022 International Symposium on the Tsetlin Machine (ISTM)","volume":"98 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2022-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"116731614","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}