arXiv:2610.01527cs.LGOct 2026

Manuscript Offprint

arXiv:2610.01527

Exact Distinguishability in Non-Markovian Decision Processes

Kabir Murjani, Nisarg Patel

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Non-Markovian environments are often modeled as Regular Decision Processes (RDPs), where dynamics depend on the interaction history through a finite automaton. Existing offline guarantees for RDPs rely on a distinguishability assumption on the behaviour policy but provide no means of verifying it. When the assumption is violated, distinct models may explain the data equally well. We study when data collected under a fixed behaviour policy can distinguish two candidate RDPs. We prove that the posterior odds between observationally equivalent candidates remain equal to the prior odds at every sample size, even when the policy visits every automaton state, and verify both results formally in Lean 4. We then characterize this equivalence exactly and derive PEC, an algorithm that decides it in time linear in the size of the product automaton. The distinguishability assumption of prior work fails on three of our four test environments, and the experiment identified by PEC restores it in each case. 1^{1}

1 INTRODUCTION

To model non-Markovian environments, recent work frequently utilizes the Regular Decision Process (RDP) (Brafman and De Giacomo, 2019), a framework where the next observation depends on the entire interaction history through the state of a finite automaton driven by the action-observation sequence. The model class sits between Markov decision processes (MDPs) and partially observable Markov decision processes (POMDPs), and a recent line of work learns it offline, from a corpus of interaction data produced under a fixed operating policy.

A corpus of that kind is consistent with several environments at once. A point estimator fitted to it returns one of them with no indication that the others fit equally well, and a Bayesian learner's odds between them remain at the prior, which from inside a single run cannot be told apart from slow learning. Existing guarantees for this model class presuppose that the corpus is informative. Cipollone et al. (2023) gave the first provably efficient offline algorithm for RDPs, RegORL, with probably approximately correct (PAC) guarantees under a distinguishability assumption on the behaviour policy, and Deb et al. (2025) replace that parameter, which decays exponentially in the number of automaton states, with a formal-language metric. Neither gives a way to check whether a given policy satisfies the assumption. Consider a freight planner who reroutes around a lane for one period after each late delivery on it. The records contain the lane and contain late deliveries, yet a model in which lateness persists into the next period and one in which it does not agree on every shipment the rule sends. No quantity of such records therefore tests the belief that motivated the rule, although a single shipment sent on the lane just after a late delivery would test it. Given two candidate models and a behaviour policy, we investigate whether any quantity of data collected under that policy can distinguish between them, and if not, we identify which experiment would separate them.

The question is posed for a stated pair. Such pairs arise as competing mechanistic accounts already written down in a domain, as a hypothesis tested against its memoryless null, or as the top modes of a Bayesian structure learner compared pairwise. Deciding identifiability over an implicitly specified hypothesis class is a different problem and remains open ( §7§7).

Whether data collected under the behaviour policy can separate two candidates is determined by the candidates and the policy alone. We decide it exactly, before any learner is fitted, and the answer applies to a corpus of any size. The relevant notion is π\pi-observational equivalence: two candidates that assign equal likelihood to every history the behaviour policy

1^{1} Source code and Lean 4 formalisations.

can generate leave the posterior odds between them at the prior odds at every sample size (Theorem 6). The condition differs from state coverage. On a two-action T-maze the behaviour policy visits every state while the posterior never moves (Proposition 8), and both results are checked in Lean 4 against Mathlib (§4).

Characterizing π\pi-equivalence exactly depends on choosing the right object ( §5\S5). The set of histories on which two likelihoods differ need not be regular, since two products of real numbers may coincide arithmetically, so it admits no decision procedure of the usual kind. Posing the question instead over the disagreeing state-action pairs of the product automaton yields a characterization that holds for an arbitrary behaviour policy, at every finite horizon and at infinite horizon (Theorem 12). When the action support of the policy does not vary with history, that characterization reduces to reachability in the product automaton, and the resulting procedure, PEC (the π\pi-equivalence certifier), decides it in time O(∣Q∣∣Q′∣∣A∣∣O∣)O(|Q||Q'||A||O|), independently of the horizon ( §5.3\S5.3). When the candidates are not equivalent, PEC returns the state pair and the action at which the corpus must be extended, which is the missing experiment itself. It agrees with brute-force enumeration of histories on all 3700 model pairs we tested, and its running time grows linearly in the size of the product automaton up to 10610^6 state pairs.

The same search answers the question that prior offline guarantees leave open. The distinguishability assumption on which the guarantee of Cipollone et al. (2023) rests takes time exponential in the horizon to evaluate from its definition, whereas PEC decides it without reference to the horizon ( §6.1§6.1). Computed in exact arithmetic, the distinguishability parameter is zero on three of our four test environments, each of which PEC certifies as equivalent, and in every case the experiment named by the witness restores the assumption.

References (36)