[Paper Review] Off-Policy Reward Shaping with Ensembles
This paper proposes an off-policy reward shaping framework using an ensemble of policies trained with multiple heuristics and scaling factors, leveraging the Horde architecture for efficient off-policy learning. The ensemble outperforms individual shaped policies and optimally tuned components by dynamically voting for the best-performing policy, eliminating the need for manual heuristic and scale tuning while maintaining convergence guarantees and improving sample efficiency.
Potential-based reward shaping (PBRS) is an effective and popular technique to speed up reinforcement learning by leveraging domain knowledge. While PBRS is proven to always preserve optimal policies, its effect on learning speed is determined by the quality of its potential function, which, in turn, depends on both the underlying heuristic and the scale. Knowing which heuristic will prove effective requires testing the options beforehand, and determining the appropriate scale requires tuning, both of which introduce additional sample complexity. We formulate a PBRS framework that reduces learning speed, but does not incur extra sample complexity. For this, we propose to simultaneously learn an ensemble of policies, shaped w.r.t. many heuristics and on a range of scales. The target policy is then obtained by voting. The ensemble needs to be able to efficiently and reliably learn off-policy: requirements fulfilled by the recent Horde architecture, which we take as our basis. We demonstrate empirically that (1) our ensemble policy outperforms both the base policy, and its single-heuristic components, and (2) an ensemble over a general range of scales performs at least as well as one with optimally tuned components.
Motivation & Objective
- Address the high sample complexity introduced by tuning heuristic choice and scaling in potential-based reward shaping (PBRS).
- Enable effective reward shaping in latent off-policy settings where exploration cannot be steered.
- Develop a framework that leverages domain knowledge via multiple heuristics without requiring prior knowledge of their effectiveness or optimal scale.
- Ensure convergence and computational efficiency by building on the Horde architecture’s off-policy learning guarantees.
- Demonstrate that ensemble voting can outperform both individual shaped policies and optimally tuned components.
Proposed method
- Train an ensemble of policies using the same experience data, each shaped with a different potential function derived from a distinct heuristic and scaling factor.
- Use the Horde architecture as the underlying off-policy learning engine, ensuring convergence under fixed behavior policies.
- Apply a voting mechanism to combine the ensemble members into a single target policy, selecting actions based on collective performance.
- Maintain a shared parameter set across demons to reduce computational overhead while enabling efficient off-policy learning.
- Evaluate performance across a broad range of scaling factors (1 to 10⁴) to assess robustness and eliminate the need for hyperparameter tuning.
- Use evaluation every 50 episodes over 100 independent runs to ensure statistical reliability in benchmark environments.
Experimental results
Research questions
- RQ1Can an ensemble of policies shaped with diverse heuristics and scaling factors outperform a single shaped policy without additional sample complexity?
- RQ2Does the ensemble framework maintain convergence guarantees in a latent off-policy setting where the behavior policy is fixed?
- RQ3Can the ensemble dynamically identify and follow the most effective heuristic and scale without prior tuning?
- RQ4How does performance vary when the ensemble uses a broad range of scales versus a set of optimally tuned components?
- RQ5Does voting across multiple shaped policies improve learning speed compared to relying on the best single component?
Key findings
- The global ensemble $E_C$ outperformed both the base learner and all individual shaped components, demonstrating the effectiveness of combining multiple heuristics and scales.
- The ensemble's performance matched that of $E^1_C$, the best-performing single-heuristic ensemble, indicating it successfully identified and leveraged the most effective heuristic.
- The ensemble over a broad range of scales performed at least as well as one with optimally tuned components, eliminating the need for prior hyperparameter tuning.
- The performance of $E_C$ followed the more effective first shaping ($ heta_1$) in the long run, showing that the voting mechanism correctly prioritized superior heuristics.
- The ensemble consistently outperformed the average performance of its components, indicating that collective decision-making enhances learning beyond individual contributions.
- The framework successfully enabled effective PBRS in a latent off-policy setting, validating its use in real-world applications with high failure costs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.