Rule-State Inference (RSI): A Bayesian Framework for Compliance Monitoring in Rule-Governed Domains Evidence from Francophone African Fiscal Systems

Abdou-Raouf Atarmla · 2026

Read Rule-State Inference (RSI): A Bayesian Framework for Compliance Monitoring in Rule-Governed Domains Evidence from Francophone African Fiscal Systems by Abdou-Raouf Atarmla (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2603-21610.txt.

Introduction

Atarmla introduces Rule-State Inference, a Bayesian framework for monitoring compliance in rule-governed domains like tax administration. Standard machine learning struggles here: labels are missing, violators hide evidence, and rules change fast. RSI flips the setup by treating the formal rule set itself as structured Bayesian priors. It infers latent compliance states for each regulatory period with variational methods. Formal guarantees cover fast rule updates, consistency, and steady convergence. Atarmla tests the design on a synthetic benchmark of 2,000 Togolese enterprises grounded in official fiscal law.

Catalog record

CREATORAbdou-Raouf Atarmla
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE40507
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2603.21610

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Rule-State Inference (RSI): A Bayesian Framework for Compliance Monitoring in Rule-Governed Domains Evidence from Francophone African Fiscal Systems Abdou-Raouf Atarmla Abstract Existing machine learning frameworks for compliance monitoring—Markov Logic Networks, Probabilistic Soft Logic, supervised models—share a fundamental paradigm: they treat observed data as ground truth and attempt to approximate rules from it. This assumption breaks down in rule-governed domains such as taxation or regulatory compliance, where authoritative rules are known a priori and the true challenge is to infer the latent state of rule activation, compliance, and parametric drift from partial and noisy observations. We propose Rule-State Inference (RSI) , a Bayesian framework that inverts this paradigm by encoding regulatory rules as structured priors and casting compliance monitoring as posterior inference over a latent rule-state space 𝐒 = { ( a i , c i , δ i ) } i = 1 n \mathbf{S}=\{(a_{i},\,c_{i},\,\delta_{i})\}_{i=1}^{n} , where a i a_{i} captures rule activation, c i c_{i} models the compliance rate, and δ i \delta_{i} quantifies parametric drift. We prove three theoretical guarantees: (T1) RSI absorbs regulatory changes in O ⁡ ( 1 ) O(1) time via a prior ratio correction, independently of dataset size; (T2) the posterior is Bernstein-von Mises consistent, converging to the true rule state as observations accumulate; (T3) mean-field variational inference monotonically maximizes the Evidence Lower BOund (ELBO). We instantiate RSI on the Togolese fiscal system and introduce RSI-Togo-Fiscal-Synthetic v1.0 , a benchmark of 2,000 synthetic enterprises grounded in real OTR regulatory rules (2022–2025). Without any labeled training data, RSI achieves F1 = = 0.519 and AUC = = 0.599, while absorbing regulatory changes in under 1 ms versus 683–1082 ms for full model retraining—at least a 600 × 600\times speedup. Keywords: Bayesian inference, rule-governed domains, compliance monitoring, variational inference, zero-shot reasoning, fiscal compliance, Africa 1 Introduction Machine learning has achieved remarkable progress in pattern recognition, forecasting, and classification. Yet in a wide class of high-stakes domains—tax administration, medical compliance, legal regulation, financial auditing—practitioners face a recurring structural difficulty: the knowledge is already structured . The rules are not unknown. They are written in law, codified in regulation, and enforced by institutions. In these rule-governed domains , the challenge is not to learn the rules from data. The challenge is to infer whether entities comply with them , given that observations are partial, strategically manipulated, and frequently missing. A tax inspector does not need a neural network to determine that a company with 80 million FCFA in annual revenue is subject to VAT—the law says so. What she needs is a rigorous method to assess, from an incomplete set of declarations and behavioral signals, the actual compliance state of that company. Limits of existing approaches. Supervised classifiers (XGBoost, neural networks) require labeled non-compliance examples, which are scarce, legally sensitive, and often unavailable in practice. Markov Logic Networks (MLNs) ( Richardson and Domingos 2006 ) and Probabilistic Soft Logic (PSL) ( Bach et al. 2017 ) treat rule weights as quantities to be learned from data, inverting the epistemic direction. Neurosymbolic methods ( Garcéz and Lamb 2022 ) combine neural perception and symbolic reasoning, but their symbolic component remains a learned approximation. None of these frameworks provides: (i) zero-shot compliance assessment from authoritative rules, (ii) O(1) adaptation to regulatory changes, nor (iii) native uncertainty quantification interpretable by non-technical auditors. Our contributions. We propose RSI (Rule-State Inference) , a Bayesian framework that formalizes the inverse paradigm. Our contributions are: (1) The RSI framework : a rigorous formalization of compliance monitoring as Bayesian posterior inference over a latent rule-state space, with rules as structured priors (Section 3 ). (2) Three theoretical guarantees : O(1) regulatory adaptability (T1), Bernstein-von Mises posterior consistency (T2), and monotone ELBO convergence (T3) (Section 4 ). (3) RSI-Togo-Fiscal-Synthetic v1.0 : a publicly released benchmark grounded in Togolese fiscal law, with a documented regulatory change event (Section 5 ). (4) Empirical validation across five experiments demonstrating zero-shot performance, a 600\times update speedup, and robustness under 50% missing data (Section 5 ). Why Francophone Africa. We ground our framework in the Togolese fiscal system for three reasons that generalize broadly. First, regulatory change frequency is high (multiple amendments per fiscal year), making adaptability not a luxury but a requirement. Second, data quality is structurally low: declared revenues are systematically under-reported (mean ratio 0.70 in our benchmark), and 18–20% of key fiscal variables are missing. Third, ML solutions designed for high-income contexts assume data richness that simply does not exist in these environments. RSI is designed from these constraints, not adapted to them. 2 Related Work Probabilistic logic. MLNs ( Richardson and Domingos 2006 ) combine first-order logic with Markov random fields via weighted formulae, with weights learned from data. PSL ( Bach et al. 2017 ) uses continuous truth values and achieves tractable MAP inference via convex optimization. Both treat rule weights as outputs of learning. RSI treats rules as inputs : their epistemic status is prior, not approximate. In MLNs, a zero-weight formula is effectively absent; in RSI, a rule with prior \pi_{i}=0.99 is near-certain and overrides weak observational evidence. Neurosymbolic AI. Garcez and Lamb ( Garcéz and Lamb 2022 ) describe architectures ranging from pipeline models to fully differentiable systems (Neural Theorem Provers ( Rocktäschel and Riedel 2017 ) , LTNs ( Badreddine et al. 2022 ) ). The canonical direction is learning for reasoning : symbolic structure guides neural learning. RSI occupies the orthogonal position: reasoning from rules , where the symbolic layer is fixed and authoritative, not learned. Interpretable rule learning. Bayesian Rule Lists ( Letham et al. 2015 ) apply Bayesian model selection to rule sets—again, rules are the output. Our work produces not rules but posterior distributions over compliance states —a qualitatively different inference target. AI and tax compliance. ML has been applied to tax gap estimation ( Gomes et al. 2022 ) , audit selection, and VAT fraud detection, universally under supervised paradigms. No prior work formalizes compliance monitoring as Bayesian state inference. Missing data and low-resource learning. Frénay and Verleysen ( Frénay and Verleysen 2014 ) survey learning under label noise. RSI addresses a related but distinct challenge: structural data absence in low-integrity environments. Our likelihood handles missing values natively by assigning unit probability, preserving the prior without bias injection. 3 The RSI Framework 3.1 Problem Formulation Let \mathcal{R}=\{r_{1},\ldots,r_{n}\} be a set of known regulatory rules. Each rule r_{i}:\mathcal{X}\times\Theta_{i}\to\{0,1\} maps entity attributes x\in\mathcal{X} and rule parameters \Theta_{i} to a binary applicability judgment. Let \mathbf{D}=\{d_{1},\ldots,d_{m}\} be a set of noisy observations of entity behavior. Definition 1 (Rule-Governed Domain) . A domain (\mathcal{R},\mathcal{X},\mathbf{D}) is rule-governed if: (i) \mathcal{R} is authoritative and known a priori; (ii) \mathbf{D} is partial, potentially missing, and may be strategically distorted; (iii) the primary inference task is to assess entity compliance with \mathcal{R} , not to learn it. 3.2 The Latent Rule-State Space Definition 2 (Rule State) . The latent state of rule r_{i} is: s_{i}=(a_{i},\;c_{i},\;\delta_{i}),\quad\mathbf{S}=(s_{1},\ldots,s_{n})\in\mathcal{S} where a_{i}\in\{0,1\} indicates whether r_{i} is in force, c_{i}\in[0,1] is the compliance rate, and \delta_{i}\in\mathbb{R} captures parametric drift. Core insight. This object has no equivalent in existing ML frameworks. MLNs have rule weights; RSI has rule states. The difference is epistemic: weights are inferred from data (data \to rule); states are inferred

Read the complete text