arXiv:2609.06133cs.LGSep 2026

Manuscript Offprint

arXiv:2609.06133

Compressed Recurrent Feedback in Tsetlin Machines: A Reproducible Boolean-FSM Study

Ankit Kumar, Utkarsh Raj, Rishad Shafik, Sudip Roy

Ankit Kumar¹, Utkarsh Raj¹, Rishad Shafik², and Sudip Roy¹

¹Department of Computer Science and Engineering, Indian Institute of Technology Roorkee, Roorkee, India

²Microsystems Research Group, Newcastle University, Newcastle upon Tyne, UK

Abstract—Sequential inference on small devices requires a model to retain useful history without repeatedly processing a long input record. A Recurrent Tsetlin Machine (RTM) provides this memory by returning Boolean clause outputs from one time step as inputs to the next. Direct feedback, however, grows with the clause bank and can make the recurrent input unnecessarily wide. This paper investigates a fixed-width alternative. We combine clause activations by exclusive-OR (XOR) folding, retain the folded bits at two time scales, and threshold them back to a binary state. The resulting design reduces 480 clause activations to 96 recurrent bits. We evaluate the method on a reproducible Boolean finite-state-machine benchmark with explicit transition rules, data splits, and random seeds. Across 144 runs, the compressed model obtains 61.47 ± 6.74% and 62.94 ± 9.92% accuracy on the two task families. Raw clause feedback changes these means by less than one percentage point, while increasing the recurrent width tenfold and measured host execution time by 4.38× and 3.71×. Gated neural models remain more accurate, and a no-feedback control retaining only short input history achieves comparable or slightly higher accuracy. On this benchmark, folding matches raw feedback within small empirical margins at a much narrower interface; these findings also underscore the critical necessity of no-feedback recurrence controls when benchmarking sequence models.

Index Terms—Tsetlin Machine, recurrent learning, finite-state machine, model compression, edge AI, reproducibility, ablation study.

I. INTRODUCTION

The Tsetlin Machine (TM) is a logic-based learning algorithm built from simple finite-state automata [2]. Instead of learning dense real-valued transformations, it forms propositional clauses: conjunctions of input conditions that vote for or against each class. The resulting Boolean operations are transparent and well suited to digital implementation, which has made the TM attractive for resource-constrained edge systems.

Conventional TMs process samples independently. This is a limitation for sensor streams, event traces, and other tasks in which the meaning of the current observation depends on what happened earlier. Neural sequence models address the same problem by carrying a hidden vector through time. Recurrent neural networks (RNNs), gated recurrent units (GRUs), and long short-term memory networks (LSTMs) learn such real-valued states, but their dense arithmetic can be costly on small devices [1]. The Recurrent Tsetlin Machine (RTM) instead returns clause activity from the current step as Boolean context for the next step [3].

Clause feedback gives the RTM a direct form of temporal memory, but it also introduces a scaling problem. A larger clause bank produces a wider recurrent state, and every additional feedback bit becomes part of the next TM input. We address this problem by replacing the raw clause vector with a fixed-width summary. Clause outputs are first combined by exclusive-OR (XOR) folding. Fast and slow moving averages then retain short- and longer-term activity before thresholding restores a binary state. The complete data path is given in Section III and Fig. 1.

Evaluating this idea requires more than a compressed-versus-uncompressed accuracy comparison. An apparent gain may come from the observed input window or from ensemble voting rather than clause recurrence. Likewise, a compact feedback pattern may support prediction without representing the task's true hidden state. For this reason, we use Boolean finite-state machines (FSMs), whose hidden transition rules are known to the experimenter but not supplied to the learner. Section IV specifies the generator, state-to-output map, input distribution, sequence lengths, splits, and seeds. Multiple circuit and training seeds are used because state count alone does not determine difficulty and a single run gives weak evidence for a stochastic learner [4].

The main contributions are:

  • a fixed-width recurrent interface folding 480 clause activations into 48 bits via XOR hashing at two time scales;

  • a reproducible Boolean-FSM benchmark with exported circuits, transition tables, split arrays, and file hashes; and

  • a matched evaluation covering neural baselines, component ablations, raw feedback, no-feedback controls, and probes.

These observations motivate three research questions:

  • RQ1 (Baselines): How does compressed RTM compare with majority predictors and neural sequence learners?

  • RQ2 (Components): What are the contributions of clause feedback, ensembles, fold width, multi-view inputs, and timescales?

  • RQ3 (Compression vs. Representation): How do compressed and raw feedback compare in accuracy, width, runtime, and hidden-state recovery?

Across the six circuits, folding changes raw-feedback accuracy by less than one percentage point, yet the no-feedback control is slightly more accurate. We treat this as evidence that the compressed interface effectively reproduces raw-feedback performance on these tasks without requiring wide recurrent buses, while highlighting that short input histories already provide substantial temporal context.

The remainder of this paper is organized as follows: Section II reviews relevant TM and sequence-learning literature. Sections III and IV define the compressed RTM model and Boolean-FSM benchmark. Section V outlines the experimental setup. Sections VI, VII, and VIII present the empirical results, discussion, and reproducibility artifact, while Section IX details threats to validity and Section X concludes the paper.