Abstract
This paper introduces a framework for task-prioritized policy composition in Reinforcement Learning (RL), addressing the limitations of traditional reward-summing methods. We define the "indifference-space"—the set of actions a high-priority policy deems near-optimal—as a mechanism to allow secondary tasks to operate without compromising primary constraints. By employing indifference-weighting based on the geometry of the value function and utilizing Amortized Stein Variational Gradient Descent (ASVGD) for sampling, we enable the composition of complex, non-Gaussian policies. Experimental results in a 2D navigation environment demonstrate that our approach successfully avoids the local optima and deadlocks characteristic of classical null-space control, achieving global task satisfaction while strictly enforcing safety priorities.
Introduction
In autonomous systems, agents must often satisfy multiple, sometimes conflicting, objectives. A common requirement is to achieve a goal while adhering to strict safety constraints. Standard RL approaches typically combine objectives through weighted reward sums or policy switching. However, reward summation can lead to a "tragedy of the commons," where high secondary rewards incentivize the violation of primary safety rules.
Classical control theory addresses this via null-space control, projecting low-priority actions into the degrees of freedom unused by the primary task. This paper translates this concept into the probabilistic framework of deep RL, providing a robust method for prioritized composition that maintains safety while pursuing secondary goals.
Methodology: The Indifference-Space Framework
The core innovation is the indifference-space, which identifies the "wiggle room" available to a low-priority task. Formally, we define the soft indifference-space of a policy as the set of actions resulting in an expected return within $\epsilon$ of the optimum.
Indifference-Weighting
To implement prioritization, we define a compound Q-function: $$Q_{1 \succ 2}(s, a) = Q^*_1(s, a) + w_{1 \succ 2}(s, a)Q^*_2(s, a)$$ The weighting function $w_{1 \succ 2}(s, a)$ is computed using the Jacobian and Hessian of the high-priority Q-function. This weight effectively "mutes" the secondary task when the primary task is at a critical state, such as proximity to an obstacle.
Amortized Sampling
Because the resulting prioritized policy distributions can be highly complex and non-Gaussian, the framework employs Amortized Stein Variational Gradient Descent (ASVGD). This allows a neural network to learn to sample from the prioritized distribution efficiently, providing real-time control capabilities.
Experimental Evaluation: Navigating Deadlocks
We evaluate our framework on a 2D navigation task where an agent must reach a goal located behind a U-shaped obstacle. The high-priority task is obstacle avoidance, while the low-priority task is goal-seeking.
A significant challenge in prioritized control is the emergence of "deadlocks"—local optima where the agent stops because the immediate path to the goal violates the high-priority constraint. While "zero-shot" or local composition often fails here, our method employs online learning for global optimality. By training the low-priority Q-function while keeping the high-priority one fixed, the agent learns to explore the indifference-space to find a global path around the obstacle, satisfying both objectives over the long term.
Conclusion
This work presents a principled approach to task-prioritized policy composition in RL. By leveraging the indifference-space, we provide a safety-first framework that allows for the flexible addition of secondary tasks. Future research will focus on automating the selection of kernel hyperparameters and extending the method to high-dimensional robotic control tasks.
Summary updated