Skip to content

A reinforcement learning Actor-Predictor architecture for formal specification objectivesActor-Predictor Architecture for Reinforcement Learning with Formal Specification Objectives

arXiv· arXiv:2611.26313· Josef Brozovich, Qining Zhang, Lei YingUniversity of Michigan, Ann ArborIndexed by this site · 4 days ago· Originally publishedAlignment· Its place in the scan record →

Quick read

Other

Based on the paper PDF (AI-generated); refer to the original

The authors propose Actor-Predictor, which uses a predictor to learn a substitute representation of automaton states; the authors claim it outperforms baselines such as CyclER on a quadruped robot LTL task and on the non-regular task aⁿbⁿ.

Questions
Reinforcement learning with formal specifications (such as LTL) has two difficulties: long-range temporal dependencies and trajectory-level sparse rewards; the standard automaton + reward shaping approach has a worst-case complexity that is doubly exponential in the number of APs when converting LTL to LDBA, and cannot represent non-regular languages that require arbitrary counting.
Methods
Actor-Predictor uses a Mamba predictor to estimate the probability that a partial trajectory will satisfy the specification in the future, and feeds its penultimate-layer features to the actor as a substitute representation for automaton states; the actor is trained with GRPO with RWR exponential weighting, the predictor is trained with a BCE loss, and the two are optimized alternately.
Experiments and results
On quadruped φ1 the average reward is 0.0905, higher than CyclER's 0.0724 and LCER's 0.0566; on the non-regular task aⁿbⁿ it reaches 7.37, with four of five seeds reaching n=9, while the baselines all stop at ab; a linear classifier can recover the automaton state from the hidden state with 99.63% (φ1) and 94.12% (aⁿbⁿ) accuracy.
Limitations and future work
The paper does not specifically discuss limitations. The experiments cover only one quadruped environment (3 LTL specifications) and one 10×10 grid world (1 non-regular specification), with 5 seeds per condition; the theoretical results rely on assumptions such as an upper bound on prediction error, and the paper does not report whether these assumptions were verified in the experiments.
Experimental setupActor-Predictor · Isaac Lab Quadruped(Unitree 四足机器人,规格 φ1、φ2、φ3)、10×10 Grid World(非正则规格 L = {aⁿbⁿ}) · average reward、reward/sec et al.
Evaluated models
Actor-Predictor
Benchmarks
Isaac Lab Quadruped(Unitree 四足机器人,规格 φ1、φ2、φ3)10×10 Grid World(非正则规格 L = {aⁿbⁿ})
Metrics
average rewardreward/secautomaton state recovery accuracy
AI summaryThe paper proposes the Actor-Predictor framework, which lets reinforcement learning training satisfy temporal safety constraints such as formal specifications without explicitly constructing automata. Existing methods usually translate logical formulas into automata for state augmentation and reward shaping, relying on the assumption that automaton construction is feasible and tractable, and are thus limited to small-scale specifications and linear temporal logic (LTL). Actor-Predictor learns a surrogate representation of logical progress, with a predictor continuously estimating whether a partial trajectory can satisfy the specification in subsequent steps; the learned features are provided as auxiliary input to the Actor, which is then optimized with GRPO and RWR. The paper theoretically proves that, when the prediction is sufficiently accurate, the learned representation is equivalent to the automaton state. Experiments on grid-world and Isaac Lab robot tasks show that Actor-Predictor outperforms automaton-based baselines on LTL-constrained tasks and can handle non-regular formal specifications such as a^n b^n, to which finite-automaton methods do not apply.

The paper proposes the Actor-Predictor framework, which lets reinforcement learning training satisfy temporal safety constraints such as formal specifications without explicitly constructing automata. Existing methods usually translate logical formulas into automata for state augmentation and reward shaping, relying on the assumption that automaton construction is feasible and tractable, and are thus limited to small-scale specifications and linear temporal logic (LTL). Actor-Predictor learns a surrogate representation of logical progress, with a predictor continuously estimating whether a partial trajectory can satisfy the specification in subsequent steps; the learned features are provided as auxiliary input to the Actor, which is then optimized with GRPO and RWR. The paper theoretically proves that, when the prediction is sufficiently accurate, the learned representation is equivalent to the automaton state. Experiments on grid-world and Isaac Lab robot tasks show that Actor-Predictor outperforms automaton-based baselines on LTL-constrained tasks and can handle non-regular formal specifications such as a^n b^n, to which finite-automaton methods do not apply.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    To address the problem that automaton construction is infeasible or impossible in RL with formal specifications, an Actor-Predictor framework that does not construct automata is proposed.

    Core problem: how to avoid constructing explicit automata in reinforcement learning with formal specification objectives, while handling long-range temporal dependencies and sparse rewards.

    • Problem setting: formal specifications (such as LTL formulas or non-regular specifications) describe temporal behaviors such as safety constraints, but introduce two difficulties: the optimal policy is generally non-Markovian (depending on history rather than the current state); the reward is trajectory-level binary feedback, causing sparse rewards and cold-start difficulties (Section 1).
    • Shortcomings of existing methods: the standard approach converts the LTL formula into a limit-deterministic Büchi automaton (LDBA) and performs reward shaping on the product state space. The authors point out that the worst-case complexity of converting LTL to LDBA is doubly exponential in the number of APs (citing Sickert et al., 2016), and that any language requiring arbitrary counting is non-regular and cannot be represented by a finite automaton at all (Sections 1, 2).
    • Core observation: the agent's progress in the automaton maps uniquely to "the probability of reaching an accepting state in the future", so the features of a network that predicts the future satisfaction probability of a partial trajectory can serve as a substitute representation for automaton states (Section 1).
    • Method proposed in the paper: the Actor-Predictor framework—a Mamba predictor estimates the satisfaction probability and feeds features to the actor as auxiliary input, and the actor is optimized with GRPO plus RWR exponential weighting; theoretically it is proven that when predictions are sufficiently accurate, this representation is equivalent to automaton states (Lemma 1, Theorem 1).
    • Assumptions: the paper assumes the specification task can be reduced to an unknown deterministic automaton with unobservable states, where satisfaction means the automaton is in an accepting state (Assumption 1); the theoretical results additionally require Assumption 2 (distinguishability: different automaton states correspond to different satisfaction probabilities, and the prediction error does not exceed ϵ).
  2. What related research exists?

    Related work falls into three groups: product MDP methods that convert LTL to LDBA, reward shaping methods based on automaton progress, and PSR; this paper is positioned as an alternative route that does not depend on automaton structure.

    Product MDP framework combining LTL and RL

    • Li et al. (2017), Bozkurt et al. (2020), Hasanbeig et al. (2019, 2020), Li et al. (2018), Cai et al. (2021), Chou et al. (2022), Wang et al. (2021)—combine temporal logic with RL for safety and task satisfaction; the standard approach is to convert the LTL formula into an LDBA and then construct a product MDP (state space S × B), making the task Markovian (Section 2).

    Reward shaping based on automaton progress (baselines of this paper)

    • CyclER (Shah et al., 2024)—uses cycle experience replay to shape rewards by maximum path completion, together with eventual discounting.
    • LCER (Voloshin et al., 2023)—LTL-guided counterfactual experience replay, reusing transitions across automaton states through counterfactual relabeling.
    • ACQL (Manganaris et al., 2025)—Automaton Constrained Q-Learning, which likewise uses automaton progress to densify rewards.
    • The paper points out a common problem of such methods: they fundamentally depend on the explicit structure and observability of the automaton, restrict expressible specifications to regular languages, and cannot solve tasks requiring arbitrary counting (Section 2).

    Predictive state representation (PSR)

    • Littman and Sutton (2001)—predictive state representation for POMDPs, representing hidden state with predictions of a set of future tests. The paper states it is inspired by this, but PSR requires carefully hand-designed tests, whereas the predictor in this paper directly estimates the final satisfaction of the specification; moreover, classical PSR seeks a representation sufficient for all future observations, whereas this paper only needs sufficiency for task satisfaction, so the dimension may be much lower (Sections 2, 5).

    Baselines and benchmarks: the experiments compare four baselines, CyclER, LCER, PPO (Schulman et al., 2017), GRPO (Shao et al., 2024); the environments are the Isaac Lab quadruped robot (LTL specifications φ1/φ2/φ3) and a 10×10 grid world (non-regular specification L = {aⁿbⁿ}) (Section 6).

    Positioning of this paper: the authors claim that, unlike the above methods, Actor-Predictor does not need knowledge or observability of the automaton and replaces automaton states with learned predictive features, thereby handling both LTL and non-regular specifications (Sections 2, 7).

  3. How does the paper address this problem?

    A Mamba predictor is used to estimate the probability that a partial trajectory will satisfy the specification in the future, and its features are fed to the actor as a substitute representation for automaton states; the actor is trained with GRPO+RWR, and the two are optimized alternately.

    Overall idea: instead of constructing an automaton, train a predictor to estimate the probability that "the current partial trajectory will satisfy the specification in the future under the current policy," treat the predictor's penultimate-layer features as a substitute representation of automaton states, concatenate them with environment states as actor input, and approximately reduce the history-dependence problem to a stationary MDP.

    Problem setting

    • The RL problem is defined as the tuple M = (S, A, P, K, r_L), where the reward r_L is defined by a formal specification L over the entire trajectory (such as binary satisfaction feedback, number of satisfactions, or the count n in the aⁿbⁿ task) and cannot be decomposed into local rewards; the goal is to maximize the expected cumulative trajectory reward (Section 3.1).
    • The standard route converts the LTL formula φ into an LDBA (tuple B = (B, Σ, T_B, B*, b0), including a dummy restart transition E) and solves on the product space S × B; this paper assumes the automaton is unknown and only assumes the task can be reduced to a deterministic automaton with unobservable states (Assumption 1).

    Predictor (Mamba SSM)

    • The predictor ϕ_θ takes the full history τ_k = (s1, a1, …, sk) as input and outputs the future satisfaction probability σ(ϕ_θ(τ_k)ᵀw), where ϕ_θ(τ_k) is the penultimate-layer feature; note that it predicts future satisfaction rather than the past (Section 4).
    • Reasons for choosing Mamba (given by the authors): the input is a time series requiring memory; Mamba can dynamically change its internal state when an AP is satisfied, simulating automaton state transitions; training complexity is linear in sequence length and inference is constant per step; the hidden state is not limited to binary representations and has greater expressiveness (Section 4.1).
    • Training data: after rolling out complete trajectories, randomly sample time step k to obtain partial trajectories, then use the complete trajectory to check whether the future is satisfied to obtain a binary label y, and train with a BCE loss (Alg. 2).
    • Multiple predictors: long specifications can be split into subformulas, each with an independent feature extractor ϕ_θi, trained and validated separately (Section 4.1).

    Actor training (GRPO + RWR)

    • The actor π_ψ is an MLP that takes the augmented state s̃_k = [s_k, ϕ_k] as input and outputs actions; the augmented state approximately reframes the problem as an MDP (Section 4.2).
    • Since rewards are only available at the end of the trajectory, a modified GRPO with RWR exponential weighting is used: the original advantage Ã(τ) = exp(β R(τ)), which the authors claim amplifies rare positive signals under sparse rewards; it is then normalized by group mean and variance to obtain A(τ).
    • GRPO loss LGRPO(ψ) = −(1/NK) Σ min[r A, clip(r, 1−ε, 1+ε) A], where r is the importance sampling ratio and clip is the same as in PPO.
    • Alternating optimization: each iteration first freezes the predictor to train the actor, then trains the predictor, both on-policy (Alg. 1).

    Theoretical guarantees

    • Assumption 2 (distinguishability): under an informative policy μ, the difference in satisfaction probability between different automaton states at the same environment state is greater than 4ϵ, and the predictor's estimation error does not exceed ϵ.
    • Lemma 1: under this assumption, the difference in predicted probability between two partial trajectories does not exceed 2ϵ if and only if they correspond to the same automaton state, i.e., the predictive features sufficiently distinguish automaton states (proof in Appendix A).
    • Theorem 1: there exists a Markov policy defined on S × Φ_θ that achieves the maximum reward of the original problem (over the class Π of all history-dependent policies), i.e., when predictions are sufficiently accurate, the substitute representation is equivalent to automaton states (Section 5).
  4. What experiments did the paper conduct?

    Four baselines are compared on a quadruped robot (LTL) and a grid world (non-regular aⁿbⁿ), with transfer, automaton state recovery, and ablation experiments; the authors claim it outperforms the baselines on all dimensions.

    Experimental setup

    • Environments: Isaac Lab quadruped robot (Unitree, high-level policy outputs discrete target velocities, frozen low-level controller maps to joint torques; specifications φ1, φ2, φ3, including collision-avoidance predicate C, reward +1 for each newly satisfied specification); 10×10 grid world (non-regular specification L = {aⁿbⁿ}, blue/purple landmarks are subtask goals, yellow is the return point, red zones must be avoided, a and b must be completed an equal number of times and a must not be completed after b) (Section 6).
    • Baselines: CyclER, LCER (both MLP policies, explicitly fed automaton states and with reward shaping), PPO and GRPO (both use the Mamba architecture for fair comparison, no automaton input).
    • Metrics: average reward and reward/sec; additionally, the accuracy of a linear classifier recovering automaton states from the predictor hidden state.
    • Training configuration: quadruped batch size 512, decision frequency 5 Hz, episode length 135 s (φ1, φ3) or 150 s (φ2); grid world batch size 4096, 400-step episodes; β = 10 (grid world swept from {1,2,4,6,7,8,10,12}) (Appendix B).
    • Seeds and hardware: all experiments use random seeds 0–4 (5 in total), a single NVIDIA RTX PRO 6000 Blackwell (Appendix B).
    • Evaluation method: no LLM or human review, rewards are automatically determined by specification satisfaction.

    Main results

    Swipe horizontally to read the table

    TaskActor-PredictorCyclERLCERGRPOPPO
    Quadruped φ1 (average reward, Fig. 3(a))0.0905 ± 0.00270.0724 ± 0.02160.0566 ± 0.0328not reportednot reported
    Grid world aⁿbⁿ (final average reward, Fig. 3(b))7.37 ± 3.562.0 ± 0.0not reported1.0 ± 0.00.98 ± 0.02
    φ2→φ3 transfer (final reward, Fig. 3(c))transfer 0.0980 ± 0.0078; Cold-Start 0.1080 ± 0.0094––––
    • The authors state that on φ1 Actor-Predictor converges slowest, because the baselines are explicitly given automaton states and have reward shaping, whereas this paper's initial reward is sparser (Section 6.1).
    • On aⁿbⁿ, four of five seeds reach n = 9, and the remaining one converges to ab; CyclER needs to truncate the count to n ≤ 15 to construct a finite automaton (still 137 states), and both GRPO and PPO stop at the ab local optimum (Section 6.1).
    • In the transfer experiment, the predictor is trained on φ2 for 1000 iterations and then frozen, and the actor is randomly reinitialized and then trained on φ3; the authors state the results show that features can transfer across specifications, and that the frozen predictor reduces peak VRAM per step by 3.48 GB (Section 6.1).

    Automaton state recovery

    • A linear classifier is trained on 2,048 trajectories to recover the automaton state b_t from the predictor hidden state h_t, with an 80/20 train-test split (Section 6.2).
    • Recovery accuracy (Table 1): quadruped φ1 is 99.63 ± 0.14%, quadruped φ2 is 99.55 ± 0.22%, grid world aⁿbⁿ is 94.12 ± 10.30%.
    • The authors state that the high recovery accuracy indicates h_t captures task dynamics, empirically supporting Lemma 1.

    Predictor architecture ablation

    • On φ2 (regular), the rewards for Mamba, Transformer, LSTM are 0.0464 ± 0.0005, 0.0373 ± 0.0209, 0.0458 ± 0.0038 respectively, and the authors state the three are comparable (Fig. 4(b)).
    • On aⁿbⁿ (non-regular), Mamba reaches 7.37 ± 3.56, Transformer is 0.17 ± 0.02, LSTM is 0.20 ± 0.44 (Fig. 4(a)).
    • The authors state that Mamba is best under both types of constraints; they also report that the LSTM predictor has similar memory savings, and the Transformer predictor's peak memory savings exceed two times (Section 6.1).

    Other ablations and analyses

    • Number of prediction heads (φ2, Fig. 4(c)): two heads 0.0466 ± 0.000 and one head 0.0466 ± 0.001 are almost identical, and the authors state this reflects the compositionality of the specification's subformulas.
    • Exponential weighting (aⁿbⁿ, Fig. 4(d)): with β = 1 the average reward is 1.0 ± 0.0 (converges to ab), with β = 10 it is 7.4 ± 3.6; the authors state that increasing n becomes increasingly difficult and exponential weighting is needed to encourage exploration toward higher n.
    • Hyperparameters (Appendix B): the grid world time horizon is chosen as 400 from {350, 400, 500, 600, 700} (the shortest value that can scale with n); the quadruped actor learning rate is set to 3e-4.
  5. What are some points that can be further explored?

    The paper does not specifically discuss limitations; the experiments cover two environments, four baselines, and 5 seeds per condition, and empirical verification of the theoretical assumptions is not reported.

    Limitations and future directions noted by the authors

    • The paper does not specifically discuss limitations (there is no Limitations or Future Work section; the conclusion in Section 7 only summarizes contributions and does not list future directions).

    Scope of experimental coverage

    • Environments tested: Isaac Lab quadruped robot (3 LTL specifications φ1, φ2, φ3) and a 10×10 grid world (1 non-regular specification L = {aⁿbⁿ}), two environments in total (Section 6).
    • Comparison baselines: CyclER, LCER, PPO, GRPO, four in total; on φ1 only CyclER and LCER are compared, and on aⁿbⁿ CyclER, GRPO, PPO are compared (Section 6.1).
    • Number of repetitions: all experiments use random seeds 0–4, i.e., 5 seeds per condition (Appendix B.2).
    • Predictor architectures: the ablation covers three, Mamba, Transformer, LSTM (Section 6.3).
    • Testing of theoretical assumptions: Assumption 2 requires the prediction error not to exceed ϵ and the difference in satisfaction probability between different automaton states to be greater than 4ϵ; the paper indirectly supports Lemma 1 with linear classifier recovery accuracy (Table 1), and does not report the specific value of ϵ or whether Assumption 2 holds in the experiments.
  6. Summarize the main content of the paper

    Actor-Predictor replaces automaton states with predictor features, outperforms automaton baselines on LTL and non-regular specification tasks, and has a theoretical equivalence guarantee.

    A reinforcement learning methods paper: for RL with objectives given by formal specifications (LTL or non-regular languages), it proposes an Actor-Predictor framework that does not construct an explicit automaton.

    • Problem to solve: Standard methods convert LTL into an LDBA and then do reward shaping, but the conversion is worst-case doubly exponential in the number of APs, and non-regular languages (such as aⁿbⁿ requiring arbitrary counting) cannot be represented by finite automata at all; meanwhile, specification rewards are trajectory-level binary feedback, making cold start difficult.
    • Method highlights: A Mamba predictor estimates the probability that a partial trajectory will satisfy the specification in the future; its penultimate-layer features serve as a substitute representation of automaton states, concatenated with environment states and used by an MLP actor; the actor is trained with GRPO with RWR exponential weighting (β = 10), the predictor is trained with a BCE loss, and the two are optimized alternately. Theoretically, under a distinguishability assumption and an upper bound on prediction error, the authors prove that the predictive features sufficiently distinguish automaton states (Lemma 1), and that a Markov policy achieving the optimum of the original problem exists on the substitute state space (Theorem 1).
    • Main results: Average reward on quadruped φ1 is 0.0905 ± 0.0027, higher than CyclER's 0.0724 and LCER's 0.0566 (Fig. 3(a)); on the non-regular aⁿbⁿ task it reaches 7.37 ± 3.56, with four of five seeds learning n = 9, while CyclER, GRPO, and PPO all stall at the ab level (Fig. 3(b)); a predictor trained on φ2, once frozen, can transfer to φ3, with a final reward of 0.0980 versus Cold-Start's 0.1080 (Fig. 3(c)); a linear classifier recovers automaton states from hidden states with 99.63% (φ1) and 94.12% (aⁿbⁿ) accuracy (Table 1).
    • Authors' conclusion: The authors claim that Actor-Predictor outperforms automaton baselines on LTL tasks without access to the automaton, can learn non-regular specifications, and that the learned features transfer across specifications (Section 7).
Read originalarxiv.org