University of Alberta
Reevaluating Out-of-Distribution Generalization of Programmatic and Neural Policies through Improved Benchmarking
Abstract
dc:description.abstractGeneralization to out-of-distribution (OOD) situations is a central challenge in reinforcement learning, especially in safety-critical or real-world applications. Among the different approaches, programmatic policies have gained attention for their ability to produce interpretable and compositional behavior that is believed to generalize better than neural policies. However, we argue that some of the influential papers in the literature that claim the distinction of programmatic policies over neural ones did not use proper benchmarks to this end. We take a closer look at the experimental setups of these papers and show that neural policies can achieve good generalization on the tasks chosen therein. In some cases, they even achieve better performance than the offered programmatic approaches. We achieve these results by making minor modifications in the experimental setup used, namely, using the same sparse representation for a specific benchmark as the programmatic approach, or slightly changing the reward function, which can cause the agent to display more cautious behavior. In order to test OOD generalization of programmatic vs. neural policies, we propose a proof-of-concept benchmark with properties that heavily challenge neural policies but can be solved with program synthesis approaches, such as tasks requiring algorithmic constructs like stacks. One specific example of such a benchmark is provided. In conclusion, our work shows that current benchmarks for evaluating the OOD generalization of programmatic policies are insufficient. In these settings, programmatic policies offer no inherent advantage, and neural policies can match their performance. However, we also present a case where programmatic approaches are in fact necessary.
Degree
thesis:*- Name thesis:degree_name
- Master of Science
- Level thesis:degree_level
- Master's
- Grantor
- University of Alberta
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Rajabpour, Amirhossein
- Advisors dc:contributor.advisor
-
- Levi, Lelis (Computing Science)
- Zilles, Sandra (Computer Science, University of Regina)
Subjects
dc:subject × 4Rights
dc:rights- Statement dc:rights
-
- This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law.
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- DOI dc:identifier.doi
- https://doi.org/10.7939/84124