Papers
Topics
Authors
Recent
Search
2000 character limit reached

Quasi-Markov Environments

Updated 5 July 2026
  • Quasi-Markov environments are processes where non-Markov dynamics are managed by augmenting states with finite exogenous history to regain near-Markov properties.
  • They enable reinforcement learning methods to leverage classical Bellman theory and policy iteration through state augmentation and controlled truncation of past events.
  • Various formulations—including external temporal processes, MEMDPs, and reactive environments—demonstrate practical techniques for balancing truncation error and computational complexity.

Searching arXiv for the provided paper and closely related work on quasi-Markov formulations, non-Markov RL with augmentation, and multiple-environment MDPs. Quasi-Markov environments are processes that are non-Markov in the agent’s native state representation yet admit a Markov, approximately Markov, or asymptotically learnable description after suitable augmentation, conditioning, or forgetfulness assumptions. In the cited literature, the term covers several technically distinct regimes: MDPs perturbed by an external temporal process; near-deterministic environments whose missing variables can be reconstructed by a deterministic factored model; Multiple-Environment MDPs with a fixed but unknown environment parameter; reactive environments satisfying value-stability or recoverability; and interacting Markov processes in a random environment where the environment coordinate is not Markov in its own filtration but the joint process is Markov (Ayyagari et al., 2023, Matuz et al., 2011, Raskin et al., 2014, 0810.5636, Das, 2016).

1. Core meaning and definitional variants

In the reinforcement-learning formulation centered on external temporal processes, an environment is quasi-Markov if the next-state and reward depend on a finite amount of history or on the state of an exogenous temporal process, rather than solely on the current state and action. Formally, a process is quasi-Markov if there exists an integer mm and auxiliary variables ZtZ_t such that

P(St+1,RtS0:t,A0:t)=P(St+1,RtSt,At,Ztm+1:t).P(S_{t+1}\in\cdot, R_t\in\cdot \mid S_{0:t}, A_{0:t}) = P(S_{t+1}\in\cdot, R_t\in\cdot \mid S_t, A_t, Z_{t-m+1:t}).

This definition makes finite-memory sufficiency explicit: the full past matters only through the current state, current action, and a finite window of exogenous information. The same source also states that when the exogenous process is Markov of finite order mm, or when the influence of older events decays sufficiently, a Markov model can be regained by augmenting the agent’s state with a finite history of exogenous signals or with sufficient statistics of their effect (Ayyagari et al., 2023).

Taken together, the cited works suggest that “quasi-Markov” is not one uniform formal class but a family of constructions in which Markovity is restored exactly, restored approximately, or replaced by a weaker long-run forgetfulness property.

Formulation Mechanism Consequence
External temporal process Finite window of exogenous marks or sufficient statistics Approximate or exact Markovization by augmentation
Near-deterministic world Reconstructed state via deterministic factored FSM and look-ahead Behavioral state becomes approximately Markov
MEMDP Hidden static environment parameter ee Conditional on ee, dynamics are Markov
Value-stable reactive environment Sublinear catch-up and summable tail probabilities Finite past has negligible long-run cost
Random environment process Environment marginal is non-Markov; joint process is Markov Markovity recovered on augmented state space

2. External temporal processes and finite-memory augmentation

The most explicit formalization models an MDP under an external temporal process with base components SRmS \subset \mathbb{R}^m, ARnA \subset \mathbb{R}^n, discount factor γ(0,1)\gamma \in (0,1), bounded measurable reward r:S×A×SRr:S\times A\times S\to \mathbb{R} with ZtZ_t0, and transition kernel ZtZ_t1. At each discrete time ZtZ_t2, an event indicator ZtZ_t3 occurs with a mark ZtZ_t4, with ZtZ_t5 denoting “no event”. The exogenous history is ZtZ_t6, equivalently ZtZ_t7. Conditioned on ZtZ_t8, the model specifies a perturbed MDP transition kernel ZtZ_t9 and a distribution P(St+1,RtS0:t,A0:t)=P(St+1,RtSt,At,Ztm+1:t).P(S_{t+1}\in\cdot, R_t\in\cdot \mid S_{0:t}, A_{0:t}) = P(S_{t+1}\in\cdot, R_t\in\cdot \mid S_t, A_t, Z_{t-m+1:t}).0 for the next mark, with factorization

P(St+1,RtS0:t,A0:t)=P(St+1,RtSt,At,Ztm+1:t).P(S_{t+1}\in\cdot, R_t\in\cdot \mid S_{0:t}, A_{0:t}) = P(S_{t+1}\in\cdot, R_t\in\cdot \mid S_t, A_t, Z_{t-m+1:t}).1

Because P(St+1,RtS0:t,A0:t)=P(St+1,RtSt,At,Ztm+1:t).P(S_{t+1}\in\cdot, R_t\in\cdot \mid S_{0:t}, A_{0:t}) = P(S_{t+1}\in\cdot, R_t\in\cdot \mid S_t, A_t, Z_{t-m+1:t}).2 and reward may depend on the entire past P(St+1,RtS0:t,A0:t)=P(St+1,RtSt,At,Ztm+1:t).P(S_{t+1}\in\cdot, R_t\in\cdot \mid S_{0:t}, A_{0:t}) = P(S_{t+1}\in\cdot, R_t\in\cdot \mid S_t, A_t, Z_{t-m+1:t}).3, the process is non-Markov in P(St+1,RtS0:t,A0:t)=P(St+1,RtSt,At,Ztm+1:t).P(S_{t+1}\in\cdot, R_t\in\cdot \mid S_{0:t}, A_{0:t}) = P(S_{t+1}\in\cdot, R_t\in\cdot \mid S_t, A_t, Z_{t-m+1:t}).4 alone. Tractability is recovered under regularity assumptions and decaying influence assumptions: there exist nonnegative sequences P(St+1,RtS0:t,A0:t)=P(St+1,RtSt,At,Ztm+1:t).P(S_{t+1}\in\cdot, R_t\in\cdot \mid S_{0:t}, A_{0:t}) = P(S_{t+1}\in\cdot, R_t\in\cdot \mid S_t, A_t, Z_{t-m+1:t}).5 and P(St+1,RtS0:t,A0:t)=P(St+1,RtSt,At,Ztm+1:t).P(S_{t+1}\in\cdot, R_t\in\cdot \mid S_{0:t}, A_{0:t}) = P(S_{t+1}\in\cdot, R_t\in\cdot \mid S_t, A_t, Z_{t-m+1:t}).6 with P(St+1,RtS0:t,A0:t)=P(St+1,RtSt,At,Ztm+1:t).P(S_{t+1}\in\cdot, R_t\in\cdot \mid S_{0:t}, A_{0:t}) = P(S_{t+1}\in\cdot, R_t\in\cdot \mid S_t, A_t, Z_{t-m+1:t}).7 and P(St+1,RtS0:t,A0:t)=P(St+1,RtSt,At,Ztm+1:t).P(S_{t+1}\in\cdot, R_t\in\cdot \mid S_{0:t}, A_{0:t}) = P(S_{t+1}\in\cdot, R_t\in\cdot \mid S_t, A_t, Z_{t-m+1:t}).8 such that histories differing only at an event older than P(St+1,RtS0:t,A0:t)=P(St+1,RtSt,At,Ztm+1:t).P(S_{t+1}\in\cdot, R_t\in\cdot \mid S_{0:t}, A_{0:t}) = P(S_{t+1}\in\cdot, R_t\in\cdot \mid S_t, A_t, Z_{t-m+1:t}).9 induce total-variation differences bounded by mm0 for mm1 and by mm2 for mm3. These bounds quantify the decay of influence of old events (Ayyagari et al., 2023).

The exact Markovization uses the infinite augmented state space

mm4

with augmented state mm5. On this space, the joint transition over mm6 is Markov:

mm7

Practical Markovization truncates history to mm8 recent marks, mm9, producing an approximate MDP ee0 on ee1. Under the summable total-variation tails, replacing older history by non-events yields controlled error. The corresponding theorem states that there exists a deterministic stationary optimal policy on the infinite augmented MDP, and that for any ee2 there exists a finite horizon ee3 and a deterministic stationary policy ee4 whose value on the true augmented process satisfies ee5, with ee6 controlled by the tail sums ee7 and ee8. When the exogenous process is finite-order Markov, choosing ee9 restores the Markov property exactly (Ayyagari et al., 2023).

3. Bellman theory, policy iteration, and sample complexity

On the infinite augmented state space, the value of a fixed policy ee0 satisfies

ee1

The associated Bellman operator ee2 is a ee3-contraction in ee4 and therefore has a unique fixed point ee5. The theory thus preserves the standard Bellman structure, but only after state augmentation by exogenous history (Ayyagari et al., 2023).

The policy-iteration algorithm is explicitly adapted to finite truncation. It initializes a deterministic policy on ee6, performs approximate policy evaluation by defining a truncated value function ee7 that randomizes ignored older events with a distribution ee8, and, in practice, estimates ee9 using pathwise LSTD with linear features on SRmS \subset \mathbb{R}^m0. Approximate improvement then computes an SRmS \subset \mathbb{R}^m1 over actions while averaging over proposed older-event histories via SRmS \subset \mathbb{R}^m2. The resulting guarantees are explicitly non-stationary. A one-step improvement bound gives

SRmS \subset \mathbb{R}^m3

so degradation is bounded by the truncation tail. A stronger theorem states that at any augmented state SRmS \subset \mathbb{R}^m4, either SRmS \subset \mathbb{R}^m5, or the Bellman residual of SRmS \subset \mathbb{R}^m6 at SRmS \subset \mathbb{R}^m7 is small:

SRmS \subset \mathbb{R}^m8

This localizes possible degradation to near-optimal regions where the Bellman error is already small (Ayyagari et al., 2023).

The sample-complexity analysis is organized around truncated augmentation at horizon SRmS \subset \mathbb{R}^m9 and a ARnA \subset \mathbb{R}^n0-dimensional linear function class ARnA \subset \mathbb{R}^n1 with bounded features ARnA \subset \mathbb{R}^n2, ARnA \subset \mathbb{R}^n3. For a trajectory of length ARnA \subset \mathbb{R}^n4, the pathwise Bellman operator ARnA \subset \mathbb{R}^n5 on ARnA \subset \mathbb{R}^n6 is

ARnA \subset \mathbb{R}^n7

and projection ARnA \subset \mathbb{R}^n8 onto sampled features gives the LSTD fixed point ARnA \subset \mathbb{R}^n9. The empirical evaluation bound decomposes into approximation and estimation terms, and the expected-error bound under exponentially γ(0,1)\gamma \in (0,1)0-mixing, ergodic, aperiodic augmented chains further decomposes into: truncation error from discarding events older than γ(0,1)\gamma \in (0,1)1; inherent approximation error of the linear class; and stochastic estimation error depending on γ(0,1)\gamma \in (0,1)2, γ(0,1)\gamma \in (0,1)3, γ(0,1)\gamma \in (0,1)4, the smallest eigenvalue γ(0,1)\gamma \in (0,1)5 of the Gram matrix, the sample size γ(0,1)\gamma \in (0,1)6, and mixing corrections. The stated intuition is that quasi-Markov exogenous dynamics add a truncation penalty that decays with γ(0,1)\gamma \in (0,1)7 according to γ(0,1)\gamma \in (0,1)8, whereas long memory or high-dimensional sufficient statistics increase sample complexity through γ(0,1)\gamma \in (0,1)9 and r:S×A×SRr:S\times A\times S\to \mathbb{R}0 (Ayyagari et al., 2023).

4. Alternative formalizations in adjacent literatures

In near-deterministic reinforcement learning, non-Markovity is formulated at the level of behavioral states rather than exogenous signals. The Markov property is written as

r:S×A×SRr:S\times A\times S\to \mathbb{R}1

and non-Markovity is diagnosed empirically by temporal-difference error distributions: large variance, heavy tails, or multimodality indicate that the current behavioral state omits crucial variables. The proposed correction is to build and run a deterministic, factored Finite State Model of the environment and to select actions by look-ahead planning. The reconstructed state

r:S×A×SRr:S\times A\times S\to \mathbb{R}2

is then approximately Markov when the factored transitions are close to deterministic and include the hidden causal variables. In this formulation, quasi-Markovity is not defined by finite-memory truncation but by successful state reconstruction through factorization and look-ahead (Matuz et al., 2011).

In formal verification, Multiple-Environment Markov Decision Processes treat quasi-Markovity as uncertainty over a latent but static environment parameter r:S×A×SRr:S\times A\times S\to \mathbb{R}3. An MEMDP is

r:S×A×SRr:S\times A\times S\to \mathbb{R}4

where each fixed r:S×A×SRr:S\times A\times S\to \mathbb{R}5 yields an ordinary MDP r:S×A×SRr:S\times A\times S\to \mathbb{R}6. The controller does not know r:S×A×SRr:S\times A\times S\to \mathbb{R}7 a priori and must satisfy robust or multi-threshold guarantees simultaneously for all environments. Qualitative almost-sure and limit-sure reachability, safety, and parity are decidable in polynomial time; quantitative reachability and safety with thresholds are NP-hard even on acyclic MEMDPs and even for memoryless strategies; fixed-memory quantitative synthesis is solvable in PSPACE by bilinear encodings; and finite-memory strategies suffice for arbitrary r:S×A×SRr:S\times A\times S\to \mathbb{R}8-approximation. Here the process is quasi-Markov because it is Markov conditional on a fixed hidden parameter, while the controller’s information state is not fully Markov until that parameter is inferred or statistically distinguished (Raskin et al., 2014).

In reactive environments with arbitrary dependence, quasi-Markovity appears as a forgetfulness condition rather than an explicit state-space augmentation. The key notions are recoverability and value-stability. Recoverability requires that after any finite history with positive probability, some policy can still attain the optimal asymptotic average value almost surely. Value-stability strengthens this to a uniform catch-up condition: there exist benchmark rewards r:S×A×SRr:S\times A\times S\to \mathbb{R}9, a sublinear term ZtZ_t00, and tail probabilities ZtZ_t01 with ZtZ_t02, such that after any ZtZ_t03-step history the agent can catch up to the optimal-from-start benchmark up to ZtZ_t04 with summable tail error. A countable class of value-stable environments admits a self-optimizing policy, and recoverability yields an upper self-optimizing policy. Finite ergodic MDPs and certain ergodic finite POMDPs satisfy these conditions, while a merely linear catch-up term ZtZ_t05 is not sufficient in general. In this line of work, quasi-Markovity is an asymptotic negligibility of finite past, not a direct finite-state Markovization (0810.5636).

In interacting Markov processes in a random environment, the environment coordinate is called quasi-Markov because it is not necessarily Markov in its own filtration once its generator depends on the current basic process. The combined process ZtZ_t06, possibly enlarged with transitional states ZtZ_t07 or ZtZ_t08, is nevertheless a continuous-time Markov chain with explicit product-form stationary measure

ZtZ_t09

This construction accommodates simultaneous changes in both coordinates and allows ZtZ_t10 to depend on ZtZ_t11, with augmentation restoring exact Markovianity on the joint space (Das, 2016).

5. Canonical examples and empirical findings

A concrete exogenous-process example is the discrete-time marked Hawkes process. The event intensity is

ZtZ_t12

and when ZtZ_t13, the mark ZtZ_t14 has mean ZtZ_t15, while ZtZ_t16 otherwise. If ZtZ_t17 and ZtZ_t18 decay sufficiently fast, then the total-variation bounds ZtZ_t19 and ZtZ_t20 hold for events older than ZtZ_t21, yielding truncation error proportional to ZtZ_t22. For exponential decay ZtZ_t23, the tail scales as ZtZ_t24 (Ayyagari et al., 2023).

The principal experiment in that framework uses a non-stationary variant of OpenAI Gym Pendulum-v1, with a Gaussian-marked discrete-time Hawkes process perturbing the torque applied to the pendulum. The setup specifies exponentially decaying ZtZ_t25 with ZtZ_t26, polynomially decaying ZtZ_t27, a fixed neural network policy partially pre-trained by DDPG, and pathwise LSTD with linear features on the augmented state. The metric is mean squared error of the learned value function versus the number of samples ZtZ_t28, the event horizon ZtZ_t29, and the decay rate ZtZ_t30. The reported findings are that increasing ZtZ_t31 reduces MSE; increasing ZtZ_t32 first decreases MSE and then may slightly increase it because feature dimension and conditioning worsen; and faster decay ZtZ_t33 reduces MSE because the truncation tail is smaller. The practical guidance is to choose ZtZ_t34 by balancing truncation error against feature dimensionality, to monitor Bellman residuals and improvement regions, and, under partial observability, to include available proxies such as filtered intensity estimates or recent event counts as features (Ayyagari et al., 2023).

The near-deterministic Ms. Pac-Man study provides a different empirical picture. The environment is modeled by a deterministic factored FSM with components such as dots, power dots, ghost factors, wall and corridor factors, and Pac-Man position and direction. Look-ahead search uses determinized ghost policies, no backtracking, and stopping on reset events. Shallow look-ahead with depth at most ZtZ_t35 reduced performance, whereas deep look-ahead with depth ZtZ_t36 improved overall score to approximately ZtZ_t37, reduced average lives lost to approximately ZtZ_t38, and increased score per life to approximately ZtZ_t39, compared with a baseline average overall score of approximately ZtZ_t40, average lives lost of approximately ZtZ_t41, and score per life of approximately ZtZ_t42. The paper interprets these gains as evidence that a near-deterministic, factored approximation can correct non-Markovity in behavioral macro-states when the relevant factors are identifiable and branching is low (Matuz et al., 2011).

6. Relation to adjacent notions, limitations, and open questions

A common misconception is to treat quasi-Markov environments as synonymous with generic partial observability. The cited work draws sharper distinctions. In the external-process formulation, state augmentation targets non-Markovianity created by exogenous signals and does not assume future full observability; this is explicitly contrasted with the QMDP heuristic for POMDPs. In MEMDPs, the hidden component is one static variable ZtZ_t43 with full observability of ZtZ_t44, which explains why several reachability, safety, and parity problems become decidable there although the corresponding POMDP problems are undecidable in general (Ayyagari et al., 2023, Raskin et al., 2014).

A second misconception is that quasi-Markovity is always exact. Some formulations are exact only after augmentation by an infinite history or by a latent environment parameter; some are approximate and controlled by decay bounds such as ZtZ_t45; some are asymptotic and rely on value-stability or recoverability rather than a finite-dimensional Markov state. This suggests that the phrase should be interpreted operationally: it indicates that non-Markov dependence can be controlled well enough for planning, synthesis, or learning, but the mechanism varies across formalisms (0810.5636).

The limitations are equally formulation-specific. In the exogenous-process setting, the bounds assume bounded rewards, strong continuity, and summable total-variation tails; abrupt regime shifts, adversarial external processes, infinite-memory or heavy-tailed influence, model-estimation error in the improvement step, poor Gram-matrix conditioning, and extension to nonlinear function classes remain open issues. In near-deterministic look-ahead, incorrect determinization, large branching factor, missing factors, and brittle decision-surface construction can mislead planning, and shallow look-ahead can degrade performance. In value-stable reactive environments, the ZtZ_t46 catch-up condition and countability of the environment class are essential in general. In interacting Markov processes in random environments, explicit constructions are given for finite ZtZ_t47 and ZtZ_t48, while extensions to diffusions, general compact metric spaces, and semi-Markov environments with heavy-tailed holding times are left open (Ayyagari et al., 2023, Matuz et al., 2011, Das, 2016).

Across these lines of work, the unifying insight is that non-Markovity need not be treated as an undifferentiated obstacle. It may arise from external temporal processes, omitted but reconstructible variables, a fixed latent environment, or arbitrary dependence whose long-run effect is negligible. The corresponding remedies—finite-memory augmentation, deterministic factor reconstruction, environment identification, and value-stability—provide distinct but mathematically precise ways to make quasi-Markov environments analyzable.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Quasi-Markov Environments.