# Reinforcement Learning for Long-Horizon Unordered Tasks: From Boolean to Coupled Reward Machines

*Kristina Levina, Nikolaos Pappas, Athanasios Karapantelakis, Aneta Vulgarakis Feljan, Jendrik Seipp*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/149595) · [Open on the map](../papers.html#p149595)

Category: [Reinforcement Learning & Games](../pcat/10.md) › [Spectral and Structural Reinforcement Learning](../pgroup/14.md) · Type: new method · Keywords: reinforcement learning, reward machines, unordered tasks, long-horizon, task decomposition, Q-learning

## Summary
The paper introduces QCoRM, a task-decomposition Q-learning algorithm that leverages coupled reward machines to efficiently solve long-horizon unordered tasks.

## Explained to a 5-year-old
In some games you have to do many little things, but you can do them in any order. The computer program helps you learn how to do all the tasks without getting confused. It uses a special way to keep track of which tasks are left. It learns faster than before when there are many tasks. This helps you finish the game more easily.

## Explained to a 5-year-old, longer
Some games have many small things you need to do, like picking up toys or solving puzzles. Sometimes you can do those things in any order, which makes it hard for a computer to know what to do next. Reward machines are a tool that tells the computer how good each action is, but they work best when the tasks have a fixed order. When there are many tasks that can be done in any order, the computer needs to remember a lot, and it gets too slow. The paper adds three new ideas to reward machines: one that uses numbers to describe tasks, one that keeps a list of what is left, and one that links each task to its own memory. These new reward machines help the computer keep track of unfinished tasks without getting confused. The authors also create a new learning method that breaks the problem into smaller pieces and learns each piece together. This new learning method still makes sure the computer finds the best overall way to do all the tasks. They test the ideas on four different kinds of problems, some with simple choices and some with many choices. The results show that the new method works better and can handle longer sequences of tasks than older methods. This makes it possible to solve more complex games and real-world problems that have many optional steps. Overall, the work helps computers learn to complete many tasks more efficiently when the order does not matter.

## For a technical reader
The paper addresses the challenge of learning in environments where tasks can be completed in any order, which traditional reward machines struggle with. It introduces three extensions-numeric, agenda, and coupled reward machines-to compactly represent unordered subtasks and maintain global optimality. The core contribution is QCoRM, a task-decomposition Q-learning algorithm that leverages coupled reward machines to preserve optimality while scaling to long horizons. Experiments across four domains with discrete and continuous actions show that QCoRM outperforms baseline methods in scalability. This approach can be integrated into existing RL pipelines to improve sample efficiency for complex, unordered task sequences.

## Problem
Learning with reward machines is ill-suited for long-horizon problems where subtasks can be completed in any order, causing the amount of information to learn to increase exponentially with the number of unordered subtasks.

## Method
The approach extends reward machines with numeric, agenda, and coupled formulations to compactly represent unordered subtasks, and employs a task-decomposition Q-learning method that leverages coupled reward machines to preserve global optimality.

## Results
The approach demonstrates superior scalability over baseline algorithms on long-horizon unordered tasks across four domains.

## Contributions
It proposes three generalisations of reward machines (numeric, agenda, and coupled) and a task-decomposition Q-learning algorithm that preserves global optimality for unordered subtasks.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/149595)
