Skip to content
Robotics.world

Research

Temporal Logic Guided Universal Task Representations for Reinforcement Learning

Most task-representation methods for instruction-guided RL agents are built for one narrow setting — either single-task or multi-task — and they learn their task encoder only indirectly, by…

The paper’s first page · arXiv:2608.15509
arXiv
2608.15509
Published
2026-08-16
Authors
Hao Zhang, Zhangli Zhou, Zhen Kan

In plain words

Most task-representation methods for instruction-guided RL agents are built for one narrow setting — either single-task or multi-task — and they learn their task encoder only indirectly, by back-propagating gradients from the RL controller. That indirect route can degrade both the quality of the task representation and the efficiency of learning.

Key results

  • Faster single-task convergence. LOTUS is reported to accelerate convergence by over 20% in single-task scenarios.
  • Better generalization to unseen manipulation tasks. The method achieves a 15%–45% higher success rate on unseen manipulation tasks.
  • Stronger multi-task generalization. In complex multi-task environments with increased sub-goal depth or conjunctions, generalization performance improves by over 25%.

AI summary

Overview

Research area: Robot learning — reinforcement learning with formal-language (linear temporal logic) task specifications, task representation learning, and generalization across tasks.

Technical level: Advanced. The paper assumes familiarity with reinforcement learning, linear temporal logic semantics and progression, Markov decision processes, graph neural networks, and Transformers.

Scope: LOTUS is a task-representation framework that encodes co-safe LTL instructions as graphs, encodes them with a hybrid graph/Transformer network (RGTN), and updates that encoder directly as a policy (TLPG) stabilized by a bisimulation metric, with the aim of working across both single-task and multi-task settings.

What This Paper Is About

Most task-representation methods for instruction-guided RL agents are built for one narrow setting — either single-task or multi-task — and they learn their task encoder only indirectly, by back-propagating gradients from the RL controller. That indirect route can degrade both the quality of the task representation and the efficiency of learning. The authors propose LOTUS, a framework meant to plug into any RL algorithm and give the agent useful task semantics across single-task, multi-task, and sparse-reward scenarios, while updating the LTL encoder directly from reward rather than through the controller.

Key Contributions

  1. A universal, plug-in task representation framework. LOTUS is designed to be integrated into any RL framework, with the stated goal of improving sampling efficiency, performance, and generalization in both single-task and multi-task learning.
  2. RGTN (Relational Graph Transformer Networks). A new LTL encoder that converts an LTL formula into a directed graph with typed edges, then combines multi-relation attention (over edge types) with multi-head attention and an added fusion projection to extract task semantics.
  3. TLPG: direct encoder update. To the authors' knowledge, the first method to update an LTL encoder directly as a policy using rewards, by constructing a "taskable MDP" over LTL formulas and optimizing the encoder with a policy-gradient-style loss — removing dependence on RL-controller gradients.
  4. Bisimulation-metric stabilization and theory. A bisimulation metric defined over LTL formulas is used to regularize the encoder's latent space, and the paper states theoretical guarantees for the LTL representation: behavioral equivalence, optimality fidelity, and trajectory robustness.

Main Findings

  • Faster single-task convergence: LOTUS is reported to accelerate convergence by over 20% in single-task scenarios.
  • Better generalization to unseen manipulation tasks: The method achieves a 15%–45% higher success rate on unseen manipulation tasks.
  • Stronger multi-task generalization: In complex multi-task environments with increased sub-goal depth or conjunctions, generalization performance improves by over 25%.
  • Overall comparison: The authors report that LOTUS outperforms most existing methods in learning efficiency, generalization capability, and representation quality. The specific baseline names that appear in the provided content are LTL2Action (R-GCN-based encoder, strong in multi-task but weak in single-task) and T2TL (Transformer-based encoder, strong in single-task but weak in multi-task); full experimental tables are not included in the supplied excerpt.
  • Design motivation supported by the architecture: The paper argues that automaton-state indices make poor RL inputs, and that sequence-vector modeling captures multi-task information flow less effectively than the graph formulation; RGTN is designed to inherit the single-task strengths of Transformers and the multi-task strengths of R-GCN.
  • Reward shaping via LTL progression: The task-driven labeled MDP (TL–MDP) defines a reward that adds r_φ on satisfaction, subtracts r_φ on falsification, and otherwise returns the environmental reward r_env, addressing the non-Markovian reward issue.
  • Dense-reward benefit: The paper states that using the combined reward R̃_φ (task reward plus environment reward) speeds encoder optimization, citing the dense rewards from DexArt as enabling higher success rates.

Methodology in Plain English

The agent receives a task written as a co-safe LTL formula — for example, a sequence like "eventually Yellow, then eventually Black, then eventually White, then eventually Red." Each time the robot observes the world, a labeling function reports which atomic propositions are currently true, and LTL progression rewrites the formula to show only the instructions that remain. So the task gets progressively shorter as sub-goals are met.

Rather than feeding that remaining formula in as a flat sequence or an automaton index, the authors parse the formula tree into a directed graph with four edge types: unary, binary-left, binary-right, and self-loop (self-loops let a node's representation be reused across time steps). The graph goes through RGTN, a stack of relational graph Transformer layers with layer norm and residual connections. Each layer computes two views — attention grouped by edge relation type, and standard multi-head attention over nodes — and a fusion projection concatenates and mixes them. The output ψ̂ is a task embedding that is concatenated with the observation and handed to whatever downstream RL agent is being used.

The distinctive step is how the encoder is trained. There is no ground-truth "correct" task embedding available, so the authors instead treat the encoder as a stochastic policy over a separate MDP whose states are LTL formulas, whose transitions are LTL progression steps, and whose actions are the sampled task representations (modeled as a Gaussian with a learned variance). The encoder is then optimized with a policy-gradient objective using the task reward. To keep this from becoming unstable — sampling noise creates representation bias, and dense rewards cause fluctuation — the authors add a bisimulation-metric loss: two formulas that behave similarly (similar expected reward and similar next-formula distributions) should map to nearby latent representations. They use a closed-form 2-Wasserstein distance between Gaussian latent-dynamics models to make this tractable, so the latent distance is trained to match the bisimulation target.

Algorithm 1 alternates an exploration phase (progress the formula, build the graph, encode, augment the observation, collect transitions) with a training phase (update the RL policy by its own method, update the LTL encoder by the bisimulation-regularized loss).

Why This Matters

Impact on research. The paper targets a real gap: LTL encoders in the literature tend to be specialized for either single-task or multi-task use, and no universal framework had been shown to handle both. Making the encoder trainable by its own loss — rather than as a passenger on the RL controller's gradient — is a structural change to how task-conditioned RL pipelines are built, and the bisimulation-based guarantees add a formal footing that most task-encoder work lacks. Because LOTUS is described as pluggable into any RL algorithm, it is positioned as a component other methods can adopt rather than a competing end-to-end system.

Real-world applications (as framed by the paper's task scenarios):

  • Legible instruction following in service and household robots — tasks such as the paper's toilet task (lid_approached, then lid_grasped, then lid_opened), where ordering constraints matter.
  • Safety-constrained manipulation — the avoidance task, where a "danger" proposition must be avoided until other conditions are met, maps to work near hazardous objects or regions.
  • Multi-stage cleanup and tidying — the cleanup task chains a jello-box push before a spam-can pick-and-place, representative of multi-step warehouse or domestic tidying.
  • Color/region sequencing tasks — the partially ordered task over Yellow, Black, White, and Red, representative of inspection or assembly sequences with required orderings.

Industry relevance. Any deployment where operators want to respecify a robot's task by editing a formal instruction rather than retraining a policy benefits from a single encoder that generalizes across instructions. The reported gains in unseen-task success rate and multi-task generalization are the metrics that matter for reducing per-task engineering cost.

Future Directions

  • Scaling the formal-language coverage. The work is restricted to co-safe LTL. Extending the encoder and its guarantees to full LTL, or to other specification languages, is a natural next question.
  • Dependence on hand-designed propositions and rewards. The TL–MDP reward relies on r_φ and a labeling function L. How sensitive LOTUS is to how propositions and the extra task reward are designed is not resolved in the supplied content.
  • Theory-to-practice gap on the bisimulation loss. The guarantees are stated for the representation, but the practical metric uses a learned latent dynamics model and a Gaussian 2-Wasserstein closed form. How much of the guarantee survives that approximation is an open question.
  • Broader and harder generalization tests. The reported gains include larger improvements as sub-goal depth and conjunctions increase; whether that trend holds for much longer-horizon formulas, multiple interacting agents, or real-world perception noise on the physical platform (described for φ_stack and φ_cleanup) is left for further validation.

Target Audience

Robotics and RL researchers working on task-conditioned policies, instruction following, and formal-method-guided learning; practitioners building multi-task manipulation systems who need one task encoder rather than per-task policies; and graduate students with RL and graph/Transformer background who want a worked example of combining LTL progression, graph encoders, and bisimulation metrics in a single pipeline. Readers without RL or temporal-logic background will find the preliminaries section necessary before the method is accessible.

Authors’ abstract

Task guided agents demonstrate strong performance in a wide range of complex tasks. However, most existing task representation algorithms are tailored to specific contexts and struggle to generalize across diverse scenarios. Moreover, they typically depend on gradient signals from reinforcement learning controllers to update their weights, which can degrade both representation quality and learning efficiency. To overcome these limitations, we propose LOTUS, a temporal logic…

The full abstract on arXiv
Read the original paper

Related papers