Introduction
Reinforcement Learning (RL) agents excel at optimizing specific objectives, such as speed or efficiency. However, they often struggle to align with subjective human preferences—the "how" of a task—without extensive retraining or complex reward engineering. For instance, a racing agent might prioritize speed at the cost of passenger comfort. Aligning these agents typically requires millions of additional environment interactions, which is often computationally prohibitive or unsafe.
A recent paper, "Dynamic Policy Fusion for User Alignment Without Re-Interaction," introduces a zero-shot personalization framework. This approach allows developers to "patch" human preferences onto pre-trained agents using existing training data, ensuring the agent satisfies specific human intents without compromising its primary task.
The Challenge of Alignment
Standard RL agents maximize a predefined reward signal. Humans, however, have latent preferences that are difficult to encode initially. Traditional solutions involve retraining with a combined reward function, which suffers from two main drawbacks:
- High Computational Cost: Retraining from scratch is resource-intensive.
- Interaction Requirements: Learning new preferences usually requires extensive new environment interactions.
Furthermore, existing "policy fusion" methods—which blend two policies—often lead to over-dominance. A static blend might cause an agent to become "addicted" to a preference reward (e.g., visiting a checkpoint) while neglecting the ultimate goal (e.g., finishing the race).
The Dynamic Policy Fusion Framework
The proposed pipeline consists of three main stages designed to enable alignment without further environment interaction.
1. Zero-Shot Intent Inference
Instead of running new simulations, the framework utilizes trajectories already generated during the original training phase. These trajectories are labeled by a human (or a simulated proxy). The system then employs RUDDER, an LSTM-based architecture, to perform credit assignment. By identifying which actions led to human approval, the system constructs an intent-specific policy ($π_ψ$).
2. Boltzmann Policy Construction
The Q-values from both the original task-specific policy ($π_ϕ$) and the new intent-specific policy ($π_ψ$) are converted into probability distributions using a Boltzmann (softmax) function.
3. Dynamic Fusion and Temperature Modulation
The core innovation is the dynamic temperature modulation mechanism. Rather than using a fixed weight to blend policies, the system tracks the "accumulated human-induced reward" ($r'$).
As shown in the modulation curve, the temperature for the intent policy is kept low (high influence) until the human's preference is satisfied. Once the accumulated reward reaches a threshold ($η$), the temperature rises, making the intent policy's distribution uniform ("blurry"). This allows the primary task policy to regain control and complete the objective, preventing the agent from being trapped by secondary preferences.
Experimental Evaluation
The authors evaluated the framework across three environments:
- 2D Navigation: A grid-world where agents must reach a target while visiting or avoiding specific regions.
- Highway: A driving simulator where agents navigate traffic quickly while adhering to lane preferences or speed limits.
- Pong: The classic Atari game, where the intent is to maintain the paddle in specific regions while winning.
The system was tested across three alignment modes: Preference (positive reinforcement), Avoidance (negative reinforcement), and Mixed.
Key Results
The dynamic approach consistently outperformed baselines like Multi-Objective RL (MORL) and static fusion:
- Task Success: In 2D Navigation, the dynamic agent achieved a perfect task score while satisfying the intent. Baselines often failed the primary task because they could not balance competing goals.
- Driving Alignment: In the Highway environment, agents successfully shifted to preferred lanes while maintaining high speeds and low collision rates. Even with conflicting intents (e.g., "stay in the slow lane but go fast"), the dynamic fusion maintained a safe, bounded performance.
- Robustness to Feedback: The system remained effective even with simple binary "Yes/No" feedback, making it practical for real-world human-in-the-loop applications.
Conclusion and Future Work
Dynamic Policy Fusion provides a "plug-and-play" method for personalizing AI agents. By satisfying the invariability constraint—ensuring the policy remains unchanged if the intent aligns perfectly with the task—the method offers a mathematically sound way to steer agents.
Future work will focus on extending the framework to continuous action spaces (e.g., precise steering) and reducing sensitivity to hyperparameters like the sigmoid slope. Additionally, addressing the noise inherent in real-world human feedback remains a key challenge for deploying these systems in the wild.
Summary updated